answer
stringlengths
15
1.25M
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import <API key> from "@babel/runtime/helpers/builtin/<API key>"; import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import withProps from 'recompose...
# GENERATED FROM Dockerfile.template FROM vicamo/buildpack-deps:sid-hurd-i386-scm RUN set -ex; \ apt-get update; \ apt-get install -y --<API key> \ autoconf \ automake \ bzip2 \ dpkg-dev \ file \ g++ \ gcc \ imagemagick \ libbz2-dev \ ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using StarshipSeven.GameInterfaces; using System.Windows.Media; namespace StarshipSeven.GameEntities { public class HumanPlayer : Player, IHumanPlayer { public HumanPlayer(Guid id) : base(id) { ...
{% extends 'layout.html' %} {% from 'macros/basic.html' import octicon without context %} {% block body %} <h1>{{ repo.full_name }} <small>&laquo;manage&raquo;</small> </h1> <table class="table table-striped"> <tr> <th>Full name:</th> <td>{{ repo|gh_repo_link }}</td> ...
<?php namespace Deployer\Task; use Deployer\Host\Host; use Deployer\Host\HostCollection; use Deployer\Component\PharUpdate\Exception\<API key>; use PHPUnit\Framework\TestCase; class ScriptManagerTest extends TestCase { public function <API key>() { $scriptManager = new ScriptManager(new TaskCollection()...
'use strict'; //Setting up route angular.module('enumerations').config(['$stateProvider', function($stateProvider) { // Enumerations state routing $stateProvider. state('enumeration-modal', { url: '/enumeration-modal', templateUrl: 'modules/enumerations/views/enumerat...
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # Note that this schema.rb definition is the authoritative sourc...
// Code generated by protoc-gen-go. // source: rendermessages.proto // DO NOT EDIT! package dota import proto "github.com/golang/protobuf/proto" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = math.Inf type CMsgBeginFrame struct { FramePaintTi...
class <API key> @config = { log_failed: false, base_url: 'http://im.govwizely.com/api/terms.json' } @valid_config_keys = @config.keys def self.configure(options = {}) options.each { |key, value| @config[key.to_sym] = value if @valid_config_keys.include? key.to_sym } @config[:log_failed] = fals...
namespace Microsoft.Azure.Management.Sql.Fluent { using Microsoft.Azure.Management.ResourceManager.Fluent.Core; using Microsoft.Azure.Management.Sql.Fluent.Models; using System; <summary> An immutable client-side representation of an Azure SQL ElasticPool's Database Activity. </summary> publ...
package com.socialthingy.plusf.p2p.discovery import java.net.InetSocketAddress import java.nio.ByteBuffer import java.util.Optional import akka.actor.{ActorSystem, PoisonPill} import akka.testkit.TestKit import com.socialthingy.p2p.{Peer, _} import com.socialthingy.plusf.p2p._ import org.mockito.Mockito._ import org.sc...
'use strict'; describe('Service: Auth', function () { // load the service's module beforeEach(module('waxeApp')); // instantiate service var Auth; beforeEach(inject(function (_Auth_) { Auth = _Auth_; })); it('should do something', function () { expect(!!Auth).toBe(true); }); });
namespace Yeoman.VisualStudio { using System; using System.Collections.Generic; using System.IO; using System.Linq; public class DirectoryWatcher { private string[] filesAtStart; private string[] filesAtEnd; private IEnumerable<string> filesToAdd; private IEnumera...
import click import workflow from alfred_omni_api import AuthKeys, ConfigKeys, config from omni_api.trello import TrelloClient wf = workflow.Workflow() def get_password(key): try: return wf.get_password(key) except workflow.PasswordNotFound: return None def prompt_for_keychain(label, key, hide=T...
package org.lemsml.jlems.core.type; import org.lemsml.jlems.core.annotation.ModelElement; import org.lemsml.jlems.core.annotation.ModelProperty; import org.lemsml.jlems.core.expression.ParseError; import org.lemsml.jlems.core.expression.Parser; import org.lemsml.jlems.core.logging.E; import org.lemsml.jlems.core.sim.Co...
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class Badges </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Class Badges "> <meta name="generator"...
/** * Comment. */ a { text-decoration: none; } a:hover, a.\:hover { text-decoration: underline; } a:active, a.\:active { font-weight: bold; } a:hover, a:focus, a.\:hover, a.\:focus { font-weight: bold; } a.lol:active, a.lol.\:active { font-weight: normal; } a:nth-child(5), a.\:nth-child\(5\) { border: 1px...
<!DOCTYPE html> <html> {% include head.html %} <body> {% include header.html %} <div class="container-fluid"> {{ content }} </div> {% include footer.html %} </body> </html>
class App < ActiveRecord::Base belongs_to :organization validates :name, :organization, presence: true scope :backed_up, -> { where("<API key> IS TRUE") } scope :not_backed_up, -> { where("<API key> IS FALSE") } scope :no_schedules, -> { where("backup_schedule IS NULL") } ADDON_FINDERER_SQL = <<-EOS SEL...
var objectpool_8h = [ [ "ObjectPool", "class_object_pool.html", "class_object_pool" ], [ "ThreadPool", "objectpool_8h.html#<API key>", null ] ];
package es.shyri.swagger.android.volley.petstore.full; import com.android.volley.ExecutorDelivery; import com.android.volley.Network; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.BasicNetwork; import com.android.volley.toolbox.HttpStack; import com.android...
var fs = require('../../util/fs'); var path = require('path'); var mout = require('mout'); var Q = require('q'); var rimraf = require('../../util/rimraf'); var endpointParser = require('<API key>'); var PackageRepository = require('../../core/PackageRepository'); var semver = require('../../util/semver'); var defaultCo...
package com.sivalabs.jcart.site.web.controllers; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import com.si...
define(["../core","../event","./trigger"],function(e){"use strict";e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(o,u){e.fn[u]=function(e,o){return argument...
var mysql = require('mysql'); module.exports = function(app, config){ var self = this; var mysqlPool = mysql.createPool(config.db); function createSystem(req, res) { //var sql = "INSERT INTO " } function updateSystem(req, res) { } function deleteSystem(req, res) { } function ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>compcert: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
module Adminpanel class <API key> < ActionView::Helpers::FormBuilder include ApplicationHelper alias_method :text_field_original, :text_field alias_method :<API key>, :radio_button alias_method :text_area_original, :text_area alias_method :<API key>, :password_field alias_method :<API key>, :n...
'use strict'; angular.module('todoApp') .directive('autofocus', function () { return { link: function (scope, element, attrs) { scope.$watch(attrs.autofocus, function (val) { if (angular.isDefined(val) && val) { // $timeout(function() { element[0].focus(); ...
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>ResponseCorsFilter xref</title> <link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> </head> <body> <div id="overview"><a href="../../../../../apidocs/edu/msu/nscl/olog/...
#include "FileSystem.h" #include "LogUnimpl.h" #include <fuse.h> #include <iostream> #include <cstddef> #include <string> using RT11FS::FileSystem; using std::cerr; using std::endl; using std::string; namespace { struct rt11_config { char *image; int listdir; }; static auto getFS() { return reinterpret_cast<FileS...
<?php include("database.php"); $email = $_POST["email"]; if($email != "" || $email != NULL) { $pdo = new PDO($database_conexao, $database_username, $database_senha); $query = "SELECT * FROM grupo_randori WHERE grupo_randori.nome = (SELECT user.fk_grupo_randori FROM user WHERE EMAIL=:email)"; $statement = $pdo->prepare(...
(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. define(['expect.js', '../../src/index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. factory(require('expect.js'), requi...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_51) on Mon Mar 14 15:22:41 CDT 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>S-Index (Cat's Cradle)</title> <meta name="date" content="2016-03-14"> <link rel="stylesheet" type="text/c...
<a href="/random">Random page</a>
<stbui-search placeholder="" class="mat-elevation-z4 m-b-16" (onSearch)="onSearchTriggered($event)" ></stbui-search> <div class="mat-elevation-z4"> <table mat-table [dataSource]="dataSource"> <ng-container matColumnDef="select"> <th mat-header-cell *matHeaderCellDef> <mat-checkbox (c...
# 3dObjectViewerJS JavaScript 3D Object Viewer using Canvas View 3D Objects in "object space", can only handle one continous strip of vertexes. So models with seperate pieces are not supported. Very primitive. Has single source lighting & texturing (auto generated texture from http://ricardocabello.com/blog/post/710) T...
<! Filters form : - Pages - Search field (title, content, etc.) <div id="maincolumn"> <h2 class="main articles" id="main-title"><?= lang('<API key>') ?></h2> <?php $nbLang = count(Settings::get_languages()); $width = (100 / $nbLang) - 10; $...
import curry1 from './_private/curry1' /** * @function exists * @desc Validates if a value is not null or undefined * @param {*} x - any valid Javascript value * @example * * exists(null) // false * exists([] // true * */ export default curry1(function exists (x) { return !(x == null) })
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Comp4414Component } from './comp-4414.component'; describe('Comp4414Component', () => { let component: Comp4414Component; let fixture: ComponentFixture<Comp4414Component>; beforeEach(async(() => { TestBed.<API key>({ decl...
# Capitan linter Linitng your private assets. ## ESLint Linting your JavaScript files with ESLinter. | | | | Task | grunt/tasks/eslint.js Rules | grunt/linter/.eslintrc Used Plugin | https: Rule List| http://eslint.org/docs/rules/ ## HMTL Hint Linting your generated HTML files **except** the styleguide.html. | | ...
using System; namespace ReMi.DataAccess.Exceptions.Configuration { public class <API key> : <API key> { public <API key>(Guid boardId) : base(FormatMessage(boardId)) { } public <API key>(Guid boardId, Exception innerException) : base(FormatMessage(boardId)...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title >Cloud Connection</title> <meta name="description" content="" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text...
/* Remove the "Styling with Markdown is supported" link when a PR comment is in edit mode */ a.tabnav-extra[href$='mastering-markdown/'] { display: none !important; } /* Remove annoying "helpful" banner on the issue tracker listing */ .repository-content .mb-4.js-notice { display: none !important; } /* Remove a...
package main import ( "context" "crypto/rand" "encoding/base64" "encoding/gob" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "path/filepath" "github.com/gorilla/securecookie" "github.com/gorilla/sessions" "golang.org/x/oauth2" "golang.org/x/oauth2/google" ) v...
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # Note that this schema.rb definition is the authoritative sourc...
using LanguageExt; namespace SJP.Schematic.Core { public class <API key> : DatabaseColumn, <API key> { public <API key>( Identifier columnName, IDbType type, bool isNullable, Option<string> defaultValue, Option<string> definition ) : ba...
using System.Collections.Generic; using Cresce.Datasources.Commands; using Cresce.Models.Interfaces; namespace Cresce.Datasources.Sql.Commands { internal class CrudCommandsBuilder<TEntity> : <API key><TEntity> where TEntity : IIdenfiable { private readonly IQueryBuilder _queryBuilder; pr...
#include "Common/Common.h" #include "IVolumeControl.h" #include "IMouseControl.h" #include "IKeyboardControl.h" #include "IDisplayControl.h" #include "IAudioInput.h" #if defined(WIN32) #include "../Win32/<API key>.h" #endif namespace MinCOM { // {<API key>} template<> const Guid TypeInfo< RemotePC::IVolumeContr...
<HTML><HEAD> <TITLE>Review for Haunting, The (1999)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0171363">Haunting, The (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Dennis+Schwartz"...
from microbit import * while True: if button_a.is_pressed(): pin1.write_digital(1) pin2.write_digital(1) pin0.write_digital(0) pin8.write_digital(0) display.show(Image.ARROW_N) elif button_b.is_pressed(): pin0.write_digital(1) pin8.write_digital(1) ...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Windows.Media.Imaging; namespace CharacterEditor.Models { public class Character : NotifyableBase, ICloneab...
var http = require('http'); var fs = require('fs'); var path = require('path'); var mime = require('mime'); var cache = {}; function send404 (response) { response.writeHead(404, {'Content-Type': 'text/plain'}); response.write('Error 404: resource not found.'); response.end(); } function sendFile (response, filePa...
export const length1 = "Lorem"; export const length2 = "Lorem ipsum"; export const length3 = "Lorem ipsum dolor"; export const length4 = "Lorem ipsum dolor sit amet"; export const length5 = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
namespace Atlas.Models { public class Language { public int Id { get; set; } public string Name { get; set; } } }
/** * Canned policy tests */ var _ = require('lodash'); var chai = require('chai'); var expect = chai.expect; var CannedPolicy = require('../../lib/CannedPolicy'); describe('CannedPolicy', function() { it('should convert `expireTime` to seconds', function(done) { var expireTimeMs = new Date().getTime(); var...
#import <UIKit/UIView.h> // Not exported @interface <API key> : UIView { _Bool <API key>; } + (id)<API key>:(id)arg1; + (id)wrapperViewForView:(id)arg1 wrapperFrame:(struct CGRect)arg2 viewFrame:(struct CGRect)arg3; + (id)wrapperViewForView:(id)arg1 frame:(struct CGRect)arg2; @property(nonatomic) _Bool <API key>; /...
'use strict'; var express = require('express'), posts = require('./mock/posts.json'); var app = express(); app.get('/', function(req, res){ res.send("<h1>Hello!</h1>"); }); app.get('/blog/:title?', function(req, res){ var title = req.params.title; if (title == undefined) { res.status(503); ...
const express = require('express'); const path = require('path'); const port = process.env.PORT || 8080; const app = express(); app.use(express.static(__dirname)); app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, 'index.html')); }); app.listen(port); console.log('Server has started.');
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About <API key></source> <translation>O <API key></translation> </mess...
package com.techjar.ledcm.hardware; import com.techjar.ledcm.hardware.manager.LEDManager; import com.techjar.ledcm.LEDCubeManager; import com.techjar.ledcm.util.math.Dimension3D; import com.techjar.ledcm.util.math.<API key>; import com.techjar.ledcm.util.math.Vector3; import org.lwjgl.util.Color; /** * Immutable LED a...
#ifndef SIG_UTIL_FOLD_HPP #define SIG_UTIL_FOLD_HPP #include "../helper/helper_modules.hpp" #include "../helper/container_helper.hpp" \file fold.hpp namespace sig { /** (a -> b -> a) -> a0 -> [b] -> a \n a0a \param func (a -> b -> a) \param init a0 \param list [b]\ref sig_container \return a...
import os import argparse keywords = {\ "mac":[\ "brew install",\ "brew cask install",\ "port install"\ ],\ "linux":[\ "apt-get install",\ "aptitude install",\ "yum install",\ "pacman install",\ "dpkg -i",\ "dnf install",\ "zypp...
using ReMi.Contracts.Plugins.Data; using ReMi.Contracts.Plugins.Data.CacheService; using ReMi.Contracts.Plugins.Services.CacheService; namespace ReMi.Plugin.Composites.Services { public class <API key> : BaseComposit<ICacheService>, ICacheService { public void SetKey(CacheEntry entry) { ...
<?php /** * UserIdentity represents the data needed to identity a user. * It contains the authentication method that checks if the provided * data can identity the user. */ class UserIdentity extends CUserIdentity { public $error_msg; public $error_field; /** * Authenticates a user. * The exam...
import gevent import pytest from raiden.api.python import RaidenAPI from raiden.tests.utils.detect_failure import raise_on_failure from raiden.tests.utils.events import ( <API key>, search_for_item, <API key>, <API key>, ) from raiden.tests.utils.network import CHAIN from raiden.tests.utils.protocol imp...
import styles from './UserInput.less'; import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { MIN_FONT_SIZE, MAX_FONT_SIZE } from 'constants'; import { updateTextColor, blurTextColor, updateFontSize, blurFontSize, updateFontSizeUnit, toggleFontWeight, <API key>, blurBackgroun...
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1"/> <title>EZFILE</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/...
using System; using NHibernate; namespace Utilities.Transactions { public class Transaction: IDisposable { private readonly ISession _session; private readonly bool <API key>; public Transaction(ISession session) { _session = session; <API key> = session.T...
public class Rectangle { /* * Define two public attributes width and height of type int. */ // write your code here public int width; public int height; /* * Define a constructor which expects two parameters width and height here. */ // write your code here public Rectang...
#include "ImageVerification.hpp" #include <assert.h> #include <cstdlib> #include <Video/LowLevelRenderer/Interface/LowLevelRenderer.hpp> #include <Utility/Log.hpp> #define <API key> #include <stb_image_write.h> #define STBI_ONLY_PNG #include <stb_image.h> using namespace Video; ImageVerification::ImageVerification(LowL...
<!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript"> function validate () { var promo=document.getElementById('promocode').value; if (promo=="APA") { alert("MAAF") }; } </script> </head> <body> <input id="pomocode" name="promocode" > <inpu...
// Nova double testing service - HTTP API implementation package novaservice import ( "crypto/rand" "encoding/json" "fmt" "io" "io/ioutil" "launchpad.net/goose/nova" "launchpad.net/goose/testservices" "launchpad.net/goose/testservices/identityservice" "net/http" "path" "strco...
<?php namespace Ftm\PlayerBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Server * * @ORM\Table() * @ORM\Entity(repositoryClass="Ftm\PlayerBundle\Entity\ServerRepository") */ class Server { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedVa...
module LogicCode ( HuffmanNode, truthTable, grayCode, huffmanCode ) where data HuffmanNode a = Empty | Leaf (a, Int) | Branch Int (HuffmanNode a) (HuffmanNode a) --Problem 46 - 49: Problem 48: Truth tables for logical expressions. --Eg: truthTable 3 (\[a, b, c] -> Logical expr involving a, b, and c) truthTable ::...
<?php namespace Payever\Bundle\ApiBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class PayeverApiBundle extends Bundle { }
#include "AsioLibWrapper.h" #include "ASIOOutput.h" #include "AudioPlayer.h" #include "AudioFormat.h" #include "AudioBufferList.h" #include "Logger.h" namespace { template<typename T, typename... Args> std::unique_ptr<T> make_unique(Args&&... args) { return std::unique_ptr<T>(new T(std::forward<Args...
-- @desc -- @author viticm -- @date 2015-4-22 16:01:20 module("toplist_combat_t", package.seeall) -- Mvc ... require_ex("logic/toplist/modules/combat") require_ex("logic/toplist/views/combat") require_ex("logic/toplist/controllers/combat") function new() local toplist_combat = {} setmetatable(toplist_combat, {__ind...
// Generated by class-dump 3.5 (64 bit). #import <IDEKit/<API key>.h> @class NSMutableArray, NSPopUpButton, NSSound; @interface <API key> : <API key> { NSPopUpButton *_soundPopUpButton; NSMutableArray *_recentSounds; NSSound *_playingSound; } @property(retain) NSPopUpButton *soundPopUpButton; // @synthe...
# AppServiceOverview Repository for sample code used in my App Service Overview presentation
# images.hashblot.com This app generates Hashblot images for incoming requests.
// Package semaphore is a Go library that implements a semaphore for controlling // the concurrency of workloads. Using a buffered channel, this package provides a // safe way for multiple goroutines to request and return semaphore permits. // For those not familiar with the concept of a semaphore, it allows you to con...
import * as Engine from "./Engine"; import * as IConnectionOptions from "./IConnectionOptions"; import * as IGenerationOptions from "./IGenerationOptions"; import * as NamingStrategy from "./NamingStrategy"; import * as Utils from "./Utils"; export { Column } from "./models/Column"; export { Entity } from "./models/Ent...
class Thought < ActiveRecord::Base attr_accessor :tag_list belongs_to :thinker, foreign_key: "thinker_id" belongs_to :category has_many :comments, dependent: :destroy has_many :attendances, dependent: :destroy has_many :thinkers, through: :attendances has_many :thought_tags, dependent: :dest...
// Use of this source code is governed by a MIT-style package user import ( api "github.com/gigforks/go-gogs-client" "github.com/gigforks/gogs/models" "github.com/gigforks/gogs/modules/context" "github.com/gigforks/gogs/modules/setting" "github.com/gigforks/gogs/routers/api/v1/convert" "github.c...
import React from 'react'; import PubSub from 'pubsub-js'; class RadioButton extends React.Component { constructor(props) { super(props); this.state = { selectedIndex: 0 }; this.onChange = this.onChange.bind(this); } componentDidMount() { } <API key>() { } onChange(state) { thi...
using System.Collections.Specialized; namespace <API key>.Adapters { public class <API key> : <API key><NameValueCollection> { public override string LookupMode { get { return "Key"; } } protected override void Add(string key, string value) { Colle...
import { Http } from '@angular/http'; import { RdService } from './../../services/rd.service'; import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { FormGroup, FormControl, Validators } from '@angular/forms'; @Component({ selector: 'app-user', templateUrl: './user...
import test from 'ava'; import 'babel-core/register'; import reducer from '../src/reducer'; import { ROUTE_TO_NEXT, ROUTE_TO, MODIFY_ROUTE } from '../src/ActionTypes'; const createRouteAction = (options) => ({ type: options.type, payload: { replace: !!options.replace, exit: !!options.exit, state: option...
.PHONY: help help: ## This help @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) install: ## Install package for development @pip install -r requirements-dev.txt test: @pytest tests/ --cov pytest_testdox --cov-report=xml check: ## Run sta...
TODO = ## Uncompleted - [ ] Embed.ly integration - [ ] Test on Medium ## Future - [ ] Rate limit reloads (1 per sec?) - [ ] Group gists together (by tag?, by folder?) ## Completed - [x] Log in using GitHub (1h) - [x] List gists for user (1h) - [x] Download gist. - [x] Parallelize gist download. - [x] Deliver gist files...
// Unit tests for the dependency injection. // Authors: // 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, // permit persons to whom the Software is furnished to ...
package ir.asparsa.hobbytaste.ui.fragment.content; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.annotation.StringRes; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.view.*; impo...
<?php declare(strict_types=1); namespace MsgPhp\Eav\Tests\Infrastructure\Doctrine; use MsgPhp\Domain\Infrastructure\Doctrine\MappingConfig; use MsgPhp\Eav\Infrastructure\Doctrine\EavObjectMappings; use PHPUnit\Framework\TestCase; /** * @internal */ final class <API key> extends TestCase { public function testMapp...
<scri <!DOCTYPE html> <html lang="fr" itemscope="" itemtype="http://schema.org/Blog"> <head> <script> if (window.parent !== window) { if (typeof btoa !== "function") { window.btoa = function (input) { var str = String(input); for (var block, charCode, idx = 0, map = chars, out...
<?php namespace AppBundle\Model; use Avanzu\AdminThemeBundle\Model\UserInterface; class UserModel implements UserInterface { /** * @var string */ protected $avatar; /** * @var string */ protected $username; /** * @var string */ protected $name; /** * @var ...
// inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot) View view = LayoutInflater.from(context).inflate(R.layout.resource,root,flase); XML View LayoutInflater Context.getSystemService ``PhoneLayoutInflater``. ![](http://ww1.sinaimg.cn/large/<API key>.jpg) ![](http://ww4.sinaimg.cn/large/<...
<?php /* TwigBundle:Exception:error.json.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 $...
package ca.jamesreeve.smarthome; import android.util.Log; import java.util.Observable; import java.util.Observer; public class DoorController implements Observer { static Door[] doors; MainActivity viewController; static final DoorController buildDoorController(int n, MainActivity viewController) { ...
package com.byteowls.vaadin.chartjs.options; public enum InteractionMode { /** * Finds all of the items that intersect the point */ POINT, /** * Gets the item that is nearest to the point. The nearest item is determined based on the distance to the center of the chart item (point, bar). ...
from .scholar import *