answer
stringlengths
15
1.25M
using NSubstitute; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; namespace PoshGit2.TabCompletion { public class TabCompletionTests { private readonly ITestOutputHelper _log; public ...
package org.fayalite.sjs import org.fayalite.sjs.canvas.CanvasBootstrap import org.scalajs.dom import org.scalajs.dom.Node import org.scalajs.dom.raw.<API key> import org.scalajs.dom.raw.HTMLCanvasElement import rx.core.{Rx, Var} object Schema extends SJSHelp { import upickle._ // json.read // json.write case...
var Purest = require('purest'); function Facebook(opts) { this._opts = opts || {}; this._opts.provider = 'facebook'; this._purest = new Purest(this._opts); this._group = 'LIB:SOCIAL:FACEBOOK'; return this; } Facebook.prototype.user = function (cb) { var self = this; this._purest.query() ...
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>Note Detail</title> <script src="http://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/<API key>=" crossorigin="anonymous"> ...
<?php namespace Lollipop; defined('LOLLIPOP_BASE') or die('Lollipop wasn\'t loaded correctly.'); /** * Benchmark Class * * @author John Aldrich Bernardo * @email 4ldrich@protonmail.com * @package Lollipop * @description Class for recording benchmarks */ class Benchmark { /** * @var ar...
#include <windows.h> #include "NativeCore.hpp" bool RC_CallConv IsProcessValid(RC_Pointer handle) { if (handle == nullptr) { return false; } const auto retn = WaitForSingleObject(handle, 0); if (retn == WAIT_FAILED) { return false; } return retn == WAIT_TIMEOUT; }
#!/usr/bin/env bash # build datatheme resources # usage: $ bash ./publi.sh # build & deploys datatheme resources to host s3 bucket # usage: $ bash ./publi.sh put dev.afgo.pgyi # dependencies: datatheme_root=s3://tesera.data.themes datatheme_path="$datatheme_root/$2" cp_flags="--acl public-read --cache-control no-cahe" ...
#ifndef <API key> #define <API key> #include "api/sk_txn.h" #include "api/sk_service.h" struct _skull_service_t { sk_service_t* service; const sk_txn_t* txn; sk_txn_taskdata_t* task; // If freezed == 1, user cannot use set/get apis to touch data. Instead // user should create a new service ...
# read only In leveldb you may only open an instance in one process... but you could have other processes open the database in read only mode easily enough. You could also have each instance create it's own memtable, (and tail other's memtables... as long as there weren't too many) then you could have eventual consiste...
#ifndef BITCOINGUI_H #define BITCOINGUI_H #include <QMainWindow> #include <QSystemTrayIcon> #include <QLabel> #include <QMap> #include "util.h" class <API key>; class WalletView; class ClientModel; class WalletModel; class WalletStack; class TransactionView; class OverviewPage; class AddressBookPage; class SendCoinsDia...
package dev.jee6demo.jspes; import java.io.IOException; import java.io.PrintWriter; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.H...
<?php namespace Presta\CMSThemeBasicBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\<API key>; class Configuration implements <API key> { /** * {@inheritDoc} */ public function <API key>() { $treeBuilder = new...
using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace XF_ManySwitches.Droid { [Activity(Label = "XF_ManySwitches", Icon = "@drawable/icon", MainLauncher = true, <API key> = ConfigChanges.ScreenSize | ConfigChanges.Ori...
describe('controllers/home', function () { var di, Core, Home, Type, contentModel = { findOne: function() { } }, widgetHooks = [], widgetHook = { load: function (a, b, c) { widgetHooks.push({ ...
<!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 */...
#ifndef <API key> #define <API key> #include <QDebug> #include <QCoreApplication> #include <QString> #include <QMap> #include <QSettings> #include <QDir> class AppSettingsStorage { public: enum Settings { ACCOUNT_LOGIN = 0, ACCOUNT_PASS, APP_RUN_ON_BOOT, APP_START_MINIMIZED, ...
<?php return array( 'table_liaison' => '<API key>', '<API key>' => 'mooc_', 'forbidden_words' => array( // 3 lettres 'les', 'des', 'ses', 'son', 'mes', 'mon', 'tes', 'ton', 'une', 'aux', 'est', 'sur', 'par', 'dit', 'the', // 4 lettres 'pour','sans','dans','avec','deux...
/* vim: set syntax=javascript ts=8 sts=8 sw=8 noet: */ var BINDING = require('./lockfd_binding'); function check_arg(pos, name, value, type) { if (typeof (value) !== type) { throw (new Error('argument #' + pos + ' (' + name + ') must be of type ' + type)); } } function lockfd(fd, callback) {...
'use strict'; angular.module('depthyApp') .controller('DrawCtrl', function ($scope, $element, depthy, $window, $timeout) { var drawer = depthy.drawMode, viewer = depthy.getViewer(), lastPointerPos = null, oldViewerOpts = angular.extend({}, depthy.viewer); drawer.setOptions(depthy.drawOptions || { ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BigBang</source> <translation type="unfinished"/> </message> <message> <location lin...
<?php function <API key>($ranks){ } function <API key>($ranks){ }
#include <stdio.h> int main() { int current_char, previous_char; printf("Input text below, multiple spaces will be escaped:\n"); previous_char = -1; while((current_char = getchar()) != EOF) { if (!(current_char == ' ' && previous_char == ' ')) { putchar(current_char); } previous_char = current...
<ion-header> <ion-navbar> <ion-title></ion-title> <!-- <ion-buttons end (click)="presentPopover($event)"> <button ion-button icon-only> <ion-icon name="search"></ion-icon> </button> </ion-buttons> </ion-navbar> <div> <tab-slide (slideClic...
<td> {{item.name}} </td> <td> {{item.age}} </td> <td> {{item.sex}} </td>
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class My_PHPMailer { public function My_PHPMailer() { require_once('class.phpmailer.php'); } } ?>
<?php return array( 'service_manager' => array( 'factories' => array( 'Twilio\Options\ModuleOptions' => 'Twilio\Options\Factory\<API key>', 'Twilio\Service\TwilioService' => 'Twilio\Service\Factory\<API key>' ) ) );
<?php $lang['date_year'] = 'Ano'; $lang['date_years'] = 'Anos'; $lang['date_month'] = 'Mês'; $lang['date_months'] = 'Meses'; $lang['date_week'] = 'Semana'; $lang['date_weeks'] = 'Semanas'; $lang['date_day'] = 'Dia'; $lang['date_days'] = 'Dias'; $lang['date_hour'] = 'Hora'; $lang['date_hours'] = 'Horas'; $lang['date_min...
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>The Red Matrix: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"...
/* eslint-disable node/no-deprecated-api */ module.exports.pathBasename = pathBasename module.exports.hasSuffix = hasSuffix module.exports.serialize = serialize module.exports.translate = translate module.exports.stringToStream = stringToStream module.exports.debrack = debrack module.exports.stripLineEndings = stripLin...
Template.postSubmit.onCreated(function() { Session.set('postSubmitErrors', {}); }); Template.postSubmit.helpers({ errorMessage: function(field) { return Session.get('postSubmitErrors')[field]; }, errorClass: function (field) { return !!Session.get('postSubmitErrors')[field] ? 'has-error' : ''; } }); T...
<?php // Text $_['text_sizechart'] = 'Größentabelle';
package ru.mephi.interpreter; import org.antlr.v4.runtime.tree.ParseTree; import java.math.BigInteger; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author Anton_Chkadua */ public class Scope { static Scope GLOBAL = new Scope(null); private Scope parent; private Map<BigInte...
# ServiceInfo.TryExcludeTag method Attempts to exclude a tag from service. csharp public bool TryExcludeTag(string tagName, out ServiceInfo service, out IReadOnlyList<<API key>> errors) ## See Also * class [<API key>](../<API key>.md) * class [ServiceInfo](../ServiceInfo.md) * namespace [Facility.Definition](../../...
<?php return array ( 'id' => 'sec_e900_ver1_sub10', 'fallback' => 'sec_e900_ver1', 'capabilities' => array ( '<API key>' => 'false', 'j2me_max_jar_size' => '700000', '<API key>' => 'true', 'ajax_support_events' => 'true', ), );
<?php return array ( 'id' => '<API key>', 'fallback' => 'dell_streak_7_ver1', 'capabilities' => array ( 'device_os_version' => '3.2', ), );
#include <cstring> #include <iostream> #include <algorithm> #include "matcher.h" #include "edit.h" #include "char.h" #include "instrumentation.h" #define INIT_POS -1 #define __DEBUG__ false // the node represented by a given point #define node(p) (distances[(p)->j][(p)->i]) // the edit distance at a given point, from t...
.ui.message { position: relative; min-height: 1em; margin: 1em 0em; background: #F8F8F9; padding: 1em 1.5em; line-height: 1.4285em; color: rgba(0, 0, 0, 0.87); -webkit-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; transition: opacity 0.1s ease, color 0.1s ...
<?php namespace Beloop\Bundle\InstagramBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\KernelInterface; use Beloop\Bundle\CoreBundle\Abstracts\AbstractBundle; use Beloop\Bundle\InstagramBundle\CompilerPass\MappingCompilerPass; use Beloop\Bundle\InstagramBundle\Depend...
6650 #include "types.h" 6651 #include "x86.h" 6652 6653 void* 6654 memset(void *dst, int c, uint n) 6655 { 6656 if ((int)dst%4 == 0 && n%4 == 0){ 6657 c &= 0xFF; 6658 stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 6659 } else 6660 stosb(dst, c, n); 6661 return dst; 6662 } 6663 6664 int 6665 memcmp(const v...
import { IQuotation } from '../../model/QuotationService/IQuotation'; export interface IQuoteDisplayProps { quote: IQuotation; }
# Laravel 5.1 Generators Some generators for Laravel 5.1 ## Install Require the package: sh composer require bvw/laravel-generators dev-master Add the service provider to **config/app.php** in Providers section: sh BVW\Providers\<API key>::class, Run the generators: sh php artisan make:database Available Commands sh ma...
-- Purpose: Payload class require( "engine.shared.typelenvalues" ) class "payload" ( "typelenvalues" ) payload._handlers = payload._handlers or {} -- Generate ids for packet structures do local payloads = "engine.shared.network.payloads" if ( package.loaded[ payloads ] ) then unrequire( payloads ) e...
2019-03-10 diff between today and yesterday # python * [pirate/ArchiveBox](https://github.com/pirate/ArchiveBox): The open source self-hosted web archive. Takes browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more... * [0xAX/linux-insides](https://github.com/0xAX/linux-insides): A litt...
import { Component, DebugElement } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By, DOCUMENT } from '@angular/platform-browser'; import { TocComponent } from './toc.component'; import { TocItem, TocService } from 'app/shared/toc.service'; describe('TocComponen...
<style> body { padding: 0; margin: 0; } #viewer { background-color: #000; color: #fff; margin: 0px; padding: 0; overflow: hidden; } </style> <div id="viewer"></div>
var http=require("http");var om=require("./omlib"); var Omega={Request:function(req){var req;req={api:null};req._sock=req;req._answer=function(){return"foo!"};return req},Response:function(res){var resp;resp={_sock:res,data:null,result:false,encoding:"json",headers:{"Content-Type":"text/plain","Cache-Control":"no-cache...
module Souschef # Loads Souschef configuration YAML class Config # Public - Reads the configuration file # Returns Hash def self.read verify_file YAML.load_file(File.expand_path('~/.souschef.yml')) end # Private - Checks if we have a configuraiton file # Returns nil def self....
package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "net/url" "os" "os/user" "path/filepath" "strings" "crypto/tls" "net/http" ) type configCommand struct { config *ClientConfig } // <API key> returns an *http.Client with InsecureSkipVerify set // to ...
# This is needed to render the menu properly, according to user's actions. # The first menu option has an index of 0. The lower option is, the higher index it has. <API key>() { # In case Arrow Down was pressed. if [ "$1" == $<API key> ]; then # If there are no more options to choose from, do nothing: t...
#include "InvocationManager.h" #include <bb/system/CardDoneMessage> #include <bb/system/InvokeRequest> // to send number data while invoking phone application #include <bb/PpsObject> // Map #include <bb/platform/LocationMapInvoker> #include <bb/platform/RouteMapInvoker> // contacts #include <bb/cascades/pickers/Contact...
<?php namespace Lonquan\TaobaoSDK\Top\Request; use Lonquan\TaobaoSDK\Top\RequestCheckUtil; use Lonquan\TaobaoSDK\Top\RequestInterface; /** * TOP API: taobao.product.img.delete request * * @author auto create * @since 1.0, 2016.03.05 */ class <API key> implements RequestInterface { private $id; /** * ...
require "point/version" module Point autoload :Point, 'point/point' def self.sum(*args) x = y = 0 args.each do |point| x += point.x y += point.y end self::Point.new(x, y) end end
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (1.8.0_121) on Sat Apr 01 23:01:20 CEST 2017 --> <title>Uses of Class algorithms.InitStrategy</title> <meta name="date" content="2017-04-01"> <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style"> <scr...
<?php namespace MvMidia\Factory; use MvMidia\Service\AudioService; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\<API key>; class AudioServiceFactory implements FactoryInterface { public function createService(<API key> $serviceLocator) { $entityManager = $serviceLocator->get('Doctrine\ORM...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.CatalanNumbers { class Program { static void Main(string[] args) { // 10. Write a program to calculate the Nth Catalan number by given N. Cons...
<?php /* TwigBundle:Exception:traces.txt.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $...
<section *ngIf="blogItems"> <div class="background"></div> <div class="wrapper" *ngFor="let item of blogItems"> <div class="text" [innerHtml]="texts[blogItems.indexOf(item)]"></div> <div class="item"> <aae-blog-item [blogItem]="item" [alias]="alias"></aae-blog-item> </div> </div> </section>
(function() { var $, expect, fruits; $ = require('../'); expect = require('expect.js'); /* Examples */ fruits = '<ul id = "fruits">\n <li class = "apple">Apple</li>\n <li class = "orange">Orange</li>\n <li class = "pear">Pear</li>\n</ul>'.replace(/(\n|\s{2})/g, ''); /* Tests */ describe('$(...
<?php namespace Symfony\Component\Form; use Symfony\Component\Form\Exception\<API key>; use Symfony\Component\Form\Exception\<API key>; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\OptionsResolver\OptionsResolver; /** * A wrapper for a form type and its extensions. * * @author Bernhar...
<!DOCTYPE html> <html lang = "en"> <head> <title> Cultural Blog</title> <link href='http://fonts.googleapis.com/css?family=Italianno' rel='stylesheet' type='text/css'> </head> <style type="text/css"> h1 { text-align: center; margin-top: 3% } p { } body { background: u...
# nepali-wordlist Nepali wordlist for wpa2 cracking. Includes password with length of 8 character or more and mostly contains nepali words including other common words. ## Files * <API key>+.txt.gz:__ `Nepali names passwords with numbered suffix. Contains 80,00,000 words with up to 3 number suffixa. Level 9 compress...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: <API key>/core/example/feature.proto #include "<API key>/core/example/feature.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/io/coded_stream.h> #include <google/...
require 'spec_helper' require 'gitnesse/cli' module Gitnesse describe Cli, type: :cli do let(:help) do <<-EOS USAGE: gitnesse push Pushes local features to remote git-based wiki Pushes the local features files to the remote git-based wiki, creating/updating wiki pages as necessary. Examples: gitnesse push...
// This file is auto-generated. Please don't modify it! package org.opencv.objdetect; import org.opencv.core.Mat; import org.opencv.core.MatOfDouble; import org.opencv.core.MatOfInt; import org.opencv.core.MatOfRect; import org.opencv.core.Size; // C++: class CascadeClassifier //javadoc: CascadeClassifier public class ...
package GlidersGrid; import java.util.Iterator; import repast.simphony.context.Context; import repast.simphony.engine.schedule.ScheduledMethod; import repast.simphony.query.space.grid.MooreQuery; import repast.simphony.space.grid.Grid; import repast.simphony.space.grid.GridPoint; import repast.simphony.util.ContextUtil...
#ifndef LM75_H_ #define LM75_H_ #include <stdint.h> #include "BBBTypes.h" #define LM75_DEVICE "/dev/i2c-1" #define LM75_ADDR ( 0x48 ) extern BBBError readTempLm75(int32_t *ps32Temp); #endif /* LM75_H_ */
#endregion using System; using System.ComponentModel; namespace CuttingEdge.Conditions { <summary> The RequiresValidator can be used for precondition checks. </summary> <typeparam name="T">The type of the argument to be validated</typeparam> internal class RequiresValidator<T> : ConditionValidator<T...
(function(){ 'use strict'; function ListService($http){ this.getList = function(list_id){ return $http.get('/lists/' + list_id + ".json") } } ListService.$inject = ['$http'] angular .module('app') .service('ListService', ListService) }())
angular.module('movieApp') .directive('movieResult', function () { var directive = { restrict: 'E', replace: true, scope: { result: '=result' }, template: [ '<div class="row">', '<div class="col-sm-4">', '<img ng...
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>...
/* eslint-env mocha */ const { expect } = chai; import React from './React'; import TestUtils from './TestUtils'; describe('React components', () => { it('should find valid xpath in react component', () => { const component = TestUtils.renderIntoDocument(<blink>hi</blink>); expect(component).to.have.xpath('//...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Sandsound</title> <link rel="stylesheet" href="/css/reset.css"> <link rel="stylesheet" href="/css/style.css"> </head> <body> <canvas id="canvas" class="background"></canvas> <!-- Ne s'affiche que si sur mobile :) --> <div class="mobile"> <a...
require 'lapine/test/exchange' module Lapine module Test module RSpecHelper def self.setup(_example = nil) RSpec::Mocks::AllowanceTarget.new(Lapine::Exchange).to( RSpec::Mocks::Matchers::Receive.new(:new, ->(name, properties) { Lapine::Test::Exchange.new(name, properties) ...
#include "config.h" #include "platform/animation/UnitBezier.h" #include <gtest/gtest.h> using namespace WebCore; namespace { TEST(UnitBezierTest, BasicUse) { UnitBezier bezier(0.5, 1.0, 0.5, 1.0); EXPECT_EQ(0.875, bezier.solve(0.5, 0.005)); } TEST(UnitBezierTest, Overshoot) { UnitBezier bezier(0.5, 2.0, 0.5...
using Brandbank.Xml.Logging; using System; namespace Brandbank.Api.Clients { public sealed class <API key> : IFeedbackClient { private readonly ILogger<IFeedbackClient> _logger; private readonly IFeedbackClient _feedbackClient; public <API key>(ILogger<IFeedbackClient> logger, IFeedbackC...
<?php namespace Zodream\Infrastructure\Http\Input; use Zodream\Infrastructure\Base\MagicObject; abstract class BaseInput extends MagicObject { /** * * @param array|string $data * @return array|string */ protected function _clean($data) { if (is_array($data)) { foreach ($d...
<?php namespace Grosona; use Grosona\PhpProcess\Utils\Logger; use Grosona\PhpProcess\TrobuleHandler; /** * Read configurations from the file. * * @author hchsiao */ class TroubleHandler implements TrobuleHandler { protected $logger = null; public function activate(Logger $logger) { $this->logger = $...
class DashboardController < <API key> def index end end # vim: fo=tcq
-- T_Good CREATE TABLE IF NOT EXISTS T_Good ( goodId INTEGER PRIMARY KEY NOT NULL, good TEXT, "createAt" TEXT DEFAULT (datetime('now', 'localtime')) );
const getAllMatchers = require("./getAllMatchers"); describe("unit: getAllMatchers", () => { let handler; let matcherStore; beforeEach(() => { matcherStore = [{}, {}, {}]; handler = getAllMatchers(matcherStore); }); test("it should return all matchers", () => { expect(handler()).toHaveProperty("bo...
table { font-family: Consolas, Monaco, monospace; font-size: 1em; line-height: 1.44em; } table th, table td { padding: 0.4em 0.8em; }
layout: post title: "Welcome to Jekyll!" tags: [web, jekyll] Vestibulum vulputate ac sem dapibus sagittis. Phasellus vestibulum ligula quam, vitae porta risus posuere sit amet. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam lobortis nisl ut semper suscipit. Aenean eget sem nisl. Sed gravida susc...
[![](https: [template.js](https://github.com/yanhaijing/template.js) | IE | CH | FF | SF | OP | IOS | Android | Node | | | 6+ | 29+ | 55+ | 9+ | 50+ | 9+ | 4+ | 0.10+ | **ES5ie6-8[es5-shim](http://github.com/es-shims/es5-shim/)[demo/demo-global.html](./demo/demo-global.html)** npm bash $ npm ins...
# coding=utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. import functools from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union import warnings from azure.core.exceptions import <API key>, ...
<?php namespace Koalamon\IntegrationBundle\Integration; class Integration { private $name; private $image; private $description; private $url; private $activeElements; private $totalElements; /** * Integration constructor. * * @param $name * @param $image * @param $d...
import redis import logging import simplejson as json import sys from msgpack import Unpacker from flask import Flask, request, render_template from daemon import runner from os.path import dirname, abspath # add the shared settings file to namespace sys.path.insert(0, dirname(dirname(abspath(__file__)))) import settin...
#include "clipper.hpp" #include <cmath> #include <vector> #include <algorithm> #include <stdexcept> #include <cstring> #include <cstdlib> #include <ostream> #include <functional> namespace ClipperLib { static double const pi = 3.141592653589793238; static double const two_pi = pi *2; static double const def_arc_toleran...
module AttrValidator # A typical module looks like this: # module M # def self.included(base) # base.extend ClassMethods # base.class_eval do # scope :disabled, -> { where(disabled: true) } # end # end # module ClassMethods # end # end # By using <tt...
package ca.codybanman.AstroidEscape; import org.robovm.apple.foundation.NSAutoreleasePool; import org.robovm.apple.uikit.UIApplication; import com.badlogic.gdx.backends.iosrobovm.IOSApplication; import com.badlogic.gdx.backends.iosrobovm.<API key>; import ca.codybanman.AstroidEscape.AEGame; public class IOSLauncher ext...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Xml; using System.Xml.Serialization; using System.IO; namespace TimeOut { public partial ...
#include "V3DResourceMemory.h" #include "V3DDevice.h" #include "V3DBuffer.h" #include "V3DImage.h" #include "V3DAdapter.h" /* public - V3DResourceMemory */ V3DResourceMemory* V3DResourceMemory::Create() { return V3D_NEW_T(V3DResourceMemory); } V3D_RESULT V3DResourceMemory::Initialize(IV3DDevice* pDevice, V3DFlags p...
<?php namespace Peridot\Leo\Interfaces; use Peridot\Leo\Assertion; use Peridot\Leo\Interfaces\Assert\<API key>; use Peridot\Leo\Interfaces\Assert\ObjectAssertTrait; use Peridot\Leo\Interfaces\Assert\TypeAssertTrait; use Peridot\Leo\Leo; /** * Assert is a non-chainable, object oriented interface * on top of a Leo Asse...
<?php declare(strict_types=1); namespace Gitilicious\GitClient\Test\Unit\Cli\Output; use Gitilicious\GitClient\Cli\Output\Output; class OutputTest extends \<API key> { public function <API key>() { $output = new Output('foo' . PHP_EOL . 'bar'); $this->assertSame(2, $output->getNumberOfLines()); ...
black = '#202427'; red = '#EB6A58'; // red green = '#49A61D'; // green yellow = '#959721'; // yellow blue = '#798FB7'; // blue magenta = '#CD7B7E'; // pink cyan = '#4FA090'; // cyan white = '#909294'; // light gray lightBlack = '#292B35'; // medium gray lightRed = '#...
import cuid from "cuid"; import Result, { isError } from "../../common/Result"; import assert from "assert"; import { di, singleton, diKey } from "../../common/di"; import { ILocalFiles, ILocalFilesKey } from "../../common/LocalFiles"; import { IStoreDB, IStoreDBKey, MergeEntity } from "../../common/db/StoreDB"; import...
<html> <head> <title>Julian Fellows's panel show appearances</title> <script type="text/javascript" src="../common.js"></script> <link rel="stylesheet" media="all" href="../style.css" type="text/css"/> <script type="text/javascript" src="../people.js"></script> <!--#include virtual="head.txt" --> </head...
var createSubmit = function(name, primus, keyDict) { return function(event) { var message = $('#message').val(); if (message.length === 0) { event.preventDefault(); return; } $('#message').val(''); $('#message').focus(); var BigInteger = forge....
<?php namespace action\sub; use net\shawn_huang\pretty\Action; class Index extends Action { protected function run() { $this->put([ 'holy' => 'shit' ]); } }
<?php namespace keeko\account\action; use keeko\framework\foundation\AbstractAction; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use keeko\framework\domain\payload\Success; /** * User Widget * * This code is automatically created. Modifications will probably be overwr...
#include <zmq/zmqabstractnotifier.h> #include <util.h> <API key>::~<API key>() { assert(!psocket); } bool <API key>::NotifyBlock(const CBlockIndex * /*CBlockIndex*/) { return true; } bool <API key>::NotifyTransaction(const CTransaction &/*transaction*/) { return true; } bool <API key>::<API key>(const CTran...