answer stringlengths 15 1.25M |
|---|
class DeviseMailer < ::ActionMailer::Base
extend Devise::Controllers::InternalHelpers::ScopedViews
# Deliver confirmation instructions when the user is created or its email is
# updated, and also when confirmation is manually requested
def <API key>(record)
setup_mail(record, :<API key>)
end
# Deliver r... |
import marked from 'marked';
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false,
highlight: function (code) {
return require('highlight.js').highlightAuto(code).value;
}
});
export var... |
<?
require_once("Model/Core/Util/Paging.php");
require_once("Model/Core/DataManager/DataHandler.php");
/**
* , , , .
*
* @package Mangong
* @subpackage Core/Util/Paging
* @subpackage Core/DataManager/DataHandler
* @property private resource $resBookDB : DB
* @property pub... |
.cust-profile {
font-size: 250px;
}
.cust-list {
font-size: 125px;
}
.checkbox-left {
width: 10%;
text-align: left;
}
.text-pink {
color: #ec407a;
}
.extra-space{
padding-bottom: 15px;
padding-top: 15px;
}
input[type="radio"], input[type="checkbox"] {
margin: 0 0 0 !i... |
namespace MLifter.AudioTools
{
partial class LanguageForm
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing"... |
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.ttf?v=4.6.1') format('truetype');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-<API key>: antialiased;
... |
<?php
/*
Template Name: Default
*/
?>
<?php get_header(); ?>
<div class="container">
<?php |
// <API key>.h
// ZYChat
#import <Foundation/Foundation.h>
#import "ZYDatabaseConst.h"
@interface <API key> : NSObject
@property (nonatomic,strong)NSString *colunmName;
@property (nonatomic,assign)<API key> operation;
@property (nonatomic,readonly)NSString *sqlString;
@end |
package aima.test.core.unit.search.online;
import aima.core.agent.*;
import aima.core.agent.impl.DynamicPercept;
import aima.core.environment.map.ExtendableMap;
import aima.core.environment.map.MapEnvironment;
import aima.core.environment.map.MapFunctions;
import aima.core.environment.map.MoveToAction;
import aima.core... |
# NOTICE: THIS FILE IS AUTOGENERATED
# MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
# PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/ship/components/reactor/<API key>.iff"
result.<API key> = 8
result.... |
import {browser, by, element} from 'protractor';
describe('button-toggle', () => {
beforeEach(async () => await browser.get('/button-toggle'));
it('should show a button-toggle', async () => {
expect(await element(by.tagName('mat-button-toggle')).isPresent()).toBe(true);
});
}); |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Opgave 3</title>
</head>
<body>
<h1>Controleer je lotnummer</h1>
<form>
<table>
<tr>
<td><label for="txt_lotnummer">Lotnummer:</label></td>
<td><input id="txt_lotnummer" name="txt_lotnummer" type="text" value=""></td>
</tr>
<tr>
... |
<?php
include('mp.class.php');
$mpBox = new mpClass($user);
?>
<div class="chat">
<div class="chat-header">
<h4 class="chat-title">Messagerie</h4>
</div>
<div class="chatbox">
<?php $mpBox->displayUserFollowed(); ?>
</div>
</div>
<div class="messageBoxSpec">
<div class="messager">
<input type="hidden" value=""... |
using UnityEngine;
using UnityEditor;
using System;
using System.IO;
using System.Text;
using System.Xml;
public static class PsdLayerPrefs
{
public static bool verbose = true;
private static string filePath;
private static XmlDocument xml = new XmlDocument();
private static XmlNode root;
static Psd... |
using UnityEngine;
using System.Collections;
public class <API key> : MonoBehaviour {
[SerializeField]
private iGUI.iGUIImage m_image;
[SerializeField]
private Texture2D m_white;
public void FadeoutFromBlack(float tFadeSec, float tFadeDelaySec = 0.0f, CommandChain cc = null) {
StartCoroutine... |
#include "../include/pubsub_app.h"
mal_actor_t *subscriber_actor = NULL;
mal_actor_t *publisher_actor = NULL;
mal_actor_t *broker_actor = NULL;
// Selftest
int <API key>(
bool verbose,
mal_ctx_t *mal_ctx,
mal_uri_t *provider_uri,
mal_uri_t *broker_uri,
mal_encoder_t *encoder,
mal_decoder_t *dec... |
body {
background-image: url("/images/<API key>.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
.periodic-item {
1background-repeat: no-repeat;
background-size: 100% 100%;
width: 120px;
height: 160px;
-<API key>: 3px;
border-radi... |
import time
import functools
import itertools as it
import requests
from requests.exceptions import ConnectTimeout, ReadTimeout, ConnectionError
from circuit import CircuitOpenError
import logging
from .breaker import CircuitBreakerSet
from .exceptions import <API key>, MaxRetriesReached
logger = logging.getLogger(__na... |
package May2021PrepLeetcode;
public class <API key> {
public static void main(String[] args) {
System.out.println(compress(new char[] { 'a', 'a', 'b', 'b', 'c', 'c', 'c' }));
}
public static int compress(char[] chars) {
if (chars == null || chars.length == 0)
return 0;
in... |
import logging
import homeassistant.components.rfxtrx as rfxtrx
from homeassistant.components.light import ATTR_BRIGHTNESS, Light
from homeassistant.components.rfxtrx import (
ATTR_FIREEVENT, ATTR_NAME, ATTR_PACKETID, ATTR_STATE, <API key>)
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.util impo... |
import org.scalatest.{Matchers, FunSuite}
/** @version 1.1.0 */
class SayTest extends FunSuite with Matchers {
test("zero") {
Say.inEnglish(0) should be(Some("zero"))
}
test("one") {
pending
Say.inEnglish(1) should be(Some("one"))
}
test("fourteen") {
pending
Say.inEnglish(14) should be(So... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>PresenterObjc Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
... |
#region Usings
using System.Collections.Generic;
using System.Globalization;
using Utilities.Web.ExtensionMethods;
using Utilities.Web.Google.BaseClasses;
using Utilities.Web.Google.Enums;
using Utilities.Web.Google.HelperClasses;
using Utilities.Web.Google.Interfaces;
#endregion
namespace Utilities.Web.Google.StaticMa... |
MobileUserEdit = {
init : function() {
$("#delete_button").click(function() {
MobileUserIndex.<API key>($(this).attr("user_id"));
});
}
}
$(MobileUserEdit.init); |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Management.Monitor
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
usin... |
"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... |
#include "src/execution/frames.h"
#include <memory>
#include <sstream>
#include "src/base/bits.h"
#include "src/codegen/<API key>.h"
#include "src/codegen/macro-assembler.h"
#include "src/codegen/<API key>.h"
#include "src/codegen/safepoint-table.h"
#include "src/deoptimizer/deoptimizer.h"
#include "src/execution/frame... |
body.page-register2
{
padding-top:10px; padding-left:10px;
}
.page-register2 .rnr-c-register,
.rnr-pagewrapper .page-register2 .rnr-c-register,
.rnr-pagewrapper .rnr-pagewrapper .page-register2 .rnr-c-register
{
margin-bottom:5px;
}
.page-register2 .rnr-c-register,
.rnr-pagewrapper .page-register2 .rnr-c-register... |
[‹ Bee7 Doc Home](./)
<h1>Bee7 Integration Guide</h1>
<<[../../shared/-VERSION-/version.md]
##Intro
1.Before you start integrating the SDKBOX Bee7 plugin, you need to register with Bee7:
a) [Create an account on Bee7's dashboard](https://dashboard.bee7.com/#/signup)

b) [Registe... |
# Pyaisa v0.8.5
# Python Yet Another International Standard Atmosphere
Python 3 - ISA Model computed in parallel C++
[
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
NULLCMD = :
srcdir = .
topdir = /usr/local/rvm/rubies/ruby-2.3.0/include/ruby-2.3.0
hdrdir = $(topdir)
arch_hdrdir = /usr/local/rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/x86_64-l... |
var CPC = {
// Internal data and variables
data: {
script_full_url: document.<API key>('script')[document.<API key>('script').length-1].src,
script_name: null,
script_url_params: null,
script_locales: null,
css: null
},
// Available options
options: {
auto_init: false,
cookie_name: ... |
from grow.pods.preprocessors import closure_compiler
from grow.pods.preprocessors import google_sheets
from grow.pods.preprocessors import sass_preprocessor
from protorpc import protojson
import json
<API key> = {}
_builtins = (
sass_preprocessor.SassPreprocessor,
google_sheets.<API key>,
closure_compiler.<... |
using System;
using System.Linq;
namespace _05.Fibonacci
{
class Program
{
static void Main()
{
int input = int.Parse(Console.ReadLine());
Console.WriteLine(Fib(input));
}
static ulong Fib(int n)
{
double sqrt5 = Math.Sqrt(5);
... |
package cocagne.paxos.essential;
import java.util.HashSet;
public class <API key> implements EssentialProposer {
protected EssentialMessenger messenger;
protected String proposerUID;
protected final int quorumSize;
protected ProposalID proposalID;
protected Object ... |
package de.geeksfactory.opacclient.storage;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
public class AccountDatabase extends SQLiteOpenHelper {
private static AccountDatabase instance;... |
<?php
declare(strict_types=1);
namespace App\View\Helper;
use Zend\View\Helper\AbstractHelper;
final class SpeakerHeadshot extends AbstractHelper
{
/**
* @var string
*/
private $region;
/**
* @var string
*/
private $bucket;
public function __construct(string $region, string $buck... |
'use strict';
import { Promise, TPromise } from 'vs/base/common/winjs.base';
import extfs = require('vs/base/node/extfs');
import paths = require('vs/base/common/paths');
import { dirname, join } from 'path';
import { nfcall } from 'vs/base/common/async';
import fs = require('fs');
export function isRoot(path: string):... |
using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Interop;
using EarTrumpet.Services;
namespace EarTrumpet.Extensions
{
static class DoubleExtensions
{
public static double Bound(this double val, double min, double max)
{
return Math.Max(m... |
<?php
declare(strict_types=1);
namespace Humbug\PhpScoper\Patcher;
use PHPUnit\Framework\TestCase;
/**
* @covers \Humbug\PhpScoper\Patcher\SymfonyPatcher
*/
class SymfonyPatcherTest extends TestCase
{
/**
* @dataProvider provideFiles
*/
public function <API key>(string $filePath, string $contents, s... |
/* eslint-disable */
'use strict';
if (typeof Peeracle === 'undefined') {
var Peeracle = require('..');
}
describe('Peer', function() {
}); |
MIT License
Copyright (c) 2017 Baeldung
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... |
namespace JK.Common.Patterns.Specification
{
<summary>
Abstraction on ISpecification that supplies And, Or and Not.
</summary>
<typeparam name="TEntity">The type of entity.</typeparam>
public abstract class Specification<TEntity> : ISpecification<TEntity>
{
<summary>
Determines w... |
package org.lwjgl.opengl;
import org.lwjgl.LWJGLException;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
/**
* @author elias_naur <elias_naur@users.sourceforge.net>
* @version $Revision$
* $Id$
*/
final class <API key> implements <API key> {
public ByteBuffer create(PeerInfo peer_info, IntBuff... |
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <fcntl.h>
#ifdef _WIN32
#include "winconfig.h"
#elif defined(HAVE_EXPAT_CONFIG_H)
#include <expat_config.h>
#endif /* ndef _WIN32 */
#include "expat.h"
#include "internal.h" /* for UNUSED_P only */
#include "xmlfile.h"
#include "xm... |
//! moment.js locale configuration
//! locale : siSwati [ss]
import moment from '../moment';
export default moment.defineLocale('ss', {
months : "<API key>'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
monthsShort : '<API key>'.split('_'),
weekdays : '<API k... |
title: Downloads
aliases:
- /enterprise/v1.1/introduction/download/
menu:
<API key>:
weight: 0
parent: Introduction
Please visit [InfluxPortal](https:
Also see the [Installation](/enterprise_influxdb/v1.1/introduction/<API key>/) documentation to access the downloads.
You must have a valid license to run ... |
# encoding: UTF-8
require 'test_helper'
class NumericInputTest < ActionView::TestCase
test 'input generates an integer text field for integer attributes ' do
with_input_for @user, :age, :integer
assert_select 'input[type=number].integer#user_age'
end
test 'input generates a float text field for float attr... |
#if !defined(<API key>)
#define <API key>
#include <mitsuba/hw/session.h>
MTS_NAMESPACE_BEGIN
/** \brief A MacOS X (NSGL) windowing environment session
* \ingroup libhw
*/
class MTS_EXPORT_HW NSGLSession : public Session {
public:
Create a new session
NSGLSession();
Initialize the session
void init();... |
#include "stdneb.h"
#include "particles/affectors/<API key>.h"
namespace Particles
{
using namespace Serialization;
const static char* s_Gravity = "Movement";
const static char* s_GravityPosition = "MovementPosition";
extern const char* s_KeyFrameCount;
extern const char* s_CurveKey;
extern cons... |
from alembic import op
# revision identifiers, used by Alembic.
revision = "2979a1322381"
down_revision = "2b478162b2b7"
def upgrade():
op.drop_index("<API key>", table_name="notification")
op.drop_table("notification")
op.drop_column("diagram", "data")
op.drop_constraint("<API key>", "document", type_=... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m9.31 17 2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 <API key>.11 0-1.99.9-1.99 ... |
<?php
namespace CurrencyCloud\Model;
use ArrayIterator;
class Contacts extends PaginatedData
{
/**
* @var Contact[]
*/
private $contacts;
/**
* @param Contact[] $contacts
* @param Pagination $pagination
*/
public function __construct(array $contacts, Pagination $pagination)
... |
// For further details and documentation:
(function(root){
// Module loading
var Monitor = root.Monitor || require('monitor-dashboard'),
UI = Monitor.UI,
core = UI.app.core = UI.app.core || {},
Chart = core.Chart,
Backbone = Monitor.Backbone,
_ = Monitor._;
/**
* A line chart view
... |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Management.Sql
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Ne... |
{% extends path+"/scenario_03k/_layout.html" %}
{% block assess_content %}
<main id="content" role="main" class="main-content-inner">
<div class="container">
<div class="grid-row main-row">
<div class="column-one-quarter left-area">
<div class="left-panel">
<p style="font-weight:bold;">Revie... |
# NOTICE: THIS FILE IS AUTOGENERATED
# MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
# PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/space/capacitor/<API key>.iff"
result.<API key> = -1
resul... |
import { LoggerageObject } from '../loggerage-object';
import { Storage } from '../storage-interface';
import { Query } from './query';
export declare class WrapLocalStorage implements Storage {
private _storage;
constructor(localStorage: any);
getItem(app: string, query?: Query): LoggerageObject[];
set... |
// <auto-generated>
// This code was generated by Codezu.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
using System;
using System.Collections.Generic;
namespace Mozu.Api.Contracts.ProductAdmin
{
Mozu.ProductAdmin.Contracts.... |
import React from 'react';
const style = {
marginTop: '30%'
};
export default () => (
<div className="center spinner" style={style}>
<div className="preloader-wrapper big active">
<div className="spinner-layer spinner-blue-only">
<div className="circle-clipper left">
<div className="circ... |
/*global Reply*/
/**
A Gambit is a Trigger + Reply or Reply Set
- We define a Reply as a subDocument in Mongo.
**/
// var regexreply = require("../parse/regexreply");
module.exports = function (mongoose, facts) {
var Utils = require("../utils");
var regexreply = require("../parse/regexreply");
var debug = req... |
title:
order: 3
Facet G2 View View View
G2
typescript
const chart = new Chart({
container: '#container',
});
chart.facet(facatType, {
facetConfig,
});
G2
- rect
- list
- matrix
- circle
- tree
[](../../api/general/facet)
> G2
1. View
1.
1.
## View
View view
G2 View view View region
typescript
type Point ... |
<API key>
=====================
##Description
The <API key> allows you to integrate a sliding panel mechanism in your projects

##Screenshots
 M... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import json
import numpy as np
import matplotlib.pyplot as plt
file = raw_input('File to read: ')
sn = file.split('.')[0]
f = open(file,'r')
data=json.load(f)
f.close()
lc = []
for i in data[sn]['photometry']:
try:
time = i['time']
mag = i['magnitude']
try: err = i['e_magnitude']
ex... |
local diff = require('<API key>')
describe('<API key>', function()
describe('square_of_sums', function()
it('should square the sum of the numbers up to the given number', function()
assert.equal(225, diff.square_of_sums(5))
assert.equal(3025, diff.square_of_sums(10))
assert.equal(25502500, diff.... |
require("./core");
var types = require("../lib/types");
var def = types.Type.def;
var or = types.Type.or;
var builtin = types.builtInTypes;
var isBoolean = builtin.boolean;
var isObject = builtin.object;
var isString = builtin.string;
var defaults = require("../lib/shared").defaults;
def("Function").field("generator", ... |
(function() {
// The Fork Class
// We'll have lots of forks.
// Each fork will be on object of this
// constructor.
mit.Fork = function() {
// Handle x/y
this.x = 0;
this.y = 0;
this.w = 0;
this.h = 0;
// Head x/y
this.head_x = 0;
this.head_y = 0;
// Head W/H
this.head_... |
<?php
namespace Illuminate\Foundation\Console;
use Illuminate\Console\Command;
class OptimizeCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'optimize';
/**
* The console command description.
*
* @var string
*/
protec... |
import java.io.*;
/**
* Base64 implements Base64 encoding and Base 64 decoding.
*
*/
public class Base64 implements Serializable {
private static byte[] Base64EncMap, Base64DecMap;
static {
// rfc-2045: Base64 Alphabet
byte[] map = {(byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', ... |
;
(function() {
/**
* Namespace for all Svidget library classes.
* @namspace
*/
var Svidget = {};
Svidget.emptyArray = [];
Svidget.root = window;
// note: this may be different for node.js
Svidget.version = "0.1.1";
Svidget.declaredHandlerName = "_declared";
/** @function Svidget.arra... |
goog.provide('gmfapp.objectediting');
goog.require('gmf.Themes');
goog.require('gmf.TreeManager');
/** @suppress {extraRequire} */
goog.require('gmf.layertreeDirective');
/** @suppress {extraRequire} */
goog.require('gmf.mapDirective');
/** @suppress {extraRequire} */
goog.require('gmf.<API key>');
goog.require('gmf.<A... |
package mvc.exceptions;
public class <API key> extends Exception {
} |
package microsoft.exchange.webservices.data;
import java.util.EnumSet;
/**
* Represents response object property defintion.
*/
public class <API key> extends PropertyDefinition {
/**
* Initializes a new instance of the <API key>
* class.
*
* @param xmlElementName
* the xml elem... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pagina 3</title>
</head>
<body>
<h1>Pagina 3</h1>
</body>
</html> |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
import os
import numpy as np
import matplotlib.pyplot as plt
import datetime
from clawpack.geoclaw.util import <API key>
from c... |
<!DOCTYPE html>
<html class="no-js">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta name="keywords">
<meta name="description">
<!--base(href="#{dir}")-->
<title>Citizens Advice st... |
import fixtures from '../__fixtures__/ValidateSlug';
import { loadFixtures, unloadFixtures } from 'util/fixtures';
import gql from 'util/GraphQL';
import { assertSlugIsValid } from '../ValidateSlug';
import { errors } from 'graphql/models/SlugErrorEnum';
describe('assertSlugIsValid', () => {
beforeAll(() => loadFixtu... |
var path = require('path');
module.exports = {
cache: true,
entry: './src/scripts/main.js',
output: {
path: path.join(__dirname, 'dist', 'scripts'),
publicPath: 'scripts/',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css' },
{ test: /\.scss$/, loa... |
package com.veridu.endpoint;
import org.json.simple.JSONObject;
import com.veridu.exceptions.APIError;
import com.veridu.exceptions.EmptyResponse;
import com.veridu.exceptions.EmptySession;
import com.veridu.exceptions.EmptyUsername;
import com.veridu.exceptions.InvalidFormat;
import com.veridu.exceptions.InvalidRespon... |
#ifndef <API key>
#define <API key>
#include <set>
#include <map>
#include <boost/noncopyable.hpp>
#include <boost/thread.hpp>
#include "connection.h"
#include "net.h"
<API key>
// TCP
class ConnectionManager : private boost::noncopyable
{
public:
Add the specified connection to the manager and start it.
void s... |
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// 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 permit persons to whom the
// Software is furn... |
WarriorJS Core extracts the mechanics of the original WarriorJS game, allowing you to build and share your own WarriorJS universes (known as *towers*) with custom abilities, effects, units and levels.
[
def run(e... |
var val = invContext.keyToWatch;
var argumentsVal = args.cmdArguments;
var argsArr = argumentsVal.split(",");
var argsToCmd = {};
for (i = 0; i < argsArr.length ; i++) {
var keyval = argsArr[i].split("=");
if (keyval.length == 2) {
argsToCmd[keyval[0].trim()] = keyval[1];
}
}
var entry = executeComm... |
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
#include "utility.h"
int lastSignal = 0;
static void signalHandler(int signal) {
la... |
<!DOCTYPE html><html><head><link rel="canonical" href="http: |
#include "shell/common/gin_converters/image_converter.h"
#include "shell/common/api/<API key>.h"
#include "shell/common/gin_converters/file_path_converter.h"
#include "ui/gfx/image/image_skia.h"
namespace gin {
bool Converter<gfx::ImageSkia>::FromV8(v8::Isolate* isolate,
v8::Local... |
html, body
{
margin: 0;
padding: 0;
font-family: Arial,serif;
font-size: 12px;
color: grey;
font-weight: normal;
}
h1
{
font-family: Arial;
font-size: 16px;
} |
<?php
namespace Oro\Bundle\EmailBundle\Tests\Functional;
use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase;
/**
* @dbIsolation
*/
class EmailControllerTest extends WebTestCase
{
protected function setUp()
{
$this->initClient(array(), $this-><API key>());
$this->loadFixtures(['Oro\Bundle\Emai... |
// UIView+BUKDynamicPopView.h
// Pods
#import <UIKit/UIKit.h>
#import "BUKDynamicBehavior.h"
#import "<API key>.h"
#import "<API key>.h"
/**
* Notification support for view transition.
*/
extern NSString * <API key>;
extern NSString * <API key>;
extern NSString * <API key>;
extern NSString * <API key>;
@interface ... |
#include "FP_miniIMU.h"
#include "FP_Math.h"
#include "FP_Matrix.h"
#include "FastMath.h"
//S16.16
//precision 1 / 2^16 = 0.0000152587890625
//all parameters below need to be tune
#define FP_EKF_PQ_INITIAL 66//0.001
#define FP_EKF_QQ_INITIAL 66//0.001
#define FP_EKF_RA_INITIAL 1638//0.025
#if FP_EKF_STATE_DIM == 7
#def... |
<?php
namespace Colmenapp\PlataformaBundle\Entity;
use Colmenapp\PlataformaBundle\Entity\Colmena;
use Colmenapp\PlataformaBundle\Entity\Inspeccion;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
/**
* ColmenaInspeccion
*
* @ORM\Table(name="colmena_inspeccion")
* @ORM\Entity(... |
<?php
// ADS-B RECEIVER PORTAL //
// of this software and associated documentation files (the "Software"), to deal //
// in the Software without restriction, including without limitation the rights //
// copies of the Software, and to permit... |
(() => {
'use strict';
var dom;
var types;
var PropertyHelper;
var ArrayHelper;
define([
'./helpers/dom-helper',
'./helpers/type-helper',
'./helpers/property-helper',
'./helpers/array-helper'
], main);
function main(
$dom,
$types,
$... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_07) on Tue Oct 01 11:25:16 BST 2013 -->
<title>StatusBar</title>
<meta name="date" content="2013-10-01">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script ... |
#pragma once
#include <QString>
#include <vector>
class PollTypeItem
{
public:
QString m_name;
QString m_description;
int m_min_duration_days;
};
class PollTypes : public std::vector<PollTypeItem>
{
public:
enum PollType
{
PollTypeUnknown,
PollTypeProject,
PollTypeDevelopment... |
package org.shipkit.internal.util;
import java.util.*;
/**
* Basic multi-map that contains multiple values per key
*/
public class MultiMap<K, V> {
private final Map<K, Collection<V>> data = new LinkedHashMap<>();
/**
* If the key does not exist, null is returned
*/
public Collection<V> get(K ke... |
// NSObject+Runtime.h
// RuntimeDictToModel
#import <Foundation/Foundation.h>
@interface NSObject (Runtime)
+ (instancetype)sr_objWithDict:(NSDictionary *)dict;
+ (NSArray *)sr_objProperties;
@end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.