answer
stringlengths
15
1.25M
/* Basic */ body, input, select, textarea { font-size: 13pt; line-height: 1.75em; letter-spacing: 0.025em; } body { min-width: 1200px; } hr { margin: 2em 0 2em 0; } sec...
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=3"> <link rel="stylesheet" type="text/css" href="lib/aos/aos.css"> <link rel="stylesheet" type="text/css" href="css/common.css"> <title>Fa...
package utils; import com.github.lalyos.jfiglet.FigletFont; import function.external.base.DataManager; import global.Data; import java.io.*; import java.util.Date; import java.util.Properties; import java.util.concurrent.TimeUnit; /** * * @author nick */ public class LogManager { private static BufferedWriter us...
package com.example.ericliu.playdagger2; import android.app.Application; import android.test.ApplicationTestCase; public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
using System; using Cosmos.Logging.Core.Components; using Cosmos.Logging.Events; using Cosmos.Logging.Extensions.EntityFrameworkCore.Core; using EnumsNET; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyI...
using SlimDX.Direct3D9; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Litmus { public class <API key> : Form, ILitmus { private readonly IColorHelper _colorHelper; pr...
RightJS.Element.include({ appendTo: function(target) { return this.insertTo(target); }, prepend: function(content) { return this.insert(content, 'top'); }, before: function(content) { return this.insert(content, 'before'); }, after: function(content) { return this.insert(content, 'after');...
from flask import Flask, request, abort import json from ReverseProxied import ReverseProxied app = Flask(__name__) app.wsgi_app = ReverseProxied(app.wsgi_app) with open("intervals.json") as b: data = json.load(b) def intersects(interval, min_age, max_age): if interval["lag"] <= min_age <= interval["eag"]: ...
# Merging Documents This advanced topic guide is waiting for more usage experience in order to get a handle on recommended practices. The basic idea of a merged document is that a page view will include one or more lookup results that can are useful to forms generated from the page. In order for the form to access the...
require 'spec_helper' require 'ghundle/command/install' module Ghundle module Command describe Install do let(:instance) { Install.new } before :each do FileUtils.mkdir_p '.git/hooks' end it "creates a git hook file if one does not exist" do create_script(hook_path('foo')) ...
<?php class Config { // DBTRUE // FALSE const USE_DATABASE = FALSE; private static $dataMethods; // OAuth private static $OAuth; private static $baseConfigs; public static function init(){ self::defineInfo(); self::requireFiles(); self::$dataMethods = new DataMeth...
.PHONY: infra plan apply tf-apply clean mrproper destroy help .DEFAULT_GOAL := help AWS_PROFILE ?= default NOW := $(shell date +"%Y%m%d-%H%M%S") RESOURCES := terraform TF_VARS ?= $(RESOURCES)/terraform.tfvars PLAN := plan.out export AWS_PROFILE infra: plan apply ## Do whatever's needed to bring the...
<!DOCTYPE html> <html> <head> <title>Membuat login dengan codeigniter </title> </head> <body> <h1>Login berhasil !</h1> <h2>Hai, <?php echo $this->session->userdata("nama"); ?></h2> <a href="<?php echo base_url('user_login/logout'); ?>">Logout</a> </body> </html>
ProcessTracking::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for th...
//| MachOKit - A Lightweight Mach-O Parsing Library //! @file data_model.h //! @author D.V. //| copy of this software and associated documentation files (the "Software"), //| to deal in the Software without restriction, including without limitation //| and/or sell copies of the Software, and to pe...
#include <globjects/VertexArray.h> #include <cassert> #include <glbinding/gl/functions.h> #include <glbinding/gl/enum.h> #include <globjects/<API key>.h> #include "registry/<API key>.h" #include "implementations/<API key>.h" #include "base/container_helpers.h" #include "registry/ObjectRegistry.h" #include <globjects/Re...
import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactPage'; import LoginPage from './components/LoginPage'; import RegisterPage ...
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdire...
<?php namespace Ipunkt\LaravelNotify; use Config; use Illuminate\Auth\UserInterface; use Illuminate\Support\Collection; use Ipunkt\LaravelNotify\Contracts\<API key>; use Ipunkt\LaravelNotify\Exceptions\<API key>; use Ipunkt\LaravelNotify\Models\Notification; use Ipunkt\LaravelNotify\Models\<API key>; use Ipunkt\Laravel...
// Get the modal var modal = document.getElementById('myModal'); // Get the button that opens the modal var btn = document.getElementById("myBtn"); // Get the <span> element that closes the modal var span = document.<API key>("close")[0]; // When the user clicks on the button, open the modal btn.onclick = function() { ...
package com.aol.spring.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.<API key>; import org.springframework.context.ApplicationContext; import java.util.Arrays; @<API key> public class <API key> { public static void main(String[] args) { ApplicationCon...
<div class="container-fluid"> Total Users registered: <span ng-bind="userCount"></span> * 100 = {{userCount * 100}} (Total Price Money)<br><br> Search: <input type="search" class="form-control" style="width: 140px; display: inline" ng-model="query"><br> <div style="height:525px; width: 380px; overflow:auto;...
package calculate; import java.util.ArrayList; public class EdgeList{ private ArrayList<Edge> edgeList = new ArrayList<>(); public EdgeList(){ } public synchronized ArrayList<Edge> getEdgeList() { boolean valueSet = true; while (!valueSet){ try { wait(); ...
<script> jQuery(document).ready(function ($) { var options = { $AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false $AutoPlaySteps: 4, ...
import random import time from Pyro5.api import expose, Daemon, locate_ns @expose class StockMarket(object): def __init__(self, marketname, symbols): self._name = marketname self._symbols = symbols def quotes(self): while True: symbol = random.choice(self.symbols) ...
# @Last Modified time: 2018-01-29 14:24:25 module Parameter require_relative '../string/string' # Parameter repository storing the valid parameter of the script. # {#initialize} gets the provided parameters and fills a hash which # grants access on the provided parameters and their arguments class ParameterRe...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE struct $_TypeDescriptor$_extraBytes_176 { const void *pVFTable; void *spare; char name[176]; }; END_ATF_NAMESPACE
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebSite.Services { public interface ISmsSender { Task SendSmsAsync(string number, string message); } }
<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="layoutclass_pic"><div class="<API key>"><table class="ztable"><tr><th class="ztd1"><b>&nbsp;</b></...
import sys def ruler_algorithm(n1, n2): """ Ruler Algorithm yani Cetvel Algoritmasi. Verilen aralik ikiye bolundugunde her alt parca da devamli olarak ikiye bolunmekte. Alt parcalarin uzunlugu onceden verilen degere erisinceye kadar devam edilir. """ dot = (n1+n2)/2 if abs((n2-n1)) < 2: ...
#include "ros/ros.h" #include <termios.h> #include <ecl/threads.hpp> #include <std_msgs/UInt8.h> #include <sstream> bool quit_requested; int key_file_descriptor; struct termios <API key>; ecl::Thread thread; ecl::Mutex key_mutex; char key_getch_data; int key_new; void Key_InputLoop( void ); int mai...
<?php App::uses('Edexml', 'Edexml.Model'); class TestEdexml extends Edexml { public function schoolClasses($schoolClasses) { $this->_schoolClasses = $schoolClasses; } /** * Test double of `parent::_convertKey`. * */ public function convertKey($key) { return $this->_convertKey($key); }...
#include <ctime> #include "../net/client.h" #include "../util/util.h" #include "account.h" namespace twitpp { namespace oauth { account::account(const std::string& ck, const std::string& cs, const std::string& ot, const std::string& os) : consumer_key_(ck), consumer_secret_(cs), oauth_token_(ot), oauth_token_secret...
import {PutIoHelper} from '../helpers/PutIoHelper'; export class Events extends PutIoHelper { public getEventsList(): Promise<string> { return this.requestData('GET', 'events/list', []); } }
import { Config } from '@pnpm/config' import defaultReporter from '@pnpm/default-reporter' import { LogLevel, streamParser, writeToConsole } from '@pnpm/logger' import silentReporter from './silentReporter' export type ReporterType = 'default' | 'ndjson' | 'silent' | 'append-only' export default ( reporterType: Repor...
module Resque module Plugins module RestashLogger # Executed on the Resque worker def <API key>(*args) @resque_job_uuid = SecureRandom.uuid @job_start_time = Time.now log 'Executing', args, :debug end def <API key>(*args) @job_end_time = Time.now log...
function $img(src) { var m = new Image(); m.src = src; return m; } if (top == window) { qwp.loadingImg = $img('img/loading_small.gif'); } if (typeof String.prototype.format != 'function') { String.prototype.format = function() { var s = this; if (arguments.length === 0) return s; ...
import _ from 'lodash'; import React, { Component } from 'react'; import { View, Text, Image } from 'react-native'; import { connect } from 'react-redux'; import { clearLikedJobs } from '../actions'; import FBLoginView from '../components/FBLoginView'; import {FBLogin, FBLoginManager} from '<API key>'; import { AsyncS...
define(function () { // matches polyfill this.Element && function(ElementPrototype) { ElementPrototype.matches = ElementPrototype.matches || ElementPrototype.matchesSelector || ElementPrototype.<API key> || ElementPrototype.msMatchesSelector || function(selector) { ...
using System; using System.Collections.Generic; using WhetStone.SystemExtensions; namespace WhetStone.Comparison { <summary> A comparer that maps a value from one type to another, for either equality comparison or order comparison. </summary> <typeparam name="T">The original type to be compared.</typepa...
<!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.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>psl1ght: _camera_info...
'use strict'; const nami = require('nami'); const post = require('../../../lib/post'); const optsComm = require('../../../cfg/commonOpts/post'); module.exports.desc = 'Get SIP registry info.'; module.exports.opts = optsComm; module.exports.impl = (opts = {}) => { const optsParsed = opts; optsParsed.proto = 'ami'; ...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Models\Club; use App\Models\User; use Faker\Generator as Faker; use Illuminate\Support\Str; $factory->define(Club::class, function (Faker $faker) { $faker->addProvider(new FakerSchoolId($faker)); return [ 'leader_id' => function ()...
import {Response} from 'ember-cli-mirage'; import {dasherize} from '@ember/string'; import {isBlank} from '@ember/utils'; import {paginateModelArray} from '../utils'; export default function mockPosts(server) { server.post('/posts', function ({posts}) { let attrs = this.<API key>(); // mirage expect...
import angular from 'angular'; // angular modules import constants from './constants'; import onConfig from './on_config'; import onRun from './on_run'; //import 'angular-bootstrap'; import 'angular-resource'; import 'angular-route'; import 'angular-morris'; import 'angular-cookies'; import 'angular-messages'; imp...
var body = document.querySelector('body'), qunitEl = document.createElement('div'), qunitFixtEl = document.createElement('div'); qunitEl.id = 'qunit'; qunitFixtEl.id = 'qunit-fixture'; body.appendChild(qunitEl); body.appendChild(qunitFixtEl); /* $('body').append( '<div id="qunit"></div>' + '<div id="qun...
<?php /** * @package WordPress * @subpackage Cleanfrog */ ?> <div id="sidebar"> <ul> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> <li id="archives" class="widget"> <h2 class="widgettitle"><?php _e( 'Archives', 'cleanfrog' ); ?></h2> <ul> ...
require 'generators/oauth_inflections' class O<API key> < Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) argument :name, :type => :string, :default => 'Oauth' desc 'This creates an OAuth Provider controller as well as the requisite models.' hook_for :orm def <API key> ...
# <API key>: true # == Schema Information # Table name: plugins_surveys # id :integer not null, primary key # active :boolean default(FALSE) # auto_advance :boolean default(TRUE) # ref :string # created_at :datetime # updated_at :datetime # page_id :in...
// Package options provides ways to extract the task-related options from a Flux script. package options import ( "context" "errors" "fmt" "strings" "time" "github.com/influxdata/cron" "github.com/influxdata/flux" "github.com/influxdata/flux/ast" "github.com/influxdata/flux/ast/edit"...
package com.swfarm.biz.chain.dto; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.Iterator; import java.util.List; import org.apache.commons.lang.StringUtils; import com.swfarm.pub.framework.OrderItem; import com...
'use strict'; let async = require('./../utils/async'); let errors = require('./../utils/errors'); let fs = require('./promisedFs'); let path = require('path'); let patternUtils = require('./../testing/patterns'); /** * @param {Object} settings * @returns {Array.<String>} all found test files */ exports.findAll = fun...
# xiongmai-cam-api Xiongmai IP Camera Simple API in Python. Ported from @667bdrm's Gist (Perl script at https://gist.github.com/667bdrm/<API key>).
#include "Arduino.h" #include "vmgps.h" #include "vmlog.h" #include "GPS.h" #include "LGPS.h" typedef void (*vm_gps_handler_t)(<API key>* info); vm_gps_handler_t _gps_handle = NULL; static void _gps_callback(VMINT msg, void* data) { switch(msg) { case VM_GPS_OPEN_CNF: { VMINT result...
package hiddenargs class count { @hiddenargs def count[T](xs: List[T], @hidden acc: Int = 0): Int = xs match { case Nil => acc case _ :: tl => count(tl, acc + 1) } assert(count(List(1, 2, 3)) == 3) assert(count(List.empty[Char]) == 0) val aToZ = 'a' to 'z' assert(count(aToZ.toList...
<div class="static-content block-<?= $block->block_key ?>"> <div class="container"> <?= $content ?> </div> </div>
package mobi.checkapp.epoc; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.TextView; import mobi.ch...
/* Texas Instruments. */ #include "stlport_prefix.h" #include <cstdio> #include <locale> #include <istream> #include "c_locale.h" #include "acquire_release.h" <API key> <API key> // default "C" values for month and day names const char default_dayname[][14] = { ...
<section class="m-list m-list--article"> <h4>Other Articles</h4> {{> article-list}} </section>
interface IHttpRequest { send(options: HttpRequestOptions, onSuccessCallback: () => void, onErrorCallback: (statusCode: number) => void); } class HttpRequest implements IHttpRequest { send(options: HttpRequestOptions, onSuccessCallback:()=>void, onErrorCallback:(statusCode:number)=>void) { var request =...
package pl.lubcode.<API key>.<API key>; import java.io.IOException; import java.util.<API key>; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import pl.lubc...
#pragma once #ifndef _JOBJECT_H #define _JOBJECT_H 1 #ifndef <API key> #ifndef _UNORDERED_MAP_ #include <unordered_map> #endif #endif #ifndef _JVALUE_H #include "jvalue.h" #endif #ifndef _JBASE_H #include "jbase.h" #endif namespace std { namespace json { class jobject : public jbase { pr...
package com.drillster.api2.general; import java.util.Date; public class Session implements Response { private String id; private Date created; private Location location; private String ipAddress; private String userAgent; private String locale; private Login login; public Session setId(S...
package com.ideaknow.api.client.forms.tpv; import android.os.Parcel; import android.os.Parcelable; import com.ideaknow.api.client.model.CompanyModel; import com.ideaknow.api.client.model.tpv.MerchantModel; public class TerminalListForm implements Parcelable { private CompanyModel company; private MerchantModel ...
import React, {Component, PropTypes} from 'react' export default class SQLEditor extends Component { constructor(props) { super(props) this.updateSQL = this.updateSQL.bind(this) } updateSQL() { this.props.updateSQL(this.refs.sql.value); } render() { const {sql} = this.props return ( ...
require 'rails_helper' RSpec.describe ErrorsController, type: :controller do describe "GET #error_404" do it "returns http success" do get :error_404 expect(response).to have_http_status(404) end end describe "GET #error_500" do it "returns http success" do get :error_500 expec...
package net.cal.sjforms; import java.util.Arrays; public class Basics { private static final Field<Integer> LIMIT_FIELD = Field.intField("limit").withDefault(10).clampMin(0).clampMax(100); public static void main(String[] args) { for (String input : Arrays.asList("0", "50", "-10", "1000", "x", null)) { St...
package android.matija.com.nerdlauncher; import android.content.Context; import android.support.test.<API key>; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; @RunWith(AndroidJUnit4.class) public class <API key> { @Test ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-forms', templateUrl: './forms.component.html', styleUrls: ['./forms.component.css'] }) export class FormsComponent implements OnInit { constructor() { } ngOnInit() { } }
package view.experiment.folderWatch; import java.awt.GridLayout; import javax.swing.BorderFactory; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.TitledBorder; import model.measurement.Diffusivity; public class JTDiffLabelSet extends JPanel { private static final long serialVersionU...
The [change log](https://github.com/richardschneider/bridge/releases) is automatically produced with the help of [semantic-release](https://github.com/semantic-release/semantic-release).
//= require_self //= require_tree /grails/templates/directives 'use strict'; /* @ngInject */ function <API key>($scope) { $scope.sort = {sort: undefined, order: undefined}; this.setSort = function(sort) { $scope.sort = sort; }; this.getSort = function() { return $scope.sort; }; } fun...
<?php //function to validate the email address //returns false if email is invalid function checkEmail($email){ if(eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email)){ return FALSE; } list($Username, $Domain) = split("@",$email); if(@getmxrr($Domain, $MXHost)){ return TRU...
# -*- coding: utf-8 -*- from app import app import os if __name__ == "__main__": port = int(os.environ.get('PORT', 33507)) app.run(port=port, debug = True)
define({ "root": { "attributes": { "title": "Title", "backupDatabase": "Backup Database", "restoreDatabase": "Restore Database", "domain": "Base Url" }, }, "de": true });
<?php // Custom functions by TwoWay /* This function attaches the image to the post in the database, add it to functions.php */
<textarea class="{{ $field['toolbar'] }}" data-action="{{ url('/'.$options->prefix) }}" name="{{ $name }}">{!! $value !!}</textarea>
maintainer "Josh Toft" maintainer_email "joshtoft@gmail.com" license "Apache 2.0" description "Installs/Configures virtualbox" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version "0.0.1" %w( dmg ).each do |cp| depends cp end
package ClientInterfaces; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import javax.swing.<API key>; import javax.swing.JComboBox; import javax.swing.ComboBoxModel; import java.sql.*; import MainInterfaces.DBAccess; import Mundo.Ticket; import Mundo.Event; /** * * @author Nicolas */ pu...
// Template Source: Enum.java.tt package com.microsoft.graph.models; /** * The Enum Attendee Type. */ public enum AttendeeType { /** * required */ REQUIRED, /** * optional */ OPTIONAL, /** * resource */ RESOURCE, /** * For AttendeeType values that were not expect...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2017-10-29 18:57:52 # @Author : jingray (lionel_jing@163.com) # @Version : $Id$ def zeroes(height, width): """ Creates a matrix of zeroes. """ g = [[0.0 for _ in range(width)] for __ in range(height)] return Matrix(g) class Matrix(object): # In...
//>>built define({widgetLabel:"P\u0159ep\u00edn\u00e1n\u00ed navigace",toggle:"P\u0159epnout na posun nebo ot\u00e1\u010den\u00ed ve 3D"});
#!/usr/bin/env python3 # -*- coding: cp1252 -*- """ Launch to orbit (with atmosphere) """ from threading import Thread import krpc from toolkit import ksp from toolkit import launch from toolkit import system from toolkit import warp from vessels import surveyor, stock STAGING_DICT = { "Surveyor 1": surveyor.su...
package org.zalando.opentracing.proxy.plugin; import io.opentracing.Span; import io.opentracing.Tracer; import lombok.AllArgsConstructor; import org.apiguardian.api.API; import org.zalando.opentracing.proxy.listen.baggage.BaggageListener; import org.zalando.opentracing.proxy.listen.span.SpanListener; import java.util.M...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/ioctl.h> int main() { struct winsize ws; ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws); printf("height: %d, width: %d\n", ws.ws_row, ws.ws_col); return EXIT_SUCCESS; }
namespace PoseEstimation { partial class MainForm { <summary> Required designer variable. </summary> private System.ComponentModel.IContainer components = null; <summary> Clean up any resources being used. </summary> <param name="disposing">true if...
#include <llmq/instantsend.h> #include <llmq/chainlocks.h> #include <llmq/quorums.h> #include <llmq/utils.h> #include <llmq/commitment.h> #include <bls/bls_batchverifier.h> #include <chainparams.h> #include <consensus/validation.h> #include <index/txindex.h> #include <txmempool.h> #include <util/ranges.h> #include <mas...
<?php use Monolog\Logger; use Monolog\Handler\StreamHandler; /** * @param $url * @return string */ function downloadData($url) { $logger = new Logger('cURL'); $logger->pushHandler(new StreamHandler(__DIR__ . '/log/libraryError.log', Logger::DEBUG)); try { $userAgent = "Mozilla/5.0 (en-us;)"; ...
#include "port.h" #include "../../utils/err.h" int grid_port_resolve (const char *port, size_t portlen) { int res; size_t i; res = 0; for (i = 0; i != portlen; ++i) { if (port [i] < '0' || port [i] > '9') return -EINVAL; res *= 10; res += port [i] - '0'; if (r...
{ "posts": [ { "url": "/comic/c_chat/2018/01/03/C_ChatM.1514910078.A.4A9.html", "title": " ", "image": "https://pbs.twimg.com/media/DSi2C1lVwAA8ly3.jpg:large", "push": "41", "boo": "0", "date": "2018-01-03 00:21:13 +0800", ...
require 'stringio' # Capture STDOUT and STDERR def capture(*streams) streams.map! { |stream| stream.to_s } begin result = StringIO.new streams.each { |stream| eval "$#{stream} = result" } yield ensure streams.each { |stream| eval("$#{stream} = #{stream.upcase}") } end result.string end
#ifndef <API key> #define <API key> #pragma once #include "ge/subsystem.hpp" #include "ge/<API key>.hpp" #include "ge/<API key>.hpp" #include "Rocket/Core.h" namespace ge { A subsystem for running Rocket struct rocket_subsystem : subsystem { Empty config object, no need for any config yet struct config { };...
Version 0.3.12 is now available. Features: * json-rpc errors return a more standard error object. (thanks to Gavin Andresen) * json-rpc command line returns exit codes. * json-rpc "backupwallet" command. * Recovers and continues if an exception is caused by a message you received. Other nodes shouldn't be able to caus...
using MediatR; using VideoCollection.Data; using VideoCollection.Data.Models; using VideoCollection.Utilities; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq; using System.Data.Entity; namespace VideoCollection.Features.Tenants { public class RemoveTenantCommand { publ...
#define CATCHERROR using System; using System.Drawing; using System.IO; using System.Windows.Forms; using Engine; using Engine.Interfaces; using Engine.Xna; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft....
<?php /** * Include needed Date classes */ require_once 'Zend/Date/DateObject.php'; require_once 'Zend/Locale.php'; require_once 'Zend/Locale/Format.php'; require_once 'Zend/Locale/Math.php'; class Zend_Date extends <API key> { private $_locale = null; // Fractional second variables private $_fractional ...
package uk.ac.sussex.gdsc.analytics; /** * The dispatch status. */ public enum DispatchStatus { /** * The request has been processed. */ COMPLETE, /** * The request has errored during processing. */ ERROR, /** * The request not been processed because the tracker is set to ignore. */ IGNO...
<?php /** * La clase encapsula la logica de negocio asociada a la informacion adicional de los convenios. * * @package pragtico * @subpackage app.controllers */ class <API key> extends AppController { var $paginate = array( 'order' => array( 'Informacion.nombre' => 'asc' ) ...
/* The HMM-Based Speech Synthesis System (HTS): version 1.1b */ /* HTS Working Group */ /* Department of Computer Science */ /* Nagoya Institute of Technology */ /* ...
// @flow import { install } from 'redux-loop'; import createHistory from 'history/createMemoryHistory'; import { routerMiddleware } from 'react-router-redux'; import { applyMiddleware, createStore } from 'redux'; import { composeWithDevTools } from '<API key>'; import { initialState, reducer } from './reducers'; export...