answer
stringlengths
15
1.25M
import os import warnings from pymatgen.core.structure import Structure from pymatgen.core.units import Ha_to_eV, bohr_to_ang from pymatgen.io.abinit.abiobjects import * from pymatgen.util.testing import PymatgenTest class <API key>(PymatgenTest): def test_rprim_acell(self): l1 = <API key>(acell=3 * [10], r...
<?php declare(strict_types=1); namespace Mihaeu\PhpDependencies\Dependencies; class Clazz extends ClazzLike { }
(function() { 'use strict'; // MODULES // var // Stream combiner: pipeline = require( 'stream-combiner' ), // Flow streams: flow = require( 'flow.io' ); // FUNCTIONS // /** * FUNCTION: map( fcn ) * Returns a data transformation function. * * @private * ...
'use strict'; module.exports = { compile: { options: { style: 'expanded', }, src : 'src/css/style.scss', dest : 'dist/css/style.css', }, };
Battleship project for U\+AF C\+S372 Spring 2016
<html> <head> <title>Praktikum PHP-Mysql</title> </head> <body> <font style="arial,helvetica" size="medium"> <b>Selamat datang di praktikum PHP-Mysql.</b></font><br> <font style="arial,helvetica" size="-1"> <b>Silahkan klik menu yang anda inginkan.</b></font> <br><br> <p> ins...
@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700); @import url(http://fonts.googleapis.com/css?family=Droid+Serif); body { background-color: #d4d4d4; font-family: "Droid Serif", Helvetica, Arial, Sans-Serif; margin: 0px; padding: 0px; } h1, h2, h3, h4, h5, h6, h7 { font-family: "Droid San...
<?php namespace Sdd; use Sdd\Builder\DirectDebit as Builder; use Sdd\DirectDebit\GroupHeader; use Sdd\DirectDebit\PaymentInformation; class DirectDebit { /** * @var null */ protected $groupHeader = null; /** * @var null */ protected $paymentInformation = null; /** * @param GroupHeader $groupHea...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>iris: 10 m 55 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="sty...
import _plotly_utils.basevalidators class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="arrowcolor", parent_name="layout.annotation", **kwargs ): super(ArrowcolorValidator, self).__init__( plotly_name=plotly_name, paren...
<?php /** * @var $property Property * @var $form ActiveForm */ use DevGroup\DataStructure\models\Property; use DevGroup\DataStructure\propertyHandler\RelatedEntity; use devgroup\jsoneditor\Jsoneditor; use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Json; use yii\widgets\ActiveForm; echo Yii::t('ap...
// Generated on 2014-11-07 using generator-angular 0.9.8 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec*.js' module.exports = function (grunt) { // Load grunt tasks automatic...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>concat: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
<html> <head> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.0.4; fa-ir) AppleWebKit/534.35 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.35 Puffin/2.10990AP Mobile</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <lin...
FROM nvidia/cuda:8.<API key>.04 RUN echo 'building GPU DeepDetect image' MAINTAINER Emmanuel Benazera "beniz@droidnik.fr" LABEL description="DeepDetect deep learning server & API / GPU version" RUN ln -sf /dev/stdout /var/log/deepdetect.log RUN ln -sf /dev/stderr /var/log/deepdetect.log RUN useradd -ms /bin/bash dd RUN...
using ColorTypes using ColorTypes.FixedPointNumbers using Test @isdefined(CustomTypes) || include("customtypes.jl") using .CustomTypes SP = VERSION >= v"1.6.0-DEV.771" ? " " : "" # JuliaLang/julia #37085 @testset "single color" begin iob = IOBuffer() cf = RGB{Float32}(0.32218,0.14983,0.87819) c = convert...
import { Injectable } from '@angular/core'; @Injectable() export class UuidService { constructor() { } /* tslint:disable:no-bitwise */ get() { let uuid = ''; let i; let random; for (i = 0; i < 32; i++) { random = Math.random() * 16 | 0; if (i === 8 || i === 12 || i === 16 || i === 20) ...
smarteditor.js =========== Class who wrap string that match regex. Is dependent of jQuery $el.html() and $el.text(). This class if often used in a contenteditable="true" context. ## Example Of Use CSS: css key.red {color:red;} key.green {color:green;} HTML: html <pre contenteditable="true" id="editor">${key1} and ${ke...
function List(storage, $) { var items = []; var doneItems = []; var nextId = 0; this.storage = storage; this.toDo = items; this.done = doneItems; this.add = function (text) { var newItem = new ListItemModel(nextId,text); items.push(newItem); storage.store(newItem.id, ...
require "spec_helper" describe Tantot::Agent::Block do context "normal usage" do let(:value) { {changes: 0} } let(:changes) { {obj: nil} } before do v = value c = changes stub_model(:city) do watch {|changes| v[:changes] += 1; c[:obj] = changes} end end it "should c...
package com.emc.ecs.metadata.dao.elasticsearch; import java.io.IOException; import java.net.InetAddress; import java.net.<API key>; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Map.Entry; import org.elasticsearch.action.ActionFuture; import org.elasticsearch.action.admin.indices.create.Cre...
/******************************************************************************* * Common styles */ html, body { color: #333333; font-family: Arial,sans-serif; font-size: 16px; } body { margin: 0; padding: 0; width: 100%; } ul { list-style-type: square; padding-left: 20px; } /********...
package com.notcmput301.habitbook; import android.Manifest; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Color; import android.location.Criteria; import android.location.Location; import android.location.LocationManager; import android....
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cecoa: 9 m 9 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="styl...
// Generated by xsd compiler for ios/objective-c // DO NOT CHANGE! #import <Foundation/Foundation.h> extern NSString *const CheckSumMethod_NONE; extern NSString *const <API key>;
import * as angular from 'angular'; import {<API key>} from '../../common/utils/request-utils.provider'; import <API key> from './recovery-password.component'; import Core from '../../core'; import Utils from '../../common/utils'; export default angular .module('app.recovery-password', [ Core, Utils...
// UIView+printSubviews.h // RYTSketchView #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface UIView (PrintSubviews) - (void)<API key>:(int)indentation; @end
package yokohama.unit.ast; public abstract class AstVisitor<T> { public abstract T visitGroup(Group group); public abstract T visitAbbreviation(Abbreviation abbreviation); public T visitDefinition(Definition definition) { return definition.accept( this::visitTest, thi...
// <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 xMaterialIcons { using System; <summary> A strongly-typed resource class, for looking up localized strings...
<?php namespace Widgets\Dropdown; class Dropdown extends \Widgets\Core\Base{ public $options; public function __construct($options){ $this->template = 'dropdown'; $this->package = 'dropdown'; parent::__construct($options); } }
using System; using System.Runtime.Serialization; // ReSharper disable CheckNamespace namespace SharpRemote // ReSharper restore CheckNamespace { <summary> This exception is thrown when a thrown exception should be marshalled (because it crosses the proxy / servant threshold) but cannot, for example because...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
#pragma once #ifndef <API key> #define <API key> 1 #include <memory> #include <vector> #include <visionaray/math/matrix.h> #include <visionaray/bvh.h> namespace visionaray { namespace gl { // OpenGL BVH outline renderer // Call init() and destroy() with a valid OpenGL context! class <API key> { public: // Configura...
bql` image(size="foo") { width height src } `;
<!doctype html> <html lang="en"> <head> <title></title> </head> <body> <h1></h1> <p>hello server</p> <img src="http://127.0.0.1:8080/test.png" /> </body> </html>
package de.gurkenlabs.litiengine.entities; import de.gurkenlabs.litiengine.graphics.RenderEngine; import java.awt.Graphics2D; import java.util.EventObject; /** * This {@code EventObject} contains data about the rendering process of an entity. * * @see RenderEngine#renderEntity(Graphics2D, IEntity) */ public class E...
<form accept-charset="UTF-8" class="<API key> common_tabs" method="post" autocomplete="off"> <!--Use for mobile devices 'Go' button <button type="submit" class="hidden"></button> <ul class="nav nav-tabs" data-tabs="tabs"> <li class="active"> <a href="#widget-config-setup" data-toggle="tab">Technical</a>...
import plain from '../structure/plain' import immutable from '../structure/immutable' import defaultShouldError from '../defaultShouldError' describe('defaultShouldError', () => { it('should validate when initialRender is true', () => { expect( defaultShouldError({ initialRender: true }) )...
<!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.9.1"/> <title>V8 API Reference Guide for node.js v4.2.2: v8::ArrayBuffer::Contents Class Reference</titl...
const path = require('path'); module.exports = { HOST: 'localhost', PORT: 3000, URL: { ROOT: 'https://bootflex.herokuapp.com', API: 'https://bootflex.herokuapp.com/api' }, PATH: { ROOT: path.join(__dirname, '..') } };
import Chaffle from "chaffle"; const scrambleAuthor = () => { const elements = document.querySelectorAll("[data-chaffle]"); elements.forEach(el => { const chaffle = new Chaffle(el, { speed: 10, delay: 20, }); el.addEventListener("mouseover", () => { ch...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><API key>: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
import { expect } from "chai"; import { <API key>, Node } from "../../../../../compiler"; import { getInfoFromText } from "../../../testHelpers"; describe(nameof(<API key>), () => { function getInfo(text: string) { const info = getInfoFromText(text); return { descendant: info.sourceFile.<API key>(No...
// 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: // all copies or substanti...
module.exports = {"1308":{"id":"1308","parentId":"155","name":"\u89e3\u653e\u533a"},"1309":{"id":"1309","parentId":"155","name":"\u4e2d\u7ad9\u533a"},"1310":{"id":"1310","parentId":"155","name":"\u9a6c\u6751\u533a"},"1311":{"id":"1311","parentId":"155","name":"\u5c71\u9633\u533a"},"1312":{"id":"1312","parentId":"155","...
<?php /* AdminBundle:Admin:gestionCategories.html.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("layout/layoutAdmin.html.twig", "AdminBundle:Admin:gestionCatego...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>buchberger: 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>fairisle: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
<?php /** * * Proxy Pattern * * A proxy pattern creates an entry point which interacts behind the scenes with other objects. * Can be useful for implementing access control, to implement lazy loading of resource intensive * objects, or to simply act as a wrapper to reduce the options available to another more c...
#!/usr/bin/python -*- coding:utf-8 -*- __Author__ = "Riyaz Ahmad Bhat" __Email__ = "riyaz.ah.bhat@gmail.com" import re from collections import namedtuple from sanity_checker import SanityChecker class DefaultList(list): """Equivalent of Default dictionaries for Indexing Errors.""" def __init__(self, default=Non...
# <API key>: true module Faker module Witcher class << self extend Gem::Deprecate def character Faker::Games::Witcher.character end def witcher Faker::Games::Witcher.witcher end def school Faker::Games::Witcher.school end def location ...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.md')) as f: CHANGES = f.read() requires = [ 'pyramid', 'pyramid_jinja2', '<API key>', '...
// software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // to whom the Software is furnished to do so, subject to the following conditions: // substantial portions of the Software. // INCLUDING ...
using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using MoreLinq; namespace WarHub.ArmouryModel.Source.CodeGeneration { internal abstract class CoreChildBase { protected CoreChildBase( ...
using BNogent.StateMachine; namespace BNogent.StateMachineSamples { class <API key> { public void Build() { StateMachineBuilder smb = new StateMachineBuilder() { GenerateGraph = true }; State a = new State("A"); State b = new State("B"); State c = ...
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="styles...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- Generated by The Webalizer Ver. 2.01-10 --> <!-- Distributed under the GNU GPL Version 2 --> <!-- Full text may be found at: --> <!-- Give the power back to the programmers --> <!-- Support the Free Software Foundation --> <HTML> ...
class Solution { public: bool search(vector<int>& nums, int target) { int l = 0, r = nums.size() - 1; if(nums.empty()) return false; while(l != r && nums[l] == nums[r]) l++; while(l < r) { int mid = (l + r) >> 1; if(nums[mid] == target) return true; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SassyStudio.Editor; namespace SassyStudio.Compiler.Parsing { public class VariableReference : ComplexItem, IResolvableToken { public VariableName Name { get; protected set; } public override bool Parse(II...
package mcjty.rftools.blocks.teleporter; import mcjty.rftools.network.<API key>; import io.netty.buffer.ByteBuf; import java.util.List; public class <API key> extends <API key><<API key>,<API key>> { public <API key>() { } public <API key>(int x, int y, int z, String command, List<<API key>> list) { ...
"use strict"; const removeDiacritics = require('diacritics').remove; const request = require('request'); //const pSegCases = require('../test/promiseSwitchCase.js'); var utils = { /** * Resolve all promises in Object via for ... in loop * @param {object} obj - The object containing function properties => Switch c...
var my = require('my'); var maxHeight = 300, maxWidth = 300; exports.view = function(data) { console.log("view: m.js"); console.log(data); var topic = data.topic; return( my.page({title: 'Hello World', scripts:["http://code.jquery.com/jquery-latest.js"]}, /*my.div({id: 'myDiv', style: {height: '800px', bo...
using System; using System.Runtime.InteropServices; namespace NAudio.CoreAudioApi.Interfaces { [Guid("<API key>"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IAudioCaptureClient { /*HRESULT GetBuffer( BYTE** ppData, UINT32* pNumFramesToRead, ...
""" atomorder/parse_args.py Parses command line arguments and overwrites setting defaults """ from . import settings import argparse import sys description = "" epilog = "" parser = argparse.ArgumentParser( description = description, formatter_class = argparse.<API key>, epilog = epilog) parser ...
using System.Threading.Tasks; namespace AppZen.Mvvm.Core.Interfaces { public interface IViewFactory { void CloseView(string id); Task ShowViewModel<T>(object <API key>) where T : IViewModel; Task ShowViewModel<T>() where T : IViewModel; } }
<html> <head> <title>User agent detail - SonyEricssonK618iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material...
<div class="commune_descr limited"> <p> Charly est une commune localisée dans le département de l'Aisne en Picardie. Elle comptait 2&nbsp;706 habitants en 2008.</p> <p>À Charly le salaire médian par mois par personne se situe à approximativement 1&nbsp;927 &euro; net. C'est inférieur à la moyenne du pays.</p> ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>smpl: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
<?php /** * i4Web includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/wrapper.php'); // Theme wrapper class require_once locate_template('/li...
/** @file SystemInterface.h @author Philip Abbet Declaration of the class 'Athena::GUI::SystemInterface' */ #ifndef <API key> #define <API key> #include <Athena-GUI/Prerequisites.h> #include <Athena-Core/Utils/Timer.h> #include <Rocket/Core/SystemInterface.h> namespace Athena { namespace GUI { @brief System ...
/*eslint no-console: 1 */ console.warn('You are using the default filter for the fileMeta service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering'); // eslint-disable-line no-console module.exports = function(data, connection, hook) { // eslint-disable-line no-u...
/** * 1. Set default font family to sans-serif. * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -<API key>: 100%; } /** * Remove default margin. */ body { margin: 0; } /** * Correct `block...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; namespace Famliy.Finance.Common { public static class HtmlHelper2 { <summary> @html.Image() </summary> <param name="helper">...
{{extend "layout.html"}} {{include "_update.html"}} <script type="text/javascript">//<![CDATA[ $(function() { // Organisation Autocomplete {{entity_id = request.controller + "_" + request.function + "_organisation_id"}} {{urlpath_c = "org"}} {{urlpath_f = "organisation"}} {{urlvar_field = "name"}} ...
<?php namespace Handler\Admin\Article\Ad; if (!defined('IN_PX')) exit; use Handler\Admin\AbstractCommon; use Admin\Helper; use Tools\Auxi; use Tools\MsgHelper; class Read extends AbstractCommon { public function processRequest(Array & $context) { $this->_pushSetting(); if (!$_POST['sortName']) ...
export default function HomeService($rootScope, $window, $http) { var service = { send: send, loadSettings: loadSettings, }; return service; function send(msg, data) { console.log(msg, data); //$rootScope.$broadcast(msg, data); } function loadSettings() { ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>semantics: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
order: 11 title: zh-CN: en-US: Feedback - - # Alert <img class="preview-img no-padding" align="right" src="https://zos.alipayobjects.com/rmsportal/<API key>.png"> > # Notification <img class="preview-img no-padding" align="right" src="https://zos.alipayobjects.com/rmsportal/<API key>.png" description=""> # Badge <i...
package com.elderbyte.josc.api; import com.elderbyte.josc.core.BlobObjectUtils; import java.time.Instant; import java.util.Map; import java.util.Optional; /** * Represents a blob object */ public interface BlobObject { /** * Gets the bucket name where this object is stored */ String getBucket(); ...
package main import ( "github.com/robertkrimen/otto" ) func evaluateScript(src string, payload []FinalInput) (string, error) { javaScript := otto.New() var evalFunc otto.Value javaScript.Set("eval", func(call otto.FunctionCall) otto.Value { evalFunc = call.Argument(0) return otto.Undefin...
import React, { Component } from 'react' import { connect } from 'react-redux' import { setSearchTerm } from './actionCreators' import { Link } from 'react-router' class Header extends Component { constructor (props) { super(props) this.<API key> = this.<API key>.bind(this) } <API key> (event) { this....
#! /usr/bin/env sh if [ -z $@ ] then sqlite3 $HOME/.local/share/qutebrowser/history.sqlite "select url from history where url like '%duden.de%';" | uniq else selection="$@" if [ -n "$selection" ] then if [[ $selection == https* ]] then # An entry from the history is selected qutebrowser --ta...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Threading; using Microsoft.Xna.Framework; namespace Gearset.Components.Profiler { public class Profiler : Gear { <summary>The maximum number of discrete heirarchica...
package ch.heigvd.amt.mvcdemo.rest.resources; import ch.heigvd.amt.mvcdemo.model.entities.Sector; import ch.heigvd.amt.mvcdemo.rest.dto.SectorDTO; import ch.heigvd.amt.mvcdemo.services.dao.<API key>; import ch.heigvd.amt.mvcdemo.services.dao.SectorsDAOLocal; import java.net.URI; import java.util.ArrayList; import java....
using System; using System.Diagnostics; using Pgno = System.UInt32; using PTRMAP = Contoso.Core.MemPage.PTRMAP; using Contoso.Threading; namespace Contoso.Core { public partial class BtShared { internal RC allocateBtreePage(ref MemPage ppPage, ref Pgno pPgno, Pgno nearby, byte exact) { ...
package cz.augi.gsonscala import java.util.Optional import java.util.concurrent.TimeUnit import com.google.gson.{Gson, GsonBuilder} import org.junit.runner.RunWith import org.scalatest.{FlatSpec, Matchers} import org.scalatest.junit.JUnitRunner import scala.concurrent.duration.Duration class AsMillis extends UnitSpec {...
# <API key>: true require 'cucumber/core/test/timer' module Cucumber module Core module Test class Runner attr_reader :event_bus, :running_test_case, :running_test_step private :event_bus, :running_test_case, :running_test_step def initialize(event_bus) @event_bus = event_b...
require 'spec_helper' require 'ostruct' module BtcPrice describe Price do before do Price.adapter = OpenStruct.new(current_price: 492) end it "returns the current BTC price" do Price.current_price.must_equal 492 end end end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.2.1; de-de; YP-GB1 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mater...
var answers = []; var validate = () => { $("#afev-answer-1").animate( { backgroundColor: "green"} ); var good = true; if (answers.indexOf(1) === -1) { good = false; } if (answers.indexOf(2) !== -1) { $("#afev-answer-2").animate( { backgroundColor: "red"} ...
#!/usr/bin/python import glob import os import shutil import subprocess import sys import yaml def create_role(role): ret = subprocess.check_output( 'ansible-galaxy init {}'.format(role).split()) if not ret.strip().endswith('created successfully'): raise Exception('could not create role "{}"'.fo...
# nwz-rss Easily generate RSS feeds from the NWZ ePaper. ## Usage npm install -g nwz-rss nwz-rss -u peda -p passwort -o ./output -b http://localhost:8000 Then, serve the files in your output folder via http or something. Change the -b parameter to your servers address.
import {Component, <API key>, ElementRef, Injector} from 'angular2/core'; import DynamicComponent from './dynamic-component'; import Hello from './hello'; @Component({ selector: '<API key>', directives: [ Hello ], template: ` <div class="wrapper"> <h3>LoadAsRoot Component</h3> <button class=...
package eu.diversify.ffbpg.evolution.platforms; import eu.diversify.ffbpg.Application; import eu.diversify.ffbpg.BPGraph; import eu.diversify.ffbpg.Platform; import eu.diversify.ffbpg.Service; import eu.diversify.ffbpg.collections.SortedIntegerSet; import eu.diversify.ffbpg.random.RandomUtils; import java.util.ArrayLis...
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!! # This file is machine-generated by lib/unicore/mktables from the Unicode # database, Version 12.1.0. Any changes made here will be lost! # !!!!!!! INTERNAL PERL USE ONLY !!!!!!! # This file is for internal use by core Perl only. The format and even the # name or existe...
import { <API key>, SolidaritySettings } from '../../types' module.exports = (settings: SolidaritySettings, context: <API key>): void => { const { filesystem } = context if (settings.requirements) { // Write file filesystem.write('.solidarity', JSON.stringify(settings, null, 2), { atomic: true }) } else {...
<?php declare(strict_types=1); namespace ApiPlatform\Doctrine\Odm\Filter; use ApiPlatform\Doctrine\Common\PropertyHelperTrait; use ApiPlatform\Doctrine\Odm\PropertyHelperTrait as <API key>; use Doctrine\ODM\MongoDB\Aggregation\Builder; use Doctrine\Persistence\ManagerRegistry; use Psr\Log\LoggerInterface; use Psr\Log\N...
using Microsoft.Xna.Framework; using NutEngine.Physics.Shapes; namespace NutEngine.Physics { public static partial class Collider { public static bool Collide(IBody<Circle> a, IBody<Circle> b, out IntersectionArea intersection) { // Probably here should be the sector collisions check...
package org.swcraft.javase.collections.map; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import java.util.TreeMap; import org.junit.Test; public class <API key> { @Test public void testHashMap() throws Exception { Map<String, Integer> map = ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M17.5 8c.46 0 .91-.05 1.34-.12C17.44 5.56 14.9 4 12 4c-.46 0-.91.05-1.34.12C12.06 6.44 14.6 8 17.5 8zM8.08 5.03C6.37 6 5.05 7.58 4.42 9.47c1.71-.97 3.03-2.55 3.66-4.44z", opacity: "....