answer
stringlengths
15
1.25M
using System; using System.Collections.Generic; using System.Html; namespace wwtlib { public class PlotTile : Tile { bool topDown = true; protected PositionTexture[] bounds; protected bool backslash = false; List<PositionTexture> vertexList = null; List<Triangle>[] childT...
<?php declare(strict_types = 1); namespace Browscap\Cache; use BrowscapPHP\Cache\<API key>; use WurflCache\Adapter\AdapterInterface; final class JsonCache implements <API key> { /** * The cache livetime in seconds. * * @var int */ public const CACHE_LIVETIME = 315360000; // ~10 years (60 * 6...
(function () { "use strict"; require('futures/forEachAsync'); var fs = require('fs'), crypto = require('crypto'), path = require('path'), exec = require('child_process').exec, mime = require('mime'), FileStat = require('filestat'), dbaccess = require('../dbacc...
#!/usr/bin/python from typing import List, Optional def bsearch(nums, left, right, res, i, j, target): while left <= right: middle = (left + right) candidate = nums[i] + nums[j] + nums[middle] if res is None or abs(candidate - target) < abs(res - target): res = candidate ...
package bits; public class ExclusiveOrOperator implements BinaryOperator { @Override public BitArray combine(BitArray operand1, BitArray operand2) { if(operand1.size() != operand2.size()) { throw new <API key>("ExclusiveOrOperator operands must have same size"); } int size = ...
layout: post title: "Using the right terms: Method?" date: 2015-08-05 12:00:00 comments: true tags: [components, programming, components programming, <API key>, stepanov, knuth, stroustrup, generic, genericprogramming, generic programming, genericity, concepts, math, mathematics, elements, eop, contracts, performanc...
/*"use strict"; var expect = require("expect.js"), ShellController = require("../lib/shell-controller"), testView = require("./test-shell-view"); describe("ShellController", function() { var ctrl; it("is defined", function() { expect(ShellController).to.be.an("function"); }); describe("c...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); // Database var mongo = require('mongodb'); var monk = require('monk'); var db = monk('localhost:270...
# Smallest Integer # I worked on this challenge [by myself, with: ]. # smallest_integer is a method that takes an array of integers as its input # and returns the smallest integer in the array # +list_of_nums+ is an array of integers # smallest_integer(list_of_nums) should return the smallest integer in +list_of_nums+ ...
FactoryGirl.define do factory :user do provider 'trello' uid 'trello-special-uid' full_name 'Dennis Martinez' nickname 'dennmart' oauth_token 'trello-token' trait :admin do admin true end end end
<!DOCTYPE html> <html lang="en" ng-app="bookmarkApp"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bookmark</title> <link type="text/css" href="app/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link t...
from multiprocessing import Pool import os, time, random def long_time_task(name): print 'Run task %s (%s)...' % (name, os.getpid()) start = time.time() time.sleep(random.random() * 3) end = time.time() print 'Task %s runs %0.2f seconds.' % (name, (end - start)) if __name__ == '__main__': print ...
package net.comfreeze.lib; import android.app.AlarmManager; import android.app.Application; import android.app.NotificationManager; import android.content.ComponentName; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.pm.PackageMana...
// Generated by class-dump 3.5 (64 bit). #import "<API key>.h" @class NSData, <API key>, WFNordicDFUPacketCh; @interface <API key> : <API key> { id <WFNordicDFUDelegate> delegate; <API key> *dfuControlPointCh; WFNordicDFUPacketCh *dfuPacketCh; BOOL bDFUInProgress; BOOL bStartTransferOnACK; B...
import { Camera, ClampToEdgeWrapping, DataTexture, FloatType, HalfFloatType, Mesh, NearestFilter, PlaneBufferGeometry, RGBAFormat, Scene, ShaderMaterial, WebGLRenderTarget } from "./three.module.js"; var <API key> = function ( sizeX, sizeY, renderer ) { this.variables...
package com.example.mesh; import java.util.HashMap; import java.util.Map; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; @Path("/") @Consum...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <pthread.h> #include <errno.h> #include "semaphore.h" typedef struct lock { Semaphore *sem; } Lock; Lock *make_lock () { Lock *lock = (Lock *) malloc (sizeof(Lock)); lock->sem = make_semaphore(1); return lock; } void lock...
<section id="main"> <a href="./#/mocks"><- Back to mocks list</a> <nav id="secondary" class="main-nav"> <div class="mock-picture"> <div class="avatar"> <img ng-show="mock" src="img/mocks/{{mock.Mock.mockId}}.png" /> <img ng-show="mock" src="img/flags/{{mock.Mock.nationality}}.png" /><br/> ...
/*jshint node:true*/ /*global test, suite, setup, teardown*/ 'use strict'; var assert = require('assert'); var tika = require('../'); suite('document tests', function() { test('detect txt content-type', function(done) { tika.type('test/data/file.txt', function(err, contentType) { assert.ifError(...
<html> <head> <title>im a title</title> <META http-equiv='x-ua-compatible' content="IE=edge,chrome=1" /> <script> junk </script> </head> <body>im some body text</body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>React Webpack Boilerplate</title> </head> <body> <div id="root"></div> <script src="/bundle.js"></script> </body> </html>
<?php namespace Screeenly\Screenshot; /** * Interface description. * * @author Stefan Zweifel */ interface ClientInterface { /** * Method description. * * @author Stefan Zweifel * * @param type $parameter * * @return type */ public function build(); public funct...
// cpu/test/unique-strings.cpp -*-C++-*- // obtaining 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, // the Software, and to permit pe...
#!/usr/bin/env bash PIDFILE="$HOME/.brianbondy_nodejs.pid" if [ -e "${PIDFILE}" ] && (ps -u $USER -f | grep "[ ]$(cat ${PIDFILE})[ ]"); then echo "Already running." exit 99 fi PATH=/home/tweetpig/webapps/brianbondy_node/bin:$PATH LD_LIBRARY_PATH=/home/tweetpig/lib/libgif NODE_ENV=production PORT=32757 /home/tweetpi...
# Strict Mode To enable strict mode, simply pass in `strict: true` when creating a Vuex store: js const store = createStore({ strict: true }) In strict mode, whenever Vuex state is mutated outside of mutation handlers, an error will be thrown. This ensures that all state mutations can be explicitly tracked by debuggi...
import './index.scss' import React, { Component } from 'react' // import { Grid, Col, Row } from 'react-bootstrap'; export default class IndexPage extends Component { render() { return ( <div className="top-page"> <div> <img className="top-image" src="/cover2.jpg" ...
# coding: utf-8 import pytest from os import path, remove, sys, urandom import platform import uuid from azure.storage.blob import ( BlobServiceClient, ContainerClient, BlobClient, ContentSettings ) if sys.version_info >= (3,): from io import BytesIO else: from cStringIO import StringIO as Bytes...
package controllers; import java.lang.reflect.<API key>; import java.util.List; import java.util.Date; import models.Usuario; import play.Play; import play.mvc.*; import play.data.validation.*; import play.libs.*; import play.utils.*; public class Secure extends Controller { @Before(unless={"login", "authenticate",...
# This file is part of Indico. # Indico is free software; you can redistribute it and/or import os import re import subprocess import sys from datetime import date import click import yaml from indico.util.console import cformat # Dictionary listing the files for which to change the header. # The key is the extension o...
from django.shortcuts import redirect from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from paste.models import Paste, Language @csrf_exempt def add(request): print "jojo" if request.method == 'POST': language = request.POST['language'] content = request....
module Ahoy module Stores class ActiveRecordStore < BaseStore def track_visit(options, &block) visit = visit_model.new do |v| v.id = ahoy.visit_id v.visitor_id = ahoy.visitor_id v.user = user if v.respond_to?(:user=) end <API key>(visit...
import {extend} from 'lodash'; export default class User { /** * The User class * @class * @param {Object} user * @return {Object} A User */ constructor(user) { extend(this, user); console.log(this); } }
/* style-4.css */ body { font-family: 'Lato', arial, sans-serif; color: #444; font-size: 16px; -<API key>: antialiased; -<API key>: grayscale; } h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #50c8c9; } a { color: #50c8c9; -webkit-transition: all 0.4s ease-i...
using UnityEngine; using System.Collections; public class Intro : MonoBehaviour { public GameObject martin; public GameObject mrsStrump; public GameObject strumpFire; public Sprite sadMartin, slinkton, police, candles, houses, strumps; public Camera cam; // Use this for initialization void S...
module Parsers module Edi class IncomingTransaction attr_reader :errors def self.from_etf(etf, i_cache) <API key> = new(etf) <API key> = etf.subscriber_loop.policy_loops.first find_policy = FindPolicy.new(<API key>) policy = find_policy.by_subkeys({ :eg_id => ...
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta content="IE=edge;chrome=1" http-equiv="X-UA-Compatible" /> <title>dognews</title> <meta content="width=device-width, initial-scale=1" name="viewport" /> <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml"...
geoserver ====== PostGI server and probably more for the Cologne Open Data community. The goal is to provide a unified, dynamic geodata access point for some important geographical datasets. At some point, there might be a tile server or some other visualization layer as well. We'll see. ## Contents `postgis` Scripts t...
// EBBannerView+Categories.h // demo #import "EBBannerView.h" #define WEAK_SELF(weakSelf) __weak __typeof(&*self)weakSelf = self; #define ScreenWidth [UIScreen mainScreen].bounds.size.width #define ScreenHeight [UIScreen mainScreen].bounds.size.height @interface EBBannerView (EBCategory) +(UIImage*)defaultIcon; +(NS...
exports.<API key> = function (tuples) { var valueMap = {}; tuples.forEach(function (tuple) { valueMap['!' + tuple.value0] = tuple.value1; }); return valueMap; }; var templatePattern = /\$\{([^}]+)\}/g; exports._getTemplateVars = function (str) { return (str.match(templatePattern) || []).map(function (str)...
#CodeQuiz _CodeQuiz is a game made with Kivy framework._ _He is a Quiz consists of four options, Ruby, Python, Javascript and C _Where he will approach curiosities and specificities of each language._ ##Install and Run 1.Clone this repo ``` git clone git@github.com:GuiCarneiro/CodeQuiz.git ``` 2.Install Kivy on your co...
/** * @overview * API handler action creator * Takes a key-value -pair representing the event to handle as key and its respective * handler function as the value. * * Event-to-URL mapping is done in {@link ApiEventPaths}. * * @since 0.2.0 * @version 0.3.0 */ import { Seq, Map } from 'immutable'; import { ...
# Fire Keeper ## Introduction Fire Keeper is a bot designed for the *Praise the Place* Dark Souls Discord server. Please do not use this bot in your server without adapation of the code, or else things will not work correctly.
title: Prepare paperwork contexts: office365,microsoft365 source: Microsoft public sites translation: en tools: To kick off the employee onboarding checklist, you need to__ prepare the relevant paperwork and information__prior to the employee's first day\. Start by __recording__ the employee's __basic information__ in ...
Use [dox](https: Outputted HTML is by default based on templates and css from [Twitter Bootstrap](twitter.github.com/bootstrap/) and syntax highlighting is done by [Prism.js](http://prismjs.com/). Doxx was tested with **JavaScript** as well as generated JavaScript from **CoffeeScript**. ## Demo * [doxx/docs/compile.js]...
<div class="title"> <img class="icon" src="./res/img/interface.svg" /> <p class="interface">IStudentInfo.IYear</p> </div> <p> Describes school year. Contains year id and register id which are needed in order to use the the API. </p> <br /> <p class="section-title">Fields</p> <p>name: <span class="class">str...
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL function xParentN(e, n) { while (e && n--) e = e.parentNode; return e; }
package org.edtoktay.dynamic.compiler; /** * @author deniz.toktay * */ public interface ExampleInterface { void addObject(String arg1, String arg2); Object getObject(String arg1); }
import React, { Component } from 'react'; import { StyleSheet, Text, View, Navigator, ScrollView, ListView, } from 'react-native' import NavigationBar from 'react-native-navbar'; var REQUEST_URL = 'https://calm-garden-29993.herokuapp.com/index/groupsinfo/?'; class GroupDetails extends Component { constr...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W28677_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
class User < ActiveRecord::Base # Include default devise modules. Others available are: # :<API key>, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable devise :<API key>, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setup accessible (or protected) attribute...
process.stderr.write('Test');
# README SportzBall is a community driven application used to bring people together for intramural sports. From football to quidditch we want you to SPORTZ! To set up repository on your local machine clone and set up database (instructions below) Rails 5.0.1 Ruby ~> 2.3.0 * Configuration * Database creation and initial...
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("<API key>", "wellspring.settings") from django.core.management import <API key> <API key>(sys.argv)
package org.squirrel; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.Timer; import org.squirrel.managers.PrisonerControllor; import org.squirrel.managers.inputMan...
/* jqModal base Styling courtesy of; Brice Burgess <bhb@iceburg.net> */ /* The Window's CSS z-index value is respected (takes priority). If none is supplied, the Window's z-index value will be set to 3000 by default (via jqModal.js). */ .jqmWrap { display: none; position: fixed; top: 20%; left: ...
(function () { 'use strict'; angular .module('app') .service('<API key>', <API key>); function <API key>($http, $log, TokenService, UserService, $rootScope) { this.uploadImage = uploadImage; / function uploadImage(formdata, callback) { let userToken = Toke...
<?php include 'vendor/autoload.php'; ini_set('error_reporting', E_ALL); ini_set('display_errors', '1'); ini_set('<API key>', '1');
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>simple-io: 27 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="sty...
class Sprite(object): def __init__(self, xPos, yPos): self.x = xPos self.y = yPos self.th = 32 self.tw = 32 def checkCollision(self, otherSprite): if (self.x < otherSprite.x + otherSprite.tw and otherSprite.x < self.x + self.tw and self.y < otherSprite.y + oth...
<?php namespace Carrot\Docs; use Exception, <API key>, DirectoryIterator; class Storage { /** * @var string The directory that contains the document files, * without trailing directory separator. */ protected $rootDirectory; /** * Constructor. * * If no path was gi...
<div class="panel panel-primary"> <div ng-show="error" class="alert alert-danger">{{ error }}</div> <div class="panel-heading"> <p class="panel-title">Neuer Gig</p> </div> <div class="panel-body"> <form name="addGig" class="form-horizontal" ng-submit="insertGig(gig)"> <fields...
class CreateTeams < ActiveRecord::Migration def self.up create_table :teams do |t| t.string :name t.string :abbreviation t.string :hometown t.timestamps end end def self.down drop_table :teams end end
#ifndef X264_VISUALIZE_H #define X264_VISUALIZE_H #include "common.h" void x264_visualize_init( x264_t *h ); void x264_visualize_mb( x264_t *h ); void x264_visualize_show( x264_t *h ); void <API key>( x264_t *h ); #endif
angular.module('tips.tips').controller('TipsController', ['$scope', '$routeParams', '$location', 'Global', 'Tips', function ($scope, $routeParams, $location, Global, Tips) { $scope.global = Global; $scope.createTip = function () { var tips = new Tips({ text: this.text, likes: thi...
# Get Single Promotion This gets an XML document with the specific promotion by the ID. ## Single Promotion Options [MadMimi's Promotion Documentation](https://madmimi.com/developer/api/promotions) should give you an idea of what you need to send to the API. This options object makes some of the methods easier. Method...
# Laravel Favorite (Laravel 5, 6, 7, 8 Package) [![Latest Version on Packagist][ico-version]][link-packagist] [![Packagist Downloads][ico-downloads]][link-packagist] [![Software License][ico-license]](LICENSE.md) [![Build Status][ico-travis]][link-travis] **Allows Laravel Eloquent models to implement a 'favorite' or 'r...
package com.xeiam.xchange.cryptotrade.dto; import java.io.IOException; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.<API key>; import com.fasterxml.jackson.core.ObjectCodec; import com.fasterxml.jackson.databind.<API key>; import com.fasterxml.jackson.databind.JsonDeserializer; import...
module Mailplug class Plugin::Example < Mailplug::Middleware # Message Envelope Methods def return_path end def recipients end def message # returns Mail::Message end # Hash of state and inter-stack data memo[classname][key]=value def memo end # SMTP State Changes def o...
import apiConfig from './MovieDBConfig'; import TmdbApi from 'moviedb-api'; var api = new TmdbApi({ consume: false, apiKey: apiConfig.apiKey }); const makeAndList = (list) => { return list.map(item => item.value).join(); }; export const getGenres = (input='', callback) => { api.request('/genre/movie/list', 'GET...
const excludedTables = ["blacklist", "musicCache", "timedEvents"]; const statPoster = require("../../modules/statPoster.js"); module.exports = async guild => { let tables = await r.tableList().run(); for(let table of tables) { let indexes = await r.table(table).indexList().run(); if(~indexes.ind...
using System.Collections.Generic; using System.IO; using System.Reflection; using IDI.Core.Common.Extensions; namespace IDI.Core.Localization { public abstract class Package { public List<PackageItem> Items { get; private set; } = new List<PackageItem>(); public Package(string assemblyName, stri...
// UIView+BluredSnapshot.h // <API key> #import <UIKit/UIKit.h> @interface UIView (BluredSnapshot) -(UIImage *)blurredSnapshot; @end
-- collate4.test -- execsql { -- CREATE TABLE collate4t3(a COLLATE NOCASE, b COLLATE TEXT); -- INSERT INTO collate4t3 VALUES( 'a', 'a' ); -- INSERT INTO collate4t3 VALUES( 'b', 'b' ); -- INSERT INTO collate4t3 VALUES( NULL, NULL ); -- INSERT INTO collate4t3 VALUES( 'B', 'B' ); -- INSERT INTO col...
import { computed, get } from '@ember/object'; import { getOwner } from '@ember/application'; import { deprecate } from '@ember/debug'; export function ability(abilityName, resourceName) { deprecate( 'Using ability() computed property is deprecated. Use getters and Can service directly.', false, { f...
# 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...
/* global requirejs, require */ /*jslint node: true */ 'use strict'; import Ember from 'ember'; import _keys from 'lodash/object/keys'; /* This function looks through all files that have been loaded by Ember CLI and finds the ones under /mirage/[factories, fixtures, scenarios, models]/, and exports a hash contain...
/* tslint:disable:no-unused-variable */ import { TestBed, async } from '@angular/core/testing'; import { <API key> } from './dps-bar-chart.component'; describe('Component: DpsBarChart', () => { it('should create an instance', () => { let component = new <API key>(); expect(component).toBeTruthy(); }); });
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> <script src="<?php echo base_url('assets/plugins/jquery-fancybox/jquery.fancybox.js'); ?>" type="text/javascript"></script> <script src="<?php echo base_url('assets/plugins/validate/validate.js'); ?>" type="text/javascript"></script> <link hr...
# Botfather configs [BotFather](https://telegram.me/botfather) allows you to create Telegram bots, and instanciates authentication tokens. But it does more than that. To get the same settings as FiddleGram, follow this: * Go to Botfather, use `/start` and follow the instructions to create your bot. Put the auth token i...
<?php declare(strict_types=1); namespace AlphaVantageTest\Api; use AlphaVantage\Api\ForeignExchange; class ForeignExchangeTest extends TestCase { public function <API key>() { $actual = (new ForeignExchange($this->option))-><API key>('BTC', 'CNY'); $this->assertIsArray($actual); $this->a...
local u = require "lib/util" local Node = require "lib/espalier/node" local Section = require "Orbit/section" local own = require "Orbit/own" local D = setmetatable({}, { __index = Node }) D.id = "doc" D.__tostring = function (doc) local phrase = "" for _,v in ipairs(doc) do local repr = tostring(v) ...
package com.github.aureliano.evtbridge.output.file; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.Set; import org.junit.Test; import com.github.aureliano.evtbridge.annotation...
// THIS CODE IS MACHINE-GENERATED, DO NOT EDIT! package fallk.jfunktion; /** * Represents a predicate (boolean-valued function) of a {@code float}-valued and a generic argument. * This is the primitive type specialization of * {@link java.util.function.BiPredicate} for {@code float}/{@code char}. * * @see java.uti...
console.log("VS: loading content_script.js..." + new Date()); // Check if the communication between page and background.js has broken. var last_message_time = new Date().getTime(); new Promise((resolve) => setTimeout(resolve, 1000000)).then(() => { var now = new Date().getTime(); if (now - last_message_time > 5...
Flappy_Flyer ========= A Flappy Birds clone for iOS. Raw XCode project along with original artwork.
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Books extends Model { protected $table = 'books'; protected $fillable = [ 'guid', 'author', 'title', 'description', 'abstract', 'edition', 'publish_date', 'status']; }
namespace gView.Plugins.DbTools.Relates { partial class <API key> { <summary> Erforderliche Designervariable. </summary> private System.ComponentModel.IContainer components = null; <summary> Verwendete Ressourcen bereinigen. </summary> <param name=...
<?php namespace Eloquent\Schemer\Constraint; interface SchemaInterface extends ConstraintInterface { }
/* header bar */ .navbar { margin-bottom:0; } /* aside */ .content,aside { margin-top:20px; margin-bottom:30px; margin-left:0px; margin-right:0px; } .home { background: url(/images/home.jpg) no-repeat center center fixed; -<API key>: cover; -moz-background-size: cover; -o-background-...
package com.carbon108.tilde; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import java.util.Collection; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** * @author K Moroz * @version 1.0 */ public class <API ...
var <API key> = [ [ "ParcelsTest", "<API key>.html", "<API key>" ] ];
namespace QuanLySinhVien_GUI { partial class <API key> { <summary> Required designer variable. </summary> private System.ComponentModel.IContainer components = null; <summary> Clean up any resources being used. </summary> <param name="disposing">tr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cantor: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
#ifndef CHECKQUEUE_H #define CHECKQUEUE_H #include <boost/thread/mutex.hpp> #include <boost/thread/locks.hpp> #include <boost/thread/condition_variable.hpp> #include <vector> #include <algorithm> template<typename T> class CCheckQueueControl; /** Queue for verifications that have to be performed. * The verifications ...
## Exercises scheme ;; ====================================================== ;; Load definitions and functions from earlier chapters ;; ====================================================== (load "c01s01.scm") ;; ====================================================== **Exercise 1.9** Each of the following two procedu...
# <API key> A collection of webcomponents, inspired by the design work at http://tympanus.net/codrops/
// BallVC.h // KenshinPro #import <UIKit/UIKit.h> <API key> @interface BallVC : UIViewController @end <API key>
## Your Names # 1) Michael Yao # 2) Benjamin Heidebrink # We spent [1.25] hours on this challenge. # Bakery Serving Size portion calculator. def serving_size_calc(item_to_make, num_of_ingredients) library = {"cookie" => 1, "cake" => 5, "pie" => 7} raise ArgumentError.new("#{item_to_make} is not a valid input") unl...
import 'css.escape' import { createFootnote, FootnoteElements } from './footnote' import { bindScrollHandler } from './scroll' import { Adapter } from '../core' import { addClass, removeClass, unmount } from './element' export const CLASS_CONTENT = 'littlefoot__content' export const CLASS_WRAPPER = 'littlefoot__wrapper...
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__))) describe 'response.cache_control' do it 'sets the Cache-Control header' do app(:caching) do |r| response.cache_control :public=>true, :no_cache=>true, :max_age => 60 end header('Cache-Control').split(', ').sort.should == [...