answer
stringlengths
15
1.25M
// closure_node.h #ifndef CLOSURE_NODE_H_ #define CLOSURE_NODE_H_ #include "branch_node.h" namespace regex { class ClosureNode : public BranchNode { public: ClosureNode(int min_repetition, int max_repetition, bool greedy); ~ClosureNode() override {} void Accept(VisitorInterface* visitor) override; int GetPri(...
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'> <link rel...
module JockeyCli class Worker < Base self.path = '/workers' class << self def deploys(id, options = {}) parsed_response get("#{path}/#{id}/deploys", query: options) end def restart(data) parsed_response put("#{path}/restart", body: data) end end end end
<?php // SdzBlogBundle:Article:new.html.twig return array ( );
<!DOCTYPE html> <html> <head> <title>Shawn Wilkinson - Blog</title> <meta charset="UTF-8"> <script type="text/javascript"> <! window.location = "http://shawndav.github.io/blog/index#variable_scope" </script> <body> </body> </html>
{% extends "layout.html" %} {% block body %} <h2>Apply for a Job</h2> <div>&nbsp;</div> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Instructions</h3> </div> <div class="panel-body"> <p> Be sure you answer ...
import webpack from 'webpack' import { join, sep } from 'path' require('dotenv').config() import * as config from './config.js' export default { entry: { bundle: [`.${sep}` + join('src', 'js', 'index.js')], vendor: [`.${sep}` + join('src', 'js', 'vendor.js')] }, output: { filename: `...
import os import io import sys import time import threading import struct import pickle import tempfile import shutil import types from threading import Thread from Queue import Queue from multiprocessing import cpu_count from mapping import DetMap2 import dbg import util import services import translators from blobs i...
using System; using AdventureWorks.UILogic.ViewModels; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace AdventureWorks.Shopper.Converters { <summary> Value converter that translates FormStatus.Complete or FormStatus.Invalid to <see cref="Visibility.Visible"/> and FormStatus.Incomplete to <see cr...
angular.module('eventApp') .controller('insertReturn_Ctr', function ($scope,executeResults ,$http, $route, $rootScope, $location ,$routeParams) { });
module Pione module Front # <API key> is a front interface for # <API key> command. class <API key> < BasicFront attr_reader :tuple_space def initialize(cmd) tuple_space = cmd.model[:parent_front].get_tuple_space(nil) super(cmd, Global.<API key>) @tuple_space = tuple_sp...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.6.0_27) on Thu Jan 23 20:13:40 EST 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <title>API Help (Lucene 4.6.1 API)</title> <meta name="date" content="2014-01-23"> <link rel="stylesheet...
const Model = require('../libraries/model'); const Card = require('../schemas/card-schema'); class CardModel extends Model { findRandomDeck() { return this.SchemaModel.find().execAsync() .then(collection => (this.shuffle(collection).slice(0, 8))); } shuffle(array) { let currentIndex = array.length; ...
# MOTU `auexamine` This application performs a thorough test on a Mac [Audio Unit](https://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/<API key>/Introduction/Introduction.html) plug-in to ensure it is free of common defects. ## Usage `auexamine` can be run from a terminal with the following comm...
<ol id="list" (drop)="onDrop($event)" (dragover)="onDragOver($event)" [ngClass]="{'is-dragging': isDragging}"> <li *ngFor="let item of items" (click)="onItemClick(item)">{{item.path}}</li> </ol>
require 'vesr/<API key>' module VESR class ReferenceBuilder def self.call(customer_id, invoice_id, esr_id) new(customer_id, invoice_id, esr_id).call end attr_reader :customer_id, :invoice_id, :esr_id def initialize(customer_id, invoice_id, esr_id) @customer_id = customer_id @invoice_...
# <API key>: true require "spec_helper" describe EveOnline::ESI::Models::DogmaAttribute do it { should be_a(EveOnline::ESI::Models::Base) } let(:options) { double } subject { described_class.new(options) } describe "#initialize" do its(:options) { should eq(options) } end describe "#as_json" do let(...
require "isolation/abstract_unit" require "stringio" require "rack/test" module RailtiesTest class EngineTest < ActiveSupport::TestCase include ActiveSupport::Testing::Isolation include Rack::Test::Methods def setup build_app @plugin = engine "bukkits" do |plugin| plugin.write "lib/buk...
package ivan.cstm.dao; import java.sql.SQLException; import jdbcUtils.TxQueryRunner; import ivan.cstm.domain.Customer; import org.apache.commons.dbutils.QueryRunner; public class CustomerDao { //QueryRunner private QueryRunner qr = new TxQueryRunner(); public void add(Customer c) { try { ...
<?php class Menu extends CI_Model { function getMenu () { $query = $this->db->get('menu'); return $query->result_array(); // $name = $this->input->post('name'); // $name = $this->input->post('quantity'); // $this->db->insert('inventory', $this, array('name' => $name,'quan...
<?php namespace Networking\InitCmsBundle\Entity; use Networking\InitCmsBundle\Model\GalleryView as ModelGalleryView; /** * Class GalleryView. */ class GalleryView extends ModelGalleryView { public function prePersist() { $this->createdAt = $this->updatedAt = new \DateTime('now'); } /** * ...
<?php namespace Sonata\CacheBundle\DependencyInjection; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\DependencyInjection\Refer...
require 'helper' class TestSafariCookiejar < Test::Unit::TestCase should "probably rename this file and start testing for real" do flunk "hey buddy, you should probably rename this file and start testing for real" end end
SOURCE = dot-product-4 DELAY = 80 DENSITY = 300 WIDTH = 512 make: pdflatex $(SOURCE).tex -output-format=pdf make clean clean: rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot gif: pdfcrop $(SOURCE).pdf convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOU...
<?php namespace TwbsHelper\Form\View\Helper\Factory; class <API key> implements \Laminas\ServiceManager\FactoryInterface { /** * Compatibility with ZF2 (>= 2.2) -> proxy to __invoke * * @param \Laminas\ServiceManager\<API key> $oServiceLocator * @param mixed $sCanonicalName * @param mixed $...
# TODO ## Retract rules Facts already asserted into the working memory can be retracted using the FactHandle. ## Conflict resolution Implement one or more of the following resolution strategies. * Salience * Recency * Primacy * Fifo * Lifo * Complexity * Simplicity * LoadOrder * Random Resolution strategies are chained...
# venus-runner package An Atom plugin that'll run your venus tests for the current file on ⌃⌥R (CTRL+Option+R) ; ## Things to Note You need to add your path to your init.coffee file in Atom. If anyone knows a fix for this, pull request me PLEASE. process.env.PATH = ["/usr/bin", "/usr/local/bin", ...
(function (GRA) { "use strict"; GRA.kernel = GRA.kernel || {}; GRA.kernel.Bus = function Bus() { /** * @type {object} */ var subscribers = {}, /** * @type {number} */ subscribersLength = 0; this.notify = function not...
'use strict'; // Production specific configuration module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || undefined, // Server port port: process.env.<API key> || process.env.PORT || 8080, // MongoDB connection options...
var SplashLudusLayer = cc.Layer.extend({ init:function() { this._super(); var background = cc.Director.getInstance().getWinSizeInPixels(); var label = cc.LabelTTF.create("START!", "GhoulySolidRegular", 70); label.setPosition(new cc.Point(background.width / 2, background.height / ...
<?php require_once 'php_action/db_connect.php'; session_start(); if(isset($_SESSION['userId'])) { header('location: '.$siteurl.'/dashboard.php'); } $errors = array(); if($_POST) { $username = $_POST['username']; $password = $_POST['password']; if(empty($username) || empty($password)) { if($usern...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Included.Areas.TestArea.Controllers { public class ExampleController : Controller { // GET: /TestArea/Example/ public ActionResult Index() { ViewBag.Message = ...
module.exports = estimateFloat; function estimateFloat(predicate) { var r = 0, l = predicate.length; switch (l) { case 1: r = predicate[0]; break; case 2: r = predicate[0] + predicate[1]; break; case 3: r = predicate[0] + predicate[1] + predicate[2]; break; case 4: ...
var DialogCoolDownLayer = cc.Layer.extend({ ctor:function () { this._super(); var size = cc.winSize; var backgroundLayer = new cc.LayerColor(); backgroundLayer.setColor(cc.color(0,0,0)); backgroundLayer.opacity = 230; this.addChild(backgroundLayer); var pageVi...
// Includes #include <stdio.h> #include <windows.h> #include "resource.h" #include "Terrain.h" // Globals char szWinName[] = "CHAOSWindow"; HINSTANCE g_hGlobalInstance; HWND g_hWnd; CTerrain terrTile; CLogFunc g_LogFunc; // Definitions LRESULT CALLBACK WindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM...
package model; /** * @author Philipp Winter * @author Jonas Heidecke * @author Niklas Kaddatz */ @SuppressWarnings("unused") public abstract class MapObject { protected Position position; protected boolean visible = true; public boolean isOnPosition(Position pos) { return this.getPosition().equa...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=...
"""Solvebio DatasetField API Resource""" from .solveobject import <API key> from .apiresource import <API key> from .apiresource import ListableAPIResource from .apiresource import <API key> from .apiresource import <API key> class DatasetField(<API key>, ListableAPIResource, <API ...
# Use the widgets beneath and the content will be # inserted automagically in the webpage. To make layout: page-fullwidth header: image_fullwidth: <API key>.jpg permalink: /laos/index.html <div class="medium-12" markdown="1"> <img width="424" src="{{ site.urlimg }}seaacc-logo.png"> <font face="Alice_5" size="5"> <!--...
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::DeploymentManager::Mgmt::V2019_11_01_preview module Models # The resource that defines the source location where the artifacts are # ...
# Linked List Utils - LIFO #Interface required: # Linked List class must have attributes: # - lltail (tail node linker) # - llhead (head node linker) # Node class must have attributes: # - llprev (previous node linker) # - llnext (next node linker) # Node class must have methods (for debug): # __int__(s...
package com.zimbra.qa.selenium.projects.ajax.tests.briefcase.document; import org.testng.annotations.Test; import com.zimbra.qa.selenium.framework.items.DocumentItem; import com.zimbra.qa.selenium.framework.ui.Action; import com.zimbra.qa.selenium.framework.ui.Button; import com.zimbra.qa.selenium.framework.ui.Shortcut...
#pragma once #pragma comment(lib, "dxguid.lib") #pragma comment(lib, "d3dcompiler.lib") #include <d3d11.h> #include <d3dcompiler.h> #include <DirectXMath.h> #include <unordered_map> #include <vector> #include <string> // Used by simple shaders to store information about // specific variables in constant buffers struct ...
# This migration comes from authentify (originally 20120608223732) class CreateUsers < ActiveRecord::Migration def change create_table :authentify_users do |t| t.string :name t.string :email t.string :login t.string :encrypted_password t.string :salt t.string :status, :default ...
using System; using NetOffice; using NetOffice.Attributes; namespace NetOffice.MSFormsApi.Enums { <summary> SupportByVersion MSForms 2 </summary> [SupportByVersion("MSForms", 2)] [EntityType(EntityType.IsEnum)] public enum <API key> { <summary> SupportByVersion MSForms 2...
class <API key> < ActiveRecord::Migration[5.2] def change remove_index :unpublishings, :edition_id if index_exists?(:unpublishings, :edition_id) add_index :unpublishings, :edition_id, unique: true end end
#include <htool/htool.hpp> using namespace std; using namespace htool; class MyMatrix: public IMatrix<double>{ const vector<R3>& p1; const vector<R3>& p2; public: MyMatrix(const vector<R3>& p10,const vector<R3>& p20 ):IMatrix(p10.size(),p20.size()),p1(p10),p2(p20) {} double get_coef(const int& i, const ...
#include "uml/impl/InteractionImpl.hpp" #ifdef NDEBUG #define DEBUG_MESSAGE(a) #else #define DEBUG_MESSAGE(a) a #endif #ifdef ACTIVITY_DEBUG_ON #define ACT_DEBUG(a) a #else #define ACT_DEBUG(a) #endif //#include "util/ProfileCallCount.hpp" #include <cassert> #include <iostream> #include <sstream> #inclu...
package jacobi.core.decomp.qr; import jacobi.api.Matrices; import jacobi.api.Matrix; import jacobi.core.decomp.qr.step.DefaultQRStep; import jacobi.core.givens.Givens; import jacobi.test.annotations.JacobiImport; import jacobi.test.annotations.JacobiInject; import jacobi.test.util.Jacobi; import jacobi.test.util.<API k...
#!/bin/bash EXPECTED_ARGS=4 BSIZE=1024 EXPSCRIPT="expect -d `pwd`/readblock.exp" if [ $# -ne $EXPECTED_ARGS ] then echo "usage: `basename $0` file tty address size" exit 0 fi if [ -f $1 ] then echo "$1 already exists, exiting" exit 0 fi if [ ! -c $2 ] then echo "couldn't find device $2" exit 0 f...
<?php namespace Bolt\Extension\DanielKulbe\Shariff; /** * Class Reddit. */ class Reddit extends Request implements ServiceInterface { /** * {@inheritdoc} */ public function getName() { return 'reddit'; } /** * {@inheritdoc} */ public function getRequest($url) { ...
using System; using System.Collections.ObjectModel; using System.Linq; using Windows.UI; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Documents; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; using WorkOrganizer.Specs; namespace WorkOrganizer { <summary> An empty ...
layout: page title: "Jesus Francisco Villalpando Quinonez" comments: true description: "blanks" keywords: "Jesus Francisco Villalpando Quinonez,CU,Boulder" <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/hig...
package main import "fmt" func main () { x := []int{ 48,96,86,68, 57,82,63,70, 37,34,83,27, 19,97, 9,17, } smallest := x[0] for i := 1; i < len(x); i++ { if x[i] < smallest { smallest = x[i] } } fmt.Println(smallest) }
<?php return [ 'files' => 'Fájlok', 'filemanager' => 'Fájlkezelő', ];
@font-face { font-family: aaargh; src: url('../fonts/aaargh.ttf'); } h1, h2, h3, h4, h5 { font-family: 'aaargh', sans-serif; font-weight: 100; text-align: center; margin-top: 80%; color: #F5F1EF; text-transform: uppercase; } h1 { font-size: 11rem; } .row { height: 100rem; } .row-...
#include <utility> #include <stdexcept> #include <easy/udp_socket.hpp> namespace fd { namespace easy { namespace udp_socket { socket server(uint32_t addr, uint16_t port) { struct sockaddr_in saddr; saddr.sin_family = AF_INET; saddr.sin_addr.s_addr = htonl(addr); saddr.sin_port = htons(port); auto so...
namespace System.Runtime.InteropServices { #if CONFIG_COM_INTEROP && <API key> [ComVisible(false)] public enum <API key> { SingleUse = 0x0000, MultipleUse = 0x0001, MultiSeparate = 0x0002, Suspended = 0x0004, Surrogate = 0x0008 }; // enum <API key> #endif // CONFIG_COM...
export default { labs: { label: 'Laboratuvarlar', filterTitle: 'Duruma Göre Filtrele', search: 'Laboratuvarlar İçinde Ara', successfullyUpdated: 'Başarılı bir şekilde güncellendi', <API key>: 'Başarılı bir şekilde tamamlandı', successfullyCreated: 'Başarılı bir şekilde oluşturuldu', status...
var _ = require('underscore') , pg = require('pg') , config = require('../config.js'); function getWindowsForId (id, options, callback) { if(_.isFunction(options)) { // Check if we want to use the default options callback = options; options = { windows: 200 }; } else if(!_.isObject(options)) { t...
#ifndef curl_multi_H #define curl_multi_H #include "curl_easy.h" using curl::curl_easy; using curl::<API key>; namespace curl { /** * As libcurl documentation says, the multi interface offers several abilities that * the easy interface doesn't. They are mainly: * 1. Enable a "pull" interface. The ...
package fireload import ( "container/ring" "testing" "github.com/kr/pretty" ) var testNodes = []Namespace{ {Domain: "node-1.firebaseio.com"}, {Domain: "node-2.firebaseio.com"}, {Domain: "node-3.firebaseio.com"}, {Domain: "node-4.firebaseio.com"}, {Domain: "node-5.firebaseio.com"}, } func...
import math import random def test(): tmp1 = [] tmp2 = [] print('build') for i in xrange(1024): tmp1.append(chr(int(math.floor(random.random() * 256)))) tmp1 = ''.join(tmp1) for i in xrange(1024): tmp2.append(tmp1) tmp2 = ''.join(tmp2) print(len(tmp2)) print('run') ...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using EvolveDb.Metadata; using EvolveDb.Migration; namespace EvolveDb.Dialect.CockroachDB { internal class <API key> : MetadataTable { public <API key>(string schema, string tableName, DatabaseHelpe...
# Merge requests Merge requests allow you to exchange changes you made to source code and collaborate with other people on the same project. ## Authorization for merge requests There are two main ways to have a merge request flow with GitLab: 1. Working with [protected branches][] in a single repository 1. Working with...
# README Simple PHP function which checks the price of given SMS number (PL) and returns it with or without specified tax rate. ## Basic usage // We need to include our function include_once(__DIR__.'/GetSmsCost/GetSmsCost.php'); // Getting price with 23% TAX $priceWithTax = getSmsCost('925123', 0.23); // Getting price...
#include "ISFileManager.h" #include <regex> #if PLATFORM_IS_EVB_2 #include <ff.h> #else #include <sys/stat.h> #include <cstdio> #include <time.h> #endif #if PLATFORM_IS_LINUX || PLATFORM_IS_APPLE #include <sys/statvfs.h> #endif namespace ISFileManager { bool PathIsDir(const std::string& path) { #if PLATFORM_IS_...
import os.path import tempfile from time import time from streaming_form_data import <API key> from streaming_form_data.targets import FileTarget, ValueTarget from tornado.ioloop import IOLoop from tornado.web import Application, RequestHandler, stream_request_body one_hundred_gb = 100 * 1024 * 1024 * 1024 @stream_requ...
<?php namespace Bellwether\BWCMSBundle\Classes\Service; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\RequestStack; use Bellwether\BWCMSBundle\Classes\Base\BaseService; use Bellwether\BWCMSBundle\Entity\PreferenceEntity; use Bellwether\BWCMSBundle\Entity\ContentEntit...
package command; public class ForwardCommand extends MoveCommand { public ForwardCommand (String s) { super(s, 1); } @Override public int getDirection () { return FORWARD; } }
<!DOCTYPE html> <html> <head> <title>Page Title</title> <link rel="stylesheet" href="style.css"> </head> <body> <img src="w3schools-logo.jpg"> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html>
require 'spec_helper' describe Gliffy::Document::Presentation::PNG do let(:content) { "SAMPLE CONTENT" } let(:document) { double(Gliffy::Document) } let(:png) { Gliffy::Document::Presentation::PNG.new(document) } <API key> "a document presentation" do let(:presentation) { png } end it "has...
"""Test flash_air_music.configuration functions/classes.""" import pytest from flash_air_music import configuration, exceptions from flash_air_music.__main__ import __doc__ as doc def common_init(monkeypatch, tmpdir, skip_ffmpeg=False): """Perform common test setup. :param monkeypatch: pytest fixture. :para...
/* globals msgStream */ import _ from 'underscore'; const removeUserReaction = (message, reaction, username) => { message.reactions[reaction].usernames.splice(message.reactions[reaction].usernames.indexOf(username), 1); if (message.reactions[reaction].usernames.length === 0) { delete message.reactions[r...
# Rails::Clean::Logs TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'rails-clean-logs' And then execute: $ bundle Or install it yourself as: $ gem install rails-clean-logs ## Usage TODO: Write usage instructions here ## Contributing 1. Fork it 2. Create your f...
var should = require('should'), sinon = require('sinon'), _ = require('lodash'), Promise = require('bluebird'), hbs = require('express-hbs'), utils = require('./utils'), configUtils = require('../../utils/configUtils'), moment ...
from django.apps import AppConfig class AccountsConfig(AppConfig): name = 'clarityv2.accounts'
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Counters extends RM_Controller { public function __construct() { parent::__construct(); $this->load->model('companies_model'); $this->load->helper('url'); if ( ! $this->session->userdata('logged_in') ) { ...
/** * @fileoverview Used for creating a suggested configuration based on project code. * @author Ian VanSchooten */ "use strict"; // Requirements const assert = require("chai").assert, autoconfig = require("../../../lib/init/autoconfig"), sourceCodeUtils = require("../../../lib/init/source-code-utils"), ...
/* @echo header */ var _local ; var jira = { }; /** * Do stuff * * @method publicMethod */ jira.publicMethod = function() { }; return jira; /* @echo footer */
body, html { width: 100%; height: 100%; } body, h1, h2, h3, h4, h5, h6 { font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif; font-weight: 700; } .lead { font-size: 18px; font-weight: 400; } .intro-header { padding-top: 50px; /* If you're making other pages, make sure there is 50...
using MagicCuisine.Models; using MagicCuisine.Providers; using Services.Contracts; using System; using System.Linq; using System.Web.Mvc; namespace MagicCuisine.Controllers { public class HomeController : Controller { private readonly IRecipeService recipeService; private readonly IMapProvider m...
layout: page title: Other Projects permalink: /other_projects/ order: 6 Outlining my non-published projects here (open source contributions, course research projects, designed homeworks). My research work can be seen [here](/research/). # **Other Research (Course Projects)** [Self-supervised Learning on 3D Point Clouds...
<html lang="en" class=" js csstransforms3d"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="./inc/style.css" type="text/css" rel="stylesheet"> <link href="./inc/custom.css" type="text/css" rel="stylesheet"> </head> <body> <h1>Reset Settings to Defaults</h1> <p> Let'...
<?php namespace Tlt\Bundle\<API key>\Model; use Tlt\Bundle\<API key>\Entity\GeneralLocation; use Doctrine\ORM\EntityManager; use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; class <API key> { /** * @var EntityManager */ protected $entityManager; /** * @var AclHelper */ protected $...
(function(global) { "use strict"; var inNodeJS = false; if (typeof process !== 'undefined') { inNodeJS = true; var request = require('request'); } if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (searchElement, fromIndex) { if (this == null) { throw new TypeError()...
"""Single slice vgg with normalised scale. """ import functools import lasagne as nn import numpy as np import theano import theano.tensor as T import data_loader import <API key> import image_transform import layers import preprocess import postprocess import objectives import theano_printer import updates import util...
'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var crypto = require('crypto'); var UserSchema = new Schema({ name: String, email: { type: String, lowercase: true }, role: { type: String, default: 'user' }, hashedPassword: String, provider: String, salt: String }); ...
# -*- coding: utf-8 - # See the NOTICE for more information. from __future__ import with_statement import os import sys from datetime import datetime # workaround on osx, disable kqueue if sys.platform == "darwin": os.environ['EVENT_NOKQUEUE'] = "1" try: import gevent except ImportError: raise RuntimeError(...
package com.devicehive; import com.datastax.driver.core.querybuilder.QueryBuilder; import com.datastax.driver.core.querybuilder.Select; import com.datastax.driver.core.utils.UUIDs; import com.devicehive.domain.DeviceNotification; import org.hamcrest.core.IsEqual; import org.junit.Test; import org.springframework.beans....
#include "ByteEncoder.h" #include "EncodingHelper.h" #include "../utils/QrException.h" using namespace qr::encoding; std::string ByteEncoder::encode(char ch, bool) { // cating to uchar which could represent as a binary unsigned char character = (unsigned char)ch; return EncodingHelper::getBinaryOf(character...
<div class="row"> {{#games}} <div class="col-lg-4"> <ul class="list-group"> <li class="list-group-item"> <a href="#/game/play/{{id}}/{{status}}"><b>{{title}}</b></a> from <i>{{creator}}</i> <span class="badge">{{status}}</span> </li> </ul> ...
.game2048{ width: 500px; height: 500px; }
{% extends "base.html" %} {% load comments %} {% block title %} : {{ shared_bookmark.bookmark.title|escape }} {% endblock title %} {% block content %} <a href="/vote/?id={{ shared_bookmark.id }}" class="vote">[+]</a> : <a href="/user/{{ shared_bookmark.bookmark.user.username }}" class="username">{{ sha...
module.exports = { staticFileGlobs: [
-- Report tables that were not updated recently -- They may contain archive data or the script that updates it broke. -- https://github.com/macbre/index-digest/issues/28 DROP TABLE IF EXISTS `<API key>`; CREATE TABLE `<API key>` ( `item_id` int(8) unsigned NOT NULL AUTO_INCREMENT, `cnt` int(8) unsigned NOT NULL...
#include <graph.h> #include <conio.h> #include <ctype.h> short rand(short); void main(void) { int ch; short a; short g; struct { short x; short y; short s; } s[100]; short p[12]; for (a = 0 ; a <= 13 ; a++) p[a]=(a/20)*100; _setvideomode (19); for (a =...
// flow-typed signature: <API key> declare module '<API key>' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module '<API key>/build/adapter' { declar...
'use strict'; require('./init'); require('./lib'); // Is Server. // Import Init if (Meteor.isServer) { require('./server'); } // Is Client // Import libs if (Meteor.isClient) { require('./client'); }
<?php class CronjobMigration extends Migration { function up() { $job_file = dirname(__FILE__).'../cronjobs/createStatCronJob.php'; $task_id = CronjobScheduler::registerTask($job_file, true); // Schedule job to run 1 minute from now CronjobScheduler::scheduleOnce($task_id, strtotime(...