answer
stringlengths
15
1.25M
# swio import "github.com/shipwire/swutil/swio" Package swio provides additional utilities on top of the standard io package. ## Usage go var DummyReader = newDummy(time.Now().Unix()) DummyReader is a reader of pseudo-random data. It is meant to be more efficient than cryptographically random data, but is useful on...
from rest_framework import serializers from django.contrib.auth.models import User from dixit.account.models import UserProfile class <API key>(serializers.ModelSerializer): class Meta: model = UserProfile fields = ('name', ) class UserSerializer(serializers.ModelSerializer): """ Serializes ...
# == Schema Information # Table name: tecnicos # id :integer not null, primary key # phone_number :string # health_post_id :integer # created_at :datetime not null # updated_at :datetime not null # name :string class Tecnico < ActiveRecord::Base include S...
using System; using System.Collections.Generic; namespace Paladino.Drawing { <summary> The thumbnails class handles all thumbnails to different types of content embedded in the core. </summary> public static class Thumbnails { #region Members private static Dictionary<Guid, strin...
using System.Linq; using UnityEditor; using UnityEditor.Animations; using UnityEngine; namespace Framework.Editor { [CustomActionEditor(typeof(ActionAnimParam))] public class <API key> : <API key> { public ActionAnimParam Node => (ActionAnimParam) ActionNode; public <API key>(ActionGraph gra...
/** * @author Vexatos */ @<API key> @<API key> package vexatos.backpacks.backpack; import mcp.<API key>; import javax.annotation.<API key>;
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "- <html xmlns="http: <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="" /> <title>Text comment permalinks</title> </head> <body> <table ce...
//Actually I found this code from <API key> as well. All bundled in this utility class. Thanks guys ;) using UnityEngine; namespace FlightEdit.FlightEdit { public class InflightSave { public static string TemporarySaveVessel(Vessel VesselToSave) { string ShipName = VesselToSave.vesse...
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Waste } from '../../entities/Waste'; import { Deferred } from '../../util/utils'; import NavLink from '../../components/NavLink'; import Progress from 'react-progress-2'; import { PageHeader, Row, ...
// JMColor.h // JMChartView #import <UIKit/UIKit.h> #define JMBlue [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1] #define JMCloudWhite [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1] struct Range { CGFloat max; CGFloat min; }; typedef struct Range JMR...
var basePaths = { src: 'public/', dest: 'public.dist/', bower: 'bower_components/' }; var paths = { images: { src: basePaths.src + 'images/', dest: basePaths.dest + 'images/min/' }, scripts: { src: basePaths.src + 'scripts/', dest: basePaths.dest + 'scripts/min/' }, styles: { src: ba...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <vector> #define GLM_FORCE_RADIANS #define <API key> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <vulkan/vulkan.h> #include "vulkanexamplebase.h" #define <API key> 0 #define ENABLE_VALIDATION false // Off...
package mcjty.deepresonance.jei.smelter; import mezz.jei.api.recipe.IRecipeWrapper; import javax.annotation.Nonnull; public class <API key> implements mezz.jei.api.recipe.IRecipeHandler<<API key>> { private final String id; public <API key>() { this.id = <API key>.ID; } @Nonnull @Override ...
<?php class <API key> extends <API key> { public static function factory($attributes) { $instance = new self($attributes); return $instance; } // static methods redirecting to gateway public static function fetch($query, $ids) { return <API key>::gateway()-><API key>()->f...
var <API key> = null; var g_tabAssessments = null; var <API key> = false; var g_onRefresh = null; var g_lockedCount = 0; var g_btnSubmit = null; var <API key> = null; var <API key> = null; function createAssessment(content, to) { var assessmentJson = {}; assessmentJson["content"] = content; assessmentJson["...
<!DOCTYPE html PUBLIC "- <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="search.js"></script> </head> <body class="SRPage"> <div id="SRIndex"> <div class="SRStatus" id="Loading...
fluency ==== An HTML, CSS, and Javascript framework for interactive video produced <a href="http://interactivedocs.com" target="_blank">Interactive Docs</a>. Check out the <a href="http://interactivedocs.com/fluency.html" target="_blank">documentation</a> on our website. To run locally [npm](https: <h3>Road map</h3> Th...
/* $Id: get_attachments.c,v 1.13 2015/07/20 10:35:53 tm Exp $ * * PDFlib TET sample application. * * PDF text extractor which also searches PDF file attachments. * The file attachments may be attached to the document or * to page-level annotations of type FileAttachment. The former construct * also covers PDF 1....
# -*- coding: utf-8 -*- require 'spec_helper' describe RailwayCompany do describe :import do let(:file_path) do tempfile = Tempfile.new('railway_companies.csv') tempfile << <<EOS company_cd,rr_cd,company_name,company_name_k,company_name_h,company_name_r,company_url,company_type,e_status,e_sort 1,11,JR...
<?php namespace PHPSpec\Runner\Formatter; use \PHPSpec\Runner\Reporter; class Factory { /** * Available formatters * * @var array */ protected $_formatters = array( 'p' => 'Progress', 'd' => 'Documentation', 'h' => 'Html', 'j' => 'Junit' ); /** * ...
package framework.org.json; import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.Map; /** * A JSONArray is an ordered sequence of values. Its external text for...
#include "<API key>.h" using namespace json; json::<API key>::<API key>() {} std::map<std::string, std::function<json::<API key>*()> > json::<API key>::dictionary;
# -*- coding: utf-8 -*- import pack_command import pack_command_python import timeit import cProfile import pstats import pycallgraph def format_time(seconds): v = seconds if v * 1000 * 1000 * 1000 < 1000: scale = u'ns' v = int(round(v*1000*1000*1000)) elif v * 1000 * 1000 < 1000: sc...
namespace Catel { using IoC; using Runtime.Serialization.Json; <summary> Core module which allows the registration of default services in the service locator. </summary> public class <API key> : <API key> { #region Methods <summary> Initializes the specified service l...
var fs = require('fs'); var mysql = require('mysql'); var qs = require('querystring'); var express = require('express'); var config = JSON.parse(fs.readFileSync(__dirname+'/config.json', 'UTF-8')); // Keep a persistant connection to the database (reconnect after an error or disconnect) if (typeof config.databaseConn...
import SuccessPage from '../index'; import expect from 'expect'; import { shallow } from 'enzyme'; import React from 'react'; describe('<SuccessPage />', () => { });
/** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'lib/' }, // map tells the System loader where to look for things map: { ...
# SSISCookbook SSIS cookbook for the hurried developer Check out [the book](./main.pdf)
body { padding-top: 50px; } .navbar { margin-bottom:0px; } #content { margin-top: 20px; } footer { font-size: .9em;} * { margin: 0; } html, body { height: 100%; } #body_wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -50px; /* the bottom margin is the ne...
<?php namespace Application\Core; use \DateTime; /** * The LogHandler handles writing and clearing logs */ class LogHandler { public static function clear() { $files = App::logs()->files(); foreach ($files as $file) { $file->remove(); } } public st...
//import {HttpClient} from 'aurelia-http-client'; import {ProjectApi} from "../components/projectapi"; import {Vfstorage} from '../components/vfstorage'; //import {bindable} from 'aurelia-framework'; export class Modulecontrol{ // @bindable classin = "w3-card-4 w3-sand w3-padding w3-margin w3-round"; constructor () ...
namespace CSReader.Command { <summary> </summary> public class HelpCommand : ICommand { public const string COMMAND_NAME = "help"; <summary> </summary> <returns></returns> public string Execute() { return @"usage: csr [command_name] [command_ar...
//of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //copies of the Software, and to permit persons to whom the Software is //furnished to do so, subject to the following conditions: //copies or substantial portio...
.aquaIvory6, .hover_aquaIvory6:hover, .active_aquaIvory6:active { -webkit-box-shadow: 0 0.63em 0.75em rgba(255, 232, 28, .39), inset 0 -0.5em 0.9em 0 #ffe282, inset 0 -0.5em 0em 0.65em rgb(232, 213, 0), inset 0 0em 0.5em 2em rgb(232, 224, 127); -moz-box-shadow: 0 0.63em 0.75em r...
Given /^I am in the "(.*?)" directory$/ do |dir| @dir = dir @project = RemoteTerminal::Project.find(@dir) end When /^I get the path from my location$/ do @path = @project.path_from(@dir) end Then /^I should see "(.*?)"$/ do |path| @path.should be == path end When /^I get the path to my location$/ do @path = @...
require "test_helper" class FHeapTest < ActiveSupport::TestCase def setup @heap = FHeap.new end def setup_sample_heap @node_1 = @heap.insert!(1) @node_2 = @heap.insert!(2) @node_6 = @heap.insert!(6) @node_5 = @node_2.add_child!(5) @node_3 = @node_1.add_child!(3) @node_4 = @node_1.add_c...
using SuperScript.Configuration; using SuperScript.Emitters; using SuperScript.Modifiers; using SuperScript.Modifiers.Converters; using SuperScript.Modifiers.Post; using SuperScript.Modifiers.Pre; using SuperScript.Modifiers.Writers; using System; using System.Collections.Generic; using System.Collections.ObjectModel; ...
using Cofoundry.Core; using Cofoundry.Domain; using System; using System.Collections.Generic; using System.Linq; namespace Cofoundry.Web.Admin { public class <API key> : <API key> { public const string RoutePrefix = "custom-entities"; private readonly AdminSettings _adminSettings; public...
/* eslint-disable no-undef,<API key> */ const request = require('supertest') const expect = require('chai').expect const app = require('../../bin/www') const fixtures = require('../data/fixtures') describe('/api/mappings', () => { beforeEach(() => { this.Sample = require('../../models').Sample this.Instrument...
CKEDITOR.plugins.setLang("a11yhelp","es",{title:"Instrucciones de accesibilidad",contents:"Ayuda. Para cerrar presione ESC.",legend:[{name:"General",items:[{name:"Barra de herramientas del editor",legend:'Presiona ${toolbarFocus} para navegar por la barra de herramientas. Para moverse por los distintos grupos de herram...
#include "<API key>.h" #include "compiler/Parser/Parser.h" #include "compiler/AST/Variables/VariableNode.h" #include <assert.h> namespace Three { <API key>* <API key>::parse(Parser& parser, ASTNode* receiver, ASTNode* firstArg) { assert(parser.helper()->peek().type() == Token::Type::<API key>); asse...
{% extends 'base.html' %} {% block title %}Grow Buildbot{% endblock %} {% block body %} <h2>Recent builds</h2> <ul> {% for build in builds %} <li> <a href="{{ url_for('build', build_id=build.id)}}">build {{ build.id }}</a>: <strong class="status-{{ build.status }}">{{ build.status }}</stro...
'use strict'; import '../../Series/DependencyWheel/<API key>.js';
( function ( OO ) { 'use strict'; OO.ui.ActionWidget = function OoUiActionWidget( config ) { // Configuration initialization config = $.extend( { framed: false }, config ); // Parent constructor OO.ui.ActionWidget.super.call( this, config ); // Mixin constructors OO.ui.mixin.PendingElement.call(...
<?php namespace Report; use Illuminate\Support\Collection; class Datareport { protected static $instance = NULL; protected $id = NULL; protected $caption = NULL; protected $icon = NULL; // protected $rowSourceUrl = NULL; // server side row source url // protected $co...
require 'simplecov' require 'coveralls' Coveralls.wear! SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter '/spec/' end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'llt/db_handler/s...
<?php namespace App\Support\Http\Routing; use App\Support\Facades\Request; use App\Support\Traits\ClassNameTrait; /** * Class Router * @package App\Support\Routing * @author Fruty <ed.fruty@gmail.com> */ class Router { use ClassNameTrait; /** * Registered routes * * @access protected * @...
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Dulcet.Twitter; using Inscribe.Common; using Inscribe.Configuration; using Inscribe.Util; using Inscribe.Subsystems; using Inscribe.ViewModels.PartBlocks.MainBlock.TimelineChild; using Livet; n...
'use strict'; /* global angular */ (function() { var aDashboard = angular.module('aDashboard'); aDashboard.controller('<API key>', function( $scope, $rootScope, tradelistFactory, $timeout) { $scope.subState = $scope.$parent; $scope.accountValue; $scope.avgWin; $scope.avgLoss; ...
using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web; using System.Web.Http; using Microsoft.Dash.Server.Diagnostics; using Microsoft.Dash.Server.Handlers; using Microsoft.Dash.Server.Utils; namespace Microsoft.Dash.Server.Controllers { public class CommonController ...
layout: page title: "" description: "" header-img: "img/orange.jpg" <ul class="listing"> {% for post in site.posts %} {% capture y %}{{post.date | date:"%Y"}}{% endcapture %} {% if year != y %} {% assign year = y %} <li class="listing-seperator">{{ y }}</li> {% endif %} <li class="listing-item"> <ti...
<!doctype html> <html> <head></head> <body> <!-- Multiple terms, single description --> <dl> <dt>Firefox</dt> <dt>Mozilla Firefox</dt> <dt>Fx</dt> <dd> A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers. </dd> </dl> </body...
'use strict'; // MODULES // var isArrayLike = require( 'validate.io-array-like' ), isTypedArrayLike = require( 'validate.io-typed-array-like' ), deepSet = require( 'utils-deep-set' ).factory, deepGet = require( 'utils-deep-get' ).factory; // FUNCTIONS var POW = require( './number.js' ); // POWER // /** * FU...
<?php namespace repositorio\estudianteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Sede * * @ORM\Table(name="sede") * @ORM\Entity */ class Sede { /** * @var string * * @ORM\Column(name="codigo_sede", type="string", length=5, nullable=false) * @ORM\Id * @ORM\GeneratedValue(stra...
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_14) on Sun Nov 04 20:19:08 CET 2012 --> <TITLE> <API key> (LWJGL API) </TITLE> <META NAME="date" CONTENT="2012-11-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javasc...
public class SelectionSort { public int[] <API key>(int[] arr) { int temp, smallIdx; for(int i = 0; i < arr.length; i++) { smallIdx = i; for(int j = i; j < arr.length; j++) { if(arr[smallIdx] > arr[j]) { smallIdx = j; } } temp = arr[i]; arr[i] = arr[smal...
'use strict'; function getReferenceMatrix (matrix, direction) { return matrix.unflatten().rows.sort((r1, r2) => { return (r1[1] > r2[1] ? 1 : r1[1] < r2[1] ? -1 : 0) * (direction === 'desc' ? -1 : 1); }); } function simpleSort (matrix, direction) { const referenceMatrix = getReferenceMatrix(matrix, ...
""" Initialize Flask app """ from flask import Flask import os from flask_debugtoolbar import <API key> from werkzeug.debug import DebuggedApplication app = Flask('application') if os.getenv('FLASK_CONF') == 'DEV': # Development settings app.config.from_object('application.settings.Development') # Flask-Deb...
using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using Dapper; using MicroOrm.Dapper.Repositories.Extensions; namespace MicroOrm.Dapper.Repositories { <summary> Base Repository </summary> public partial class DapperRepository<TEntity> where TEntity : class {...
export joDict, joDictException struct joDictException <: Exception msg :: String end ## outer constructors """ julia> op = joDict(op1[,op2][,...];[weights=...,][name=...]) Dictionary (single block row) operator composed from different JOLI operators # Signature joDict(ops::<API key>...; weights::Loc...
import watch from 'gulp-watch'; import browserSync from 'browser-sync'; import path from 'path'; /** * Gulp task to watch files * @return {function} Function task */ export default function watchFilesTask() { const config = this.config; const runSequence = require('run-sequence').use(this.gulp); ret...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>class DropboxApi::Endpoints::Sharing::RevokeSharedLink - RDoc Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "../../../"; var index_rel_prefix = "../../../"; </script> <script src="../../../js/jquery.js"></script> <script src="...
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D","388":"u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","2":"UB z F J K C G E B A D u Y I M H N O P Q SB RB"},D:{"1":"0 1 2 3 4 5 6 7 e f L h i j k l m n o p q r s t y v GB g DB VB EB","2":"F J K C G E B A D u Y I M...
<?php namespace MiniGameMessageApp\Parser; use MiniGame\Entity\MiniGameId; use MiniGame\Entity\PlayerId; interface ParsingPlayer { /** * @return PlayerId */ public function getPlayerId(); /** * @return MiniGameId */ public function getGameId(); }
#include "shared-bindings/microcontroller/Pin.h" #include "shared-bindings/digitalio/DigitalInOut.h" #include "nrf_gpio.h" #include "py/mphal.h" #include "nrf/pins.h" #include "supervisor/shared/rgb_led_status.h" #ifdef MICROPY_HW_NEOPIXEL bool neopixel_in_use; #endif #ifdef <API key> bool apa102_sck_in_use; bool apa10...
#include "../include/csl.h" void MultipleEscape ( ) { _MultipleEscape ( _Context_->Lexer0 ) ; } void CSL_Strlen ( ) { DataStack_Push ( (int64) Strlen ( (char*) DataStack_Pop ( ) ) ) ; } void CSL_Strcmp ( ) { DataStack_Push ( (int64) Strcmp ( (byte*) DataStack_Pop ( ), (byte*) DataStack_Pop ( ) ) ) ; } void ...
use cc; pub fn build_windows() { cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("LinearMath_EXPORTS", None) .define("NDEBUG", None) .opt_level(3) // ignoring OPT_LEVEL from the crate .cpp(true) .flag("-<API key>") .warnings...
import { Editor, EditorState, RichUtils } from "draft-js" import { debounce } from "lodash" import React, { Component } from "react" import ReactDOM from "react-dom" import styled from "styled-components" import { TextInputUrl } from "../components/text_input_url" import { TextNav } from "../components/text_nav" import...
<?php namespace Demo\TaskBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { /* public function <API key>() { // Create a new client to browse the application $client = static::createClient(); // Create a new entry in th...
// load package date-util require('../libs/sugar-date') module.exports = (pluginContext) => { return { respondsTo: (query) => { return true }, search: (query = '', env = {}) => { // check if timestamp given let isTimestamp = !isNaN(parseFloat(query)) && is...
#pragma once #include <stddef.h> #include <sys/queue.h> #include "options.h" #include "util.h" struct window { struct window *parent; enum window_split_type { WINDOW_LEAF, <API key>, <API key> } split_type; // The size of the window. Only valid for the root window. size_t w; size_t h; struct {...
<?php /** * utility class to check values * @package jelix * @subpackage utils * @since 1.0b1 */ class jFilter { private function _construct() {} static public function usePhpFilter(){ return true; } /** * check if the given value is an integer * @param string $val the value ...
namespace KitchenPC.DB.Models { using System; using FluentNHibernate.Mapping; public class RecipeRatingsMap : ClassMap<RecipeRatings> { public RecipeRatingsMap() { this.Id(x => x.RatingId) .GeneratedBy.GuidComb() .UnsavedValue(Guid.Empty); ...
<?php defined('SYSPATH') OR die('No direct access allowed.'); abstract class Ko<API key> extends Controller { protected $_oauth2_server; protected $<API key> = FALSE; /** * @var array Map of HTTP methods -> actions */ protected $_action_map = array ( Http_Request::POST => 'post',...
#!/usr/bin/env python import os import sys import django from django.conf import settings DEFAULT_SETTINGS = dict( INSTALLED_APPS=[ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sites", "pinax.pinax_hello", "pinax.pinax_hello.tests" ], MIDDLEWA...
package adasim.algorithm.routing; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Random; import java.util.Stack; import org.apache...
package jobmanager.tests; import static alabno.testsuite.TestUtils.*; import alabno.testsuite.TestModule; import alabno.testsuite.TestStatistics; import jobmanager.MicroServiceInfo; public class <API key> implements TestModule { @Override public void run(TestStatistics statistics) { constructor_test(sta...
'use strict'; describe('Directive: cssCode', function () { // load the directive's module and view beforeEach(module('<API key>')); beforeEach(module('app/cssCode/cssCode.html')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden eleme...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- Generated by The Webalizer Ver. 2.01-10 --> <!-- Distributed under the GNU GPL Version 2 --> <!-- Full text may be found at: --> <!-- Give the power back to the programmers --> <!-- Support the Free Software Foundation --> <HTML> ...
#include "py/mpconfig.h" #if MICROPY_VFS_FAT #if !MICROPY_VFS #error "with MICROPY_VFS_FAT enabled, must also enable MICROPY_VFS" #endif #include <string.h> #include "py/nlr.h" #include "py/runtime.h" #include "py/mperrno.h" #include "lib/oofatfs/ff.h" #include "extmod/vfs_fat.h" #include "lib/timeutils/timeutils.h" #i...
using System; using System.Collections.Generic; using System.Linq; using hw.DebugFormatter; using hw.Helper; using Taabus.External; namespace Taabus { sealed class <API key> : <API key><Configuration> { <API key>(string fileName, Configuration configuration) : base(fileName, configuration) {...
using Android.OS; using GetAllLinks.Core.ViewModels; using MvvmCross.Droid.Shared.Attributes; using Android.Views; namespace GetAllLinks.Droid.Views { [MvxFragment(typeof(<API key>), Resource.Layout.settingsView, ViewModelType = typeof(SettingsViewModel), IsCacheableFragment = false)] public class SettingsFragm...
<?php namespace Yateric\Tests\Stubs; use Yateric\Cacheable\Cacheable; class DecoratedObject { use Cacheable; public function nonStaticMethod($parameter = '') { return "nonstatic{$parameter}"; } public static function staticMethod($parameter = '') { return "static{$parameter}"; ...
{% extends "base/_base.html" %} {% import 'base/_speaker_macro.html' as speaker_macro %} {% set page_title = message.page_title_index %} {% block content %} <div class="ui vertical stripe segment pycon-odd-seg"> <div class="ui middle aligned stackable grid container"> <div class="row"> <div class="eight wid...
var assert = require('assert'); var keys = require("cmd/common/keys/user.js"); var userKeysNock = require('test/fixtures/user/fixture_user_keys'); module.exports = { setUp : function(cb){ return cb(); }, 'list keys' : function(cb){ keys({ _ : ['list'] }, function(err, list){ assert.equal(err, null, ...
module.exports = { audioFilter: require('./audioFilter'), destination: require('./destination'), filename: require('./filename'), multer: require('./multer') }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Mon Jan 23 16:37:41 GMT 2017 --> <title>Resource</title> <meta name="date" content="2017-01-23"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" ...
package com.am.docker.study.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class RestDockerExample { @RequestMapping("/") public String home() { return "Hello Docker World"; } }
package com.elmakers.mine.bukkit.api.event; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; import com.elmakers.mine.bukkit.api.magic.Mage; import com.elmakers.mine.bukkit.api.spell.Spell; /** * A custom event that the Magic plugin will fire any time a * Mage c...
using System; using MooGet; using NUnit.Framework; namespace MooGet.Specs { [TestFixture] public class SearchSpec : MooGetSpec { /* [TestFixture] public class API : SearchSpec { [Test][Ignore] public void <API key>() { } [Test][Ignore] ...
using Physics2DDotNet; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Interfaces { public interface <API key> { IEnumerable<IConnectionSlot> Slots { get; } ALVector2D Position { get; } } }
#include <iostream> #include <string> // time complexity O(1) - constant // space complexity O(1) - constant bool is_unique (std::string s) { if (s.length() > 128) return false; bool char_list[128] = {0}; for (int i = 0; i < s.length(); i++) { if (char_list[s[i]]) return false; char_list[...
module PrettyShortUrls module Routes def pretty_short_urls connect ":name", :controller => "<API key>", :action => "redirect", :conditions => { :method => :get } end end end
package com.naosim.rtm.lib; import java.math.BigInteger; import java.security.MessageDigest; public class MD5 { public static String md5(String str) { try { byte[] str_bytes = str.getBytes("UTF-8"); MessageDigest md = MessageDigest.getInstance("MD5"); byte[] md5_bytes = m...
package main import ( "bufio" "fmt" "os" "math/rand" "strconv" ) func computer(inputChannel chan int, resultChannel chan string){ for human_choice := range inputChannel { computer_choice := rand.Intn(3) evaluation(computer_choice, human_choice, resultChannel) } } func evaluat...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.strings.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Fixed string * Sinks: w32_e...
import random import numpy as np import math from time import perf_counter import os import sys from collections import deque import gym import cntk from cntk.layers import Convolution, MaxPooling, Dense from cntk.models import Sequential, LayerStack from cntk.initializer import glorot_normal env = gym.make("Breakout...
package reborncore.client.gui.slots; import net.minecraft.inventory.Inventory; import net.minecraft.item.ItemStack; public class SlotFake extends BaseSlot { public boolean mCanInsertItem; public boolean mCanStackItem; public int mMaxStacksize = 127; public SlotFake(Inventory itemHandler, int par2, int p...
#endregion using System.Reflection; namespace Pomona.Routing { public class <API key> : <API key> { public bool PropertyIsMapped(PropertyInfo propertyInfo) { return true; } } }
#include "uritests.h" #include "../guiutil.h" #include "../walletmodel.h" #include <QUrl> void URITests::uriTests() { SendCoinsRecipient rv; QUrl uri; uri.setUrl(QString("AnonymousCoin:<API key>?req-dontexist=")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); uri.setUrl(QString("AnonymousCoin:<API k...