answer
stringlengths
15
1.25M
using TwinTechs.Controls; using TekConf.Core.Data.Dtos; namespace TekConf.Forms.Cells { public partial class <API key> : FastCell { protected override void InitializeCell () { InitializeComponent (); } protected override void SetupCell (bool isRecycled) { ...
layout: post title: LeetCode 77 category: tags: LeetCode Medium keywords: LeetCode description: 2019 Given two integers *n* and *k*, return all possible combinations of k numbers out of *1* ... *n*. **Example:** Input: n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] # Thoughts The require...
<?php namespace SilexMarkdown\Parser; use SilexMarkdown\Filter\FilterInterface; interface ParserInterface { public function transform($source); public function registerFilter($method, FilterInterface $filter); public function getFilters(); public function hasFilter($method); public function useFilte...
import Lab from 'lab'; import server from '../../server'; import data from '../data'; const expect = Lab.assertions.expect; export const lab = Lab.script(); lab.experiment('ProfileCtrl', function() { lab.before(done => { data.sync().then(done, done); }); lab.test('[getAuthenticated] returns the current profil...
package net.glowstone.net.message.play.entity; import com.flowpowered.network.Message; import java.util.List; import lombok.Data; @Data public final class <API key> implements Message { private final List<Integer> ids; }
#include <ArduinoJson.h> #include <catch.hpp> #define SHOULD_WORK(expression) REQUIRE(<API key>::Ok == expression); #define SHOULD_FAIL(expression) \ REQUIRE(<API key>::TooDeep == expression); TEST_CASE("JsonDeserializer nesting") { DynamicJsonDocument doc(4096); SECTION("Input = const char*") { SECTION("limi...
const fs = require('fs') const path = require('path') const LRU = require('lru-cache') const express = require('express') const favicon = require('serve-favicon') const compression = require('compression') const resolve = file => path.resolve(__dirname, file) const { <API key> } = require('vue-server-renderer') const i...
## async modes constant broadcast mode * `STATE A` `encoding` * agent broadcasts and performs signaling at a constant rate Agent does not listen for any signals. passive listen mode * `STATE A` `decoding` * agent polls for signaling and decodes bytes as they arrive This mode is for listening to a constant broadcast...
import * as _ from 'lodash'; import * as AWS from 'aws-sdk'; import * as config from './config'; export interface Secrets { REDDIT_CLIENT_ID: string; REDDIT_CLIENT_TOKEN: string; REDDIT_USERNAME: string; REDDIT_PASSWORD: string; STEAM_API_KEY: string; } export async function resolve(): Promise<Secrets> { if...
<!DOCTYPE html > <html> <head> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link href="../lib/ref-index.css" media="screen" type="text/css" rel="styl...
FROM ubuntu ADD a.out /a.out
#!/bin/bash cd "$(dirname "${BASH_SOURCE[0]}")" \ && . "utils.sh" tohome() { sourceFile="$(cd .. && pwd)/$1" targetFile="$HOME/.$(printf "%s" "$1" | sed "s/.*\/\(.*\)/\1/g")" if [ ! -e "$targetFile" ] || $skipQuestions; then execute \ "ln -fs $sourceFile $targetFi...
module <API key> include HyaccConst def colspan( node_level ) @max_node_level - node_level + 1 end def <API key>( account, branch_id ) return false if account.deleted? return false unless account.<API key> if branch_id.to_i == 0 return false if account.internal_trade? end true en...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp...
#include "Common.h" #include "CacheAdapters/Redis.h" #include "SSEConfig.h" #include "SSEEvent.h" #include <string> #include <vector> #include <iostream> #include <boost/asio/io_service.hpp> #include <boost/asio/ip/address.hpp> using namespace std; extern int stop; Redis::Redis(const string key, const ChannelConfig& co...
SPEC = Password.hs CC= gcc CFLAGS = -fPIC GHC = ghc %.o: %.c $(CC) -c -o $@ $< $(CFLAGS) example% : solution%.o $(SPEC) $(GHC) -o $@ $(SPEC) $< all : example1 example2
<?php class kml_TimeSpan extends kml_TimePrimitive { protected $tagName = 'TimeSpan'; var $begin; var $end; /* Constructor */ function kml_TimeSpan($begin = null, $end = null) { parent::kml_TimePrimitive(); if ($begin !== null) $this->set_begin($begin); if ($end !== null) $th...
using System.ComponentModel; using System.Runtime.CompilerServices; namespace NAudioUniversalDemo { internal class ViewModelBase : <API key> { public event <API key> PropertyChanged; protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { <AP...
$(function(){ $("#addCompanyForm").validate({ rules: { name : { required : true }, email: { required: true, email: true }, url : { required : true, url : true ...
package com.github.aureliano.evtbridge.converter; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.Map; import org.junit.Test; import com.github.aureliano.evtbridge.core.config.<API key>; import...
<HTML><HEAD> <TITLE>Review for Can't Hardly Wait (1998)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0127723">Can't Hardly Wait (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Josh+Sch...
<?php namespace Kendo\Dataviz\UI; class <API key> extends \Kendo\SerializableObject { //>> Properties /** * Defines the stroke color. * @param string $value * @return \Kendo\Dataviz\UI\<API key> */ public function color($value) { return $this->setProperty('color', $value); } /** ...
# reads uniprot core file and generates core features from features_helpers import score_differences def <API key>(sable_db_obj): <API key> = {} for line in sable_db_obj: tokens = line.split() try: # PARSING ID prot = tokens[0] index = int(tokens[1]) ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Project.Models { public enum WordRel { None, Synonym, Similar, Related, Antonym } }
#include <string.hpp> #include "yatf/include/yatf.hpp" using namespace yacppl; TEST(string, can_be_created) { string str; REQUIRE(str == ""); REQUIRE(str.empty()); REQUIRE_EQ(str.length(), 0u); REQUIRE_EQ(str.size(), 0u); REQUIRE_FALSE(str == "abc"); } TEST(string, <API key>) { { str...
module.exports = { entry: { 'public/js/bundle.js': ['./index.js'], }, output: { filename: '[name]', }, devtool: 'eval', module: { loaders: [ { test: /.js$/, exclude: /node_modules/, loaders: ['babel'], } ] } }
#include "<API key>.h" #include "asturcoinunits.h" #include "guiconstants.h" #include "qvaluecombobox.h" #include <QApplication> #include <QDoubleSpinBox> #include <QHBoxLayout> #include <QKeyEvent> #include <qmath.h> // for qPow() <API key>::<API key>(QWidget *parent) : QWidget(parent), amount(0), currentU...
<html> <head> <title>Basic</title> <meta name="description" content="Large red-brown mountain terrain with <a-mountain>"> <meta property="og:image" content="https://raw.githubusercontent.com/ngokevin/kframe/master/components/mountain/examples/basic/preview.png"></meta> <script src="../build.js"></scri...
using System.Collections.Generic; using System.Linq; namespace ComputerAlgebra { public static class Combinatorics { <summary> Enumerate the permutations of x. </summary> <typeparam name="T"></typeparam> <param name="n"></param> <returns></returns> public ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleStatePattern { public class StateB : StateBase { char currentLetter = 'B'; public void Change(Context context) { Console.Write(System.Environmen...
package main import ( "bytes" "os" "os/exec" ) func panicOn(err error) { if err != nil { panic(err) } } func FileExists(name string) bool { fi, err := os.Stat(name) if err != nil { return false } if fi.IsDir() { return false } return true } func DirExi...
import { expect } from 'chai' import {List, Map} from 'immutable' import categories from '../src/reducer.js' describe("Category Test", () => { it("should add a category", () => { let initialState = Map({ user: 'Skye' }) let expectedState = Map({ user: 'Skye', ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SweetStake</source> <translation type="unfinished"/> </message> <message> <location lin...
#include <iostream> #include <iomanip> #include <limits> #include <stdint.h> #include <cstdio> #include <typeinfo> #include <inttypes.h> using std::cout; using std::cerr; using std::endl; using std::bad_cast; #undef assert // for testability //#define assert(e) ((e) ? (void)0 : ((void)printf ("%s:%u: failed assertion `...
package com.github.kimikage.oiri.svg; import org.w3c.dom.svg.SVGMatrix; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Transform { private static final String sNumber = "([-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?)"; private static final Pattern sPatternTranslate =...
using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using PholioVisualisation.DataAccess; using PholioVisualisation.DataConstruction; using PholioVisualisation.Export; using PholioVisualisation.Export.FileBuilder.Containers; using PholioVisualisation.Export.FileBuilder.SupportModels; using PholioVisualisatio...
# aaronwest.github.io A simple website using [Jekyll](http: To view the website visit [notebook.aaronwest.net](http://notebook.aaronwest.net).
"use strict"; var $ = require("jquery"), errors = require("./errors"), MemorizedCallbacks = require("./memorized_callbacks"), <API key> = require("./utils/public_component"); var callbacks = new MemorizedCallbacks; var registerComponent = function(name, namespace, componentClass) { if (!componentClass) ...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29820_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http: <HTML> <HEAD> <TITLE>Form1H.xls</TITLE> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <META name="generator" content="pdftohtml 0.40"> <META name="author" content="theilman"> <META name="date" content="2015-03-11T15:26:03+00:00...
#!/bin/bash ## This script installs the irace package, sets up the environment and launches ## irace. Then compresses its output as a tar.gz. #SCENARIO is a irace's scenario file SCENARIO=$1 # RUN is the run number to distinguish replications of irace RUN=$2 shift 2 # RUN in condor starts at 0 let SEED=1234567+RUN IRAC...
html { font-family: sans-serif; line-height: 1.15; -ms-text-size-adjust: 100%; -<API key>: 100%; } body { margin: 0; } article, aside, footer, header, nav, section { display: block; } h1 { font-size: 2em; margin: 0.67em 0; } figcaption, figure, main { display: block; } figure { margin: 1em 40px; } h...
![0 stars](../../images/<API key>.png)![0 stars](../../images/<API key>.png)![0 stars](../../images/<API key>.png)![0 stars](../../images/<API key>.png)![0 stars](../../images/<API key>.png) 0 To use the Closet Cleanup skill, try saying... * *Alexa open clean up* * *Yes* * *Start again* This skill helps you to decide i...
using System; using System.Text; using System.Web; using System.Web.Http.Description; namespace WebApiAuthSample.Areas.HelpPage { public static class <API key> { <summary> Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead of "GetValues/{id}?name...
.error { margin: 10px 0px; padding:12px; color: #D8000C; background-color: #FFBABA; }
source ~/.<API key>.zsh # functions and load-onces stuff for the environment echo "function config" source ~/.functions_shell.sh source ~/.functions_colors.sh source ~/.functions_dev.sh source ~/.functions_osx.sh source ~/.functions_graphics.sh # Vim IDE settings source ~/.bash_vim_append test -e "${HOME}/.dotfiles/mac...
#ifndef <API key> #define <API key> namespace alinous { template <typename T, typename H, typename C> class HashedRawArray { public: void* operator new(size_t size) throw() { return SysThread::getMalloc()->allocate(size); } void* operator new(size_t size, MemoryInterface* ctx) throw() { re...
$(document).ready(function(){hopscotch.startTour({id:"my-intro",steps:[{target:"logo-tour",title:"Logo Here",content:"You can find here status of user who's currently online.",placement:"bottom",yOffset:10},{target:"display-title-tour",title:"Display Text",content:"Click on the button and make sidebar navigation small....
package main import ( "context" "fmt" "log" "net/http" "strconv" "strings" "time" "github.com/PuerkitoBio/goquery" ) const ( userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" timeLayout = "02/01/20...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BitSeeds</source> <translation type="unfinished"/> </message> <message> <location line=...
<?php namespace Rudolf\Modules\Modules\One\Admin; use Rudolf\Component\Alerts\Alert; use Rudolf\Component\Alerts\AlertsCollection; use Rudolf\Component\Modules\ConfigEditor; use Rudolf\Framework\Controller\AdminController; class SwitchController extends AdminController { private $blacklist = [ 'Dashboard', ...
<? // DATABASE define("DB_SERVER", "localhost"); //the mysql server address - often, localhost define("DB_USERNAME", "root"); //the mysql username define("DB_PASSWORD", "11913431"); //the mysql ...
#!/usr/bin/env python3 """Test block processing.""" import copy import struct import time from test_framework.blocktools import create_block, create_coinbase, <API key>, <API key> from test_framework.key import CECKey from test_framework.messages import ( CBlock, COIN, COutPoint, CTransaction, CTxIn...
@extends("layout") @section("content") <script type="text/javascript" src="{{ URL("js/interactive.js") }}"> </script> <section id="wrapper"> @if ($imagenes->isEmpty()) <section id="photos-empty"> <p class="center"> Todavía no hay imágenes </p> </section> @else <section id...
<?php namespace Zakharovvi\HumansTxtBundle\Tests\Renderer; use Zakharovvi\HumansTxtBundle\Tests\Filesystem; use Zakharovvi\HumansTxtBundle\Renderer\TwigRenderer; use Zakharovvi\HumansTxtBundle\Authors\Author; /** * @author Vitaliy Zakharov <zakharovvi@gmail.com> */ class TwigRendererTest extends \<API key> { /** ...
package pl.edu.wat.tim.webstore.service; import pl.edu.wat.tim.webstore.model.UploadFile; public interface UploadFileService { void save(UploadFile uploadFile); UploadFile getUploadFile(String name); }
'use strict'; angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip']) .provider('$dropdown', function() { var defaults = this.defaults = { animation: 'am-fade', prefixClass: 'dropdown', prefixEvent: 'dropdown', placement: 'bottom-left', template: 'dropdown/dropdown.tpl....
/* * * hocNotification * */ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose, setPropTypes } from 'recompose'; import { <API key> } from 'reselect'; import { selectNotifications } from 'features/common_ui/selectors'; const mapStateToProps = <API key>({ notifications: sel...
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:6:"string";s:6:"length";i:255;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:15:"nom_responsable";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}');
#ifndef MYY_DATA_SECTION_H #define MYY_DATA_SECTION_H 1 #include <stdint.h> struct data_section_status { unsigned int allocated; void * address; }; struct data_symbol { uint32_t id; uint32_t align; uint32_t size; uint8_t * name; uint8_t * data; }; struct data_section { struct data_symbol...
<?php declare(strict_types=1); namespace Core\Infrastructure\Doctrine\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class <API key> extends AbstractMigration { public function getDescription(): string ...
package com.mybatistemplate.adapter; import com.mybatistemplate.core.<API key>; import com.mybatistemplate.core.IdGeneratorType; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.ResultMap; public abstract class TemplateExAdapter { public void insertBatch(MappedStatement ms, ResultM...
<?php namespace Proxies\__CG__\Mistra\TutoBundle\Entity; /** * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE. */ class User extends \Mistra\TutoBundle\Entity\User implements \Doctrine\ORM\Proxy\Proxy { private $_entityPersister; private $_identifier; public $__isInitialized__ = false...
// This contains the module definition factory function, application state, // events, and the router. this.jda = { // break up logical components of code into modules. module: function() { // Internal module cache. var modules = {}; // Create a new module reference scaffold or load ...
#!/bin/sh set -e echo "mkdir -p ${<API key>}/${<API key>}" mkdir -p "${<API key>}/${<API key>}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRODUCTS_DIR}/$1" elif [ -r "${BUILT_PRODUCTS_DIR}/$(basen...
require 'spec_helper' module Sendgrid module API module Entities describe Stats do subject { described_class.new } it { should respond_to(:delivered) } it { should respond_to(:request) } it { should respond_to(:unique_open) } it { should respond_to(:unique_click) } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Threading; using System.Runtime.Remoting.Lifetime; using System.Windows.Forms; using System.Drawing; using System.Linq; using ...
/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.resources.commerce.orders; import com.mozu.api.ApiContext; import java.util.List; import java.util.ArrayList; import com.mozu.api....
package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java...
require 'rails_helper' RSpec.describe Scrap, :type => :model do context 'factories' do it 'valid' do expect(build(:scrap)).to be_valid end end context 'validation' do it { is_expected.to <API key>(:message) } end end
#ifndef __UIDICTIONARY_H #define __UIDICTIONARY_H #include <System/Tools/Array.h> #include <System/Tools/HashHelper.h> namespace suic { template<typename TKey, typename TValue, typename Comparer> class Dictionary1 { public: Dictionary1() { Initialize(0); } Dictionary1(int capacity) { ...
#include <qt/trafficgraphwidget.h> #include <interfaces/node.h> #include <qt/clientmodel.h> #include <QColor> #include <QPainter> #include <QPainterPath> #include <QTimer> #include <cmath> #define DESIRED_SAMPLES 800 #define XMARGIN 10 #define YMARGIN 10 TrafficGraphWidget::TrafficGraphWidget(QWidget *parent) : QWi...
package de.felixroske.jfxsupport.util; import org.springframework.boot.autoconfigure.<API key>; import org.springframework.core.type.classreading.MetadataReader; import org.springframework.core.type.classreading.<API key>; import java.io.IOException; class <API key> extends ExcludeFilter { @Override public bool...
<!DOCTYPE html> <html xmlns:msxsl="urn:<API key>:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="<API key>">.NET Portability Report</title> <style> /* Body style, for the entire document */...
#pragma once #define __ALIAS(function) __attribute__ ((weak, alias(#function))) #define __VECTORS __attribute__ ((used, section(".intvec"))) #define __CAST(sp) (void(*)(void))(intptr_t)(sp) __NO_RETURN void __iar_program_start( void ); __STATIC_INLINE __NO_RETURN void __main( void ) { /* Call the app...
from aliyun.api.base import RestApi class <API key>(RestApi): def __init__(self,domain='rds.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.AccountName = None self.DBInstanceId = None self.<API key> = None def getapiname(self): return 'rds.aliyuncs.com.<A...
using System; using NUnit.Framework; namespace MyApp.Repository.Testing { internal class <API key> { [Test] public void Standard() { var repository = new InMemoryRepository<TestClass>(x => x.ID); StandardTests.All(repository); ...
import {dispatchFakeEvent} from '../../cdk/testing/private'; import {<API key>, Component, DebugElement, Type} from '@angular/core'; import { ComponentFixture, fakeAsync, flush, flushMicrotasks, TestBed, } from '@angular/core/testing'; import {ThemePalette} from '@angular/<API key>/mdc-core'; import {FormCont...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title><API key></title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> </head> <body> <app-root>Loading...</app-root> </body> </html>
# <API key>: true module Eve class <API key> def import region_ids.each do |region_id| Eve::RegionContractsJob.perform_later(region_id) end end private def region_ids @region_ids ||= Eve::Region.pluck(:region_id).sort.uniq end end end
layout: page title: Archive Blog Posts {% for post in site.posts %} * {{ post.date | date_to_string }} &raquo; [ {{ post.title }} ]({{ post.url }}) {% endfor %}
import Ember from 'ember'; export default Ember.Component.extend({ tagName : '', item : null, isFollowing : false, isLoggedIn : false, init() { this.set('isLoggedIn', !!this.get('application.user.login')); if (this.get('application.places.length') > 0) { this.set('isFollowing', !!this.get('appli...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>io: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="s...
class CB::Util::ServiceRescuer def initialize instance @instance = instance end def method_missing method, *args, &block if @instance.respond_to? method begin @instance.public_send method, *args, &block rescue => e error_type = e.is_a?(ActiveRecord::RecordNotFound) ? :not_found...
#ifndef TELEMETRY_H #define TELEMETRY_H #include <Arduino.h> #include <HardwareSerial.h> #include "common.h" #include "queuelist.h" static const unsigned <API key> = 5; class Telemetry { public: Telemetry(HardwareSerial port, unsigned speed); void serialPolling(); void wheelEvent(rot_one left, rot_one right...
package com.nicolas.coding.common.photopick; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.CursorAdapter; import android.widget.ImageView; import com.nostr...
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Idea.color' db.add_column(u'brainstorming_idea', 'color', ...
package com.sien.aimanager; import android.content.Intent; import android.os.Handler; import com.sien.aimanager.services.MonitorServices; import com.sien.lib.baseapp.BaseApplication; import com.sien.lib.databmob.config.DatappConfig; import cn.bmob.v3.Bmob; import cn.bmob.v3.BmobConfig; /** * @author sien * @date 2017...
#include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; int ratio = 3; //per canny's suggestion int canny_thresh = 12; //starts at 12, this is what we will be changing though int hough_thresh = 27; int angle_tracker = 20; int max_thresh = 255;//max for both thresh variable double angl...
CSS.NLogExtensions =============== NLog extension ImageTarget, useful for saving screenshots. Download the latest release or from the NuGet "Package Manager Console", run ```Install-Package CSS.NLogExtensions```
const ircFramework = require('irc-framework') const store = require('../store') const attachEvents = require('./attachEvents') const connect = connection => { const state = store.getState() let ircClient = state.ircClients[connection.id] if (!ircClient) { ircClient = new ircFramework.Client({ nick: conn...
const assert = require('assert') const { unparse } = require('uuid-parse') const supertest = require('supertest') const createApp = require('../app') const { createSetup, getAuthPassword } = require('./lib') const { createPlayer, createKick } = require('./fixtures') describe('Query player kick', () => { let setup l...
<?php namespace Application\Success\CoreBundle\Twig; //use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; class EventoExtension extends \Twig_Extension { //private $container; private $repository_evento; private $templating; public function __construct($repository_evento, $templating) { //$this-...
/* RESET \<API key> */ /* SLIDER \<API key> */
import os import webapp2 from actions import cronActions from views import views import secrets SECS_PER_WEEK = 60 * 60 * 24 * 7 # Enable ctypes -> Jinja2 tracebacks PRODUCTION_MODE = not os.environ.get( 'SERVER_SOFTWARE', 'Development').startswith('Development') ROOT_DIRECTORY = os.path.dirname(__file__) if not PR...
// parser.h // homework_4 #ifndef <API key> #define <API key> #include <string> class XMLParser { public: //private: bool is_open_tag(const std::string& tag) const; bool is_close_tag(const std::string& tag) const; bool is_tag(const std::string& tag) const; std::string get_tag_name(const std::string& t...
#include <stdint.h> const uint8_t #if defined __GNUC__ __attribute__((aligned(4))) #elif defined _MSC_VER __declspec(align(4)) #endif mrblib_extman_irep[] = { 0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x5a,0x89,0x00,0x00,0x44,0xcb,0x4d,0x41, 0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x32,0x2d,0x30,0x30,...
# this is the interface for `python archiver` import archiver import appdirs import os import sys import pickle import json from archiver.archiver import Archiver from archiver.parser import parseArgs args = parseArgs() from edit import edit print args #-- import pdb #-- pdb.set_trace() # load the user data # get the u...
package tools.devnull.boteco.predicates; import org.junit.Before; import org.junit.Test; import tools.devnull.boteco.message.IncomeMessage; import tools.devnull.boteco.Predicates; import tools.devnull.kodo.Spec; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static tools.devnull....
using System; using System.Collections.Generic; using System.Text; using Icy.Util; namespace Icy.Database.Query { public class JoinClauseOptions{ public object first; public string operator1; public object second; public string boolean; public bool where; public bool ...