answer stringlengths 15 1.25M |
|---|
/**
* Global config setters/getters. Chainable ;)
*
* @usage
* config.duration(500) //
* config.duration() // => 500
* config.duration(600).duration() // 600
*/
// Number of millseconds for each message to last
var _duration = 10000;
/**
* (s|g)etter for the duration
*
* @parmam {int} ms
* @return {this|int}... |
class Solution {
public int findMaxForm(String[] strs, int m, int n) {
int[][] dp = new int[m+1][n+1];
for(String s : strs) {
int zeros = 0, ones = 0;
for(char c : s.toCharArray()) {
if(c - '0' == 0) zeros++;
else ones++;
}
... |
{% extends "base.html" %}
{% block body %}
<div class="row">
<div class="large-12 columns">
{% if search %}
<h1>Words that get the Tweets: {{search}}</h1>
{% else %}
<h1>Words that get the Tweets</h1>
{% endif %}
</div>
<form method="POST" action = "" class="form" >
<div class="row collapse">
... |
Registration agent for Difio, preconfigured for dotCloud / Ruby
applications.
It compiles a list of installed packages and sends it to http:
Installing on your dotCloud Ruby application
- Create an account at http:
- Create your Ruby application in dotCloud and push it
- Configure your Difio userID. You can get it from... |
module VirtualBox
module COM
module Interface
module Version_4_1_X
class <API key> < AbstractEnum
map :undefined => 0,
:started => 1,
:terminated_normally => 2,
:terminated_signal => 3,
:<API key> => 4,
:timed_out_kill... |
namespace StackFaceSystem.Data.Common.Models
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public abstract class BaseModel<TKey> : IAuditInfo, IDeletableEntity
{
[Key]
public TKey Id { get; set; }
public DateT... |
package main
import (
"log"
"net/http"
"github.com/sirupsen/logrus"
"github.com/stripe/smokescreen/cmd"
"github.com/stripe/smokescreen/pkg/smokescreen"
)
// This default implementation of RoleFromRequest uses the CommonName of the
// client's certificate. If no certificate is provided, the AllowMis... |
var uuid = require('uuid');
var async = require('async');
var oxutil = require('../util/util.js');
var state = require('../shared/state.js');
var push = require('../push/push.js');
exports.rest_api = function(req, res, authenticationStore, applicationService, deviceService) {
console.log("Authenticate: '" + req.par... |
layout: leetcode
title: "170. Two Sum III - Data structure design"
categories: [leetcode]
[Leetcode Link]https://leetcode.com/problems/<API key>/)
Design a data structure that accepts a stream of integers and checks if it has a pair of integers that sum up to a particular value.
Implement the TwoSum class:
* TwoSum() I... |
const { yellow, cyan, gray } = require('chalk');
const EslintCLI = require('eslint').CLIEngine;
const eslintConfig = require('../config/eslint/eslintConfig');
const runESLint = ({ fix = false, paths }) =>
new Promise((resolve, reject) => {
console.log(cyan(`${fix ? 'Fixing' : 'Checking'} code with ESLint`));
... |
package madgik.exareme.master.queryProcessor.decomposer.query.visitors;
import com.foundationdb.sql.StandardException;
import com.foundationdb.sql.parser.FromSubquery;
import com.foundationdb.sql.parser.SelectNode;
import com.foundationdb.sql.parser.Visitable;
import madgik.exareme.master.queryProcessor.decomposer.quer... |
<article class="c-page-section <API key>">
<div class="<API key>">
<div class="<API key>">
<perch:content id="principles_intro" type="textarea" label="Introduction" markdown="true" editor="simplemde" required="true" imagewidth="800" height="300" />
</div>
<div class="<API key>">
<ol>
<... |
\section{Notification Struct Reference}
\label{<API key>}\index{Notification@{Notification}}
Notification . Notification .
{\ttfamily \#include $<$Notification.\-h$>$}
Collaboration diagram for Notification\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=146pt]{<API key>}
\en... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sinks-22a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
* BadSource: malloc Allocate data using malloc()
* GoodSource: Allocate data using new
* Sinks:
* ... |
<!DOCTYPE html>
<html>
<head>
<title>Recent Changes</title>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0" />
<link rel="stylesheet" type="text/css" href="/css/ios7.css" />
<script type="text/javascript" src="/js/jqu... |
using System;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Security.Cryptography;
using System.Text;
using System.IO;
using System.Xml.Serialization;
namespace SVX
{
public static class Utils
{
public static string <API key>(byte[] data)
{
return... |
package com.knr.recyclr;
import org.json.*;
public class UpcItem {
public String number;
public String itemName;
public String description;
public UpcItem(String json) {
try {
JSONObject jsonObj = new JSONObject(json);
this.number = jsonObj.getString("number");
... |
package com.real.estate.parser;
import org.jsoup.nodes.Element;
import java.util.List;
public interface Parser<T> {
List<Element> parse();
T createFromElement(Element element);
} |
#include "sphia-test.h"
// See
static void
<API key>() {
sphia_set(sphia, "key-1", "hello world");
sphia_set(sphia, "key-10", "hello world");
sphia_set(sphia, "00000000", "hello world");
sphia_set(sphia, "000000000", "hello world");
assert(4 == sphia_count(sphia));
assert(0 == sphia_clear(sphia));
assert(... |
\hypertarget{<API key>}{}\section{testing\+:\+:internal\+:\+:Return\+Null\+Action Class Reference}
\label{<API key>}\index{testing\+::internal\+::\+Return\+Null\+Action@{testing\+::internal\+::\+Return\+Null\+Action}}
{\ttfamily \#include $<$gmock-\/actions.\+h$>$}
\subsection*{Static Public Member Functions}
\begin{Do... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Windows.Media.Imaging;
using GitHub.Extensions;
using GitHub.Helpers;
using ReactiveUI;
namespace GitHub.Models
{
public class <API key>
{
readonly string prefix;
readonly string suffix;
... |
import <API key> from './Numeral'
const numeral = global.numeral
if (!numeral) {
throw new Error('Numeral is required in global variable')
}
export default class MoneyComponent extends <API key> {
unformatValue(label) {
return label === '' ? undefined : numeral._.stringToNumber(label)
}
formatValue(real) {
... |
var gulp = require("gulp");
var util = require("gulp-util");
var config = require("../config")
gulp.task("watch", () => {
gulp.watch(`${config.src.ts}`, ["compile:ts"]).on("change", reportChange).on("error", swallowError);
gulp.watch(`${config.test.files}`, ["compile:test"]).on("change", reportChange).on("error... |
using System;
using System.Diagnostics;
#pragma warning disable 1591
// ReSharper disable UnusedMember.Global
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable <API key>.Global
// ReSharper disable <API key>.Global
// ReSharper disable <API key>.Global
// ReSharper disable InconsistentNaming
namespace... |
package com.microsoft.bingads.v12.customermanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.F... |
# We borrow heavily from the kernel build setup, though we are simpler since
# we don't have Kconfig tweaking settings on us.
# The implicit make rules have it looking for RCS files, among other things.
# We instead explicitly write all the rules we care about.
# It's even quicker (saves ~200ms) to pass -r on the comma... |
import { formatDistance, <API key>, defaultEnvironment, Environment } from './formatDate'
import { subDays } from 'date-fns'
import { ja, enUS } from 'date-fns/locale'
// memo(otofune): This requires that process.env.TZ equals to 'UTC'. (;;)
const jaEnvironment: Environment = { getLocale: () => ja }
const enUSEnvironme... |
use Win32::OLE::Const;
my $excelAppl = Win32::OLE->GetActiveObject('Excel.Application')
|| Win32::OLE->new('Excel.Application', 'Quit');
my $fso = Win32::OLE->new("Scripting.FileSystemObject");
my $naam = "testbook.xlsx";
my $book;
if ($fso->FileExists($naam)) {
my $padnaam = $fso->GetAbsolutePathName($naam);
$bo... |
#pragma once
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int maxProfit(vector<int>& prices) {
int states[2][4] = { INT_MIN, 0, INT_MIN, 0 }; // 0: 1 buy, 1: one buy/sell, 2: 2 buys/1 sell, 3, 2 buys/sells
int cur = 0, next = 1;
for (int i = 0; i < pri... |
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
gulpif = require('gulp-if'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
sequence = require(... |
<div class="directive-container" id="module:directives.directive:ons-bottom-toolbar">
<div>
<section class="description">
<p>Toolbar component that is positioned at the bottom of the page. Has same functionality as the ons-toolbar component.</p>
</section>
<span class="anchor" id="<API key>"></span>... |
<?php
namespace Chronos\ChronoAdminBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class RoadStateType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('name')
;
}
public func... |
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var gulpIf = require('gulp-if');
var cssnano = require('gulp-cssnano');
var imagemin = require('gulp-imagemin');
var cache = require('gulp-cac... |
(function () {
var Demo = {
init: function () {
this.syntaxHighlight();
this.sticky();
},
syntaxHighlight: function () {
hljs.initHighlighting();
},
sticky: function () {
var $sticky = $('[data-sticky]');
$sticky.sti... |
if defined?(::Rails::Railtie)
class EnumColumnRailtie < Rails::Railtie
# initializer 'enum_column.initialize', :after => 'active_record.initialize_database' do |app|
ActiveSupport.on_load :active_record do
require 'enum/mysql_adapter'
require 'enum/enum_adapter'
require 'enum/schema_... |
body {
color: #333;
}
input[type=search]::<API key>,
input[type=search]::search-decoration {
appearance: none;
}
.global-header {
background: #003760;
}
.main {
background: #fff;
}
.global-footer {
background: #003760;
} |
import 'reflect-metadata';
import { SchemaObject, XParameterObject } from '@ts-stack/openapi-spec';
import { Parameters } from './parameters';
import { Column } from '../decorators/column';
describe('Parameters', () => {
describe('without data model', () => {
it('required path with someName', () => {
const ... |
var Tile = function (type, x, y) {
this.type = type;
this.tint = 0;
this.hover = false;
this.isAllowed = undefined;
this.isAllowedForBeat = undefined;
this.x = x;
this.y = y;
this.graphic = new fabric.Rect({
left: Tile.size * x,
top: Tile.size * y,
fill: type === Tile.TileType.NONPLAYABLE ? ... |
pre {
position: relative;
}
.redmine-pluin-tools {
position: fixed;
bottom: 10px;
right: 10px;
font-size: 16px;
border: 1px solid #90AECB;
border-radius: 5px;
padding: 5px;
text-align: center;
z-index: 10000;
}
.plugin-zclip {
position: absolute;
top: 0;
right: 0;
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tait: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
#include "Books.h"
#include <iostream>
#include <cstring>
using namespace std;
Books::Books() {
stock = new int[size];
price = new float[size];
author = new const char*[size];
publisher = new const char*[size];
title = new const char*[size];
populateData();
}
void Books::populateData() {
for... |
using Castle.Core.Logging;
using Bivi.Infrastructure.Constant;
using Bivi.Infrastructure.Services.Depots;
using Bivi.Infrastructure.Services.Encryption;
using Bivi.BackOffice.Web.Controllers.ActionResults;
using Bivi.BackOffice.Web.Controllers.Filters;
using Bivi.BackOffice.Web.Controllers.Helpers;
using Bivi.BackOffic... |
#!/bin/sh
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
bundle exec fastlane test
exit $?
fi |
/**
* Michael' (The non-Asian one's) librarys.<br>
* Thank you for the help!
* @author Michael [???]
*
*/
package com.shadow53.libs; |
using System;
using Amazon.DynamoDBv2.DataModel;
using AspNetCore.Identity.DynamoDB.Converters;
namespace AspNetCore.Identity.DynamoDB.Models
{
public abstract class <API key> : IEquatable<DynamoUserEmail>
{
protected <API key>() {}
protected <API key>(string value) : this()
{
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.strings.label.xml
Template File: sources-sink-82_bad.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data using a connect socket (client side)
* GoodSource: Fixed string
* Sink... |
# Alternate API for adding custom Jasmine matchers
This is a more declarative, and, I hope, easier to use API for writing custom Jasmime matchers.
## Documentation
Instead of this:
javascript
// TODO: show using the standard Jasmine API for creating a matcher
use this:
javascript
let jenh = require('jasmine-add-matcher... |
define( 'type.Integer', {
// class configuration
alias : 'int integer',
extend : __lib__.type.Number,
// public properties
precision : 0,
// public methods
valid : function( v ) {
return this.parent( v, true ) && Math.floor( v ) === v;
},
// internal method... |
package ua.com.fielden.platform.entity_centre.review;
import java.util.Date;
import ua.com.fielden.platform.domaintree.testing.<API key>;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.entity.DynamicEntityKey;
import ua.com.fielden.platform.entity.annotation.CompositeKeyMember;
imp... |
<li class="funnel-item">
<div class="<API key>">
<span class="<API key> funnel-item-label"></span>
<span class="<API key>"><span class="js-funnel-item-hits"></span><span class="<API key> is-hidden"> / <span class="<API key>"></span></span></span>
</div>
<div class="<API key>">
<div class="js-funnel-it... |
<html>
<head>
<title>Howdy!</title>
<style>
* {
margin: 0;
padding: 0;
}
html {
min-height:100%;
}
#container {
width: 960px;
margin: 0 auto;
... |
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
html {
color: #222;
font-size: 1em;
line-height: 1.4;
font-family: 'Play', sans-serif;
}
::selecti... |
using <API key>.Entities.Enterprises;
using <API key>.Library;
namespace <API key>.Entities.Accounts
{
public class Customer : Account, IOwnedEntity<Enterprise>
{
public Enterprise Owner { get; set; }
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_25) on Tue Jan 13 02:32:27 EST 2015 -->
<title>DateTime</title>
<meta name="date" content="2015-01-13">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src=... |
# Usage for packageRemover
Copy the file to /usr/local/bin/
Give the file permission to run with: chmod 777 (username) packageRemover
The scripts looks for every .java file in the directory where it is executed and echoes the found files.
It uses a regular expression to find package statements in the files and removes ... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- disable iPhone inital scale -->
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<?php
// Spit out meta tags
foreach($data->getMeta() as $name => $content)
echo '<meta name="'.$name.'" content="... |
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Zabuun - Learn Egyptian Arabic for English speakers</title>
<meta name="description" content="">
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/l... |
<?php use_helper('I18N', 'Date', 'JavascriptBase') ?>
<?php include_partial('<API key>/assets') ?>
<div id="sf_admin_container">
<h1><?php echo sfInflector::humanize(sfInflector::underscore($model)); ?> Nested Set Manager</h1>
<?php include_partial('<API key>/flashes') ?>
<?php if ($hasManyRoots && !$sf... |
@CHARSET "UTF-8";
body {
padding-top: 60px;
}
div#chartContainer {
padding-bottom: 30px;
}
div#loading {
display: none;
border: 8px solid #f3f3f3; /* Light grey */
border-top: 8px solid #3498db; /* Blue */
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 2s linear infin... |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style/main.css">
</head>
<body>
<div id="tickets-panel"></div>
<div id="slider-panel">
<button id="prev-button"></button>
<button id="next-button"></button>
<div id="current-page-info">0</div>
</div>
</body>
<script src="src/base... |
/**
* KeyParser.ts
*
* Simple parsing logic to take vim key bindings / chords,
* and return a normalized object.
*/
export interface IKey {
character: string
shift: boolean
alt: boolean
control: boolean
meta: boolean
}
export interface IKeyChord {
chord: IKey[]
}
export const <API key> = (k... |
import * as React from 'react';
import { connect } from 'react-redux';
import * as Actions from './Actions';
import { ITrackHistoryState } from './ITypes';
let Dropzone = require('react-dropzone');
interface IProps extends ITrackHistoryState {
dispatch: Function;
};
function selectState(state: ITrackHistoryState) {
... |
var fs = require('fs'),
es = require('event-stream'),
asyncJoin = require('gwm-util').asyncJoin;
module.exports = function(options) {
var type = options.buildType,
configFileName = './config/' + type + '.json',
fileData = {},
successCallback,
errorText,
blocker = asyncJoin(functi... |
layout: post
title: "Python tkinter : 6 - Checkbutton"
tagline: "Python tkinter Checkbutton"
image: /assets/images/tkinter.png
header:
image: /assets/patterns/asanoha-400px.png
tags: ['Tkinter']
keywords: Python, Python tkinter, tkinter Checkbutton
ref: Python-Tkinter
category: Python
permalink: /posts/Python-tkint... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class <API key>
{
static void Main(string[] args)
{
long number = long.Parse(Console.ReadLine());
string numberInLetters = <API key>(number);
Console.WriteL... |
<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="tex... |
import json
import sublime
import sublime_plugin
from .edit import Edit
class <API key>(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel(
"Working directory that contains pawncc.exe",
"C:\\Pawno\\",
self.onPawnPathDone,
Non... |
var postData = querystring.stringify({
'value' : '55',
'room_id' : '1'
});
var options = {
hostname: 'localhost',
port: 80,
path: '/temperatures',
method: 'POST',
headers: {
'Content-Type': 'application/<API key>',
'Content-Length': postData.length
}
};
var req = http.request(options, function(r... |
# Symlinked to ~/.dotfiles/config/zsh/modules/diff.zsh
dif() {
if command -v delta >/dev/null; then
diff --unified --recursive --exclude=.terraform --exclude=.git "$@" | delta
else
diff --unified --recursive --exclude=.terraform --exclude=.git --color "$@"
fi
}
# Directory files differences only
ddif() {
... |
<?php
use Assert\Assertion;
use expect\FailedMessage;
use expect\matcher\ToMatch;
describe(ToMatch::class, function () {
describe('#match', function () {
beforeEach(function () {
$this->matcher = new ToMatch('/foo/');
});
context('when match', function () {
it('return... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Design Team - Sprint Review</title>
<meta name="description" content="Talking-bout Sprint Review">
<meta name="author" content="Lee Williams">
<meta name="<API key>" content="yes" />
<meta name="<AP... |
class node:
def __init__(self):
self.outputs=[]
def set(self):
for out in self.outputs:
out.set()
def clear(self):
for out in self.outputs:
out.clear()
class switch:
def __init__(self):
self.outputs=[]
self.state=False
self.input=Fa... |
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div id="left-well" class="well">
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn ... |
<!doctype html>
<html>
<head>
<style>
html { box-sizng: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
font-family: Helvetica, Arial, sans-serif;
margin: 0 auto;
max-width: 610px;
padding: 0;
}
p::selection { background: #3cbeb5; }
... |
namespace MyServer.Web.Data
{
using Microsoft.AspNetCore.Identity;
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
}
} |
# webpi Cookbook CHANGELOG
This file is used to list changes made in each version of the webpi cookbook.
## 4.2.0 (2017-04-05)
- Convert the install LWRP to a custom resource
- Added testing of the resource in appveyer
## 4.1.1 (2017-03-29)
- Resolve incompatibility with windows 3.0 cookbook
## 4.1.0 (2017-03-20)
- Tes... |
package com.nepfix.sim.elements;
import com.nepfix.sim.core.Processor;
import java.util.Map;
public class UnitProcessor implements Processor {
private String id;
@Override public void init(String id, Map<String, String> args) {
this.id = id;
}
@Override public String process(String input) {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TwitchIntegrator
{
internal class CitizenManagerMod : CitizenManager
{
public string GetCitizenName(uint citizenID)
{
return TwitchNames.GetName((int) citizenID);
}
}
} |
package techreborn.blocks.storage.item;
import net.minecraft.block.BlockState;
import net.minecraft.block.Material;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import... |
<?php
namespace App\Command\Import;
use App\Command\BaseCommand;
use App\Entity\Framework\LsDoc;
class <API key> extends BaseCommand
{
/**
* @var LsDoc
*/
private $doc;
public function __construct(LsDoc $doc)
{
$this->doc = $doc;
}
public function getDoc(): LsDoc
{
... |
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\BaseHttpException;
use Symfony\Component\HttpKernel\<API key>;
use Silex\Provider\FormServiceProvider;
use Silex\Provider\TwigServiceProvide... |
<?php
namespace Nature;
class UserToken {
private $timePassed = 1418464671;
private $codeMaps = "~!@#$%^&*()_+=-{}[]|\;,.<>?/<API key>";
private $key;
private $uid;
private $expire=604800;
function __construct($key=null){
if(!is_null($key)) {
... |
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace HTLib2.Bioinfo
{
public partial class Pdb
{
[Serializable]
public class Model : Element, IComparable<Model>, IBinarySerializable
{
http://www.ww... |
class CreateDiners < ActiveRecord::Migration
def change
create_table :diners do |t|
t.integer :signup_id
t.string :diner_name
t.timestamps null: false
end
end
end |
'use strict';
var path = require('path');
var webpack = require('webpack');
var os = require('os');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config.dev');
var pathToBuild = path.resolve(__dirname, 'www');
var IPv4
for(var i=0;i<os.networkInterfaces().en0.length;i++){
if(... |
<?php
namespace Wilsonpinto\Wunderlist\Tests\endpoints;
use Wilsonpinto\Wunderlist\Tests\WunderlistTrait;
use GuzzleHttp\Psr7\Response;
use Illuminate\Support\Collection;
class FoldersTest extends \<API key>
{
use WunderlistTrait;
public function testFoldersAll()
{
$this->mockHttpClient([
... |
package za.co.cporm.model.loader.support;
import android.content.Context;
import android.database.Cursor;
import android.support.v4.content.CursorLoader;
import za.co.cporm.model.generate.TableDetails;
import za.co.cporm.model.query.Select;
import za.co.cporm.model.util.CPOrmCursor;
import za.co.cporm.model.util.<API k... |
Copyright 2014 Tim Erwin
Permission is hereby granted, free of charge, to any person 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, merge, publish, distribute, sublicense, a... |
# React + MobX OfferMVC Example
This repository provides a reference implementation of the [OfferMVC](http:
## Running the example
npm install
npm start
open http://localhost:3000
The example requires node 4.0 or higher

## Changing the example
If you are new to MobX, take a look at the [five m... |
import React from 'react';
import PostImage from '../components/story/PostImage';
import TwoPostImages from '../components/story/TwoPostImages';
import StoryPage from '../components/story/StoryPage';
import StoryTextBlock from '../components/story/StoryTextBlock';
import StoryImages from '../components/story/StoryImage... |
<reference types="node" />
declare module 'sqlite3' {
// Type definitions for sqlite3 3.1
import events = require('events')
export const OPEN_READONLY: number
export const OPEN_READWRITE: number
export const OPEN_CREATE: number
export const OPEN_SHAREDCACHE: number
export const OPEN_PRIVATECACHE: number
... |
{% extends "app7_static_files/flexible_base.html" %}
{% load static %}
{% block style %}
<link rel="stylesheet" href="{% static 'css/app7_green_style.css' %}">
{% endblock %}
{% block content %}
<p> <a href=".." >Back</a> </p>
<h1>Static files in production</h1>
<p>
You would do it exactly the same way, except you ... |
@charset "UTF-8";
.animated {
-<API key>: 1s;
animation-duration: 1s;
-<API key>: both;
animation-fill-mode: both;
}
.animated.infinite {
-<API key>: infinite;
<API key>: infinite;
}
.animated.hinge {
-<API key>: 2s;
animation-duration: 2s;
}
@-webkit-keyframes bounce {
0%, 20%, 53%, 80%, 100% {
-... |
@font-face {
font-family: 'Overpass';
src: url('overpass-regular.eot');
src: url('overpass-regular.eot?#iefix') format('embedded-opentype'),
url('overpass-regular.woff2') format('woff2'),
url('overpass-regular.woff') format('woff'),
url('overpass-regular.ttf') format('truetype');
font... |
<?php
declare(strict_types = 1);
namespace Rx\Testing;
use Rx\TestCase;
class RecordedTest extends TestCase
{
public function <API key>()
{
$recorded1 = new Recorded(1, 5);
$recorded2 = new Recorded(1, "5");
$recorded3 = new Recorded(1, 5);
$this->assertFalse($recorded1->equals($... |
using System;
using System.Collections.Generic;
using System.Text;
using Client.Logic.Maps;
namespace Client.Logic.Editors.RDungeons
{
public class <API key>
{
public Tile SpecialTile { get; set; }
public int AppearanceRate { get; set; }
public <API key>()
{
SpecialTi... |
module Locomotive
module LiquidExtras
module Filters
module Math
def round(input, digits = 0)
input.to_f.round(digits)
end
end
::Liquid::Template.register_filter(Math)
end
end
end |
package com.github.daytron.twaattin.presenter;
import com.github.daytron.twaattin.ui.LoginScreen;
import com.vaadin.server.Page;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.Position;
import com.vaadin.ui.Button;
import com.vaadin.ui.Notification;
import com.vaadin.ui.UI;
import java.security.Princi... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { <API key> } from '@angular/platform-browser/animations';
import { RouterModule } from '@angular/router';
import { HttpModule } from '@angular/http';
import { Stor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.