answer
stringlengths
15
1.25M
class <API key> < ActiveRecord::Migration[4.2] def self.up add_column :plaques, :inscription, :string end def self.down remove_column :plaques, :inscription end end
using System.Collections; using UnityEngine; public class PlusOneBallAnimator : MonoBehaviour { public float maxVisibleTime = 1.2f; public float stationaryTime = 0.5f; public float risingSpeedIncrease = 0.2f; public float alphaDecreaseSpeed = 0.05f; public UILabel label; public string textToAppe...
# -*- coding: utf-8 -*- from .common import * class AssignmentTest(TestCase): def test_assignment(self): context = Context() root = Node.add_root() var_def = VariableDefinition(name='K1') root.add_child(content_object=var_def) root = Node.objects.get(id=root.id) assig...
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <meta charset="UTF-8"> <title>WebSocket</title> <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <s...
<?php namespace Oro\Bundle\ConfigBundle\Provider; use Oro\Bundle\ConfigBundle\Config\ConfigBag; use Oro\Bundle\ConfigBundle\Exception\<API key>; use Symfony\Contracts\Translation\TranslatorInterface; class GroupSearchProvider implements <API key> { /** @var ConfigBag */ private $configBag; /** @var Translat...
#!/bin/sh # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the # CREATE block and create them in separate commands _after_ all the INSERTs. # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. # The mysql...
'use strict'; angular .module('alterbooks.filters') // V/X check marks .filter('checkmark', function () { return function (input) { return input ? '\u2713' : '\u2718'; }; }) ;
<?php namespace TreeSoft\Specifications\Transforming\Transformers\SimpleType\Casters; /** * @author Sergei Melnikov <me@rnr.name> */ abstract class AbstractCaster { /** * @var string */ private $fromType; /** * @param mixed $value * * @return mixed */ abstract public func...
import { browser, element, by } from 'protractor/globals'; export class QueueTicketWebPage { navigateTo() { return browser.get('/'); } getHeaderText() { return element(by.css('app-root h1')).getText(); } }
using System; using System.Collections.Generic; using System.Linq; namespace VioletGrass.ProjectModel.ChangeOrders { <summary> Change Order to delete an organization member. </summary> public class <API key> : ChangeOrderBase<Owner> { private string _personName; private bool <API key...
# -*- coding: utf-8 -*- from . import exceptions from clare import common from clare.common import messaging from clare.common import retry class NopHandler(messaging.consumer.interfaces.IHandler): def handle(self, record): pass def __repr__(self): repr_ = '{}()' return repr_.format(self...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.6.0_27) on Thu Jan 23 20:12:12 EST 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <title>Uses of Class org.apache.lucene.analysis.core.StopAnalyzer (Lucene 4.6.1 API)</title> <meta name=...
import <API key> from '../../src/utils/<API key>'; import { JA_PUNC, EN_PUNC } from '../helpers/conversionTables'; describe('<API key>', () => { it('sane defaults', () => { expect(<API key>()).toBe(false); expect(<API key>('')).toBe(false); }); it('passes parameter tests', () => { expect(EN_PUNC.every...
var tape = require('../'); var tap = require('tap'); tap.test('only twice error', function (assert) { var test = tape.createHarness({ exit: false }); test.only("first only", function (t) { t.end(); }); assert.throws(function () { test.only('second only', function (t) { t.end(...
export { default } from 'ember-semantic-ui/components/ui-form-input';
"""Convenient parallelization of higher order functions. This module provides two helper functions, with appropriate fallbacks on Python 2 and on systems lacking support for synchronization mechanisms: - map_multiprocess - map_multithread These helpers work like Python 3's map, with two differences: - They don't guaran...
<div class="post-header"> <div id="post-meta"> <h2>{{post.title}}</h2> <div class="second-row"> {% if post.tags|not-empty %} <div id="post-tags"> {% for tag in post.tags %} <a class="tag" href="{{tag.uri}}">{{tag.name}}</a> {% endfor %} </div> ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class User_model extends CI_Model { private $passed_data_key = array( 'username', 'first_name', 'last_name', 'address', ); public function update_userdata() { $new_user_data = array(); // Na podstaiwe tablicy passe...
#import <ForgeCore/ForgeCore.h> @interface <API key> : ForgeEventListener // You should not need to edit this file. @end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Home</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![e...
<?php namespace jdavidbakr\ProfitStars; class WSAccount { public $CustomerNumber; public $AccountType = 'Checking'; public $NameOnAccount; public $AccountName; public $AccountNumber; public $RoutingNumber; public $BillAddress1 = null; public $BillAddress2 = null; public $BillCity = n...
<?php class Little implements ArrayAccess { /** * The container's bindings. * * @var array */ protected $bindings = []; /** * The container's shared instances. * * @var array */ protected $instances = []; /** * Resolve the given type from the container. ...
require 'spec_helper' describe Ethon::Easy::Http do let(:easy) { Ethon::Easy.new } describe "#http_request" do let(:url) { "http://localhost:3001/" } let(:action_name) { :get } let(:options) { {} } let(:get) { double(:setup) } let(:get_class) { Ethon::Easy::Http::Get } it "instanciates actio...
<div class="td-search-box"> <button mat-icon-button type="button" class="td-search-icon" (click)="searchClicked()"> <mat-icon *ngIf="searchVisible && !alwaysVisible">{{ backIcon }}</mat-icon> <mat-icon *ngIf="!searchVisible || alwaysVisible">{{ searchIcon }}</mat-icon> </button> <td-search-input #sear...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace <API key>.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new...
function SlidesBox(boxNr, boxConf, parentGrid) { //Methods this.init = function () { this.jQueryElement = this.parentGrid.add_widget('<div class="displayBox ' + this.state + '" boxNr="' + this.boxNr + '">' + this.config.content + '</div>', this.positioning.sizeX, this.positioning.sizeY, this.positioning...
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Hanoi</title> <link rel="icon" href="favicon.ico" /> <link rel="stylesheet" href="hanoi.css"> </head> <body> <div id="content"> <canvas id="canvas" width="600" height="400">Your browser does not support Canvas.</canvas> <f...
import { enableProdMode } from '@angular/core'; import { <API key> } from '@angular/<API key>'; import { AppModule } from './app/app.module'; import { environment } from '../environments/environment'; import 'bootstrap'; if (environment.production) { enableProdMode(); } <API key>().bootstrapModule(AppModule);
<?php include 'langsettings.php'; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http: <html> <head> <meta name="author" content="Kai Oswald Seidler, Kay Vogelgesang, Carsten Wiedmann"> <link href="xampp.css" rel="stylesheet" type="text/css"> <title> <...
package twitter4jads.models.ads.sort; public enum <API key> implements SortBy { // Ascending CREATED_AT_ASC("created_at-asc"), UPDATED_AT_ASC("updated_at-asc"), DELETED_ASC("deleteda-asc"), <API key>("<API key>"), START_TIME_ASC("start_time-asc"), END_TIME_ASC("end_time-asc"), // Descend...
var sls = require('./sls'); var projectName = "project_name1"; var listLogStores = function(fn) { sls.listLogStores({ projectName: projectName }, function (err, data) { console.log(' if(err) console.error('error:',err); else{ console.log(data); fn(data); ...
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;} audio,canvas,video{display:inline-block;} audio:not([controls]){display:none;height:0;} [hidden]{display:none;} html{font-family:sans-serif;-<API key>:100%;-ms-text-size-adjust:100%;} body{margin:0;} a:focus{outline:th...
require 'spec_helper' describe LinkShrink::JSONParser do include_examples 'shared_examples' describe '.parse_json' do it 'delegates to the JSON parser' do expect(link_shrink.parse_json(json_response)) .to eq(parsed_json) end end describe '.cleanup_json' do let(:json) { "{\n \"kind\": \"u...
/* * lourland * texture.c */ #include <GL/gl.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "texture.h" static void textureBind(unsigned int); void textureDraw(unsigned int id, int tw, int th, // Width & height of the texture int x, int y, // Position in the image to...
Phoenix [![Build Status](https: ================================= A high-level build system with refreshingly straightforward syntax, designed for flexibility and portability. Simple example Assuming the `src` directory contains the source code for a C++ "Hello, world!" program, the following `Phoenixfile.phnx` will te...
<title>header</title> <html> <body> <h5 style="background-color: #333;margin:0"><br></h5> <h1 style="Color:white; background-color: #333; text-align: center;margin:0"> Full Phonegap Computer Programming Course By Riley </h1> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; ...
<?php namespace Enjoy\TaskBundle\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 TreeBuild...
# -*- coding: utf-8 -*- # Purpose: Xing(pystock 0.0.4a code list import sqlite3 from pystock_xingAPI import * import pandas as pd from datetime import datetime import time from time import gmtime, strftime xing = Xing() if xing.open("demo.ebestsec.co.kr", 20001, 1, 1, "insuyu", "demo00", "") == False: print ('Conn...
class User < ActiveRecord::Base devise :<API key>, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable, :omniauth_providers => [:facebook] has_many :playlists belongs_to :current_playlist, :class_name => "Playlist" def <API key> new_playlist = playlists.create() ...
<nav> <div class="main-nav"> <a href="/exercise/"><i style="display:inline;" class="material-icons md-dark">arrow_back</i></a> <h1>{{ page.title }}</h1> </div> <!-- Assign active class accordingly --> <ul class="tabs"> <li {%if page.permalink == '/exercise/walking/' %} class="active" {...
package iso20022 // Choice of format for the rejection reason. type <API key> struct { // Specifies the reason why the instruction/request has a repair or rejection status. Code *<API key> `xml:"Cd"` // Specifies the reason why the instruction/request has a repair or rejection status. Proprietary *<API ...
<?php use Kirby\Toolkit\I18n; return [ 'extends' => 'text', 'props' => [ /** * Unset inherited props */ 'converter' => null, 'counter' => null, 'spellcheck' => null, /** * Sets the HTML5 autocomplete attribute */ 'autocomple...
package com.miraclewong.mwzhihudaily.view.ui.activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.widget.Button; import android.widget.LinearLayou...
<!DOCTYPE HTML> <html> <head> <title>Traveler - Rentals search results 4</title> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta name="keywords" content="Template, html, premium, themeforest" /> <meta name="description" content="Traveler - Premium template for travel companies">...
ld.service('TownApi', ['$resource', function($resource) { var TownApi = {}, api_home = "/api/town", artist_params, artist_url; artist_params = {artist_name: '@artist_name'}; artist_url = [api_home, 'artists/:artist_name/:fn'].join('/'); TownApi.Artist = $resource(artist_url, artist_params, { ...
#!/usr/bin/env python def get_db(db_name): from pymongo import MongoClient client = MongoClient('localhost:27017') db = client[db_name] return db def make_pipeline(): # complete the aggregation pipeline match = {"$match": {"created": {"$exists": 1}}} group = {"$group": {"_id": "$created.user...
from gensim import corpora, models, similarities import json import os # from cpython cimport PyCObject_AsVoidPtr # from scipy.linalg.blas import cblasfrom scipy.linalg.blas import cblas # ctypedef void (*saxpy_ptr) (const int *N, const float *alpha, const float *X, const int *incX, float *Y, const int *incY) nogil # c...
'use strict'; var mocha = require('mocha'); var chakram = require('chakram'); var request = chakram.request; var expect = chakram.expect; describe('tests for /v2.0/data/publications/{publicationid}', function () { describe('tests for get', function () { it('should respond 200 for "A list of publications."', funct...
""" Find the value function associated with a policy. Based on Sutton & Barto, 1998. Matthew Alger, 2015 matthew.alger@anu.edu.au """ import numpy as np def value(policy, n_states, <API key>, reward, discount, threshold=1e-2): """ Find the value function associated with a policy. policy:...
require 'spec_helper' require 'concerns/voteable_examples' describe Answer, type: :model do <API key> 'voteable' describe 'associations' do it { is_expected.to have_many(:comments) } it { is_expected.to belong_to(:question) } it { is_expected.to have_many(:timeline_events) } it { is_expected.to belo...
const EventEmitter = require('events').EventEmitter; const request = require('request'); const https = require('https'); const http = require('http'); const utils = require('./utils'); const url = require('url'); const oldRequestGet = request.get; const oldRequestPost = request.post; const oldHttpsRequest = https.reque...
using NUnit.Framework; [TestFixture] public class BinarySearchTest { [Test] public void <API key>() { var input = new int[0]; Assert.That(BinarySearch.Search(input, 6), Is.EqualTo(-1)); } [Test] public void <API key>() { var input = new[] { 6 }; Assert.That(Bi...
package com.ocdsoft.bacta.engine.service.scheduler; import com.google.inject.Inject; import com.google.inject.Singleton; import com.ocdsoft.bacta.engine.conf.BactaConfiguration; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.<API key>; import java.util.concurrent....
namespace ProjectWithSecurity.Areas.HelpPage.ModelDescriptions { public class <API key> { public string Documentation { get; set; } public string Name { get; set; } public string Value { get; set; } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css"> <title>Benjamin T. Skinner | University of Florida</title> </head> <b...
using ArtOfTest.WebAii.Controls.HtmlControls; using QA.UI.TestingFramework.Core; namespace QA.TelerikAcademy.Core.Base { public class <API key> : BaseElementMap { public readonly string UserNameExpression = "username".Class(); public HtmlSpan UserName { get { ...
Copyright (c) 2016 Dropbox, Inc. All rights reserved. Auto-generated by Stone, do not modify. #import <Foundation/Foundation.h> #import "<API key>.h" @class DBTEAMUserAddResult; @class <API key>; @class <API key>; <API key> #pragma mark - API Object The `UserAddResult` union. Result of trying to add secondary emails to...
export const barChart2 = {"viewBox":"0 0 24 24","children":[{"name":"line","attribs":{"x1":"18","y1":"20","x2":"18","y2":"10"},"children":[]},{"name":"line","attribs":{"x1":"12","y1":"20","x2":"12","y2":"4"},"children":[]},{"name":"line","attribs":{"x1":"6","y1":"20","x2":"6","y2":"14"},"children":[]}],"attribs":{"fill...
layout: post title: "Cloud Native Camel riding With JBoss Fuse and OpenShift" modified: categories: comments: true tags: [apache, camel, activemq, microservices, docker, kubernetes, openshift, cloud] image: feature: date: 2016-02-02T08:52:57-07:00 Red Hat [recently released a Microservices integration toolkit](https:...
module Workers class SetDefault include SideJob::Worker register( description: 'Sets the default value to the last value received or input default value', icon: 'clipboard', inports: { in: { type: 'all', description: 'Input data' }, }, outports: { ...
<footer class="space"><span>@2015 - {{ site.name}}</span></footer>
#pragma once class SyntaxTreeNode; class TokenStream; class SyntaxTree{ SyntaxTreeNode *rootNode; void expandEquivalence(SyntaxTreeNode &); void expandImplication(SyntaxTreeNode &); void resolveNegation(SyntaxTreeNode &); void <API key>(SyntaxTreeNode &); void expandEquivalences(); void expa...
require 'minitest_helper' describe AmazonMercantile::Request do before :all do stub_request(:any, /^https:\/\/mws\.amazonservices\.com/) end after :all do WebMock.reset! end let(:request) { AmazonMercantile::Request.new(:post, '/', action: :submit_feed, body: 'test') } describe '.new' do it { la...
/** * @file RoundRect2.hpp * @brief RoundRect2 class prototype. * @author zer0 * @date 2020-01-19 */ #ifndef <API key> #define <API key> // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #include <libtbag/config.h> #include <libtbag/predef.hpp> #in...
require 'open-uri' require 'net/http' require 'nokogiri' module CanHazPoster class PosterGrabber SERVICE_HOST = "http: SEARCH_PATH = "/search/?query=%{query}" MOVIE_PATH = "/movie/%{id}" def grab_poster(title, year) movie_url = parse_movie_url(<API key>(title), year) parse_poster_url(fetch...
import datetime import patroni.zookeeper import psycopg2 import subprocess import sys import time import unittest import yaml from mock import Mock, patch from patroni.api import RestApiServer from patroni.dcs import Cluster, Member, Leader from patroni.etcd import Etcd from patroni.exceptions import DCSError, Postgres...
CREATE PROCEDURE [dbo].[<API key>] ( @pRowCnt INT = 10, @pHTML NVARCHAR(MAX) OUTPUT ) AS BEGIN SET NOCOUNT ON; DECLARE @tOutput TABLE ( [SP Name] NVARCHAR(128), [Avg IO] BIGINT, [Execution Count] BIGINT, [Query Text] NVARCHAR(MAX) ); -- Lists the top statements by average input/output usage for ...
package com.blackcrowsys.canvas; public class CanvasFactory { /** * Creates a new Canvas object. Only console canvas supported. * * @param width the width of the canvas * @param height the height of the canvas * @return the instance of canvas */ public Canvas create(int width, int...
// <auto-generated> // This code was generated by CSGenerator. // </auto-generated> using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using DG.Tweening; using jsval = JSApi.jsval; public class <API key> { /////////////////// TweenParams ///////////////...
"use strict"; class gsuiTimeline extends HTMLElement { #status = "" #step = 1 #offset = null #scrollingAncestor = null #mousedownLoop = "" #onlyBigMeasures = false #mousedownDate = 0 #mousemoveBeat = 0 #mousedownBeat = 0 #mousedownLoopA = 0 #mousedownLoopB = 0 #dispatch =...
#PiOT 101: Introductory Workshop for the Raspberry Pi + Internet of Things This is a hub for the 101 tutuorial on learning how to get going on a Raspberry Pi and getting it connected to the Internet of Things. Here you will find code materials for the workshop sectioned in folders inside this repository. You will also ...
package com.data2semantics.yasgui.client.helpers; import java.io.IOException; import com.data2semantics.yasgui.client.View; import com.data2semantics.yasgui.client.settings.Settings; public class HistoryHelper { private View view; private String <API key> = ""; private boolean historyEnabled = false; pu...
<!DOCTYPE html> <html> <head> <title id="name1">Series Name</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script src="../../static/js/data.js"></script> <script src="../../static/js/entities.js"></script> <!-- Latest compiled and minified CSS --> ...
package org.vizzini.illyriad.robot.inventory; import java.io.File; import org.vizzini.illyriad.FileUtilities; /** * Provides location constants. */ public final class Locations { /** User directory. */ static final File USER_DIR; static { final FileUtilities fileUtils = new FileUtilities(); ...
import JsFile from 'JsFile'; import <API key> from './<API key>'; import <API key> from './<API key>'; const {Document} = JsFile; const {normalizeColorValue, errors: {invalidReadFile}} = JsFile.Engine; /** * @description Parsing content of document * @param params * @return {Object} * @private */ export default fu...
'use strict'; var ReactMdLite = { Badge: require('./components/Badge'), Button: require('./components/Button'), Card: require('./components/Card'), Grid: require('./components/Grid'), Icon: require('./components/Icon'), Menu: require('./components/Menu'), Progress: require('./components/Progress'), Slid...
<?php namespace Tebru\Retrofit\Cache; use Symfony\Component\Filesystem\Filesystem; use Tebru\Retrofit\Provider\<API key>; /** * Class CacheWriter * * @author Nate Brunette <n@tebru.net> */ class CacheWriter { /** * Retrofit cache directory name */ const RETROFIT_CACHE_DIR = 'retrofit'; /** ...
#ifndef _PHGT_H #define _PHGT_H #include "sim.h" /* * Function updates horizontal gene transfer probability in t step of given * bacterium * * Arguments: pointer to node struct to be modified * pointer to sim struct to access constants * * Returns: void * * Errors: -- */ void updatePH...
#include <limits> #include <stdexcept> #include <string> #include <iostream> #include <algorithm> #include <sstream> #include <fstream> #include "plot.h" #include "trashproblem.h" // TODO: sweepAssignment and initial construction routine // need to deal with TW violations and DONT YET // compute the distance betw...
[MyDeas](http://mydeas.co) was a project for Startup Weekend Thunder Bay 2015. It's built on Meteor. This repo was hosted on Meteor's free hosting, which unfortunately no longer exists, and a result, neither does this project.
// <API key>.h // StacMan #import <Foundation/Foundation.h> #import "StacManClient.h" #import "StacManResponse.h" #import "StacManDelegate.h" @class StacManClient; @interface <API key> : NSObject -(id)initWithClient:(StacManClient*)client; //getAll(String site, String filter, Integer page, Integer pagesize, Date from...
#! /bin/bash export BASEDIR=$PWD MODULE_TARGET=( \ asrdemo \ asrdemo_with_abnf \ iatdemo \ <API key> \ ttsdemo \ ttsdemo_with_number \ <API key>) for target in ${MODULE_TARGET[*]} do cd $BASEDIR/../Examples/$target ...
<!doctype html> <html> <head> <title>terminal.js tests</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="../node_modules/mocha/mocha.css" media="all"> <script src="../dist/terminal.dbg.js"></script> <script src="../node_modules/mocha/mocha.js"...
<?php $this->view('partials/head'); ?> <?php //Initialize models needed for the table new Machine_model; new Reportdata_model; ?> <div class="container"> <div class="row"> <div class="col-lg-12"> <h3><span data-i18n="machine.hardware_report"></span> <span id="total-count" class='label label-primary'>…...
#!/usr/bin/env ruby require 'triez' require 'fiber' class MarkovModel < Fiber def initialize(order) @order = order @model = Hash.new {|h, k| h[k] = Array.new } super() do loop do if (syllable = @model[@state.hash].sample) Fiber.yield syllable @stat...
// VST Plug-Ins SDK // VSTGUI: Graphical User Interface Framework for VST plugins // Version 4.2 // are permitted provided that the following conditions are met: // and/or other materials provided with the distribution. // * Neither the name of the Steinberg Media Technologies nor the names of its // contribu...
#include <iostream> #include <stdio.h> #include <vector> //using namespace std; int main() { char ch; int counter = 0; int max = 0; std::vector<char> inputtext; std::cout << "Enter text including '.' at the end of the text" << std::endl; int i = 0; do { ch = getchar(); in...
package org.georgie.web.error; public final class <API key> extends RuntimeException { public <API key>() { super(); } public <API key>(final String message, final Throwable cause) { super(message, cause); } public <API key>(final String message) { super(message);...
using System; using System.Collections.Generic; public static class AdventureDeck { public static List<Card> DeckOpponent; public static List<Card> DeckPlayer; public static List<Card> CollectionPlayer; static AdventureDeck() { DeckOpponent = new List<Card>(); DeckPlayer = new List<C...
'use strict'; import sharp from 'sharp'; import extend from 'xtend'; export let inputs = ['jpg', 'jpeg', 'png', 'webp', 'tif', 'tiff']; export let outputs = ['jpg', 'png', 'webp']; let options = { w: null, h: null, q: 80, // default `libvips` value fit: 'max', fm: 'jpg' }; function optimise(filename, opts) { ...
var CitationEditor = { addCitationTpl: function (params) { $("#citationContainer").append(Mustache.render($("#step3_tpl").html(), params)); }, newCitationField: function (raw) { var $tpl = $.parseHTML($("#step3_tpl").html().trim()); if (typeof raw !== "undefined") { $("in...
var http = require('http'); var bl = require('bl'); var url = process.argv[2]; http.get(url, function(request) { request.pipe(bl(function(err, data) { if (err) { return console.error(data); } data = data.toString(); console.log(data.length); console.log(data); })); });
#ifndef _FFCONF #define _FFCONF 4004 /* Revision ID */ #define _FS_TINY 0 /* 0:Normal or 1:Tiny */ /* When _FS_TINY is set to 1, FatFs uses the sector buffer in the file system / object instead of the sector buffer in the individual file object for file / data transfer. This reduces memory consumption...
msos.provide("msos.intl.az.latn.az"); msos.intl.az.latn.az = { name: "az-Latn-AZ", englishName: "Azeri (Latin, Azerbaijan)", nativeName: "Azərbaycan­ılı (Azərbaycan)", language: "az-Latn", numberFormat: { ",": " ", ".": ",", percent: { pattern: ["-n%","n%"], ...
<?php return [ 's3' => [ 'cdn' => [ 'url' => 'https://cdn.kennyl.download', 'logo' => [ 'svg' => '/logos/logo.svg', '256' => '/logos/256x256.png', '58' => '/logos/58x58.png' ] ] ], ];
/** * @module dom * @author lifesinger@gmail.com */ KISSY.add('dom', function(S, undefined) { S.DOM = { /** * element node */ _isElementNode: function(elem) { return nodeTypeIs(elem, 1); }, /** * KISSY.Node */ _isKSNode: ...
<div class='section'><div class='row'><div class='col-md-12'><a name='<API key>'></a><h3>function onClosed ()</h3></div><div class='col-md-12'>doc...</div></div></div><div class='section'><div class='row'><div class='col-md-12'><a name='<API key>'></a><h3>function createMainWindow ()</h3></div><div class='col-md-12'>do...
var through2 = require('through2') var syntaxError = require('syntax-error') var transform = require('./transform') var concatStream = require('concat-stream') var getCssyConfig = require('./utils').getCssyConfig module.exports = function (b, config) { if (Object.prototype.toString.call(config) !== '[object Object]')...
import _plotly_utils.basevalidators class <API key>(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="surfacecolor", parent_name="surface", **kwargs): super(<API key>, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_t...
// Generated by CoffeeScript 1.6.3 var _this = this; if (typeof define !== 'function' || !define.amd) { this.define = function(factory) { return _this.ribcage.utils.LocalStorage = factory(); }; } define(function() { var LocalStorage; return LocalStorage = (function() { function LocalStorage(debug) { ...