text stringlengths 27 775k |
|---|
import math
class Paginator:
page = 1
limit = 10
def __init__(self, total_count: int, page: str, limit: str):
if page.isnumeric():
page = int(page)
if page > 1:
self.page = page
if limit.isnumeric():
limit = int(limit)
if lim... |
-- Windows of time a given provider's device was in the public right-of-way
DROP VIEW IF EXISTS public.availability CASCADE;
CREATE VIEW public.availability AS
SELECT
provider_id,
provider_name,
vehicle_type,
device_id,
event_location,
start_event_type,
end_event_type,
start_reason,
... |
#pragma once
#include <string>
#include <vector>
#include "token.hpp"
#include "tokenizer_config.hpp"
namespace cuttle {
void tokenize(
const tokenizer_config_t& config,
const std::string& query,
tokens_t& tokens,
unsigned short line = 1
);
}
|
package com.chengww.demo.adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chengww.demo.R;
import com.qingstor.sdk.service.Types;
import java.util.List;
/**
* Created by chengww on 2019/3/4.
*/
public class BucketListAdapter extends Base... |
package oi
import (
"fmt"
"io"
"strings"
)
type InvalidOffset interface {
error
InvalidOffset() (offset int64, whence int)
}
func errInvalidOffset(offset int64, whence int, msg string) error {
var e InvalidOffset = &internalInvalidOffset{
offset:offset,
whence:whence,
msg:msg,
}
return e
}
func errIn... |
#!/usr/bin/env python
"""
Migrate an index using the reindexing script in a pipeline.
"""
import sys
import elasticsearch
import pipeline
def chase(cause):
if "script_stack" in cause:
for ss in cause["script_stack"]:
print(ss.encode("utf-8")) # don't expand \n, etc
if "caused_by" in ca... |
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace App.Areas.EmployeeManagement.Models
{
[Table("Address")]
[Keyless]
public class Address
{
[Required(ErrorMessage = "Must have House ... |
/*
* Copyright 2002-2008 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2... |
[](https://jaredlunde.mit-license.org/)
---
# deploy-react-app
Several deployment strategies for React apps
## Installation
#### `npm i deploy-react-app`
#### `yarn add deploy-react-app`
## LICENSE
MIT
|
{-# LANGUAGE FlexibleContexts #-}
{-
Copyright (C) 2012-2017 Kacper Bak, Michal Antkiewicz <http://gsd.uwaterloo.ca>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, includ... |
dependencies {
testImplementation(project(":test:https-headers"))
testImplementation(kotlin("test"))
testImplementation(kotlin("test-testng"))
}
tasks.named<Test>("test") {
useTestNG {
parallel = "methods"
threadCount = 2
}
} |
# UoYWeek
UoYWeek gives the current date string formatted as used by the [University of York](https://www.york.ac.uk/).
For example, `spr/3/wed` would refer to Wednesday on the 3rd week of Spring
term.
## Installing
### Linux/Mac
```bash
# Clone the repository
git clone https://github.com/LukeMoll/uoyweek.git
cd uo... |
---
layout: page
title:
permalink: /
---
Estonian.
Working as a dev from 2016.
Started coding in [AddGoals](https://addgoals.com).
Did some freelancing.
Was hired as a software engineer for [Catapult Labs](https://catapultlabs.eu).
Started freelancing v2
Music experiments [here](https://soundcloud.com/pyyding).
|
# YsrWord
Windows Word Application with Allegro Library


 and [utility](./utility.py) are modules that provide the functions I use
for data analysis, which are generally called using a script like [FitSMM](./Data Analysis/FitSMM.py)
##Simulation
Most ... |
import { IsString, MinLength } from 'class-validator';
class Event {
constructor(type: string) {
this.type = type;
}
@IsString()
@MinLength(1)
public readonly type: string;
}
export default Event; |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterShaderStateController4 : MonoBehaviour {
public PlayerController myplayer;
public Material myshader;
//public OverheadController myoverhead;
//public List<SpriteRenderer> overheaditems;
public Spr... |
require 'fog/aws/requests/storage/acl_utils'
Shindo.tests('Fog::AWS::Storage | ACL utils', ["aws"]) do
tests(".hash_to_acl") do
tests(".hash_to_acl({}) at xpath //AccessControlPolicy").returns("", "has an empty AccessControlPolicy") do
xml = Fog::AWS::Storage.hash_to_acl({})
Nokogiri::XML(xml).xpath(... |
subroutine evaporationInterface (gsmObj, a, z, ue, trec, pnx, pny, pnz, &
& ln, bf0, fitaf, fitaf1, gsmRxn)
! ======================================================================
!
! This routine handles the statistical decay of the compound nucleus
! by calling the GEMDEC routine to use the GEM2 dec... |
from typing import List, Set, Tuple
from PyQt5.QtCore import QSortFilterProxyModel, QItemSelection, Qt
from PyQt5.QtWidgets import QTableView, QHeaderView
from histoslider.core.manager import Manager
from histoslider.core.message import SelectedMetalsChangedMessage
from histoslider.models.channel import Channel
from ... |
## Django
`nano docker-compose.yaml`
```yaml
version: "3.3"
services:
postgres-compose:
image: postgres
restart: unless-stopped
container_name: postgres-compose
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- ... |
module HLines.FileSpec where
import Test.Hspec
import HLines.Counter
import System.IO
import System.FilePath
import HLines.Internal
import HLines.Type
import HLines.Language
readContent :: FilePath -> IO (Comment, Lines)
readContent fp = do
(_, comment, lines) <- readLines fp
return (comment, lines)
spec :: Spec... |
using UnityEngine;
using UnityEngine.EventSystems;
public class EnableOnHover : MonoBehaviour,
IPointerEnterHandler,
IPointerExitHandler
{
private MeshRenderer mesh;
public void Start()
{
mesh = gameObject.GetComponent<MeshRenderer>();
mesh.enabled = false;
}
public voi... |
# Examples
The following examples demonstrate the basic design patterns for using `stoke` and switching
between different configurations:
- [CIFAR10](https://github.com/fidelity/stoke/blob/master/examples/cifar10)
- HuggingFace BERT -- Coming Soon!
|
# StructureFacilityModel
[View this table in your browser](StructureFacilityModel-value.md) (version 1.6.0).
**Named columns**: 17/19
**Documented columns**: 0/19
**Description**: Exterior model params for buildings
## Door0Angle
**Name**: Door0Angle
**Hash**: 0x88ff5893
**Hashed string**: Door0Angle f32
**Versi... |
use bitvec::{view::BitView, order::Lsb0};
#[derive(Debug, Default)]
pub struct Joypad {
action_selected: bool,
direction_selected: bool,
select_pressed: bool,
start_pressed: bool,
a_pressed: bool,
b_pressed: bool,
up_pressed: bool,
down_pressed: bool,
left_pressed: bool,
right_p... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
;; Maxima code for extracting powers, finding leading and trailing
;; coefficients, and finding the degree of polynomials.
;; Author Barton Willis, University of Nebraska at Kearney (aka UNK)
;; December 2001, December 2002
;; License: GPL
;; The user of this code assumes all risk for its use. It has no warranty.
;;... |
#!/bin/bash
clear
/usr/bin/mysql owp_users < ./schema/owp-complete.sql
./vendor/bin/phpunit --verbose --colors=never
|
<?php
namespace Interop\Container\Factory;
use Interop\Container\ContainerInterface;
use Puli\Discovery\Api\Discovery;
/**
* Classes implementing this interface are factories that can be used to create containers.
*/
interface ContainerFactoryInterface
{
/**
* Creates a container.
*
* @param Con... |
require "owncloud_user_provisioning/version"
require "faraday"
require "nokogiri"
require 'dotenv'
Dotenv.load
begin
require 'pry-byebug'
require "awesome_print"
rescue LoadError
end
module OwncloudUserProvisioning
def self.conn
conn ||= Faraday.new(url: 'https://cloud.espm.br/ocs/v1.php/cloud/') do |faraday... |
// Libraries
import Vuetify from 'vuetify'
import Vuex from 'vuex'
// Components
import deleteConfirm from '@/components/deleteConfirm'
// Utilities
import { mount, createLocalVue } from '@vue/test-utils'
const localVue = createLocalVue()
localVue.use(Vuex)
localVue.use(new Vuetify())
describe('components/deleteCon... |
import { Device } from './device';
export abstract class DeviceRegistry {
abstract getDevices(): Device[];
}
|
package net.keabotstudios.dr2.game.save;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.nio.file.Files;
import java.util.Random;
import net.keabotstudios.superserial.containers.SSDatabase;
import net.keabotstudios.superserial.containers.SSField;
import... |
CREATE TABLE customers (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
notification_label TEXT NOT NULL UNIQUE
);
CREATE TABLE notifications (
id INTEGER PRIMARY KEY AUTOINCREMENT,
body TEXT NOT NULL,
id_customer INTEGER,
FOREIGN KEY (id_customer) REFERENCES customers(id)
);
CREATE TAB... |
from PyQt5.QtWidgets import QLabel, QVBoxLayout, QApplication, QDoubleSpinBox, QCheckBox
from PyQt5.QtCore import Qt
from app import dark_theme
from app.extensions.custom_gui import ComboBox, PropertyBox, PropertyCheckBox, Dialog
from app.editor.settings import MainSettingsController
from app.editor import t... |
#!/bin/sh
label=$1
if [ -z $label ]; then
label=latest
fi
image=$(node -p "require('./package.json').name")
function run_on_container {
echo "run_on_container: $*"
docker run -u 1000 -it --rm -v $(pwd):/app -v $HOME/.npmrc:/home/node/.npmrc -w /app node:12-alpine $*
}
rm -rf dist && \
run_on_container env &&... |
using System.IO;
using System.Linq;
using Moq;
using Neo.Gui.Base.Controllers;
using Neo.Gui.Base.Helpers.Interfaces;
using Neo.Gui.Base.Managers;
using Neo.Gui.Base.Messages;
using Neo.Gui.Base.Messaging.Interfaces;
using Neo.Gui.ViewModels.Home;
using Neo.Gui.ViewModels.Tests.Builders;
using Xunit;
namespace Neo.Gu... |
Given(/^The project has some stories on Pivotal Tracker$/) do
@current ||= File.read('spec/fixtures/pivotal_tracker_project_current_iteration.json')
@project ||= File.read('spec/fixtures/pivotal_tracker_project_response.json')
stub_request(:get, /www\.pivotaltracker\..+\d+[^\/]*$/).
to_return(status: 200, bod... |
USE `geography`;
SELECT
c.`country_code`, COUNT(m.`id`) AS `mountain_range`
FROM
`countries` AS `c`
JOIN
`mountains_countries` AS `mc` ON c.`country_code` = mc.`country_code`
JOIN
`mountains` AS `m` ON mc.`mountain_id` = m.`id`
WHERE
c.`country_code` IN ('BG' , 'RU', 'US')
GROUP BY... |
# frozen_string_literal: true
module Firepush
module Recipient
TYPES = %i(topic token condition)
class Builder
# @param args [Hash]
# @option args [Hash] :topic
# @option args [Hash] :token
# @option args [Hash] :condition
def self.build(args)
new(args).build
end... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ResourceOutDashboard } from '../../_models/resourcesOutDashBoard';
import { DashboardService } from '../../_services/dashboard.service';
import { User } from '../../_models/user';
import { StorageService } from '../../... |
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Miscellaneous instances, etc. Related to the main blockchain of course.
module Pos.Core.Block.Main.Instances
(
) where
import Universum
import qualified Data.Text.Buildable as Buildable
import Formatting (bp... |
angular.module('emailParser', [])
.config(['$interpolateProvider', function($interpolateProvider) {
$interpolateProvider.startSymbol('__');
$interpolateProvider.endSymbol('__');
}])
.factory('EmailParser', ['$interpolate', function($interpolate) {
// a service to handle parsing
return {
parse: function(text, c... |
var searchData=
[
['quantizedunitvec_2eh',['QuantizedUnitVec.h',['../QuantizedUnitVec_8h.html',1,'']]],
['quat_2eh',['Quat.h',['../Quat_8h.html',1,'']]],
['queue_2eh',['Queue.h',['../Queue_8h.html',1,'']]]
];
|
<?php
function check_input($data)
{
global $ret_data;
$data = trim($data);
$ret_data = htmlspecialchars($data);
return $ret_data;
}
function getLocation($data)
{
$ret_data="Online";
if ($data=="Y")
$ret_data = "F2F (Largo, MD)";
return $ret_data;
}
// Look... |
import React from 'react'
import { ServiceInputWrapperWithLabel } from './ServiceInputWrapperWithLabel'
import { Input } from 'lib/antd'
export const ServiceInput = ({
default: defaultValue,
type,
onChange,
propKey,
...props
}) => (
<ServiceInputWrapperWithLabel propKey={propKey} {...props}>
<Input
... |
mysql -uroot
create database mydb;
use mydb;
create table personal_greeting (first_name varchar(20) not null primary key, custom_greeting varchar(20));
insert into personal_greeting (first_name,custom_greeting) values('Don','Howdy');
quit |
#!/bin/bash
if [ $# -ne 2 ]; then
echo Usage: $0 docs_path output_dir
exit 1
fi
dotnet run -p /render/src/Render/D2L.Dev.Docs.Render.csproj --input $1 --output $2
|
<?php
namespace App\Models;
use App\Models\AbstractModel;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* アニメお気に入り用テーブルのモデルクラス
*/
class MyAnimeList extends AbstractModel
{
use SoftDeletes;
// テーブル名
protected $table = 'my_anime_list';
// 更新を行うカラム
protected $fillable = [
'user_id',... |
# delta-sigma-py
Some models of Delta-Sigma ADC modulators in Python + Matplotlib
Implemented:
* 1st-Order
* 2nd-Order
* MASH-1-1
* MASH-2-1
Hitting the reset button will reload the `modulators.py` module,
so a small bit of live-coding can happen without having to kill and
reload the Matplotlib window.
FFTs are 204... |
package org.cthul.parser.sequence;
/**
*
* @author Arian Treffer
*/
public abstract class SequenceBuilderBase<E, S>
implements SequenceBuilder<E, S> {
}
|
# Webpack Easy SEO
## Installation
`npm install --save-dev webpack-easy-seo`
## Usage
```javascript
const HtmlWebpackPlugin = require('html-webpack-plugin');
const EasySeo = require('webpack-easy-seo');
const seoInst = new EasySeo({
// Application Title, which is shown in the tab bar.
title: "Your Title",
... |
# -*- coding: utf-8 -*-
from unittest import TestCase
from pyidwm.Config import Config
from pyidwm.helper.Store import Store
from osgeo import ogr
class StoreTest(TestCase):
def test_constructor(self):
store = Store()
self.assertIsInstance(store, Store)
def test_get_driver(self):
sto... |
package com.horizen.block
import com.horizen.fixtures.MainchainTxCrosschainOutputFixture
import com.horizen.proposition.PublicKey25519Proposition
import com.horizen.secret.PrivateKey25519Creator
import com.horizen.utils.{BytesUtils, Utils}
import org.junit.Assert.{assertEquals, assertTrue}
import org.junit.Test
import... |
package org.mass.framework.redis.constant;
import org.mass.framework.common.utils.PropertiesConfigUtil;
import java.util.Properties;
/**
* Created by Allen on 2016/8/10.
*/
public class SystemCacheProperties {
static Properties properties = PropertiesConfigUtil.getPropertis("systemCache.properties");
pub... |
export IGL_INCLUDE_DIR=../3rd
export EIGEN_INCLUDE_DIR=../3rd/eigen3
g++ -std=c++11 extract_labels.cpp -I$IGL_INCLUDE_DIR -I$EIGEN_INCLUDE_DIR -pthread -O3 -o extract_labels |
<?php
declare(strict_types=1);
namespace teewurst\Prs4AdvancedWildcardComposer\tests\Unit\Pipeline;
use teewurst\Prs4AdvancedWildcardComposer\Pipeline\Payload;
use teewurst\Prs4AdvancedWildcardComposer\Pipeline\Pipeline;
use PHPUnit\Framework\TestCase;
use teewurst\Prs4AdvancedWildcardComposer\Pipeline\Task\TaskInter... |
namespace Stump.DofusProtocol.Types
{
using System;
using System.Linq;
using System.Text;
using Stump.DofusProtocol.Types;
using Stump.Core.IO;
[Serializable]
public class HumanOptionAlliance : HumanOption
{
public new const short Id = 425;
public override short TypeId
... |
ZeroMQ example
===
The example code is from https://zeromq.org/languages/python/
# Desciption of the scripts
The example code is described as below
## worker.py
This is the clinet which will give message to some servers. The key is to use "connect" for tasks.
## reciever.py
The server which accept all the message. The... |
<?php
namespace App\Http\Controllers\Front;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class PagesController extends Controller
{
public function getHome()
{
//if(Auth::guest()){
return view('auth.login');
//}else{
// return view('layouts.auth', ['category' => 'James'... |
module CommentsHelper
def my_own_comment?(comment_user_id, current_user_id)
comment_user_id == current_user_id ? true : false
end
end
|
import React, { useState } from 'react';
import styled from 'styled-components';
import { Button } from '../../Common';
const Wrapper = styled.div`
display: flex;
justify-content: center;
margin: 40px 0;
`;
type BlogThemeSwitchProps = {};
const BlogThemeSwitch = ({ }: BlogThemeSwitchProps) => {
ret... |
using System;
namespace Standard
{
public delegate IntPtr WndProcHook(IntPtr hwnd, WM uMsg, IntPtr wParam, IntPtr lParam, ref bool handled);
}
|
import isRect from './is-rect';
export default function getMiddlePoint(rect: DOMRect): {middleX: number, middleY: number}
{
if (!isRect(rect))
{
throw new Error('Invalid rect. Rect should includes x, y, width and height props with a number value');
}
return {
middleX: rect.left + (rect.width / 2),
middleY: ... |
// Copyright 2017-2020 Aron Heinecke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
using System.ComponentModel;
using System.Xml.Serialization;
using Aspire.Framework;
using Aspire.Primitives;
using Aspire.Utilities;
namespace Aspire.Space
{
public class Entity : Model, IHaveFrames
{
/// <summary>
/// Default constructor
/// </summary>
public Entity()
{
frames = new FrameList(... |
import React, { useEffect } from 'react';
import styled from 'styled-components';
const PrintReceiptStyle = styled.div`
text-align: center;
h1 {
font-size: 37px;
margin-top: 120px;
margin-bottom: 20px;
}
p {
font-size: 17px;
margin-bottom: 45px;
}
img... |
class Aah < Formula
desc "aah framework CLI, a developer assistant"
homepage "https://aahframework.org"
version "0.12.2"
if OS.mac?
url "https://dl.aahframework.org/releases/cli/0.12.2/aah-darwin-amd64.zip"
sha256 "7ea19144f185ad850bd54f37c90faf6c65c49948ed50445520f5bd9f1ffe4fc8"
el... |
package com.yoelglus.notes.domain
import com.yoelglus.notes.domain.gateways.NotesRepository
import io.reactivex.Maybe
class GetNote(private val notesRepository: NotesRepository) {
fun execute(id: Int): Maybe<Note> = notesRepository.getNote(id)
} |
import torch
import torch.nn as nn
import numpy as np
import os
import pickle
from utils.geometry import perspective_projection
import constants
def gmof(x, sigma):
"""
Geman-McClure error function
"""
x_squared = x ** 2
sigma_squared = sigma ** 2
return (sigma_squared * x_squared) / (sigma_... |
# frozen_string_literal: true
RSpec.describe AdminController, type: :controller do
describe '#thumbnails' do
it 'raises an error if there is no druid parameter' do
expect { get :thumbnails }.to raise_error(ActionController::ParameterMissing)
end
it 'does not raise error if there is a druid paramete... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Mediator.Net.Binding;
using Mediator.Net.TestUtil.Handlers.CommandHandlers;
using Mediator.Net.TestUtil.Handlers.RequestHandlers;
using Mediator.Net.TestUtil.Messages;
using Mediator.Net.TestUtil.Middlewares;
using M... |
USE [DBAdata]
GO
/*
drop table [tbl_sys_configurations]
CREATE TABLE [dbo].[tbl_sys_configurations](
servername varchar (200) not null,
[configuration_id] [int] NOT NULL,
[name] [nvarchar](35) NOT NULL,
[value] [sql_variant] NULL,
[minimum] [sql_variant] NULL,
[maximum] [sql_variant] NULL,
[value_in_use] [sql_... |
package storm.kafka;
import java.util.List;
public interface PartitionCoordinator {
List<PartitionManager> getMyManagedPartitions();
PartitionManager getManager(Partition partition);
void refresh();
}
|
/*
* Copyright 2017 MapD Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
#include "raylib_pb_helper.h"
void pbhelper_DrawCubeV(Vector3* position, Vector3* size, Color color) {
if( position && size ) DrawCubeV(*position, *size, color);
}
|
---
layout: page
title: ECS Slack
---
Join the Slack page!
[Email us](mailto:OceanObsECS@gmail.com) so we can add you!
|
---
title: Compilerfehler C2542
ms.date: 11/04/2016
f1_keywords:
- C2542
helpviewer_keywords:
- C2542
ms.assetid: a984520d-f835-4cac-ac0e-7f1d5f5c6278
ms.openlocfilehash: dc0f5abaed303ee5ccebb997cd706b411ebc4235
ms.sourcegitcommit: 0ab61bc3d2b6cfbd52a16c6ab2b97a8ea1864f12
ms.translationtype: MT
ms.contentlocale: de-DE
... |
import { JSDOM } from "jsdom";
import * as mock from "mock-require";
const dom = new JSDOM("<html><body></body></html>");
global["window"] = dom.window;
global["navigator"] = dom.window.navigator;
global["document"] = dom.window.document;
global["asyncSuccess"] = true;
mock("esri-loader", "./doubles/esriLoader");
im... |
# arch-sim-template
Base template for designing processor simulator
Functional Simulator for subset of ARM Processr
===============================================
README
Table of contents
1. Directory Structure
2. How to build
3. How to execute
Directory Structure:
--------------------
CS112-Project
|
|- bin... |
# chroma
> Chroma este o bibliotecă de evidențiere a sintaxei de uz general și o comandă corespunzătoare, pentru Go.
> Mai multe informaţii: <https://github.com/alecthomas/chroma>
- Evidenţiaţi un fişier sursă cu Python Lexer şi ieşire la terminal:
`chroma --lexer="{{python}}" {{source_file}}`
- Evidențiați un fiși... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using Ccr.Core.Extensions;
using Ccr.PresentationCore.Helpers;
using Ccr.PresentationCore.Helpers.DependencyHelpers;
using Ccr.Presentat... |
/*Seja um arquivo de texto 2.txt com o seguinte formato:
onde cada linha possui três dados separados por ponto e vírgula ‘;’:
● Nome de um objeto (string podendo conter espaços com tamanho
máximo 30);
● Quantidade desse objeto em estoque;
● Preço do objeto.
respectivamente.
Note que o arquivo 2.txt tem 10 objetos reg... |
import { alert, confirm, information, warning, iframeDialog } from "@Q/Dialogs";
test('Q.alert uses window.alert when no BS/jQuery UI loaded', function() {
var alertCount = 0;
var alertMessage = null;
(global as any).window = global;
global.alert = function(message) {
alertCount++;
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Formateur;
use App\Formation;
use Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Validator;
use Session;
class FormateurController e... |
import { red, green, bold, options, Style } from "colorette"
options.enabled = true
console.log(`
Beets are ${red("red")},
Cucumbers are ${green("green")},
${bold("Colorette!")}.
`)
|
# auto-reject
Clang Plugin that rejects any instance of auto for C++11, for example in the case of an
Academic setting, where the use of auto might hinder learning.
# Installation and Usage
Requires clang-3.9 and python-clang bindings. Note that when using a version other than
clang 3.9 the global variable `GLOBAL_INC... |
import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import NavigationClose from 'material-ui/svg-icons/navigation/close';
import FlatButton from 'material-ui/FlatButton';
import Chip from 'mate... |
package ar.com.play2play.presentation.tuttifrutti.create.categories
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import ar.com.play2play.databinding.ViewSelectedCategoryItemBinding
/** The adapter used to show the list of selected categories. */
cl... |
/*
* Copyright (c) 2005-2022 Xceptance Software Technologies GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
#include "thread.h"
#include <system_error>
#ifdef _WIN32
#include <windows.h>
#define HAVE_STRUCT_TIMESPEC 1
#else
#include <unistd.h>
#endif
#include <pthread.h>
using namespace std;
namespace wav2mp3 {
class thread::impl
{
public:
impl(function<void()> const& f)
: f_{ f }
{
if (auto const error_code ... |
Find me on [GitHub](https://github.com/jenniechow) and [Twitter](https://twitter.com/jennie_saisquoi)!
|
Once again let's start by listing the files in the folder:
```
ls -l
-rwsr-sr-x 1 flag07 level07 8805 Mar 5 2016 level07
```
As previously we find an executable, let's try to run it.
```
./level07
level07
```
As we did before, let's try to hexdump the file
```
hexdump -C level07
00000660 e8 00 00 00 00 ... |
#!/usr/bin/env bash
set +x
# shellcheck disable=SC1091
. venv/bin/activate
echo "${quay_password:?}" | docker login "-u=${quay_user_name:?}" quay.io --password-stdin
# shellcheck disable=SC2154
python3 pipeline.py --image-name "${image_name}" --release "${release:-false}"
|
-- SLOW QUERY!
-- compute and resets all the basic counters for a queue metrics
DROP FUNCTION IF EXISTS fetchq.metric_reset(CHARACTER VARYING);
CREATE OR REPLACE FUNCTION fetchq.metric_reset(
PAR_queue VARCHAR,
OUT cnt INTEGER,
OUT pln INTEGER,
OUT pnd INTEGER,
OUT act INTEGER,
OUT cpl INTEGER,
OUT kll INTEG... |
using DamageBot.EventSystem;
namespace DamageBot.Events.Stream {
public class OnStreamStartEvent : Event<OnStreamStartEvent> {
}
} |
var TotalViewsMetric = {
name: 'view_totals',
initialData: {total: 0, cartAdds: 0},
interval: 50, // ms
incrementCallback: function(view) {
this.data.total += 1;
this.minuteData.total = (this.minuteData.total || 0) + 1;
if(view.event() && view.event() === "cart_add") {
this.data.cartAdds += 1... |
package fm.force.quiz.core.service
import am.ik.yavi.builder.ValidatorBuilder
import fm.force.quiz.common.dto.PaginationParams
import fm.force.quiz.common.dto.PaginationQuery
import fm.force.quiz.configuration.properties.PaginationValidationProperties
import fm.force.quiz.core.exception.ValidationError
import fm.force... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.