answer
stringlengths
15
1.25M
/** * Get a number suffix * e.g. 1 -> st * @param {int} i number to get suffix * @return suffix */ var getSuffix = function (i) { var j = i % 10, k = i % 100; if (j == 1 && k != 11) { return i + "st"; } if (j == 2 && k != 12) { return i + "nd"; } if (j == 3 && k != ...
# Minitest::Mock::Easily use MiniTest::Mock with easier API ## Installation Add this line to your application's Gemfile: gem '<API key>' And then execute: $ bundle Or install it yourself as: $ gem install <API key> ## Usage include MockEasily m = mock do expect :hello, 'hello' expect :world, 'world' end...
redirect_to: - http://tech.hbc.com/<API key>.html layout:: post title: Welcome Jonathan Leibiusky! date: '2013-10-04T15:24:00-04:00' tags: - Jonathan Leibiusky - Infrastructure Engineering - people - gilt tech - nyc - immutable deployment - xetorthio tumblr_url: http://tech.gilt.com/post/63102481375/<API key> <p><img a...
namespace CSharpGL { partial class FormPropertyGrid { <summary> Required designer variable. </summary> private System.ComponentModel.IContainer components = null; <summary> Clean up any resources being used. </summary> <param name="disposing">true ...
package net.pinemz.hm.gui; import net.pinemz.hm.R; import net.pinemz.hm.api.HmApi; import net.pinemz.hm.api.Prefecture; import net.pinemz.hm.api.<API key>; import net.pinemz.hm.storage.CommonSettings; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import andro...
'use strict'; const chai = require('chai'), expect = chai.expect, config = require('../config/config'), Support = require('./support'), dialect = Support.getTestDialect(), Sequelize = Support.Sequelize, fs = require('fs'), path = require('path'); if (dialect === 'sqlite') { var sqlite3 = require('sqlite...
package uk.jamierocks.zinc.example; import com.google.common.collect.Lists; import org.spongepowered.api.command.CommandResult; import org.spongepowered.api.command.CommandSource; import org.spongepowered.api.command.args.CommandArgs; import org.spongepowered.api.text.Text; import uk.jamierocks.zinc.Command; import uk....
import * as strings from 'vs/base/common/strings'; import { Position } from 'vs/editor/common/core/position'; import { Range } from 'vs/editor/common/core/range'; import { ApplyEditsResult, EndOfLinePreference, FindMatch, <API key>, <API key>, ITextBuffer, ITextSnapshot, <API key>, IValidEditOperation } from 'vs/editor...
// Template Source: <API key>.java.tt package com.microsoft.graph.requests; import com.microsoft.graph.models.<API key>; import com.microsoft.graph.requests.<API key>; import javax.annotation.Nullable; import javax.annotation.Nonnull; import com.microsoft.graph.requests.<API key>; import com.microsoft.graph.http.BaseCo...
#import <iWorkImport/TSUProgress.h> @class NSArray, NSObject<OS_dispatch_queue>; // Not exported @interface TSUProgressGroup : TSUProgress { NSArray *mChildren; NSArray *<API key>; NSObject<OS_dispatch_queue> *<API key>; } - (void)<API key>; - (void)<API key>:(id)arg1; - (id)<API key>:(double)arg1 queue:(id...
Dockermail - Email Core ======= This image provides a secure, minimal mail server based on 'postfix' and 'dovecot'. All incoming mail to your domains is accepted. For outgoing mail, only authenticated (logged in with username and password) clients can send messages via STARTTLS. ## Setup You will need 2 folder on your ...
/** @file safesysstat.h * @brief #include <sys/stat.h> with portability enhancements */ #ifndef <API key> #define <API key> #include <sys/stat.h> #include <sys/types.h> #ifdef __WIN32__ // MSVC lacks these POSIX macros and other compilers may too: #ifndef S_ISDIR # define S_ISDIR(ST_MODE) (((ST_MODE) & _S_IFMT) == _S...
// Script by Bo Tranberg // This script requires jQuery and jQuery UI $(function() { // Inser html for dialog just before the button to open it var butt = document.getElementById('citations'); butt.insertAdjacentHTML('beforeBegin', '\ <div id="dialog" ...
{% extends "base.html" %} {% block content %} <h1>{{ question.question_text }}</h1> {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} <form action="{% url 'polls:vote' question.id %}" method="post"> {% csrf_token %} {% for choice in question.choice_set.all %} <input type="radio" name="cho...
package io.github.ageofwar.telejam.updates; import io.github.ageofwar.telejam.Bot; import io.github.ageofwar.telejam.TelegramException; import io.github.ageofwar.telejam.methods.GetUpdates; import java.io.IOException; import java.util.Collections; import java.util.Objects; import java.util.concurrent.<API key>; import ...
@import url("//fonts.googleapis.com/css?family=News+Cycle:400,700"); 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], template { dis...
Copyright 2013 Romens Team http://romens.ru/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
#include <gtest/gtest.h> #include "loquat/misc/binary_search.hpp" TEST(BinarySearchTest, Integer){ for(int l = -16; l <= 16; ++l){ for(int r = l; r <= 16; ++r){ for(int expect = l; expect <= r; ++expect){ const auto actual = loquat::binary_search( l, r, [=](in...
""" ``editquality generate_make -h`` :: Code-generate Makefile from template and configuration :Usage: generate_make -h | --help generate_make [--config=<path>] [--main=<filename>] [--output=<path>] [--templates=...
#include "config.h" #include <math.h> #include <stdlib.h> #include "AL/al.h" #include "AL/alc.h" #include "alMain.h" #include "alAuxEffectSlot.h" #include "alEffect.h" #include "alError.h" #include "alu.h" typedef struct DelayLine { // The delay lines use sample lengths that are powers of 2 to allow // bitmaski...
# baites.github.io # Installation * Cloning and creating docker image **NOTE**: This installation requires installed docker server. bash $ git clone git clone https://github.com/baites/baites.github.io.git $ cd baites.github.io $ docker build -t jekyll -f jekyll.dockerfile . Successfully tagged jekyll:latest * Creating...
# 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. from msrest.serialization import Model class Product(Model): _required = [] _attribute_map = { 'integer': {'key': 'integer', 'type': 'int'}, ...
// # Ghost Configuration // Setup your Ghost install for various environments var path = require('path'), config; config = { // ### Production // When running Ghost in the wild, use the production environment // Configure your URL and mail settings here production: { url: 'http://my-ghost-bl...
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const blink = keyframes` from, to { opacity: 1; } 50% { opacity: 0; } `; const CursorSpan = styled.span` font-weight: 100; color: black; font-size: 1em; padding-left: 2px; anim...
#include <type_traits> template <typename T> using void_t = std::conditional_t<true, void, T>; // sample(common_type-N3843) template <typename T, typename U> using builtin_common_t = std::decay_t<decltype( true ? std::declval<T>() : std::declval<U>() )>; template <typename, typename ...> struct ct { }; template <type...
package <API key>; import common.ListNode; public class <API key> { public class Solution { public ListNode deleteDuplicates(ListNode head) { if (head != null) { ListNode pre = head; ListNode p = pre.next; while (p != null) { if...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; namespace Umbraco.Core.Models.EntityBase { <summary> A base class for use to implement IRememberBeingDirty/ICanBeDirty </summary> public abstract class <API key> : IRememberBeingDirty...
# coding=utf8 """ Parser for todo format string. from todo.parser import parser parser.parse(string) # return an Todo instance """ from models import Task from models import Todo from ply import lex from ply import yacc class TodoLexer(object): """ Lexer for Todo format string. Tokens ID e...
var test = require('tape'); var BSFS = require('../lib/bsfs'); indexedDB.deleteDatabase('bsfs-tests'); function randomId () { return Math.random().toString(36).substr(2) } test('bsfs exists', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else pr...
title: A List of the White Rabbit Mechanics We Are Considering author: all date: 15/01/11 tags: [concept, summary, gamemechanics, whiterabbit] layout: post The white rabbit. Here is a list of some of the rabbits we could pull out of our designer's magical top hat. ## Cooperative Rope Walking Summary One scenario is whi...
#include "stateengine/AtomicState.h" #include "stateengine/Defines.h" // TAtomicState namespace donut { typedef void (*TUpdaterFunction)(const TStateEngineId&, double); typedef void (*TStateCallBack)(const TStateEngineId&, TStateData *); TAtomicState::TAtomicState(TStateEngineId parStateEngineId, TStateId ...
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Secur...
<?php namespace Symfony\Component\DependencyInjection\Dumper; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Parameter; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInje...
'use strict'; angular.module('mean.system').directive('googleMaps', ['GoogleMaps', 'Global', function(GoogleMaps, Global) { return { restrict: 'E', template: '<div id="map" style="height: 600px; width: 100%;"></div>', controller: function() { var mapOptions; if ( GoogleMaps ) { ...
#!/bin/sh set -e NEEDS_CONFIG=0 if [ "$#" -lt "1" ]; then echo "Bad usage: check_reconf.sh [target_package] (optional configure arguments)" exit 1 fi if [ "$ONYX_ARCH" = "" ]; then echo "ONYX_ARCH needs to be set!" exit 1 fi if [ "$HOST" = "" ]; then echo "HOST needs to be set!" exit 1 fi if [ "...
<?php namespace PxS\PeerReviewingBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->assertTrue($cra...
// URBSegmentedControl.h // <API key> #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, <API key>) { <API key> = 0, <API key> }; typedef NS_ENUM(NSUInteger, <API key>) { <API key> = 0, <API key> }; typedef NS_ENUM(NSUInteger, <API key>) { <API key> = 0, <API key> }; @interface URBSegmentedCo...
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace WinFormsApp.Properties { [global::System.Runtime.CompilerServices.<API key>()] [global::System.CodeDom.Compile...
import { Component, OnInit, HostListener, ElementRef } from '@angular/core'; import { Router, NavigationEnd, NavigationExtras } from '@angular/router'; import { AuthService } from '../../services/auth.service'; @Component({ selector: 'app-nav', templateUrl: 'app-nav.component.html' }) export class AppNavComponent i...
#include "walletview.h" #include "addressbookpage.h" #include "askpassphrasedialog.h" #include "bitcoingui.h" #include "clientmodel.h" #include "guiutil.h" #include "optionsmodel.h" #include "overviewpage.h" #include "receivecoinsdialog.h" #include "sendcoinsdialog.h" #include "<API key>.h" #include "<API key>.h" #incl...
<?php return array ( 'id' => '<API key>', 'fallback' => 'generic_dolfin', 'capabilities' => array ( 'pointing_method' => 'touchscreen', '<API key>' => '1.0', 'uaprof' => 'http://wap.samsungmobile.com/uaprof/GT-M5650.rdf', 'model_name' => 'GT M5650', 'brand_name' => 'Samsung', 'marketing_...
<?php class <API key> { public $image; public $image_type; public function __construct($filename = null) { if (!empty($filename)) { $this->load($filename); } } public function load($filename) { $image_info = getimagesize($filename); $this->image_type = $im...
# == Schema Information # Table name: accounts # id :integer not null, primary key # type :string default("Account"), not null # description :string default(""), not null # currency :string default("USD"), not ...
package illume.analysis; import java.awt.image.BufferedImage; /* This simple analyser example averages pixel values. */ public class SimpleImageAnalyser<T extends BufferedImage> extends <API key><T> { @Override public double analyse(T input) { int sum_r = 0; int sum_g = 0; int sum_b = 0;...
import { ExtraGlamorousProps } from './glamorous-component' import { ViewProperties, TextStyle, ViewStyle, ImageStyle, TextInputProperties, ImageProperties, ScrollViewProps, TextProperties, <API key>, <API key>, <API key>, <API key>, FlatListProperties, <API key> } from 'react-native' export...
var express = require('../') , Router = express.Router , request = require('./support/http') , methods = require('methods') , assert = require('assert'); describe('Router', function(){ var router, app; beforeEach(function(){ router = new Router; app = express(); }) describe('.match(method, url, ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><API key> example</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../bower_components/slickgrid/slick.grid.css" type="text/css" /> <link rel="stylesheet" href="../bower_component...
using Foundation; using System; using System.Linq; using UIKit; namespace UICatalog { public partial class <API key> : <API key>, <API key> { private const string CellIdentifier = "searchResultsCell"; private readonly string[] allItems = { "Here's", "to", "the", "crazy", "one...
// AppDelegate.h // DecoratorPattern #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <<API key>> @property (strong, nonatomic) UIWindow *window; @end
<?php namespace Cubiche\Core\EventDispatcher; use Cubiche\Core\Bus\MessageInterface; interface EventInterface extends MessageInterface { /** * Stop event propagation. * * @return $this */ public function stopPropagation(); /** * Check whether propagation was stopped. * * @...
<?php namespace Kordy\Ticketit\Controllers; use App\Http\Controllers\Controller; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Kordy\Ticketit\Models\Agent; use Kordy\Ticketit\Models\Setting; use Kordy\Ticket...
<!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.11"/> <title>V8 API Reference Guide for node.js v7.2.1: v8::Maybe&lt; T &gt; Class Template Reference</t...
package com.covoex.qarvox; import com.covoex.qarvox.Application.BasicFunction; /** * @author Myeongjun Kim */ public class Main { public static void main(String[] args) { BasicFunction.programStart(); } }
<?php /* Safe sample input : get the field UserData from the variable $_POST sanitize : use of ternary condition construction : concatenation with simple quote */ $tainted = $_POST['UserData']; $tainted = $tainted == 'safe1' ? 'safe1' : 'safe2'; $var = http_redirect("pages/'". $tainted . "'.php"); ?>
import {Curve} from '../curve' export class Line extends Curve { constructor(p0, v) { super(); this.p0 = p0; this.v = v; this._pointsCache = new Map(); } intersectSurface(surface) { if (surface.isPlane) { const s0 = surface.normal.multiply(surface.w); return surface.normal.dot(s0.m...
# 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::Network::Mgmt::V2019_11_01 module Models # Properties of the Radius client root certificate of # <API key>. class <API key> ...
<?php // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); ?> <fieldset> <legend> <?php echo '<span class="userfields_info">' .vmText::_('<API key>').'</span>'; ?> </legend> <?php echo $this->lists['shipTo']; ?> </fieldset>
#include "TString.h" #include "TGraph.h" #include "TGraphErrors.h" #include "TGraphAsymmErrors.h" #include <fstream> #include <Riostream.h> #include <sstream> #include <fstream> using namespace std; TGraphErrors* <API key>(TString txtFileName, Color_t markerColor=1, Style_t markerStyle=20, Size_t markerSize=1, Style_t ...
<?php // Documentation test config file for "Components / Jumbotron" part return [ 'title' => 'Jumbotron', 'url' => '%bootstrap-url%/components/jumbotron/', 'rendering' => function (\Laminas\View\Renderer\PhpRenderer $oView) { echo $oView->jumbotron([ 'title' => 'Hello, world!', ...
import time import pymemcache.client import pytest from limits import <API key>, <API key> from limits.storage import MemcachedStorage, storage_from_string from limits.strategies import ( <API key>, <API key>, ) from tests.utils import fixed_start @pytest.mark.memcached @pytest.mark.flaky class <API key>: @...
<?php namespace Tutorial\ToDoListBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; class <API key> extends Extension { /**...
import os import sys import tempfile from fabric.api import run, sudo, env, local, hide, settings from fabric.contrib.files import append, sed, exists, contains from fabric.context_managers import prefix from fabric.operations import get, put from fabric.context_managers import cd from fabric.tasks import Task from fab...
#!/bin/sh # CYBERWATCH SAS - 2017 # Security fix for DSA-3345-1 # Operating System: Debian 8 (Jessie) # Architecture: x86_64 # - iceweasel:38.2.1esr-1~deb8u1 # Last versions recommanded by security team: # - iceweasel:38.8.0esr-1~deb8u1 # CVE List: # - CVE-2015-4497 # - CVE-2015-4498 # More details: sudo apt-ge...
package mockit.external.asm4; import java.lang.reflect.Constructor; import java.lang.reflect.Method; /** * A Java field or method type. This class can be used to make it easier to * manipulate type and method descriptors. * * @author Eric Bruneton * @author Chris Nokleberg */ public class Type { /** * Th...
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("<API key>", "ibtokin.settings") try: from django.core.management import <API key> except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that...
<table class="table table-striped table-bordered table-hover"> <tr> <th>Student Id</th> <th>Student Name</th> <th>Course</th> <! <select class="form-control" name='Year Level' required> <option> THIRD YEAR</option> <option> ALL</option> ...
package org.eclipse.bpel4chor.model.pbd; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Query</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.eclipse.bpel4chor.model.pbd.Query#getQueryLanguage <em>Query Language</em>}</li...
// <API key>.h // SessionMEventsKit #ifndef <API key> #define <API key> #import "SMEventBuilder.h" #import "SMActivityEvent.h" <API key> /*! @class <API key> @abstract Class used for building <code>SMActivityEvent</code> objects that represent a basic activity event performed by the user to make progress towards co...
import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JTextPane; import java.awt.SystemColor; /** * The GUIError object is used to show an error...
import { GraphQLError } from '../../error/GraphQLError'; import type { <API key>, SchemaExtensionNode, } from '../../language/ast'; import type { ASTVisitor } from '../../language/visitor'; import type { <API key> } from '../ValidationContext'; /** * Unique operation types * * A GraphQL document is only valid if...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace Podcasts.Converters { public class <API key> : TypedConverter<TimeSpan?, string> { public override string Convert(TimeSpan? dur...
include(Util) once() include (Plugins) if (ANDROID) set (Android_List_dir ${<API key>}) if (NOT ANDROID_SDK) MESSAGE(SEND_ERROR "No ANDROID_SDK location provided!") endif() MESSAGE(STATUS "Targeting Android-SDK version: ${<API key>}") file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/gradle) if (C...
// JJProductCell.h // Footprints #import <UIKit/UIKit.h> typedef void(^ExchangeBlock)(GiftProductModel *model); @interface JJProductCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIView *realCotent; @property (weak, nonatomic) IBOutlet UILabel *nameLabel; @property (weak, nonatomic) IBOutlet UILabel *jif...
import ApiClient from '../ApiClient'; import <API key> from './<API key>'; /** * The PipelineRunNode model module. * @module model/PipelineRunNode * @version 1.1.2-pre.0 */ class PipelineRunNode { /** * Constructs a new <code>PipelineRunNode</code>. * @alias module:model/PipelineRunNode */ co...
package com.lamost.update; import java.io.IOException; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.<API key>; import org.ksoap2.transport.HttpTransportSE; import org.xmlpull.v1.<API key>; import android.util.Log; public class UpdateWebService { private...
<?php namespace gries\Pokemath\Numbers; use gries\Pokemath\PokeNumber; class Mienshao extends PokeNumber { public function __construct() { parent::__construct('mienshao'); } }
Blog Powered by Jekyll | Theme H2O
<API key> ====================== a minimal eclipse rcp example for integrating caleydo gl elements into a view
<?php namespace Recurly\Resources; use Recurly\RecurlyResource; // phpcs:disable class ShippingMethodMini extends RecurlyResource { private $_code; private $_id; private $_name; private $_object; protected static $array_hints = [ ]; /** * Getter method for the code attribute. * The i...
<!-- content start --> <div class="admin-content" style="min-height:450px"> <div class="am-cf am-padding"> <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg"></strong></div> </div> <div class="am-g"> <div class="am-u-sm-12 am-u-md-6">&nbsp;</div> <form method="post" act...
class Client { constructor(http_client){ this.http_client = http_client this.method_list = [] } xyz() { return this.http_client } } function chainable_client () { HttpClient = require('./http_client.js') http_client = new HttpClient(arguments[0]) chainable_method = re...
<div class="<API key>" id="<API key>"><br/><div style="border:solid 1px #DEDEDE;background:#E2E0E0; color:#222222;padding:4px;">Check if a template has related data</div><br/><br/><span style="color:#EA33A6">Arguments</span><br/><span style="font-size:80%"><b>id</b> (Required)<br/>        The te...
<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>...
import boto import mock import moto import tempfile import unittest from click.testing import CliRunner from rubberjackcli.click import rubberjack class CLITests(unittest.TestCase): @moto.mock_s3_deprecated @mock.patch('boto.beanstalk.layer1.Layer1.<API key>') @mock.patch('boto.beanstalk.layer1.Layer1.updat...
# Flask based simple API char-rnn from https://github.com/sherjilozair/char-rnn-tensorflow. ## Launch Server in Heroku * Run heroku create and push to heroku: bash cd poem-bot heroku create git push heroku master * Alternatively, click the button below: [![Deploy](https:
require 'spec_helper' describe Blockhead::Extractors::Value, '#valid?' do it 'returns true' do extractor = Blockhead::Extractors::Value.new('test', nil, nil) expect(extractor).to be_valid end end describe Blockhead::Extractors::Value, '#extract_value' do it 'returns @value unmolested' do extractor = B...
<?php class UploadHandler { protected $options; // PHP File Upload error message codes: protected $error_messages = array( 1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini', 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>class RubyXL::VectorValue - rubyXL 3.4.21</title> <script type="text/javascript"> var rdoc_rel_prefix = "../"; var index_rel_prefix = "../"; </script> <script src="../js/navigation.js" defer></script> <script src="../js/search.js" defer></script> <script s...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.<API key>(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de...
require File.expand_path('../../spec_helper', __FILE__) module Pod describe Command::Search do extend SpecHelper::TemporaryRepos describe 'Search' do it 'registers it self' do Command.parse(%w{ search }).should.be.instance_of Command::Search end it 'runs with correct parameters' do ...
from __future__ import absolute_import, division, print_function # note: py.io capture tests where copied from # pylib 1.4.20.dev2 (rev 13d9af95547e) from __future__ import with_statement import pickle import os import sys from io import <API key> import _pytest._code import py import pytest import contextlib from _pyt...
package cn.winxo.gank.module.view; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.util.Log; import ...
<?php /** * Converts phone numbers to the formatting standard * * @param String $num A unformatted phone number * @return String Returns the formatted phone number */ function formatPhone($num) { $num = preg_replace('/[^0-9]/', '', $num); $len = strlen($num); if($len == 7) $num = preg_replace('/([0-9]{3})([0-9...
package br.com.swconsultoria.nfe.schema.retEnvEpec; import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.adapters.<API key>; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TEvento", namespace = "http: "infEvento", "sig...
<?php /** <API key> */ // require_once 'Zend/Form/Element/Select.php'; class <API key> extends <API key> { /** * 'multiple' attribute * @var string */ public $multiple = 'multiple'; /** * Use formSelect view helper by default * @var string */ public $helper = 'formSelect'; ...
\documentclass[12pt,a4paper,openany,oneside]{book} \input{thesis-setting} % \usepackage{blindtext} \title{\textsf{}} \author{{\kai }} \date{May 20, 20xx} \begin{document} \sloppy \pagenumbering{Roman} % \frontmatter \input{cover.tex} \setcounter{page}{1} \renewcommand{\baselinestretch}{1.25} % \include{preface/c_abstra...
.work { min-height: 520px; } .work > div > p { margin-bottom: 5px; }
package com.azure.ai.formrecognizer.administration; import com.azure.ai.formrecognizer.administration.models.AccountProperties; import com.azure.ai.formrecognizer.administration.models.BuildModelOptions; import com.azure.ai.formrecognizer.administration.models.CopyAuthorization; import com.azure.ai.formrecognizer.admin...
package com.highmaps.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript name: <code>series&lt;variwide&gt;-states-normal</code> */ @js.annotation.ScalaJSDefined class <API key> extends com.highcharts.<API key> { val animation: js.Und...
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Windows.Forms; namespace <API key> { public partial class MyTreeView : TreeView { public MyTreeView() : base() { } private List<MyTreeView> linkedTreeViews = new List<MyTreeView>();...