answer
stringlengths
15
1.25M
RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.clean_with(:deletion) end config.before(:each) do DatabaseCleaner.strategy = :transaction end config.before(:each, :js => true) do DatabaseCleaner.strategy = :deletion end config.before(:each) do DatabaseCleaner.start e...
s="the quick brown fox jumped over the lazy dog" t = s.split(" ") for v in t: print(v) r = s.split("e") for v in r: print(v) x = s.split() for v in x: print(v) # 2-arg version of split not supported # y = s.split(" ",7) # for v in y: # print v
<!DOCTYPE html> <html> <head> <title>Zefu Li</title> <link rel="stylesheet" type="text/css" href="official.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="official.js"></script> </head> <body> <ul> <li><a href="#home">...
module Xronor class DSL module Checker class ValidationError < StandardError end def required(name, value) invalid = false if value case value when String invalid = value.strip.empty? when Array, Hash invalid = value.empty? ...
var mongoose = require('mongoose'); var statuses = ['open', 'closed', 'as_expected']; var priorities = ['major','regular','minor','enhancement']; var Comment = new mongoose.Schema( { comment: String, username: String, name: String, dca: {type: Date, default: Date....
#include "EngineImplDefine.h" void BlendColor::Init(D3DCOLOR defaultColor, D3DCOLOR disabledColor, D3DCOLOR hiddenColor) { for (decltype(States.size()) i = 0; i != States.size(); ++i) { States[i] = defaultColor; } States[STATE_DISABLED] = disabledColor; States[STATE_HIDDEN] = hiddenColor; ...
class <API key> < ActiveRecord::Migration def change add_column :request_schemata, :name, :string, null: false, default: "" end end
ActionController::Routing::Routes.draw do |map| map.resources :companies, :member => { :<API key> => :get, :delete_member => :post, :add_members => :post, :<API key> => :get, :delete_project => :post, :add_projects => :post } end
// ViewController.h // MKDevice #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, strong) IBOutlet UIButton *button; - (IBAction)onAction:(id)sender; @end
class <API key> < ActiveRecord::Migration def change add_column :components, :version, :float end end
package is.hail.expr.ir.functions import is.hail.annotations.{Region, <API key>} import is.hail.asm4s import is.hail.asm4s._ import is.hail.expr.ir._ import is.hail.types.physical._ import is.hail.types.virtual._ import is.hail.utils._ import java.util.Locale import java.time.{Instant, ZoneId} import java.time.temporal...
using GalaSoft.MvvmLight; namespace Operation.WPF.ViewModels { public interface IViewModelFactory { T ResolveViewModel<T>() where T : ViewModelBase; } }
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class MageTurret : Turret { [SerializeField] float range; [SerializeField] float baseDamage = 0.00f; float currentDamage = 0.00f; [SerializeField] float damageIncrease; [SerializeField] ...
import torch from hypergan.train_hooks.base_train_hook import BaseTrainHook class <API key>(BaseTrainHook): def __init__(self, gan=None, config=None, trainer=None): super().__init__(config=config, gan=gan, trainer=trainer) self.d_grads = None self.g_grads = None def gradients(self, d_grads, g_grad...
#include "Namespace_Base.h" #include <co/Coral.h> #include <co/IComponent.h> #include <co/IPort.h> #include <co/IInterface.h> namespace co { co::IInterface* <API key>::getInterface() { return co::typeOf<co::INamespace>::get(); } co::IPort* <API key>::getFacet() { co::IComponent* component = static_cast<co::ICom...
/*** AppView ***/ define(function(require, exports, module) { var View = require('famous/core/View'); var Surface = require('famous/core/Surface'); var Transform = require('famous/core/Transform'); var StateModifier = require('famous/modifiers/StateModifier'); var SlideshowView = require('views/Slid...
# Development Guidelines This document describes tools, tasks and workflow that one needs to be familiar with in order to effectively maintain this project. If you use this package within your own software as is but don't plan on modifying it, this guide is **not** for you. ## Tools * [Phing](http: can run phing bu...
<?php namespace Demo\Example; /** * Human class example */ class HumanDemo { /** * Eat something */ public function eat() { echo "Eating...", PHP_EOL; } /** * Clean the teeth */ public function cleanTeeth() { echo "Cleaning teeth...", PHP_EOL; } ...
using Microsoft.AspNet.Http; using Microsoft.AspNet.Routing; using Migrap.AspNet.Multitenant; using System; using System.Collections.Generic; namespace Migrap.AspNet.Routing { public class <API key> : IRouteConstraint { public const string TenantKey = "tenant"; private readonly ISet<string> _tenants...
import numpy as np __author__ = 'David John Gagne <djgagne@ou.edu>' def main(): # Contingency Table from Wilks (2011) Table 8.3 table = np.array([[50, 91, 71], [47, 2364, 170], [54, 205, 3288]]) mct = <API key>(table, n_classes=table.shape[0], ...
.navbar-brand { font-family: "Bungee", cursive; font-size: 200%; padding: 0; } #image_billiard { height: 70px; padding: 15px; width: auto; float: left; } .brand-text { float: right; padding-top: 25px; padding-left: 10px; } .navbar-default { height: 70px; } .navbar-default .navbar-nav > li > a { ...
"use strict"; var ArrayCollection_1 = require('./ArrayCollection'); exports.ArrayCollection = ArrayCollection_1.ArrayCollection; var ArrayList_1 = require('./ArrayList'); exports.ArrayList = ArrayList_1.ArrayList; var SequenceBase_1 = require('./SequenceBase'); exports.SequenceBase = SequenceBase_1.SequenceBase; var Bu...
<!-- dx-header --> # IDR for ChIP-seq (DNAnexus Platform App) Generate peaks that pass the IDR threshold This is the source code for an app that runs on the DNAnexus Platform. For more information about how to run or modify it, see https://wiki.dnanexus.com/. <!-- /dx-header --> Take peaks. Generate pseudoreplicates a...
<span class="S-prose"> {% for item in site.data.testimonials %}{% if forloop.last %} {% assign testimonial = item[1] %} <figure class="O-block <API key>"> <blockquote>“{{ testimonial.content }}”</blockquote> <figcaption class="C-quote-person"> <img class="<API key>" alt="photo of {{ testimonia...
<?php class fCore { // The following constants allow for nice looking callbacks to static methods const backtrace = 'fCore::backtrace'; const call = 'fCore::call'; const callback = 'fCore::callback'; const checkOS = 'fCore::checkOS'; ...
package com.blinkboxbooks.android.list; import android.content.Context; import android.database.ContentObserver; import android.database.Cursor; import android.database.MergeCursor; import android.support.v4.content.AsyncTaskLoader; import android.util.SparseArray; import com.blinkboxbooks.android.model.Book; import co...
<?php return array ( 'id' => '<API key>', 'fallback' => 'samsung_d500_ver1', 'capabilities' => array ( 'max_data_rate' => '40', ), );
<!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...
using System; using System.Net.Http; using System.Runtime.CompilerServices; using System.Threading.Tasks; using Castle.Core; using DotJEM.Json.Storage.Adapter; using DotJEM.Pipelines; using DotJEM.Web.Host.Diagnostics.Performance; using DotJEM.Web.Host.Providers.Concurrency; using DotJEM.Web.Host.Providers.Services.Dif...
package com.gdgand.rxjava.rxjavasample.hotandcold; import android.app.Application; import com.gdgand.rxjava.rxjavasample.hotandcold.di.component.<API key>; import com.gdgand.rxjava.rxjavasample.hotandcold.di.component.<API key>; import com.gdgand.rxjava.rxjavasample.hotandcold.di.module.ApplicationModule; import com.gd...
'use strict' var solc = require('solc/wrapper') var compileJSON = function () { return '' } var missingInputs = [] module.exports = function (self) { self.addEventListener('message', function (e) { var data = e.data switch (data.cmd) { case 'loadVersion': delete self.Module // NOTE: work...
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { SettingsComponent } from './settings.component'; describe('HomeComponent', () => { let component: Set...
//Express, Mongo & Environment specific imports var express = require('express'); var morgan = require('morgan'); var serveStatic = require('serve-static'); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var compression = require('compression'); var errorHandler = require('errorha...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.<API key>(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de...
const describe = require("mocha").describe; const it = require("mocha").it; const assert = require("chai").assert; const HttpError = require("./HttpError"); describe("HttpError", function () { it("should be instance of Error", function () { const testSubject = new HttpError(); assert.isOk(testSubject instance...
import { inject, injectable } from 'inversify'; import TYPES from '../../di/types'; import * as i from '../../i'; import { RunOptions } from '../../models'; import { IInputConfig } from '../../user-extensibility'; import { BaseInputManager } from '../base-input-manager'; var NestedError = require('nested-error-stacks')...
<?php if (!file_exists('./../include/config.php')){ header('Location:install.php'); } include('./../include/config.php'); include('./../include/functions.php'); if (isset($_POST['step'])) $step = intval($_POST['step']); else{ $step = 0; } ?> <!DOCTYPE html> <html> <head> <title>SPC - DB Upgrade</t...
<html><body> <h4>Windows 10 x64 (18362.329)</h4><br> <h2><API key></h2> <font face="arial"> +0x000 ImpersonationData : Uint8B<br> +0x000 ImpersonationToken : Ptr64 Void<br> +0x000 ImpersonationLevel : Pos 0, 2 Bits<br> +0x000 EffectiveOnly : Pos 2, 1 Bit<br> </font></body></html>
package io.blitz.curl.exception; /** * Exceptions thrown when a validation error occur during a test execution * @author ghermeto */ public class ValidationException extends BlitzException { /** * Constructs an instance of <code>ValidationException</code> with the * specified error and reason message. ...
<html><body> <h4>Windows 10 x64 (19041.508)</h4><br> <h2><API key></h2> <font face="arial"> <API key> = 0n0<br> <API key> = 0n4<br> <API key> = 0n8<br> <API key> = 0n12<br> <API key> = 0n15<br> </font></body></html>
/** * The plugin global configuration object. * @external "jQuery.vulcanup" * @property {String} version - The plugin version. * @property {settings} defaults - The default configuration. * @property {Object} templates - The default templates. */ require('./jup-validation'); const templates = require('./templates...
const test = require('tape') const nlp = require('../_lib') test('match min-max', function(t) { let doc = nlp('hello1 one hello2').match('#Value{7,9}') t.equal(doc.out(), '', 'match was too short') doc = nlp('hello1 one two three four five hello2').match('#Value{3}') t.equal(doc.out(), 'one two three', 'exactly...
# encoding: utf-8 require 'webmock/rspec' require 'vcr' require_relative '../lib/spotifiery' VCR.configure do |config| config.<API key> = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock end
using System.IO; using System.Runtime.InteropServices; internal static class Example { [STAThread()] public static void Main() { SolidEdgeFramework.Application objApplication = null; SolidEdgeAssembly.AssemblyDocument objAssemblyDocument = null; SolidEdgeAssembly.StructuralFrames obj...
#!/usr/bin/env ruby require 'json' SRC_RANDOM = Random.new(1984) MAX_VALUES = Hash.new(1).update "rcat" => 50, "vcat" => 50, "infq" => 5, "kws" => 10 MRG_VALUES = { "dev" => ["oth","oth","oth","oth","oth","oth"], "bwsm" => ["ff", "sf", "op", "ng", "kq", "an", "ms", "kk", "mo"], "pos" => [2, 4, 5, 6, 7], "mob"...
#Upselling 2016-06-01 Upselling is a sales technique whereby a seller induces the customer to purchase more expensive items, upgrades or other add-ons in an attempt to make a more profitable sale. While it usually involves marketing more profitable services or products, it can be simply exposing the customer to other o...
package com.lht.dot.ui.view; import android.content.Context; import android.support.annotation.Nullable; import android.support.v7.widget.RecyclerView; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import com.bumptech.glide.Glide; public class <API key> extends RecyclerVie...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GPS.SimpleMVC.Views; namespace GPS.SimpleMVC.Tests.<API key> { public interface ITestView : ISimpleView { Guid UID { get; set; } string Name { get; set; } string Valu...
function ones(rows, columns) { columns = columns || rows; if (typeof rows === 'number' && typeof columns === 'number') { const matrix = []; for (let i = 0; i < rows; i++) { matrix.push([]); for (let j = 0; j < columns; j++) { matrix[i].push(1); ...
<?php namespace LolApi\Classes\TournamentProvider; /** * <API key> * * @author Javier */ class <API key> { // ~ maptype ~ const <API key>='SUMMONERS_RIFT'; const <API key>='TWISTED_TREELINE'; const <API key>='HOWLING_ABYSS'; // ~ pickType ~ const PICKTYPE_BLIND_PICK='BLIND_PICK'; const ...
<!DOCTYPE html> <html> <head> <script src="https://cdn.rawgit.com/konvajs/konva/1.4.0/konva.min.js"></script> <meta charset="utf-8"> <title>Konva Animate Position Demo</title> <style> body { margin: 0; padding: 0; overflow: hidden; background-color...
package com.adamkowalewski.opw.entity; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persist...
<?php namespace MF\<API key>; use Doctrine\ORM\QueryBuilder; interface Modifier { public function __invoke(QueryBuilder $queryBuilder): QueryBuilder; }
package backup // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" ...
package servicebus // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autor...
<?php return array ( 'id' => 'docomo_n2701c_ver1', 'fallback' => '<API key>', 'capabilities' => array ( 'columns' => '11', 'max_image_width' => '121', 'rows' => '11', 'resolution_width' => '176', 'resolution_height' => '198', 'max_image_height' => '190', 'flash_lite_version' => '', ...
<?php namespace HMLB\Date\Tests\Localization; use HMLB\Date\Date; use HMLB\Date\Tests\AbstractTestCase; class ItTest extends AbstractTestCase { public function <API key>() { Date::setLocale('it'); $scope = $this; $this->wrapWithTestNow( function () use ($scope) { ...
var poppy = popcorn( [ vid_elem_ref | 'id_string' ] ); poppy // pass-through video control methods .load() .play() .pause() // property setters .currentTime( time ) // skip forward or backwards `time` seconds .playbackRate( rate ) .volume( delta ) .mute( [ state ] ) // sugar? .rewind() // to begin...
#if defined(MUPARSER_DLL) #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #define <API key> #define <API key> #include <windows.h> #endif #include <cassert> #include "muParserDLL.h" #include "muParser.h" #include "muParserInt.h" #include "muParserError.h" #if defined(_MSC_VER) #pragma warning(push) ...
<!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 v0.10.22 - v0.10.23: v8::internal::SmiTagging&lt; 4 &gt...
using System; using System.IO; using Xunit; namespace OpenSage.Tests.Data { internal static class TestUtility { public static T DoRoundtripTest<T>( Func<Stream> getOriginalStream, Func<Stream, T> parseCallback, Action<T, Stream> serializeCallback, bool <AP...
<?php namespace Symfony\Bundle\<API key>\Command; use Doctrine\ODM\MongoDB\Mapping\MappingException; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Show i...
#!/bin/bash # This script overcomes a yucky bug in simplescalar's GCC, which # prevents it from working on the user filesystem (due to a problem # with the transition to 64-bit). Luckily /tmp is implemented differently # and doesn'thave this problem so we copy the tree there and do the make there. TMPNAME=/tmp/SSCA2v2...
<! Smart Data Platform - Reference Implementation This page shows how to receive and visualize the data stream from a sensor in real-time. In particular data is received using Socket.IO, which provides an abstraction layer to Websocket API. Data visualizzation is based on D3js library (<http://d...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Topup extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model(array('admin_model','user_model')); <API key>($role_id = array(1)); } public function index() ...
define(['myweb/jquery'], function ($) { 'use strict'; var error = function (message) { $('.form-feedback').removeClass('form-success').addClass('form-error').text(message).fadeIn(200); }; var success = function (message) { $('.form-feedback').removeClass('form-error').addClass('form-succes...
# encoding: UTF-8 include Vorax describe 'tablezip layout' do before(:each) do @sp = Sqlplus.new('sqlplus') @sp.default_convertor = :tablezip @prep = [VORAX_CSTR, "set tab off", "set linesize 10000", "set markup html on", "set echo off", "se...
from django.contrib.admin.models import LogEntry from django.contrib.auth.models import User, Group, Permission from simple_history import register from celsius.tools import <API key> register(User) register(Group) <API key>(User) <API key>(Group) <API key>(Permission) <API key>(LogEntry)
<!DOCTYPE html> <!--[if IE 8]> <html class="ie ie8"> <![endif]--> <!--[if IE 9]> <html class="ie ie9"> <![endif]--> <!--[if gt IE 9]><!--> <html> <!--<![endif]--> <head> <!-- Basic --> <meta charset="utf-8"> <title>VirUCA</title> <meta name="keywords" content="" /> <meta name="des...
namespace <API key>.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class User { private ICollection<UserProfile> userProfiles; public User() { this.userProfiles = new HashSet<UserProfile>(); } public virt...
const gulp = require('gulp'), zip = require('gulp-zip'); /** * Metadata about the plugin. * * @var object */ const plugin = { name: 'example-plugin', directory: '.' } gulp.task('distribute', function () { let paths = [ 'vendor/twig*', 'vendor/composer*', 'vendor/autol...
namespace RouteExtreme.Web { using System; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Owin; using RouteExtreme.Models; using RouteExtreme.Data; pub...
package com.management.dao.impl.calcs; import java.sql.Connection; import java.sql.SQLException; import java.util.List; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanListHandler; import com.management.bean.calculate.ProjectCalc; import com.management.bean.calculate.Projec...
<!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 v5.7.0 - v5.8.0: v8::HeapProfiler::ObjectNameResolver C...
using System; using System.Windows; using System.Windows.Forms; using System.Windows.Forms.Integration; using System.Windows.Media; using WPFControls; namespace FormsApp { partial class Form1 : Form { private ElementHost _ctrlHost; private SolidColorBrush _initBackBrush; private FontFami...
using System.Collections.Immutable; using JetBrains.Annotations; using JsonApiDotNetCore.Configuration; using JsonApiDotNetCore.Queries.Expressions; using JsonApiDotNetCore.Resources; using JsonApiDotNetCore.Resources.Annotations; using Microsoft.Extensions.Primitives; namespace <API key>.IntegrationTests.ResourceDefin...
import java.util.*; public class Main { private static long[] array; private static int N; public static void main(String... args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); array = new long[N]; for (int i = 0; i < N; i++) array[i] = sc.nextInt(); ...
from django import forms from miniURL.models import Redirection class RedirectionForm(forms.ModelForm): class Meta: model = Redirection fields = ('real_url', 'pseudo') # ou directement en donnant un objet du modele : # Quand on a recu une bonne formeModele il suffit de save() pour la mettre en base
<!DOCTYPE html> <! Copyright 2012 The Polymer Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. <html> <head> <title>CoolClock</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="../../polyme...
package pp.iloc.model; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import pp.iloc.model.Num.NumKind; import pp.iloc.model.Operand.Type; import pp.iloc.parse.FormatException; /...
/** audio player styles **/ .audio-player, .audio-player div,.audio-player button { margin: 0; padding: 0; border: none; outline: none; } div.audio-player { position: relative; width: 100% !important; height: 76px !important; margin: 0 auto; } /* play/pause control */ .mejs-controls .mejs-button button ...
<!DOCTYPE html> <html class="no-js " lang="zh"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="keywords" content="jQuery,API,,jquery api,1.11,def.resolveWith(c,[a])"/> <meta name="description" content="jQuery API 1.12.0 http://jquery.cuishifen...
import { IHiveMindNeuron, IHiveMindNeurons } from './HiveMindNeurons'; import { UserInput } from '../../BasicUserInput'; import { RequestContext } from '../../BasicRequestContext'; import { INeuronsResponse, <API key>, <API key> } from './NeuronsResponse'; import { INeuronResponse } from '../../neurons/responses/Simple...
require_relative 'spec_helper' require_relative '../lib/nixonpi/animations/easing' describe NixonPi::Easing do before :each do @object = Object.new @object.extend(NixonPi::Easing) end # @param [Object] x percent complete (0.0 - 1.0) # @param [Object] t elapsed time ms # @param [Object] b start value ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>circuits: 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>mathcomp-abel: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): def __init__(self, band_names=['delta', 'theta', 'alpha', 'beta'], ch_names=['TP9', 'AF7', 'AF8', 'TP10']): self.band_names = band_names self.ch_names = ch_n...
#!/usr/bin/env bash # DETAILS: Invokes rsyncs with well known better options. # CREATED: 06/29/13 16:14:34 IST # MODIFIED: 10/24/17 14:36:30 IST #set -uvx # Warn unset vars as error, Verbose (echo each command), Enable debug mode # if rsync gives 'command not found' error, it means that non-interactive bash...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <title>Transaction</title> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Transacti...
require 'spec_helper' describe 'ssh::default' do let(:chef_run){ ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '12.04').converge(described_recipe) } it 'should include the ssh::client recipe' do expect(chef_run).to include_recipe('ssh::client') end it 'should include the ssh::server reci...
<?php namespace Ekyna\Bundle\CartBundle\Provider; use Ekyna\Bundle\CartBundle\Model\<API key>; use Ekyna\Bundle\OrderBundle\Entity\OrderRepository; use Ekyna\Component\Sale\Order\OrderInterface; use Ekyna\Component\Sale\Order\OrderTypes; use Symfony\Component\HttpFoundation\Session\SessionInterface; class CartProvider ...
<h1><?php echo $titulo_pagina; ?></h1> <p>Usuários cadastrados no sistema</p> <p class="alert bg-danger" style="display:none;"><strong>Mensagem!</strong> <span></span></p> <p><a href="<?php echo base_url().'admin/usuarios/cadastrar'; ?>" class="btn btn-primary">Cadastrar</a></p> <table class="table table-bordered table...
# -*- coding: utf-8 -*- from modules import Robot import time r = Robot.Robot() state = [0, 1000, 1500] (run, move, write) = range(3) i = run slowdown = 1 flag_A = 0 flag_C = 0 lock = [0, 0, 0, 0] while(True): a = r.Read() for it in range(len(lock)): if lock[it]: lock[it] = lock[it] - 1 ...
// UIBarButtonItem+initWithImageName.h // lottowinnersv2 #import <UIKit/UIKit.h> @interface UIBarButtonItem (initWithImageName) + (instancetype)<API key>:(UIImage *)image target:(id)target action:(SEL)action; + (instancetype)<API key>:(UIImage *)image title:(NSString *)title target:(id)target action:(SEL)action; + (i...
using System; using System.Collections.Generic; using Windows.Foundation.Collections; using Windows.Media; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using <API key>.Network; namespace Viewer { public sealed partial class Playback : Page { private <API key> <API key> = null; private ...
<html><body> <h4>Windows 10 x64 (19042.610)</h4><br> <h2>_OBJECT_REF_INFO</h2> <font face="arial"> +0x000 ObjectHeader : Ptr64 <a href="./_OBJECT_HEADER.html">_OBJECT_HEADER</a><br> +0x008 NextRef : Ptr64 Void<br> +0x010 ImageFileName : [16] UChar<br> +0x020 NextPos : Uint2B<br> +...
#ifndef _SIMPLE_POLYGON_H #define _SIMPLE_POLYGON_H #include <vector> #include <QtOpenGL> #include "AGVector.h" #include "Triangulate.h" #define MAX_DIST 0.1 using std::vector; class SimplePolygon { public: SimplePolygon(); ~SimplePolygon(); void DrawPolygon(); void Clear(); void Update(AGVector v, bool ...
<?php class ModelTask { public $Model; public $MethodName; public $Request; public $ResponseInfo; public $Response; public $Headers; public static function Prepare(&$model, $methodName) { $newTask = new self; $newTask->Model = &$model; $newTask->MethodName = $meth...
# -*- coding: utf-8 -*- from django.db import models from Corretor.base import CorretorException from Corretor.base import ExecutorException from Corretor.base import CompiladorException from Corretor.base import ComparadorException from Corretor.base import LockException from model_utils import Choices class RetornoCo...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location ...