answer
stringlengths
15
1.25M
<!DOCTYPE html> <html lang="en-us"> <head> <link href="http://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=device-...
class <API key> < Sinatra::Base require 'bundler' Bundler.require end
// JSON Object of all of the icons and their tags export default { apple : { name : 'apple', color: '#be0000', image : 'apple67.svg', tags: ['apple', 'fruit', 'food'], categories: ['food', 'supermarket'] }, bread : { name : 'bread', color: '#c26b24', image : 'bread14.svg', tags...
#!/bin/bash # bash strict mode set -euo pipefail IFS=$'\n\t' USAGE="Usage:\n Requires AWS CLI tools and credentials configured.\n ./tool.sh install mySourceDirectory\n ./tool.sh create mySourceDirectory <API key> myIAMRoleARN\n ./tool.sh update mySourceDirectory <API key>\n ./tool.sh invoke <API key>\n " REGION="eu-wes...
package sudoku import "fmt" const ( n = 3 N = 3 * 3 ) var ( resolved bool ) func solveSudoku(board [][]byte) [][]byte { // box size 3 row := make([][]int, N) columns := make([][]int, N) box := make([][]int, N) res := make([][]byte, N) for i := 0; i < N; i++ { row[i] = make([]...
<div> The version string to use when patching assembly version files. </div>
return function(parameters) return { position = parameters.position or {x = 0, y = 0, z = 0}, scale = parameters.scale or {x = 0, y = 0}, anchors = parameters.anchors or {up = 1, left = 1, right = 1, down = 1}, offset = parameters.offset or {up = 0, left = 0, right = 0, d...
#include "Fractal.h" Color::Color() : r(0.0), g(0.0), b(0.0) {} Color::Color(double rin, double gin, double bin) : r(rin), g(gin), b(bin) {} Fractal::Fractal(int width, int height) : width_(width), height_(height), center_x_(0.0), center_y_(0.0), max_distance_sqr_(4.0), max_iteration_(32) { pixel_size_ = 4....
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using Mechanical3.Core; namespace Mechanical3.IO.FileSystems { / NOTE: For still more speed, you could ditch abstract file systems, file paths and streams alltogether, and just use byte arrays directly. / ...
FROM ubuntu:14.04 MAINTAINER Johannes Wettinger, http://github.com/jojow ENV ENGINE_BRANCH maven ENV ENGINE_REV HEAD ENV MAVEN_VERSION 3.3.9 ENV MAVEN_URL http://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz ENV HOME /root WORKDIR ${HOME} ENV DEBIAN_FRONTEND no...
<h1> FOOTBALL </h1> </body> Since the beginning of school we have been analyzing our opponents data for our football team. Since I do not obtain any mathematical skills, it was a challenge. All I could and did offer to the table was what appeared the most important out of the data. Such as, certain number of times a ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>java</title> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5s...
<!doctype html> <! Minimal Mistakes Jekyll Theme 4.13.0 by Michael Rose Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes Free for personal and commercial use under the MIT license https: <html lang="en" class="no-js"> <head> <meta charset="utf-8"> <!-- begin _includes/seo.html --><title>Sw...
title: "Tagging and Sample Data" Use the [`Appsignal.Transaction.set_sample_data`](https://hexdocs.pm/appsignal/Appsignal.Transaction.html#set_sample_data/2) function to supply extra context on errors and performance issues. This can help to add information that is not already part of the request, session or environmen...
package com.microsoft.azure.management.network.v2020_04_01; import com.fasterxml.jackson.annotation.JsonProperty; /** * Contains SKU in an ExpressRouteCircuit. */ public class <API key> { /** * The name of the SKU. */ @JsonProperty(value = "name") private String name; /** * The tier of ...
class JudgePolicy < ApplicationPolicy def create_scores? record.competition.unlocked? && (user_match? || director?(record.event) || super_admin?) end def view_scores? (user_match? || director?(record.event) || super_admin?) end def index? director?(record.event) || super_admin? end def toggle_...
const path = require('path'); const webpack = require('webpack'); const webpackMerge = require('webpack-merge'); const commonConfig = require('./webpack.common.config.js'); module.exports = function () { return webpackMerge(commonConfig, { watch: true, devtool: '<API key>', // plugins: [ ...
<!DOCTYPE html> <html xmlns:msxsl="urn:<API key>:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="<API key>">.NET Portability Report</title> <style> /* Body style, for the entire document */...
layout: page title: "James Kates" comments: true description: "blanks" keywords: "James Kates,CU,Boulder" <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script> <!-- <script src="../as...
const Nodelist = artifacts.require("./Nodelist.sol"); const BiathlonNode = artifacts.require("./BiathlonNode.sol"); const SecondNode = artifacts.require("./SecondNode.sol"); const BiathlonToken = artifacts.require("./BiathlonToken.sol"); const Ownable = artifacts.require('../contracts/ownership/Ownable.sol'); // const ...
package classfile import "encoding/binary" type ClassReader struct { data []byte } func (self *ClassReader) readUint8() uint8 { val := self.data[0] self.data = self.data[1:] return val } func (self *ClassReader) readUint16() uint16 { val := binary.BigEndian.Uint16(self.data) self.data = self.dat...
import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.HashMap; import java.util.LinkedList; //this code contains the output assembly code that the program outputs. //will have at least three functions: //add(string, string, string, string) <- adds an assembly code line //op...
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core'; import { Filter, FilterType } from 'lib/filter'; @Component({ selector: 'iw-filter-input', templateUrl: './filter-input.component.html', styleUrls: ['./filter-input.component.css'] }) export class <API key> implements OnInit { @Inpu...
var express = require('express'); var bodyParser = require('body-parser'); var fs = require('fs') var app = express(); var lostStolen = require('<API key>'); var MasterCardAPI = lostStolen.MasterCardAPI; var dummyData = []; var dummyDataFiles = ['www/data/menu.json', 'www/data/account-number.json']; dummyDataFiles.forE...
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'Express' }); }); router.get('/about', function(req, res, next) { res.render('about', { title: 'About' }); }); module.exports = router;
# Stomp example ## How to use Using `create-next-app` Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example: bash npx create-next-app --example with...
// <auto-generated /> namespace Surplus.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class EstValueMa...
''' salt.utils ~~~~~~~ ''' class lazy_property(object): def __init__(self, fget): self.fget = fget self.func_name = fget.__name__ def __get__(self, obj, cls): if obj is None: return None value = self.fget(obj) setattr(obj, self.func_name, value) return...
#import <Foundation/Foundation.h> #import <SystemConfiguration/SystemConfiguration.h> typedef enum { NotReachable = 0, ReachableViaWiFi, ReachableViaWWAN } NetworkStatus; #define <API key> @"<API key>" @interface Reachability: NSObject { BOOL localWiFiRef; <API key> reachabilityRef; } //<API key>- U...
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module FlashFinalProject class Application < Rails::Application
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Leap; namespace LeapMIDI { class LeapStuff { private Controller controller = new Controller(); public float posX { get; private set; } public float posY { get; privat...
// pytorch_inference #include "../include/layers.hpp" #include "utils.hpp" int main(){ std::vector<pytorch::tensor> tests = test_setup({1, 1, 1}, {2, 2, 2}, {45, 45, 45}, {50, 50, 50}, ...
package com.github.weeniearms.graffiti; import com.github.weeniearms.graffiti.config.CacheConfiguration; import com.github.weeniearms.graffiti.generator.GraphGenerator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereo...
//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class <API key> { public static void Register(LuaState L) { L.BeginClass(typeof(UnityEngine.SkinnedMeshRenderer), typeof(UnityEngine.Renderer)); L.RegFunction("BakeMesh", BakeMesh); ...
<?php namespace nCore\Core\Router\Exception; use nCore\Core\Exception\DefaultException; /** * Class RouterException * @package nCore\Core\Router\Exception */ class RouterException extends DefaultException { /** * @inheritdoc */ public function dispatchException() { $this->httpCode = 500...
<?php namespace App\Test\Fixture; use Cake\TestSuite\Fixture\TestFixture; /** * ParametersFixture * */ class ParametersFixture extends TestFixture { /** * Fields * * @var array */ // @<API key> public $fields = [ 'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => fals...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </meta> <meta content="width=device-width, initial-scale=1" name="viewport"> </meta> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> </link> <link href="../../resources/stof-style.css" rel="stylesheet"> </link> <sc...
mod message_set; use std; use std::fmt; use linked_hash_map::{Iter, LinkedHashMap}; use uuid::Uuid; pub mod message; #[derive(Debug, PartialEq)] pub struct Message { properties: Map, body: Option<Value>, } impl Message { pub fn new() -> MessageBuilder { MessageBuilder::new() } pub fn with_pr...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Typeset.Domain.Configuration { public interface <API key> { IConfiguration Read(string path); } }
'use strict'; // Projects controller angular.module('about').controller('AboutUsController', ['$scope', '$stateParams', '$state', '$location', 'Authentication', function($scope, $stateParams, $state, $location, Authentication) { $scope.authentication = Authentication; } ]);
<?php /** * AbstractField class file */ namespace Graviton\DocumentBundle\DependencyInjection\Compiler\Utils; class AbstractField { /** * @var string */ private $fieldName; /** * @var string */ private $exposedName; /** * @var bool */ private $readOnly; /** ...
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64) -- Host: localhost Database: warmup -- Server version 5.5.49-0ubuntu0.14.04.1 /*!40101 SET @<API key>=@@<API key> */; /*!40101 SET @<API key>=@@<API key> */; /*!40101 SET @<API key>=@@<API key> */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIM...
<?php namespace Abe\FileUploadBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\<API key>\Configuration\Method; use Sensio\Bundle\<API key>\Configuration\Route; use Sensio\Bundle\<API key>\Configuration\Template; use Abe\FileUplo...
<!DOCTYPE html PUBLIC "- <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css"> <script type="text/javascript"> function AddToFaves_hp() { var is_4up = parseInt(navigator.appVersion); ...
import { Dimensions, PixelRatio } from 'react-native'; const Utils = { ratio: PixelRatio.get(), pixel: 1 / PixelRatio.get(), size: { width: Dimensions.get('window').width, height: Dimensions.get('window').height, }, post(url, data, callback) { const fetchOptions = { ...
<!doctype html> <html lang="en" xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Photo - A History of UCSF</title> <link href='https://fonts.googleapis.com/css?family=Gilda+Display%7CPT+Sans+Narrow:300...
using Humanizer.Localisation; using Xunit; using Xunit.Extensions; namespace Humanizer.Tests.Localisation.ptBR { public class DateHumanizeTests : AmbientCulture { public DateHumanizeTests() : base("pt-BR") { } [Theory] [InlineData(-2, "2 segundos atrás")] [InlineData(-1, "um segu...
package com.github.aselab.activerecord import scala.language.experimental.macros import scala.reflect.macros._ trait Deprecations { def <API key>[A](c: Context)(a: c.Expr[A]): c.Expr[A] = { import c.universe._ c.error(c.enclosingPosition, "dsl#inTransaction is deprecated. use <API key>#inTransaction instead."...
<div class="form main-form" ng-controller="AuthCtrl" ng-class="($state.is('auth.register')) ? 'register-form' : ''"> <div class="row login-form__left" ui-view></div> </div>
"""This module contains examples of the op() function where: op(f,x) returns a stream where x is a stream, and f is an operator on lists, i.e., f is a function from a list to a list. These lists are of lists of arbitrary objects other than streams and agents. Function f must be stateless, i.e., for any lists u, v: f(u....
<?php namespace Black\Bundle\MenuBundle\Model; interface MenuInterface { /** * @return mixed */ public function getId(); /** * @return mixed */ public function getName(); /** * @return mixed */ public function getSlug(); /** * @return mixed */ publ...
{% extends 'base.html' %} {% load staticfiles %} {% block content %} <div class="container"> <div class="row"> <div class="col-lg-9"> <div class="post-header"> <h2>{{page.page_title}}</h2> </div> {% if page.image %} <div class="video-wrapper"> <img cla...
#ifndef <API key> #define <API key> #include <String.h> #include <vector> namespace FeedKit { class Channel; class Content; class Enclosure; class Feed; class Item; extern const char *ServerSignature; typedef std::vector<BString> uuid_list_t; typedef std::vector<Content *> content_list_t...
<?php namespace Arvici\Exception; class <API key> extends ArviciException { /** * <API key> constructor. * @param string $message * @param int $code * @param \Exception $previous */ public function __construct($message, $code = 0, \Exception $previous = null) { parent::__con...
#include <stdio.h> struct Employee { unsigned int id; char name[256]; char gender; float salary; }; void addEmployee(FILE *f) { struct Employee emp; printf("Adding a new employee, please type his id \n"); int id; scanf("%d", &id); if (id > 0) { while (1) { //search if id alre...
layout: post date: 2016-05-17 title: "WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629" category: WEDDING DRESSES tags: [WEDDING DRESSES] WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629 Just **$279.99** <a href="https: <!-- break --><a href="https: <a href="https: <a href="https: <a href="https: Buy it: [h...
#!/usr/bin/env node // cli.js const { start, crawl } = require("../lib/crawler"); const argv = require("yargs") .option("lang", { describe: "Language to be used to scrape trand pages. Not used in crawl command." }) .default("lang", "EN") .option("dir", { describe: "Path to the di...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CollegeFbsRankings.Domain.Games; using CollegeFbsRankings.Domain.Rankings; using CollegeFbsRankings.Domain.Teams; namespace CollegeFbsRankings.Domain.Validations { public class ValidationService...
using Droog.Calculon.Backstage; using NUnit.Framework; namespace Droog.Calculon.Tests { [TestFixture] public class BuilderTests { public interface IFoo { } public class Foo : AActor, IFoo { } [Test] public void Can_create_class() { var builder = new Ac...
<div class="container" > <div class="row page-title"> <div class="col-xs-12 text-center"> <span>Consultation</span> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { var table = $('#table'); // Table bordered $('#table-bordered').change(function() { var valu...
const AppError = require('../../../lib/errors/app') const assert = require('assert') function doSomethingBad () { throw new AppError('app error message') } it('Error details', function () { try { doSomethingBad() } catch (err) { assert.strictEqual( err.name, 'AppError', "Name property se...
require 'spec_helper' describe Blogitr::Document do def parse text, filter=:html @doc = Blogitr::Document.new :text => text, :filter => filter end def should_parse_as headers, body, extended=nil @doc.headers.should == headers @doc.body.should == body @doc.extended.should == extended end it "sh...
<?php namespace Grupo3TallerUNLP\ConfiguracionBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { /* public function <API key>() { // Create a new client to browse the application $client = static::createClient(); // Cre...
## iScript : > *[L]* *[W]* *[LW]* linux, windows, linuxwindows > ***windowsbabun (https: - *[L]* [xiami.py](#xiami.py) - (xiami.com) - *[L]* [pan.baidu.com.py](#pan.baidu.com.py) - - *[L]* [bt.py](#bt.py) - magnet torrent .. - *[L]* [115.py](#115.py) - 115 - *[L]* [yunpan.360.cn.py](#yunpan.360.cn.py) - 360 - *[L]* [m...
export default { cache: function (state, payload) { state.apiCache[payload.api_url] = payload.api_response; }, addConfiguredType: function (state, type) { state.configuredTypes.push(type); }, <API key>: function (state, index) { state.configuredTypes.splice(index, 1); }, <API key>: function (s...
- EventUtil - EventTarget - dragdrop ** absolute relative**mousemoveleft top mousedown/mouseup
.PHONY: build clean build: .obj/<API key> clean: rm -rf .obj .obj/%: %.cpp @mkdir -p .obj ${CXX} -std=c++0x $^ -o $@ -I ../..
package com.korpisystems.SimpleANN import org.scalatest.FunSuite class ANNTest extends FunSuite { test("ANN learns non-linear XOR properly") { val inputs: ExpectedValues = List( List(1, 1) , List(0, 1) , List(1, 0) , List(0, 0) ) val expected_out: ExpectedValues = List( List(0) ...
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { <API key>, <API key> } from '@angular/<API key>/testing'; declare const require: any; // First, initialize the Angular testing ...
/* @author Axel Anceau - 2014 Package api contains general tools */ package api import ( "fmt" "github.com/revel/revel" "runtime/debug" ) /* PanicFilter renders a panic as JSON @see revel/panic.go */ func PanicFilter(c *revel.Controller, fc []revel.Filter) { defer func() { if err := reco...
<!DOCTYPE html> <html xmlns="http: <head> <title>Tree View</title> <link href="01.tree-view.css" rel="stylesheet" /> </head> <body> <nav> <ul class="first"> <li> <a href="#">List Item</a> <ul> <li> <a href="#">Sublist item</a> ...
layout: post author: nurahill title: "Nura's Clicky turtle excercise" Here is my code for option 1: <iframe src="https://trinket.io/embed/python/3c8744a1ac" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe> On option one, as usual, it took me a bit to come up with an i...
<?php namespace SCL\ZF2\Currency\Form\Fieldset; use Zend\Form\Fieldset; class TaxedPrice extends Fieldset { const AMOUNT_LABEL = 'Amount'; const TAX_LABEL = 'Tax'; public function init() { $this->add([ 'name' => 'amount', 'type' => 'text', 'options' => [ ...
var indexController = require('./controllers/cIndex'); var usuarioController = require('./controllers/cUsuario'); var clientesController = require('./controllers/cCliente'); var adminController = require('./controllers/cAdmin'); var umedController = require('./controllers/cUmed'); var matepController = require('./contr...
<?php namespace AppBundle\Behat; use Sylius\Bundle\ResourceBundle\Behat\DefaultContext; class BrowserContext extends DefaultContext { /** * @Given estoy autenticado como :username con :password */ public function iAmAuthenticated($username, $password) { $this->getSession()->visit($this->ge...
## Close What is the value of the first triangle number to have over five hundred divisors? print max([len(m) for m in map(lambda k: [n for n in range(1,(k+1)) if k%n == 0], [sum(range(n)) for n in range(1,1000)])])
from errors import * from manager import SchemaManager
<?php namespace Syrma\WebContainer; interface ServerInterface { /** * Start the server. * * @param <API key> $context * @param <API key> $requestHandler */ public function start(<API key> $context, <API key> $requestHandler); /** * Stop the server. */ public function ...
# Architecture When you are developing a new feature that requires architectural design, or if you are changing the fundamental design of an existing feature, make sure it is discussed with one of the Frontend Architecture Experts. A Frontend Architect is an expert who makes high-level Frontend design decisions and dec...
module Mailchimp class API include HTTParty format :plain default_timeout 30 attr_accessor :api_key, :timeout, :throws_exceptions def initialize(api_key = nil, extra_params = {}) @api_key = api_key || ENV['MAILCHIMP_API_KEY'] || self.class.api_key @default_params = {:apikey => @api_key...
Ti=Ownership sec=All {<API key>} furnished to {_the_Consultant} by {_the_Client} is the sole and exclusive property of {_the_Client} or its suppliers or customers. =[G/Z/ol/0]
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "Arduino.h" #include "Print.h" // Public Methods ////////////////////////////////////////////////////////////// /* default implementation: may be overridden */ size_t Print::write(const uint8_t *buffer, size_t size) { size_t n = 0; ...
import { Injectable } from '@angular/core'; class MyEvent{ private context:Object; private cbs: Function[] = []; constructor(context: Object){ this.context = context; } public addListener(cb: Function){ this.cbs.push(cb); } public removeListener(cb: Function){ let i = this.cbs.indexOf(cb); ...
import random from datetime import datetime from multiprocessing import Pool import numpy as np from scipy.optimize import minimize def worker_func(args): self = args[0] m = args[1] k = args[2] r = args[3] return (self.eval_func(m, k, r) - self.eval_func(m, k, self.rt) - self...
RSpec.describe Porch::ProcStepDecorator do describe ".decorates?" do it "returns true if the step is a proc" do expect(described_class).to be_decorates Proc.new {} end it "returns true if the step is a lambda" do expect(described_class).to be_decorates lambda {} end it "returns false i...
<?php declare(strict_types=1); namespace Symplify\MultiCodingStandard\Tests\PhpCsFixer\Factory; use PhpCsFixer\Fixer\FixerInterface; use PHPUnit\Framework\TestCase; use Symplify\MultiCodingStandard\PhpCsFixer\Factory\FixerFactory; final class FixerFactoryTest extends TestCase { /** * @var FixerFactory */ ...
# -*- coding: utf-8 -*- # Dependencies import uuid from api import app from hashlib import sha1 from flask import request from flask import jsonify as JSON from api.models.user import User from cors import cors @app.route('/signup', methods=['POST']) @cors(origin='*', methods=['POST']) def signup(): # Create new us...
'use strict'; const buildType = process.config.target_defaults.<API key>; const assert = require('assert'); if (process.argv[2] === 'fatal') { const binding = require(process.argv[3]); binding.error.throwFatalError(); return; } test(`./build/${buildType}/binding.node`); test(`./build/${buildType}/binding_noexcept...
using System.Web; using System.Web.Optimization; namespace WebAPI.Boilerplate.Api { public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}...
// YYBaseLib.h // YYBaseLib #import <UIKit/UIKit.h> #import "AppConfig.h" #import "BaseViewController.h" #import "CommonTool.h" #import "DataVerify.h" #import "FSMediaPicker.h" #import "MBProgressHUD+<API key>.h" #import "EnumModel.h" #import "UsersModel.h" #import "NSDataAdditions.h" #import "NSDate_Extensions.h" #i...
<table id="member_table" class="mainTable padTable" style="width:100%;" cellspacing="0" cellpadding="0" border="0"> <thead> <tr> <th style="width:3%;" ><?=$lang_id?></th> <th style="width:22%;"><?=$lang_name?></th> <th style="width:15%;"><?=$lang_total...
package redes3.proyecto.nagiosalert; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.TextView; public class InfoServiceActivity extends Activity { String nombr...
#include "MultiSelection.h" #include "ofxCogEngine.h" #include "EnumConverter.h" #include "Node.h" namespace Cog { void MultiSelection::Load(Setting& setting) { string group = setting.GetItemVal("selection_group"); if (group.empty()) CogLogError("MultiSelection", "Error while loading MultiSelection ...
// 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...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class <API key> extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('events', function (Blueprint $table) { $table->string(...
package plugin_test import ( "path/filepath" "code.cloudfoundry.org/cli/utils/testhelpers/pluginbuilder" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestPlugin(t *testing.T) { RegisterFailHandler(Fail) pluginbuilder.BuildTestBinary(filepath.Join("..", "fixtures", "...
var express = require('express'), compression = require('compression'), path = require('path'), favicon = require('serve-favicon'), logger = require('morgan'), cookieParser = require('cookie-parser'), bodyParser = require('body-parser'), session = require('express-session'), session = re...
/** * CircularLinkedList implementation * @author Tyler Smith * @version 1.0 */ public class CircularLinkedList<T> implements LinkedListInterface<T> { private Node<T> head = null, tail = head; private int size = 0; @Override public void addAtIndex(int index, T data) { if (index < 0 || index ...
import { Component, OnInit } from '@angular/core'; // import { TreeModule, TreeNode } from "primeng/primeng"; import { BlogPostService } from '../shared/blog-post.service'; import { BlogPostDetails } from '../shared/blog-post.model'; @Component({ selector: 'ejc-blog-archive', templateUrl: './blog-archive.component....
require 'active_record' module ActiveRecord class Migration def <API key>(direction) if defined? self.class::DATABASE_NAME ActiveRecord::Base.<API key>(self.class::DATABASE_NAME.to_sym) <API key>(direction) ActiveRecord::Base.<API key>(Rails.env.to_sym) else <API key>(d...