answer
stringlengths
15
1.25M
require 'compiler_helper' module Alf class Compiler describe Default, "join" do subject{ compiler.call(expr) } let(:right){ compact(an_operand) } let(:expr){ join(an_operand(leaf), right) } <API key> "a traceable compiled" it 'is a Join::Hash...
@ru <p>На сервисе <a class="link" href="https: @en <p>You can get &euro;10 discount on <a class="link" href="https: @endru
<?php // somewhere in your theme. ?> <?php if (!get_theme_mod('hide-header')) { ?> <header class="container-fluid"> <div class="row"> <div class="banner navbar navbar-default navbar-static-top affix" role="banner"> <div class="container"> <div class="navbar-header"> <button typ...
<?php namespace Test\LitGroup\Enumerable; use LitGroup\Enumerable\Test\EnumerableTestCase; use Test\LitGroup\Enumerable\Fixtures\AnotherColorEnum; use Test\LitGroup\Enumerable\Fixtures\ColorEnum; use Test\LitGroup\Enumerable\Fixtures\DuplicateIndexEnum; use Test\LitGroup\Enumerable\Fixtures\FloatIndexedEnum; use Test\L...
layout: ci_navbar_sidebar title: Coding Standards permalink: /practice/ci/coding_standards/ <div class="jumbotron"> <h1><small>Continuous Integration</small></h1> <h1>Coding Standards Check</h1> <p>Apply code analysis and styling checks and if unsatisfactory mark the build as a failure</p> </div> <div class="row"...
$(document).ready(function() { $(document).on('submit', '.status-button', function(e) { e.preventDefault(); var joinButton = e.target $.ajax(joinButton.action, { method: 'PATCH', data: $(this).serialize() }) .done(function(data) { gameDiv = $(joinButton).parent(); gameDiv.r...
require_relative 'spec_helper.rb' feature "can deal cards" do before do <API key>("jnmandal", "bsheridan12") end scenario "allows you to choose amount of cards dealt" do in_browser(:one) do expect(page).to have_field "initial-deal-count" end end scenario "deal cards button deals cards" do ...
function <API key>() { 'ngInject'; // ViewModel const vm = this; console.log('<API key>'); } export default { name: '<API key>', fn: <API key> };
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # 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 persons to whom the So...
import React, { Component } from 'react'; import Header from './Header'; import MainSection from './MainSection'; export default class App extends Component { render() { return ( <div> <Header/> <MainSection/> </div> ); } }
import unittest from unittest import skip from decimal import Decimal from cnab240 import errors from cnab240.bancos import itau from tests.data import <API key> class TestRegistro(unittest.TestCase): def setUp(self): itau_data = <API key>() self.header_arquivo = itau_data['header_arquivo'] ...
// Purpose: An extra interface implemented by the material system // implementation of vgui::ISurface // $Revision: $ // $NoKeywords: $ #ifndef IMATSYSTEMSURFACE_H #define IMATSYSTEMSURFACE_H #ifdef _WIN32 #pragma once #endif #include <vgui/VGUI.h> #include "vgui/ISurface.h" // Forward declarations class VMatrix; class...
#!/usr/bin/env python3 # 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 furnished to do so, subject to the following conditions: #...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class <API key> extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot() { } /** * Register the application services. * * @return void ...
// 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 persons to whom the Software is // furnished to do so, subject to the following conditions: // copies or substantial p...
#endregion namespace SolutionValidator.FolderStructure { #region using... using System; #endregion public class ParseException : <API key> { public ParseException(string message, int lineNumber, int column) : base(message) { LineNumber = lineNumber; ...
package com.kkk.retrofitdemo; import com.kkk.retrofitdemo.bean.Repo; import com.kkk.retrofitdemo.bean.SearchRepoResult; import java.util.List; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.Query; import rx.Observable; public interface GitHubService { @GET("users...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class <API key> extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function (Bluepr...
<div class="cms-control-panel" ng-show="ctrl.isAuthenticated()"> <div class="panel-button pull-right"><i class="fa fa-2x fa-cog" ng-click="ctrl.showPanel()"></i></div> <div class="panel-widget" ng-show="ctrl.panel"> <i class="fa fa-2x fa-save" ng-click="ctrl.save()" ng-hide="saved"></i> <i class...
(function(global) { var vwl = {}; var receivePoster; var receiveEntry; var receiveLoadedList; // vwl.init - advertise VWL info and register for VWL messages // Parameters: // left - (optional) url of this world's initial left entry image // right - (optional) url of this world's initial right entry image // recei...
# -*- coding: utf-8 -*- """The initialization file for the Pywikibot framework.""" from __future__ import absolute_import, unicode_literals __release__ = '2.0b3' __version__ = '$Id$' __url__ = 'https: import datetime import math import re import sys import threading import json if sys.version_info[0] > 2: from que...
package gui; import java.awt.Font; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.image.BufferedImage; import java.awt.Toolkit; import javax.imageio.ImageIO; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextArea; import javax.swing.SwingConstants; i...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Slate Sample</title> <script src="https://use.fontawesome.com/3d815f531c.js"></script> </head> <body> <div id="root"></div> <script src="bin/app.bundle.js"></script> </body> </html>
<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>...
package curveavg; /** * Small helper class for computing the circular arc between two points. * @author Sebastian Weiss */ public class CircularArc { private static final float EPSILON = 1e-5f; private final Vector3f P; private final Vector3f A; private final Vector3f B; private Vector3f C; p...
// These two object contain information about the state of Ebl var GlobalState = Base.extend({ constructor: function() { this.isAdmin = false; this.authToken = null; this.docTitle = null; this.container = null; // default config this.config = { template: '...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DiveConditions.ViewModels.Manage { public class FactorViewModel { public string Purpose { get; set; } } }
using System; using System.Net.Http; using System.Threading.Tasks; using FluentAssertions; using Xunit; namespace ApplicationInsights.OwinExtensions.Tests { public class <API key> : IDisposable { public <API key>() { OperationIdContext.Clear(); } [Fact] public...
// CRToast #import <Foundation/Foundation.h> #import "CRToastManager.h" @import UIKit; typedef void (^CRToastImageBlock)(UIImageView*); @interface <API key> : NSObject @property (nonatomic, copy) CRToastImageBlock block; - (instancetype)initWithBlock:(CRToastImageBlock)block; - (void)performWith:(UIImageView*)imageVie...
// This file genenerated by the Buckle tool on 2/13/2015 at 8:27 AM. // Contains strongly typed wrappers for resources in VacuumResources.resx namespace Vacuum { using System; using System.Reflection; using System.Resources; using System.Diagnostics; using System.Globalization; <summary> Strongly typed resource wrapper...
# test_eng.py # pylint: disable=C0103,C0111,C0302,E0611,R0913,R0915,W0108,W0212 # Standard library imports import functools import sys import pytest from numpy import array, ndarray # Putil imports import putil.eng from putil.test import AE, AI, CS # Global variables DFLT = 'def' PY2 = bool(sys.hexversion < 0x03000000)...
<div class="commune_descr limited"> <p> Le&nbsp;Caire est un village géographiquement positionné dans le département de l'<API key> en Provence-Alpes-Côte d'Azur. Elle comptait 70 habitants en 2008.</p> <p>Le parc de logements, à Le&nbsp;Caire, se décomposait en 2011 en sept appartements et 61 maisons s...
<?php include "config.php"; session_start(); if(!isset($_SESSION['username'])){ //header("location:login.php"); } ?> <!DOCTYPE html> <! This is a starter template page. Use this page to start your new project from scratch. This page gets rid of all links and provides the needed markup only. <html> <head> <meta charse...
require "pact_broker/api/resources/<API key>" require "pact_broker/matrix/service" module PactBroker module Api module Resources describe <API key> do include_context "stubbed services" before do allow(PactBroker::Deployments::EnvironmentService).to receive(:find_by_name).and_retur...
import React from 'react' import { Container, Group, TabBar, Icon, Badge, amStyles, } from 'amazeui-touch' import {Link} from 'react-router' class App extends React.Component{ propsType ={ children:React.PropTypes.node } render(){ let { location, params, ...
<?php $<API key> = get_the_category(); $<API key> = ""; if ( ! empty( $<API key> ) ) { $<API key> = esc_html( $<API key>[0]->name ); } ?> <article class="su-article su-article--divider su-article--<?php echo strtolower($<API key>); ?>" id="post-<?php the_ID(); ?>"> <header class="su-header su-article__header"> ...
<?php namespace jeremykenedy\laravelusers; use Illuminate\Support\ServiceProvider; class <API key> extends ServiceProvider { private $_packageTag = 'laravelusers'; /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap ...
<?php namespace framework\ext; //xml class Xml { public static function decode($xml) { $values = array(); $index = array(); $array = array(); $parser = xml_parser_create('utf-8'); <API key>($parser, <API key>, 1); <API key>($parser, <API key>, 0); <API k...
import com.sendgrid.Method; import com.sendgrid.Request; import com.sendgrid.Response; import com.sendgrid.SendGrid; import com.sendgrid.helpers.mail.Mail; import com.sendgrid.helpers.mail.objects.Content; import com.sendgrid.helpers.mail.objects.Email; import com.sendgrid.helpers.mail.objects.Personalization; import j...
<!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.5"/> <title>Bombás játék: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <...
<?php namespace BlogBundle\Document; use Doctrine\ODM\MongoDB\DocumentRepository; class TagRepository extends DocumentRepository { public function getTagByName($name = '') { $query = $this->createQueryBuilder() ->field('name')->equals($name); return $query->getQuery()->getSingleResul...
require "faraday" require "faraday_middleware" require "sqoot/version" require "sqoot/client" directory = File.expand_path(File.dirname(__FILE__)) module Sqoot class << self attr_accessor :affiliate_token, :<API key>, :api_url, :api_version # Configure default credentials easily # @yield [Sqoot] def c...
<?php namespace Phinx\Db; use Phinx\Db\Table\Column; use Phinx\Db\Table\Index; use Phinx\Db\Table\ForeignKey; use Phinx\Db\Adapter\AdapterInterface; class Table { /** * @var string */ protected $name; /** * @var array */ protected $options = array(); /** * @var AdapterInterf...
<?php namespace Forge\Log; class File extends Writer { // Directory to place log files in protected $_directory; // Creates a new file logger. Checks that the directory exists and // is writable. public function __construct( $directory ) { if ( ! is_dir($directory) OR ! is_writable($dire...
# The set of languages for which implicit dependencies are needed: set(<API key> "CXX" ) # The set of files for implicit dependencies of each language: set(<API key> "/home/sriramana/argos3-examples/controllers/<API key>/<API key>.cpp" "/home/sriramana/argos3-examples/build/controllers/<API key>/CMakeFiles/<API k...
require_relative "helper" class HooksTest < MiniTest::Unit::TestCase def setup @hooked_class = Class.new do class << self attr_accessor :<API key> def method_added(method) @<API key> = true end end include Harbor::Hooks attr_accessor :before_hook_calls, :a...
/* * @file sample.c * @author Akagi201 * @date 2014/12/06 */ #include <stdio.h> #include "bytes2str.h"" int main(void) { char in[] = {0xC8, 0x32, 0x9B, 0xFD, 0x0E, 0x01}; char out[32] = {0}; int olen = sizeof(out); bytes2str(in, 6, out, &olen); printf("out: %s, olen: %d\n", out, olen); retur...
const version = '1.1.3', collection = {}; function extendUnstrap (v) { var list; if (!collection[v].selectors) { collection[v].selectors = ['.' + collection[v].name]; } collection[v].selectors.forEach(function (sel) { list = document.querySelectorAll(sel); for (var i = 0; i <...
// Generated by class-dump 3.5 (64 bit). #import "NSObject.h" @class NSArray; @protocol <API key> <NSObject> - (NSArray *)lineDataForBounds:(struct _DVTGraphBounds)arg1; @end
<div class="modal-header"> <button type="button" class="close" ng-click="closeDialog()" aria-hidden="true">&times;</button> <h4 class="modal-title">Widget hinzufügen</h4> </div> <div class="modal-body" class="row"> <div class="panel-group" id="accordion" role="tablist" <API key>="true"> <div class="pane...
<?php /* PgGsbFraisBundle::accueilCompta.html.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("PgGsbFraisBundle::layout.html.twig"); $this->blocks = array( ...
'use strict'; const toBytes = s => [...s].map(c => c.charCodeAt(0)); const xpiZipFilename = toBytes('META-INF/mozilla.rsa'); const oxmlContentTypes = toBytes('[Content_Types].xml'); const oxmlRels = toBytes('_rels/.rels'); const fileType = input => { const buf = input instanceof Uint8Array ? input : new Uint8Array(...
import logging from abc import ABCMeta, abstractmethod from collections import deque from typing import List, Union, Iterable, Sequence log = logging.getLogger(__name__) class <API key>(RuntimeError): pass class Controller(metaclass=ABCMeta): @abstractmethod def run(self): raise NotImplementedError ...
import { injectable, inject } from "inversify"; import { TYPES } from "../ioc/types"; const cacheKey = "<API key>"; @injectable() export class <API key> { constructor( @inject(TYPES.IConfig) private _config: IConfig, @inject(TYPES.Logger) private _logger: ILogger, @inject(TYPES.IBasicCache) private _cache...
// PS4Macro (File: Forms/MainForm.cs) // 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 persons to whom the Software is // furnished to do so, subject to the following ...
TAG?=latest .PHONY: build build: ./build.sh .PHONY: build-gateway build-gateway: (cd gateway; ./build.sh latest-dev) .PHONY: test-ci test-ci: ./contrib/ci.sh .PHONY: ci-armhf-build ci-armhf-build: (cd gateway; ./build.sh $(TAG) ; cd ../auth/basic-auth ; ./build.sh $(TAG)) .PHONY: ci-armhf-push ci-armhf-...
let fs = require("fs"); let path = require("path"); let cp = require("child_process"); function runCommand(folder, args) { cp.spawn("npm", args, { env: process.env, cwd: folder, stdio: "inherit" }); } function getPackages(category) { let folder = path.join(__dirname, category); return fs .readdirSync(folder) ...
// AppDelegate.h // wufeng_cocoapods #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <<API key>> @property (strong, nonatomic) UIWindow *window; @end
// download the contents of a url package main import ( "fmt" "io/ioutil" "log" "net/http" ) func main() { res, err := http.Get("http: if err != nil { log.Fatal(err) } robots, err := ioutil.ReadAll(res.Body) res.Body.Close() if err != nil { log.Fatal(err) } ...
# DOMHooks Hooks functions' execution to DOM queries. DOMHooks is an utility function meant for DOM contextual scripting. By using it you can pair a specific DOM selector (or HTML class selector) with a function which needs to be executed just on that context. Example: javascript //old pattern jQuery(document).ready(fu...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { ColorPickerModule } from '<API key>'; // compon...
<?php $_pluginInfo=array( 'name'=>'Inet', 'version'=>'1.0.3', 'description'=>"Get the contacts from a Inet account", 'base_version'=>'1.8.0', 'type'=>'email', 'check_url'=>'http://inet.ua/index.php', 'requirement'=>'email', 'allowed_domains'=>array('/(inet.ua)/i','/(fm.com.ua)/i'), )...
package org.workcraft.plugins.circuit; import org.workcraft.annotations.DisplayName; import org.workcraft.annotations.Hotkey; import org.workcraft.annotations.SVGIcon; import org.workcraft.dom.Node; import org.workcraft.dom.visual.BoundingBoxHelper; import org.workcraft.dom.visual.DrawRequest; import org.workcraft.form...
#ifndef _SMT_ARITH_H_ #define _SMT_ARITH_H_ #include"ast.h" #include"smt_solver_types.h" #include"params.h" #include"statistics.h" class model; namespace smt { class arith { struct imp; imp * m_imp; params_ref m_params; public: arith(ast_manager & m, params_ref const & p);...
from core.himesis import Himesis, <API key> import uuid class <API key>(<API key>): def __init__(self): """ Creates the himesis graph representing the AToM3 model <API key> """ # Flag this instance as compiled now self.is_compiled = True super(<API key>, self).__init_...
layout: post title: iOS Localization date: 2014-10-25 categories: iOS This post contains some of my thoughts and experiences from localizing iOS applications. ##Format specifiers After many mistakes when localizing and having to change stuff later I've arrived at the conclusion that you should use the st...
module Lib where import Data.Function (on) import Data.List (findIndices, minimumBy, transpose) import Data.Maybe (isJust, isNothing) data Shape = Nought | Cross deriving (Read, Show, Eq) type Cell = Maybe Shape type Board = [Cell] boardSize = 3 emptyBoard = replicate (boardSize * boardSize) Nothing makeBoard :: Str...
<?php /* TwigBundle:Exception:traces.html.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array ...
Polaris::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both thread web server...
var models=require('../models/models.js'); // Autoload :id de comentarios exports.load=function (req,res,next,commentId) { models.Comment.find({ where:{ id:Number(commentId) } }).then(function (comment) { if(comment){ req.comment=comment; next(); ...
package net.dirtyfilthy.bouncycastle.asn1.nist; import net.dirtyfilthy.bouncycastle.asn1.DERObjectIdentifier; import net.dirtyfilthy.bouncycastle.asn1.sec.SECNamedCurves; import net.dirtyfilthy.bouncycastle.asn1.sec.<API key>; import net.dirtyfilthy.bouncycastle.asn1.x9.X9ECParameters; import net.dirtyfilthy.bouncycast...
<?php // Include the API require '../../lastfmapi/lastfmapi.php'; // Get the session auth data $file = fopen('../auth.txt', 'r'); // Put the auth data into an array $authVars = array( 'apiKey' => trim(fgets($file)), 'secret' => trim(fgets($file)), 'username' => trim(fgets($file)), 'sessionKey' => trim(f...
BuildTearDown { throw "forced error" } Task default -depends Compile,Test,Deploy Task Compile { "Compiling;" } Task Test -depends Compile { "Testing;" } Task Deploy -depends Test { "Deploying;" }
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen"> <lin...
package com.cosmos.kafka.client.producer; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerRecord; import java.util.Properties; import java.util.Random; import static org.apache.kafka.clients.producer.ProducerConfig.*; /** * Producer using multiple partition */ ...
// FAQViewController.h // AKG #import <UIKit/UIKit.h> @interface FAQViewController : UIViewController @end
#David Hickox #Feb 15 17 #Squares (counter update) #descriptions, description, much descripticve #variables # limit, where it stops # num, sentry variable #creates array if needbe #array = [[0 for x in range(h)] for y in range(w)] #imports date time and curency handeling because i hate string formating (this takes ...
<?php namespace Minsal\GinecologiaBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * SrgTipoConsultaPf * * @ORM\Table(name="<API key>") * @ORM\Entity */ class SrgTipoConsultaPf { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\Generated...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jprover: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>icharate: 41 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="style...
using System; using AppStudio.Uwp; namespace DJNanoShow.ViewModels { public class PrivacyViewModel : ObservableBase { public Uri Url { get { return new Uri(UrlText, UriKind.RelativeOrAbsolute); } } public string UrlText ...
import React, { PropTypes } from 'react'; import TodoItem from './TodoItem'; const TodoList = ({todos}) => ( <ul className="todo-list"> {todos.map(todo => <TodoItem key={todo.id} {...todo} /> )} </ul> ); TodoList.propTypes = { todos: PropTypes.array.isRequired } export default TodoList;
<?php namespace Podlove\Settings\Dashboard; use Podlove\Model; class FileValidation { public static function content() { global $wpdb; $sql = ' SELECT p.post_status, mf.episode_id, mf.episode_asset_id, mf.size, mf.id media_file_...
package de.mpg.mpdl.labcam.code.common.widget; public class Constants { public static final String STATUS_SUCCESS = "SUCCESS"; public static final String KEY_CLASS_NAME = "key_class_name"; public static final String SHARED_PREFERENCES = "myPref"; // name of shared preferences public static final String ...
const process = require("process"); const path = require("upath"); const semver = require("semver"); const fs = qx.tool.utils.Promisify.fs; /** * Installs a package */ qx.Class.define("qx.tool.cli.commands.package.Migrate", { extend: qx.tool.cli.commands.Package, statics: { /** * Flag to prevent recursiv...
#ifndef __FTCharmap__ #define __FTCharmap__ #include <XMFreeType/ft2build.h> #include FT_FREETYPE_H #include FT_GLYPH_H #include <FTGL/ftgles.h> #include "<API key>.h" /** * FTCharmap takes care of specifying the encoding for a font and mapping * character codes to glyph indices. * * It doesn't preprocess a...
package gavilan.irc; import java.util.Set; import javax.annotation.PreDestroy; import org.pircbotx.PircBotX; public interface TwitchCore { void doGreet(ChatMessage cm); Set<String> getPendings(); void message(String channel, String message); void onMessage(ChatMessage cm); @PreDestroy void shutdown(); voi...
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * Documento * * @ORM\Table(name="documentos") * @ORM\Entity */ class Documento { /** * @var integer * * @ORM\Column(name="...
package com.github.visgeek.utils.collections; import java.util.Iterator; class LinqConcateIterator<T> implements Iterator<T> { public LinqConcateIterator(Iterable<T> source, Iterable<? extends T> second) { this.second = second; this.itr = source.iterator(); this.isSwitched = false; } ...
package de.csmath.QT; import java.util.Collection; import java.util.List; /** * This class builds a FTypeAtom from given parameters. * @author lpfeiler */ public class FTypeAtomBuilder extends QTAtomBuilder { /** * @see FTypeAtom#majBrand */ private int majBrand = 0; /** * @see FTypeAtom#m...
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Workweek Template: Tyler Kirkham Andrews</title> <meta name="description" content="Workweek lets you build your own portfolio with built-in invoicing and payment proc...
package personifiler.cluster; import static org.junit.Assert.*; import org.junit.Test; import personifiler.util.TestUtils; /** * Tests for {@link RandIndex} * * @author Allen Cheng */ public class TestRandIndex { /** * Tests that the rand index of a cluster is between 0.0 and 1.0 */ @Test publ...
namespace Azure.Security.Attestation { public partial class <API key> : System.IDisposable { protected <API key>() { } public <API key>(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public <API key>(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Secur...
const daggy = require('daggy') const compose = (f, g) => x => f(g(x)) const id = x => x // create constructor with props 'x' and 'f' // 'x' is our value, 'f' is a function const Coyoneda = daggy.tagged('x', 'f') // map composes the function Coyoneda.prototype.map = function(f) { return Coyoneda(this.x, compose(f, thi...
package org.coursera.androidcapstone.symptomchecker.repository; import java.util.List; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.<API key>; import org.springframework.data...
var map, boroughSearch = [], theaterSearch = [], museumSearch = []; /* Basemap Layers */ var mapquestOSM = L.tileLayer("http://{s}.tiles.mapbox.com/v3/am3081.h0po4e8k/{z}/{x}/{y}.png"); var mbTerrainSat = L.tileLayer("https://{s}.tiles.mapbox.com/v3/matt.hd0b27jd/{z}/{x}/{y}.png"); var mbTerrainReg = L.tileLaye...
# Jirabot A Slack bot that watches any channel it's invited to for mentions of JIRA issues. If it sees one, it responds with a message consisting of: ISSUE-1223: Issue summary https://yourlocation.jira.com/browse/ISSUE-1223 Issue Status (Issue Type) ## Setup You'll need to configure a bot on Slack (fixme: A...
# <API key>: true require 'spec_helper' describe ErrorTracking::<API key> do include <API key> set(:project) { create(:project) } subject { create(:<API key>, project: project) } describe 'Associations' do it { is_expected.to belong_to(:project) } end describe 'Validations' do context 'when api_url ...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('commentator', 'Unit | Model | commentator', { // Specify the other units that are required for this test. needs: [] }); test('it exists', function(assert) { let model = this.subject(); // let store = this.store(); assert.ok(!!model); });
<?php class Xform_model extends CI_Model { /** * Table name for xform definitions * * @var string */ private static $xform_table_name = "xforms"; //default value /** * Table name for archived/deleted xforms * * @var string */ private static $<API key> = "archive_x...