answer stringlengths 15 1.25M |
|---|
#include <assert.h>
#include <stdint.h>
#include <OpenP2P/Buffer.hpp>
#include <OpenP2P/Stream/BinaryStream.hpp>
#include <OpenP2P/Event/Source.hpp>
#include <OpenP2P/Event/Wait.hpp>
#include <OpenP2P/RootNetwork/Endpoint.hpp>
#include <OpenP2P/RootNetwork/Packet.hpp>
#include <OpenP2P/RootNetwork/PacketSocket.hpp>
#in... |
// Authored by: Malcolm MacLeod (mmacleod@gmx.com)
// file COPYING
//Workaround braindamaged 'hack' in libtool.m4 that defines DLL_EXPORT when building a dll via libtool (this in turn imports unwanted symbols from e.g. pthread that breaks static pthread linkage)
#ifdef DLL_EXPORT
#undef DLL_EXPORT
#endif
// Unity speci... |
#ifndef DBADAPTER_H
#define DBADAPTER_H
#include <mysql/mysql.h>
#include <sqlite3.h>
#include <string>
#include <vector>
#include <list>
#include "Logger.h"
#define <API key> "defaultSQDB.db"
typedef std::vector< std::list< std::string > > SQL_RET_TYPE;
class DBAdapter
{
public:
enum db_types_t {MYSQL = 1, ORACLE ... |
<div>
<a href="#/templates">Go Back</a>
<br><br>
<div class="col-md-4">
<img class="img-full" src="img/{{mainImage}}">
<div class="row">
<div ng-repeat="image in template.images | limitTo:4">
<div class="col-md-3">
<img class="img-full" ng-src=... |
class <API key> < ActiveRecord::Migration[5.1]
def self.up
create_table :<API key> do |t|
t.string :namespace
t.text :body
t.string :resource_id, null: false
t.string :resource_type, null: false
t.references :author, polymorphic: true
t.timestamps
end
add_index :<AP... |
namespace _03BarracksFactory.Data
{
using System;
using Contracts;
using System.Collections.Generic;
using System.Text;
class UnitRepository : IRepository
{
private IDictionary<string, int> amountOfUnits;
public UnitRepository()
{
this.amountOfUnits = new Sort... |
@copyright
Copyright (C) 2020 Assured Information Security, Inc.
@copyright
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... |
package com.github.bachelorpraktikum.visualisierbar.model;
import com.github.bachelorpraktikum.visualisierbar.model.Element.State;
import com.github.bachelorpraktikum.visualisierbar.model.Element.Type;
public class <API key> extends <API key> {
@Override
protected Shapeable<?> getShapeable() {
Context c... |
package gb
import (
"errors"
"fmt"
"io"
"path/filepath"
"reflect"
"testing"
)
func <API key>(t *testing.T) {
tests := []struct {
pkg string
err error
}{{
pkg: "a",
err: nil,
}, {
pkg: "b", // actually command
err: nil,
}, {
... |
<?php
if(filemtime(__FILE__) + 1800 < time())return false;
return array (
'id' => 5553,
'goods' =>
array (
'goods_id' => '5553',
'store_id' => '132',
'type' => 'material',
'goods_name' => '100g',
'description' => '<p style="text-align: center;"><img src="http:
'cate_id' => '816',
'cate... |
# Fetching User Objects
Fetching user objects is a simple way to get at specific objects that you know the IDs of or to access all user objects. This does not access objects owned by the application.
If you know more detail about the object you are looking for, but do not know the object ids, you might find it easier t... |
<html dir="rtl">
<head>
<title>Testing textpath</title>
<style type="text/css">
@import "../../../../../dojo/resources/dojo.css";
@import "../../../../../dijit/tests/css/dijitTests.css";
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-... |
package org.jeasy.random;
import static org.jeasy.random.FieldPredicates.*;
import static org.assertj.core.api.Assertions.assertThat;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import org.jeasy.random.api.<API key>;
import org.jeasy.random.api.RandomizerContext;
import org.jea... |
__all__ = []
import pkgutil
import inspect
for loader, name, is_pkg in pkgutil.walk_packages(__path__):
module = loader.find_module(name).load_module(name)
for name, value in inspect.getmembers(module):
if name.startswith('__'):
continue
globals()[name] = value
__all__.append... |
namespace PInvoke
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using static Kernel32;
<content>
Methods and nested types that are not strictly P/Invokes but provide
a slightly higher level of functionality to ease calling into native code.
</content>
[Sup... |
var searchData=
[
['player',['player',['../classplayer.html#<API key>',1,'player']]]
]; |
using System;
namespace nanoFramework.Tools.Debugger.Usb
{
// This class is kept here for reference only.
// It was to provide backwards compatibility with NETMF WinUSB devices of v4.4
// In the current nanoFramework implementation USB connection with devices is carried using USB CDC
public class STM_Di... |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:5:"parg4";s:4:"type";s:4:"text";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:1;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}'); |
Deprecated. Now with Docker-Compose, there is little reason for gobox.
# gobox: Golang Process Boxer
gobox manages your microservices for testing and production scenarios.
## Motivation
**You**...
- ...are building a large application with a service-oriented design.
- ...have a variety of services that need to be runni... |
/* dtpicker javascript jQuery */
(function($) {
'use strict';
var pluginName = 'dtpicker';
var PluginClass=T.UI.Controls.DTPicker;
var pluginRef = 't-plugin-ref';
$.fn[pluginName] = function(options) {
if(typeof options === 'string'){
// 2. API
var plugin = this.data(... |
using <API key>;
using RippleDictionary;
using RippleScreenApp.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Speech.Synthesis;
using System.Text;
using System.Threading.Tasks;
using Sys... |
# Note that this is not a valid measurement of tail latency. This uses the execution times we measure because they're convenient, but this does not include queueing time inside BitFunnel nor does it include head-of-line blocking queue waiting time on the queue into BitFunnel.
import csv
filename = "/tmp/<API key>.csv"
... |
const assert = require('assert');
const md5 = require('blueimp-md5');
const createApp = require('../../lib');
describe('tokenize service', () => {
it('tokenizes and stems', () => {
const app = createApp();
const text = `what's the weather in vancouver`;
const hash = md5(text);
return app.service('toke... |
// AForge Kinect Video Library
// AForge.NET framework
// contacts@aforgenet.com
namespace AForge.Video.Kinect
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using AForge;
using AForge.Imaging;
u... |
namespace DeviceHive.Data.EF.Migrations
{
using System.Data.Entity.Migrations;
public partial class _91 : DbMigration
{
public override void Up()
{
CreateTable(
"OAuthClient",
c => new
{
ID = c.Int(nullable: fals... |
require File.dirname(__FILE__) + '/../test_helper'
require 'posts_controller'
require 'mailing_list_mailer'
# Re-raise errors caught by the controller.
class PostsController
def rescue_action(e)
raise e
end
end
# FIXME Navigation tests are weak. Need to do more than just not blow up
class PostsControllerTest < ... |
namespace MonoGame.Extended.Collisions
{
public class CollisionGridCell : ICollidable
{
private readonly CollisionGrid _parentGrid;
public CollisionGridCell(CollisionGrid parentGrid, int column, int row, int data)
{
_parentGrid = parentGrid;
Column = column;
... |
// GPDownloader.h
// test
#import <Foundation/Foundation.h>
@class GPDownloader;
typedef NS_ENUM(NSUInteger, GPDownloaderStatus) {
<API key>,
<API key>,
<API key>,
<API key>,
<API key>,
<API key>
};
// block
typedef void(^StartTaskBlock)(GPDownloader * downloader);
typedef void(^ProgressBlock)... |
.crud-table td{
padding-right: 10px;
padding-bottom: 10px;
padding-top: 0px;
}
#Grid{
width: 398px;
margin: 0px;
padding: 0px;
overflow: scroll;
overflow-x: hidden;
max-height: 500px;
}
#Grid:after{
content: '';
display: inline-block;
width: 100%;
}
#Grid .mix{
displa... |
'use strict';
var <API key> = require('./templatedStylesheet'),
path = require('path');
module.exports = <API key>(path.join(__dirname, '/templates/stylus.tpl')); |
import React from 'react'
import Icon from 'react-icon-base'
const MdTonality = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.9 23.4c0.1-0.6 0.2-1.2 0.3-1.8h-11.6v1.8h11.3z m-2.5 5c0.4-0.6 0.9-1.2 1.2-1.8h-10v1.8h8.8z m-8.8 4.8c1.8-0.2 3.4-0.8 4.9-1.6h-4.9v1.6z m0-16.6v1.8h11.6c-0.1-0.6-0... |
<?php
namespace Censo\CensoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* TipoViviendas
*
* @ORM\Table(name="tipo_viviendas")
* @ORM\Entity
*/
class TipoViviendas
{
/**
* @var integer
*
* @ORM\Column(name="id", type="bigint", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strat... |
/* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern float strtof(char const *str , char const *endptr ) ;
extern void signal(int sig , void *func ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char con... |
#ifndef __NGEN_CALLBACK_HPP
#define __NGEN_CALLBACK_HPP
#include "Ngen.Delegate.hpp"
namespace Ngen {
/** @brief A function-call provider primarily used to bind object instances to member delegates before invocation.
*/
class ngen_api Callback {
public:
/** @brief Constructor. Default. */
... |
package logbook.server.proxy;
public class Filter {
/** Content-Type */
public static final String CONTENT_TYPE_FILTER = "text/plain";
public static final int MAX_POST_FIELD_SIZE = 1024 * 1024;
/** setAttribute(Response) */
public static final String RESPONSE_BODY = "res-body";
/** setAttribute(... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: <API key>.proto
package Diadoc.Api.Proto;
public final class <API key> {
private <API key>() {}
public static void <API key>(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface <API key> extends
// @@<API key>(i... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Fri Jun 20 06:34:49 EDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.apache.solr.handler.dataimport.<API key> (Solr 4.9.0 API)</title>
<meta name="d... |
package saberapplications.pawpads.databinding;
import android.databinding.BaseObservable;
import android.databinding.BindingAdapter;
import android.databinding.BindingConversion;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import saberapplications.pawpads.R;
public cla... |
using UnityEngine;
using System.Collections;
public class EnemyDeadInfo {
public int score = 0;
public Transform transform;
public bool headShot = false;
} |
<?php
/** The cron exception. */
class CronException extends Exception {}
/**
* Initialisation
*
*/
function cron_init()
{
// Register a pagehandler for cron
<API key>('cron','cron_page_handler');
}
/**
* Cron handler for redirecting pages.
*
* @... |
package types
import "gopkg.in/pg.v4/internal/parser"
func AppendJSONB(b, jsonb []byte, quote int) []byte {
if quote == 1 {
b = append(b, '\'')
}
p := parser.New(jsonb)
for p.Valid() {
c := p.Read()
switch c {
case '\'':
if quote == 1 {
b = app... |
#include <stdio.h>
#include <ruby.h>
#include <ruby/thread.h>
#include <v8.h>
#include <libplatform/libplatform.h>
#include <ruby/encoding.h>
#include <pthread.h>
#include <unistd.h>
#include <mutex>
#include <math.h>
using namespace v8;
class <API key> : public v8::ArrayBuffer::Allocator {
public:
virtual void* All... |
'use strict'
const dotenv = require('dotenv')
const ENV = process.env.NODE_ENV || 'development'
if (ENV === 'development') dotenv.load()
const config = {
ENV: process.env.NODE_ENV,
PORT: process.env.PORT,
PROXY_URI: process.env.PROXY_URI,
WEBHOOK_URL: process.env.WEBHOOK_URL,
<API key>: process.env.<API key>,... |
SET NOCOUNT ON;
SELECT
T1.Client_Version0 as VersionNumber,
CASE
WHEN T1.Client_Version0 = '5.00.7711.0000' THEN 'ConfigMgr 2012 RTM'
WHEN T1.Client_Version0 = '5.00.7711.0200' THEN 'ConfigMgr 2012 RTM CU1'
WHEN T1.Client_Version0 = '5.00.7711.0301' THEN 'ConfigMgr 2012 RTM CU2'
WHEN T1.Client_Version0 = '5.00.7804.100... |
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef GL_APICALL void (GL_APIENTRY *<API key>) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
typedef GL_APICALL void (GL_APIENTRY *<API key>) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLs... |
package im.actor.core.entity;
import com.google.j2objc.annotations.Property;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import im.actor.core.api.ApiAvatar;
import im.actor.core.api.ApiBotCommand;
imp... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="Canalave Gym Set" firstgid="1" tilewidth="16" tileheight="16">
<image source="Canalave Gym Set.png" trans="000000"/>
</tileset> |
#import "NGLRuntime.h"
#import "NGLError.h"
#import "NGLIterator.h"
/*!
* <strong>(Internal only)</strong> An object that holds the array values.
*
* This structure is used as a fixed pointer to preserve the necessary information/memory
* to the array values.... |
package api
import (
"errors"
"io/ioutil"
"log"
"net/http"
"github.com/bitly/go-simplejson"
)
func Request(req *http.Request) (*simplejson.Json, error) {
resp, err := http.DefaultClient.Do(req)
if err != nil {
return nil, err
}
body, err := ioutil.ReadAll(resp.Body)
resp.... |
md-radio-button.md-THEME_NAME-theme .md-off {
border-color: '{{foreground-2}}'; }
md-radio-button.md-THEME_NAME-theme .md-on {
background-color: '{{accent-color-0.87}}'; }
md-radio-button.md-THEME_NAME-theme.md-checked .md-off {
border-color: '{{accent-color-0.87}}'; }
md-radio-button.md-THEME_NAME-theme.md-check... |
require 'net/http'
## monkey-patch Net::HTTP
# Certain apple endpoints return 415 responses if a Content-Type is supplied.
# Net::HTTP will default a content-type if none is provided by faraday
# This monkey-patch allows us to leave out the content-type if we do not specify one.
class Net::HTTPGenericRequest
def <API... |
<?php
namespace spec\SensioLabs\Behat\PageObjectExtension\PageObject\Factory;
require_once __DIR__.'/Fixtures/ArticleList.php';
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use ProxyManager\Factory\<API key>;
use ProxyManager\Proxy\<API key>;
use SensioLabs\Behat\PageObjectExtension\PageObject\Element;
use Sensio... |
{{ define "main" }}
{{ partial "breadcrumbs" . }}
<section class="resume-section p-3 p-lg-5 d-flex d-column content">
<div class="my-auto">
<h2 class="mb-0"><span class="text-primary">{{ .Title }}</span></h2>
<p><a href="{{ .Params.link }}">Link to full {{ .Params.pubtype }}</a></p>
{{ with .Params.image ... |
{{diagnostic}}
<div class="aw-ui-callout aw-ui-callout-info">
<span>Please see below all the price set for various Asha Payment Activities.</span>
</div>
<form class="form-horizontal" #rulesForm="ngForm" (ngSubmit)="onSubmit(ruleForm.value)" method="POST">
<div>
<h2>Maternal Health</h2>
<h3>... |
// <API key>.h
// Pods
#import "IMInviteClient.h"
#import "<API key>.h"
#import "IMViewController.h"
@protocol <API key>;
@interface <API key> : IMViewController
@property (weak, nonatomic) id <<API key>> delegate;
@end
@protocol <API key> <NSObject>
@end |
#include "overlapping.hpp"
/* TODO:
* grow seeds from edges, not nodes.
* Why are the results changing?
* Then, speed up delV
* ZEntropy shouldn't consider the number of groups, that should be taken out to another function.
* That factorial expression would be better
* Write down some of the stats... |
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(funct... |
# Makefile for Sphinx documentation
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was no... |
#!/bin/bash
fusermount -u ${MNT}/xiaomi |
window.hideAlert = function () {
$('#alertMessage').addClass("hidden");
$('#alertMessage').text("");
};
window.showAlert = function (msg) {
$('#alertMessage').text(msg);
$('#alertMessage').addClass("alert-danger");
$('#alertMessage').removeClass("hidden");
$('#alertMessage').fadeOut(100).fadeIn(... |
--
-- ## Project: HUD iLife ##
-- ## For MTA: San Andreas ##
-- ## Name: <API key>.lua ##
--
--
--
--
-- FUNCTIONS / METHODS --
local cFunc = {}; -- Local Functions
local cSetting = {}; -- Local Settings
<API key> = {};
<API key>.__index = <API key>;
]]
--
-- ///// New ... |
# Scripts
## HashIncidentsFields
- Fixed an issue where custom fields were returned by default as part of the incident object. |
weekly_roundup: true
title: "Roundup: Agile subway, retrospectives and appreciation, instant GraphQL API,
fun counterfeits, less workdays"
date: '2018-07-20 13:00:00 BST'
authors:
- 'Elena Tanasoiu'
tags: # (Delete as appropriate)
- Culture
## Agile Subway Map - [Richard S](/people#richard-stobart)
https:
Who knew th... |
# iTerm2 Puppet Module for Boxen
## Usage
puppet
# Stable release
include iterm2::stable
# Dev release
include iterm2::dev
## Required Puppet Modules
* boxen
* stdlib |
@font-face {
font-family: 'Voltaire';
src: url("assets/Voltaire.eot");
src: url("Voltaire.eot?#iefix") format("embedded-opentype"), url("assets/Voltaire.woff") format("woff"), url("assets/Voltaire.ttf") format("truetype"), url("assets/Voltaire.svg#webfont") format("svg"); } |
local pubsub = require "util.pubsub";
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local usermanager = require "core.usermanager";
local xmlns_pubsub = "http://jabber.org/protocol/pubsub";
local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event";
local xmlns_pubsub_owner = "ht... |
#include <rpc/rpc.h> |
<?php
$mess=array(
"Source Viewer" => "Afficheur de sources",
"Syntax Highlighter for all major code source files" => "Coloration syntaxique pour la plupart des fichiers de code source",
); |
// <API key>.h
// <API key>
#import <UIKit/UIKit.h>
//! Project version number for <API key>.
FOUNDATION_EXPORT double <API key>;
//! Project version string for <API key>.
FOUNDATION_EXPORT const unsigned char <API key>[];
// In this header, you should import all the public headers of your framework using statements ... |
// UIDevice+YYAdd.h
#import <UIKit/UIKit.h>
/**
Provides extensions for `UIDevice`.
*/
@interface UIDevice (YYAdd)
#pragma mark - Device Information
=============================================================================
@name Device Information
=================================================================... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Wed Sep 21 04:14:05 CEST 2016 -->
<title>com.snakybo.torch.graphics.shader (Torch Engine 1.0 API)</title>
<meta name="date" content="2016-09-21">
<link rel="stylesheet" type="text/css" href="../../../../../stylesh... |
define('controllers/panel',['require','jquery','backbone','utils/metrics','utils/browser','utils/video-player','utils/pubsub','controllers/panel-display'],function(require) {
var $ = require('jquery'),
Backbone = require('backbone'),
Metrics = require('utils/metrics'),
Browser = require('uti... |
// Design Basic Game Solo Challenge
// This is a solo challenge
// Your mission description:To complete a line of the same figure, horizontal, diagonal or vertical
// Overall mission: To win all the time :)
// Goals: make a line of the same kind before computer does
// Characters:You and the computer
// Objects:tic tac... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Company
{
public partial class Site : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} |
#if __SC__ || __RCC__
#pragma once
#endif
#ifndef RC_INVOKED
#pragma pack(__DEFALIGN)
#endif
#include <win32\scdefs.h>
#include <win32\LMCONFIG.H>
#ifndef RC_INVOKED
#pragma pack()
#endif |
<?php
/**
* Convert container abstract
*
* @category Mage
* @package Mage_Dataflow
* @author Magento Core Team <core@magentocommerce.com>
*/
abstract class <API key>
implements <API key>
{
protected $_batchParams = array();
protected $_vars;
protected $_profile;
protected $_action;
... |
package com.microsoft.azure.management.monitor;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Part of <API key>. Specifies the settings for a
* particular log.
*/
public class LogSettings {
/**
* Name of a Diagnostic Log category for a resource type this setting is
* applied to. To obtain... |
// GridFS
exports.GridFS = require('./lib/GridFS');
exports.GridStream = require('./lib/GridStream'); |
// @flow
class A {
x = [1, 2, 3];
y = 4;
foo() {
this.x = this.x.map(function (z) {
this.y; // error, function has wrong this
});
}
}
class B {
x = [1, 2, 3];
y = 4;
foo() {
this.x = this.x.map(function (z) {
this.y; // ok, function gets passed... |
import collectionClass from "./collections.class";
import collectionColor from "./collections.color";
function <API key>(contentItem) {
return `
.${collectionClass(contentItem)} {
background-color: #${collectionColor(contentItem)};
}
`;
}
export default <API key>; |
<?php
if(filemtime(__FILE__) + 600 < time())return false;
return array (
'inbox' => '0',
'outbox' => '0',
'total' => 0,
);
?> |
Copyright (c) 2016 Calvin Rose
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, distribute, sublice... |
namespace SIM.Tool.Windows.<API key>
{
using System.Windows;
using SIM.Instances;
using SIM.Tool.Base;
using SIM.Tool.Base.Plugins;
using SIM.Tool.Windows.Dialogs;
using JetBrains.Annotations;
[UsedImplicitly]
public class <API key> : IMainWindowButton
{
#region Public methods
public bool IsEn... |
package com.xeiam.xchange.lakebtc.marketdata;
import static org.fest.assertions.api.Assertions.assertThat;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.xeiam.xchange.lakebtc.dto.marketdata.LakeB... |
using System;
using BEPUutilities.DataStructures;
namespace BEPUutilities.ResourceManagement
{
<summary>
Uses a spinlock to safely access resources.
</summary>
<typeparam name="T">Type of object to store in the pool.</typeparam>
public class LockingResourcePool<T> : ResourcePool<T> where T : class, ... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
CurrentModel = mongoose.model('Attendance'),
Schedule = mongoose.model('Schedule'),
Group = mongoose.model('Group'),
_ = require('lodash');
exports.attendance = function(req, res, next, id) {
CurrentModel.load(id, function(err, ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Plugin</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!
body {
margin: 5px 5px 5px 5px;
background-color: #ffffff;
}
hr { color: #000000}
body, table /* Normal text */
{
font-size: 10pt;
f... |
#ifndef <API key>
#define <API key>
class OscOptionalUnpacker
{
ofxOscMessage & msg;
int n;
public:
OscOptionalUnpacker(ofxOscMessage & m):msg(m),n(0){}
OscOptionalUnpacker & operator >> (int & i)
{
if(n < msg.getNumArgs())
{
i = msg.getArgAsInt32( n++ );
}
... |
package org.magcruise.gaming.executor.api.message;
import org.magcruise.gaming.lang.Message;
import org.magcruise.gaming.lang.SConstructor;
public interface <API key> extends Message {
@Override
public SConstructor<? extends <API key>> toConstructor(ToExpressionStyle style);
@Override
public default SCo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace UnitTests
{
[TestFixture]
public class ProjectTests
{
[TestFixtureSetUp]
public void Initialize()
{
}
[Test]
public void TestCsvRename()
... |
import os
import re
from opsbro.collector import Collector
# DMI have lot of useful information that detectors can use to know lot about the platform/hardware
class Dmidecode(Collector):
def launch(self):
logger = self.logger
logger.debug('getDmidecode: start')
res = {}
# Maybe we ar... |
// <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 It.Uniba.Di.Cdg.SocialTfs.ProxyServer.AdminPanel {
public partial class EditService {
<summary>
Er... |
// <API key>.h
// Vokoder
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "<API key>.h"
#import "<API key>.h"
#import "VOKManagedObjectMap.h"
<API key>
An completion block to run after importing each foreign dictionary.
typedef void(^VOKPostImportBlock)(<API key> *inputDict, <API key> *outputO... |
"use strict";
var <API key> = require("@babel/runtime/helpers/<API key>");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = <API key>(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime");
var _default = (0, _createSvgIcon.defaul... |
import dateformat from 'dateformat';
import { map } from "underscore";
import { getAccountById } from 'routes/root/routes/Banking/routes/Accounts/modules/accounts';
import { getCreditCardById, getPrepaidCardById } from 'routes/root/routes/Banking/routes/Cards/modules/cards';
import { getLoanById } from 'routes/root/rou... |
#include <iostream>
#include <map>
#include <stdexcept>
using namespace std;
int main(int argc, char* argv[]){
map<string, int> m;
m["bob"] = 56;
m["alice"] = 89;
m["billy"] = 3;
// print it out
map<string,int>::iterator i;
for(i = m.begin(); i != m.end(); i++){
cout << i->first << "... |
This directory contains samples for VMC organization APIs:
Running the samples
$ python <API key>.py -r <refresh_token>
* Testbed Requirement:
- At least one org associated with the calling user. |
var assert = require('assert');
var num = require('../');
test('sub', function() {
assert.equal(num.sub(0, 0), '0');
assert.equal(num.sub('0', '-0'), '0');
assert.equal(num.sub('1.0', '-1.0'), '2.0');
assert.equal(num('987654321987654321.12345678901').sub(100.012), '987654321987654221.11145678901');
... |
require File.join(File.dirname(__FILE__), "/../spec_helper")
describe "Firefox" do
before(:each) do
@browser = Firefox.new
@url = "http://localhost"
end
describe "Cross OS Firefox", :shared => true do
it "should be supported" do
@browser.should be_supported
end
end
describe "Mac OS X... |
<?php
if (!$loader = @require_once __DIR__ . '/../vendor/autoload.php') {
die("You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install --dev --prefer-source
");
}
/* @var $loader \Composer\Autoload\ClassLoader */
$loader->add('Doctrin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.