answer stringlengths 15 1.25M |
|---|
import Icon from '../components/Icon.vue'
Icon.register({"arrows":{"width":1792,"height":1792,"paths":[{"d":"M1792 896q0 26-19 45l-256 256q-19 19-45 <API key> 0 45 19t19 45-19 45l-256 256q-19 19-45 <API key> <API key> 26-19 45t-45 <API key> 45-19t45 19 19 <API key> 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256... |
require 'test_helper'
require 'bearychat/rtm'
class BearychatTest < Minitest::Test
MOCK_HOOK_URI = 'https://hook.bearychat.com/mock/incoming/hook'
def <API key>
refute_nil ::Bearychat::VERSION
end
def <API key>
assert_equal true, ::Bearychat.incoming(MOCK_HOOK_URI).is_a?(::Bearychat::Incoming)
end
d... |
package iron_hippo_exe
import (
"fmt"
"io"
"net/http"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/appengine"
"google.golang.org/appengine/log"
"google.golang.org/appengine/urlfetch"
)
const ProjectID = "cpb101demo1"
type <API key> struct {
JobName string ... |
Title: On Git and GitHub Flow
Date: 2015-01-01
Recently, I have been making an added effort to seek out and contribute to open source projects on GitHub. The motivation behind this was largely the [24 Pull Requests](http://24pullrequests.com) project, which encourages developers to submit one pull request for each day ... |
File: src/animation/frame.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
Contains the data to specify a piece of a texture over a period of time.
]]
local Frame = Class{}
function Frame.generate(w, h, imgw, imgh, num, time, frames, offset, start)
local start = start or 0
local tw = ma... |
# Input Number
Simple jQuery plugin to add plus and minus controls to an input element
## Installation
Installation can be done through bower
bower install develo-input-number --save
Then add the script and jQuery to your page.
## Example Usage
// Default options, feel free to override them.
var options = {
// Styl... |
#import <UIKit/UIKit.h>
#import "TiModule.h"
@class <API key>;
@class HTTPServer;
@interface <API key> : TiModule
{
HTTPServer *httpServer;
BOOL wasRunning;
}
@property (nonatomic, assign) NSNumber* <API key>;
-(id)startServer:(id)args;
@end |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="<API key>" content="yes">
<meta name="<API key>" content="white">
<title>My App</title>
<!-- Pat... |
# Controllers
- [Introduction](#introduction)
- [Writing Controllers](#writing-controllers)
- [Basic Controllers](#basic-controllers)
- [Single Action Controllers](#<API key>)
- [Controller Middleware](#<API key>)
- [Resource Controllers](#<API key>)
- [Partial Resource Routes](#<API key>)
- [Nested Res... |
using NUnit.Framework;
using Ploeh.AutoFixture;
using RememBeer.Models.Dtos;
using RememBeer.Tests.Utils;
namespace RememBeer.Tests.Models.Dtos
{
[TestFixture]
public class BeerDtoTests : TestClassBase
{
[Test]
public void <API key>()
{
var id = this.Fixture.Create<int>()... |
import teca.utils as tecautils
import teca.ConfigHandler as tecaconf
import unittest
class TestFileFilter(unittest.TestCase):
def setUp(self):
self.conf = tecaconf.ConfigHandler(
"tests/test_data/configuration.json",
{"starting_path": "tests/test_data/images"}
)
self.... |
<?php
namespace Integrated\Bundle\AssetBundle\Tests\Manager;
use Integrated\Bundle\AssetBundle\Manager\AssetManager;
/**
* @author Ger Jan van den Bosch <gerjan@e-active.nl>
*/
class AssetManagerTest extends \<API key>
{
/**
* @var AssetManager
*/
private $manager;
protected function setUp()
... |
import { h, Component } from 'preact';
import moment from 'moment';
const MonthPicker = ({ onChange, ...props }) => (
<select onChange={onChange} id="select-month">{ optionsFor("month", props.date) }</select>
);
const DayPicker = ({ onChange, ...props }) => (
<select onChange={onChange} id="select-date">{ optionsFo... |
import $ from 'jquery';
import keyboard from 'virtual-keyboard';
$.fn.addKeyboard = function () {
return this.keyboard({
openOn: null,
stayOpen: false,
layout: 'custom',
customLayout: {
'normal': ['7 8 9 {c}', '4 5 6 {del}', '1 2 3 {sign}', '0 0 {dec} {a}'],
},
position: {
// null ... |
require 'nokogiri'
require 'ostruct'
require 'active_support/core_ext/string'
require 'active_support/core_ext/date'
module Lifebouy
class MalformedRequestXml < StandardError
def initialize(xml_errors)
@xml_errors = xml_errors
end
def message
"The request contains the following errors:\n\t#{@x... |
/**
* Trait class
*/
function Trait(methods, allTraits) {
allTraits = allTraits || [];
this.traits = [methods];
var extraTraits = methods.$traits;
if (extraTraits) {
if (typeof extraTraits === "string") {
extraTraits = extraTraits.replace(/ /g, '').split(',');
}
for... |
require 'integrity'
require 'fileutils'
module Integrity
class Notifier
class Artifacts < Notifier::Base
def initialize(commit, config={})
@project = commit.project
super
end
def deliver!
return unless self.commit.successful?
self.publish_artifacts
self.ge... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="http:
<title>oh-my-zsh Präsentation von Php-Schulung Entwicklungshilfe</title>
<meta name="description" content="oh-my-zsh - Terminal effektiv mit Plugins nutzen PHP-Schulung">
<met... |
import {Component, Input} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';
import {ROUTER_DIRECTIVES, Router} from '@angular/router-deprecated';
import {AuthService} from '../common/auth.service';
@Component({
selector: 'todo-navbar',
templateUrl: 'app/navbar/navbar.component.html',
directiv... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Game = mongoose.model('Game'),
Team = mongoose.model('Team'),
Player = mongoose.model('Player'),
async = require('async');
exports.all = function(req, res) {
Game.find({'played': true}).exec(function(err, games) {
if (err) {... |
package championpicker.console;
import com.googlecode.lanterna.gui.*;
import com.googlecode.lanterna.TerminalFacade;
import com.googlecode.lanterna.terminal.Terminal;
import com.googlecode.lanterna.terminal.TerminalSize;
import com.googlecode.lanterna.terminal.swing.SwingTerminal;
import com.googlecode.lanterna.gui.GUI... |
(function(){
'use strict';
angular.module('GamemasterApp')
.controller('DashboardCtrl', function ($scope, $timeout, $mdSidenav, $http) {
$scope.users = ['Fabio', 'Leonardo', 'Thomas', 'Gabriele', 'Fabrizio', 'John', 'Luis', 'Kate', 'Max'];
})
})(); |
require 'byebug'
module Vorm
module Validatable
class ValidationError
def clear_all
@errors = Hash.new { |k, v| k[v] = [] }
end
end
end
end
class Valid
include Vorm::Validatable
def self.reset!
@validators = nil
end
end
describe Vorm::Validatable do
before { Valid.reset! }
... |
module Embratel
class PhoneBill
attr_reader :payables
def initialize(path)
@payables = CSVParser.parse(path)
end
def calls
@calls ||= payables.select(&:call?)
end
def fees
@fees ||= payables.select(&:fee?)
end
def total
@total ||= payables.inject(0) { |sum, paya... |
const express = require('express');
const router = express.Router();
const routes = require('./routes')(router);
module.exports = router; |
package simulation.generators;
import simulation.data.PetrolStation;
import simulation.data.Road;
public class <API key> {
private Road road;
private int <API key> = 50;
private int <API key> = 200;
private float minimalFuelPrice = 3.5f;
private float maximumFuelPrice = 4f;
public <API key>(Road... |
var HDWalletProvider = require("<API key>");
var mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";
module.exports = {
networks: {
development: {
provider: function () {
return new HDWalletProvider(mnemonic, "http://127.0.0.1:7545/", 0, 50);
... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
# What is fakeLoader.js
fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect.
Check out the demo [http:
## Current Version
`V2.0.0`
1. Installing
js
yarn add jq-fakeloader
or
npm i jq-fakeloader
2. Include CSS
css
<l... |
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>alternative Standard ... |
var ExtractTextPlugin = require("<API key>");
var HtmlWebpackPlugin = require("html-webpack-plugin");
var path = require("path");
var webpack = require("webpack");
var <API key> = "../../ppb/templates/";
module.exports = {
context: path.resolve(__dirname, "src"),
entry: {
app: "./js/main.js"
},
... |
var h = require('hyperscript')
var human = require('human-time')
exports.needs = {}
exports.gives = 'message_meta'
exports.create = function () {
function updateTimestampEl(el) {
el.firstChild.nodeValue = human(new Date(el.timestamp))
return el
}
setInterval(function () {
var els = [].slice.call(docum... |
import { HookContext, Application, createContext, getServiceOptions } from '@feathersjs/feathers';
import { NotFound, MethodNotAllowed, BadRequest } from '@feathersjs/errors';
import { createDebug } from '@feathersjs/commons';
import isEqual from 'lodash/isEqual';
import { CombinedChannel } from '../channels/channel/co... |
#import <CoreData/NSSQLIntermediate.h>
// Not exported
@interface <API key> : NSSQLIntermediate
{
unsigned long long _limit;
}
- (id)<API key>:(id)arg1;
- (id)initWithLimit:(unsigned long long)arg1 inScope:(id)arg2;
@end |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Stranger Things Wall</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<img src=... |
<?php
class Thread extends Eloquent {
public static $table = 'threads';
public static $timestamps = true;
public function replies()
{
return $this->has_many('Reply');
}
} |
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>Blog | Guilherme Matheus Costa</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link href="/css/essentials.min.css" rel="stylesheet" type="text/css"/>
<meta propert... |
#!/usr/bin/env python
from hdf5handler import HDF5Handler
handler = HDF5Handler('mydata.hdf5')
handler.open()
for i in range(100):
handler.put(i, 'numbers')
handler.close() |
'use strict';
import { Geometry } from '../Geometry';
import { GeometryHelper } from '../GeometryHelper';
/**
* This function generates custom buffers and passes them to
* a new static geometry, which is returned to the user.
*
* @class Tetrahedron
* @constructor
*
* @param {Object} options Parameters that alter... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using libldt3.attributes;
using libldt3.model.enums;
using libldt3.model.regel;
using libldt3.model.regel.kontext;
using libldt3.model.saetze;
using NodaTime;
namespa... |
var map;
var bounds;
var markers = {};
var cluster_polygons = {};
var zoomTimeout;
var <API key>;
var white_overlay;
var overlay_opacity = 50;
var OPACITY_MAX_PIXELS = 57;
var active_cluster_poly;
var marker_image;
var center_marker;
var <API key>;
function createMap() {
bounds = new google.maps.LatLngBounds ();
... |
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include "sendcoinsentry.h"
#include "guiutil.h"
#include "askpassphrasedialog.h"
#include "base58.h"
#include <QMessageBox>
#include <QLocale>
#include ... |
{!!
Form::select(
'routes[]',
$allRoutes,
(isset($routes) ? array_keys($routes) : []),
array(
'class' => 'form-control select2',
'placeholder' => 'Enter Routes',
'multiple' => true
)
)
!!} |
<?php
namespace Aquatic;
use Aquatic\FedEx\Contract\Address;
use Aquatic\FedEx\Contract\Shipment;
use Aquatic\FedEx\Response\Contract as ResponseContract;
use Aquatic\FedEx\Request\ValidateAddress as <API key>;
use Aquatic\FedEx\Response\ValidateAddress as <API key>;
use Aquatic\FedEx\Request\Shipment\Track as <API key... |
@charset "utf-8";
/* CSS Document */
/* Div layer for the entire banner. */
/* Invisible button for background clickthrough. */
/* Your ad styles here */ |
<article class="home_single_post gallery_post_type" typeof="BlogPosting">
{{ partial "post/image_area.html" . }}
<div class="post_content_area">
<div class="row">
<div class="col-xs-12 col-sm-8 col-md-8 col-lg-8 col-xs-offset-0 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { MultiSelect } from '../../src'
class <API key> extends Component {
constructor(props) {
super(props)
this.state = {
value: []
}
}
handleChange = (event) => {
const { valueKey } = this.props
this.setState... |
#ifndef __OPERATORS_HPP__
#define __OPERATORS_HPP__
template< typename T >
struct EqualComparable
{
friend bool operator!=(const T &a,const T &b) { return !(a == b); }
};
template< typename T >
struct Comparable : public EqualComparable< T >
{
friend bool operator<=(const T &a, const T &b) { return (a < b) || (a ==... |
def main():
pass
if __name__ == "__main__":
main() |
package com.boyuanitsm.pay.unionpay.config;
public class SDKConstants {
public final static String COLUMN_DEFAULT = "-";
public final static String KEY_DELIMITER = "
/** memeber variable: blank. */
public static final String BLANK = "";
/** member variabel: space. */
public static final String S... |
require 'faraday'
require 'simple_ratings/foursquare/meta/venue'
module SimpleRatings
class Foursquare < Faraday::Connection
def initialize
super(url: 'https://api.foursquare.com/v2/')
end
def default_params
{
client_id: ENV['<API key>'],
client_secret: ENV['<API key>'],
... |
#ifndef <API key>
#define <API key>
#if defined(_MSC_VER) || defined(__MINGW32__)
#define LL_FMT_FLAGS "I64"
#else
#define LL_FMT_FLAGS "ll"
#endif
// Portability hacks for Microsoft Visual C++ compiler
#ifdef _MSC_VER
#include <stdlib.h>
// Define if you have the vsnprintf variants.
#if _MSC_VER < 1500
# define vsnpri... |
using System;
using System.Text;
namespace ExifLibrary
{
<summary>
Represents an enumerated value.
</summary>
public class ExifEnumProperty<T> : ExifProperty
{
protected T mValue;
protected bool mIsBitField;
protected override object _Value { get { return Value; } set { Value... |
using System.Collections.Generic;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Driver;
using ShowFinder.Models;
namespace ShowFinder.Repositories.Interfaces
{
public interface IMongoRepository
{
IMongoDatabase Database(string name);
Task<BsonDocument> GetUserProfile(IMongoColl... |
<!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.6"/>
<title>/home/pavm/programming/lib/gft/src/gft_stack.cpp File Reference</title>
<link href="tabs.css... |
// BABAudioPlaylist.h
// Pods
#import <Foundation/Foundation.h>
@interface BABAudioPlaylist : NSObject
+ (instancetype)<API key>:(NSArray *)array;
- (instancetype)initWithArray:(NSArray *)array;
- (id)<API key>:(NSUInteger)idx;
- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx;
@property (nonatomic, readon... |
/*!
* Module dependencies.
*/
var util = require('util'),
moment = require('moment'),
super_ = require('../Type');
/**
* Date FieldType Constructor
* @extends Field
* @api public
*/
function datearray(list, path, options) {
this._nativeType = [Date];
this._defaultSize = 'medium';
this._undersc... |
# -*- coding: utf-8 -*-
require "em-websocket"
require "eventmachine-tail"
module Tailer
# Extends FileTail to push data tailed to an EM::Channel. All open websockets
# subscribe to a channel for the request stack and this pushes the data to
# all of them at once.
class StackTail < EventMachine::FileTail
de... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_05) on Thu Jul 03 13:49:54 PDT 2008 -->
<TITLE>
edu.sdsc.inca
</TITLE>
<META NAME="keywords" CONTENT="edu.sdsc.inca package">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCO... |
namespace DotNetty.Transport.Channels.Sockets
{
using System;
using System.Diagnostics.Contracts;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
public class <API key> : <API key>, <API key>
{
const int <API key> = 2048;
readonly Socket socke... |
#include "Search.h"
static int NextState(int m, char* pattern, int state, int symbol) {
if (state < m && pattern[state] == symbol) {
return state + 1;
}
for (int next = state, prev = next - 1, i = 0; next > 0; next
if (pattern[prev] == symbol) {
for (i = 0; i < prev; i++) {
... |
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
class Video
include Claire::Client::Item
end
describe Claire::Client::Item do
#@session.should_receive(:post).with("url", "data", "headers")
#@session = mock("session")
before do
Claire::Client.stub(:get).with('videos/id').and_... |
<?php
namespace Zanson\SMParser\Traits\Song;
use Zanson\SMParser\SMException;
trait Banner
{
public $banner = '';
/**
* @return string
*/
public function getBanner() {
return $this->banner;
}
/**
* @param string $banner
*
* @return $this
* @throws SMException
... |
if ( !window.console ) window.console = { log:function(){} };
jQuery(document).ready(function($) {
console.log('Keep being awesome.');
}); |
package parser
import (
"monkey/ast"
"monkey/token"
)
func (p *Parser) <API key>() ast.Expression {
return &ast.StringLiteral{Token: p.curToken, Value: p.curToken.Literal}
}
func (p *Parser) <API key>() ast.Expression {
is := &ast.InterpolatedString{Token: p.curToken, Value: p.curToken.Literal, ExprMap:... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Timers;
using System.Diagnostics;
namespace ForumHelper
{
public partial class ToastForm : Form
{
public To... |
<?php
use Base64Url\Base64Url;
use Jose\Decrypter;
use Jose\Encrypter;
use Jose\Factory\JWEFactory;
use Jose\Loader;
use Jose\Object\JWEInterface;
use Jose\Object\JWK;
use Jose\Object\JWKSet;
use Jose\Test\Stub\FakeLogger;
use Jose\Test\BaseTestCase;
/**
* Class EncrypterTest.
*
* @group Encrypter
* @group Function... |
using UnrealBuildTool;
using System.Collections.Generic;
public class UnrealCamDemoTarget : TargetRules
{
public UnrealCamDemoTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
ExtraModuleNames.AddRange( new string[] { "UnrealCamDemo" } );
}
} |
package br.com.gamemods.tutorial.ctf;
import org.bukkit.plugin.java.JavaPlugin;
public class CTFGameMods extends JavaPlugin
{
} |
#include <stdio.h>
#include <stdlib.h>
typedef int ElemType;
void swap(ElemType *left,ElemType *right){
ElemType temp = *left;
*left = *right;
*right = temp;
}
void BubbleSort(ElemType *array,int num){
if(num == 1) return;
ElemType *left = array,*right = array + 1;
int key = num;
while(--key... |
/**
* Keyframes.
*/
@-webkit-keyframes rotation {
0% {
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
t... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./<SHA256-like>.html">Teleport</a>
<hr>
<a href="./../../about.md">About</a> (Spoilers! )... |
//{{{ include files
#include <stdio.h>
#include <sys/socket.h>
#include <sys/wait.h> // waitpid()
#include <stdlib.h> // exit();
#include <string.h> // bzero();
#include <netinet/in.h> // struct sockaddr_in;
#include <time.h> // time();
#include <arpa/inet.h> // inet_pton();
#include <unistd... |
'use strict';
var emojiArr = require('./emojis');
var i = 0;
var existingRules = {};
var generateEmoji = function(selector) {
if (!existingRules[selector]) {
existingRules[selector] = emojiArr[i];
if (i !== emojiArr.length) {
i++
} else {
i = 0;
}
}
r... |
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// Template Source: Templates\CSharp\Requests\MethodRequest.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
<summar... |
# -*- coding: utf-8 -*-
require 'helper'
class <API key> < Test::Unit::TestCase
def setup
setup_dir_var
end
def teardown
File.delete(@xlsx) if File.exist?(@xlsx)
end
def test_set_column07
@xlsx = 'set_column07.xlsx'
workbook = WriteXLSX.new(@xlsx)
worksheet = workbook.add_worksheet
... |
var fractal = fractal || {};
fractal.workerPaths = {
"mandelbrot": "public/js/mandel.js",
};
fractal.Fractal = function (canvas, workerCount) {
this.canvas = canvas;
this.workerCount = workerCount;
this.workerDoneCount = 0;
this.ctx = canvas.getContext("2d");
this.width = canvas.width;
this.height = canva... |
describe('raureif', function () {
it('test', function () {
});
}); |
/**
* @file ui/core/styleguide/index//html/01-body/40-main/main.js
* @description Listeners on the body, iframe, and rightpull bar.
*/
/* istanbul ignore if */
if (typeof window === 'object') {
document.addEventListener('DOMContentLoaded', () => {
const $orgs = FEPPER_UI.requerio.$orgs;
const {
uiFns... |
<div>
<table class="table table-bordered">
<tr>
<td>
<div km-term-check name="root-traits" locales="locales" required ng-change="onRootTraitsChange()"
ng-model="rootTraits" terms="options.rootTraits()" binding-type="term[]"></div>
</td>
</t... |
<?php
namespace Checkdomain\Holiday;
use Checkdomain\Holiday\Model\Holiday;
/**
* Class Util
*/
class Util
{
/**
* Instantiates a provider for a given iso code
*
* @param string $iso
*
* @return ProviderInterface
*/
protected function getProvider($iso)
{
$instance = n... |
namespace Votter.Services
{
using System;
using System.Linq;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(Votter.Services.Startup))]
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
this.ConfigureAuth(app);
}
... |
#ifndef BUTTONS_H
#define BUTTONS_H
#include "FreeRTOS.h"
/* hardware button state */
struct button_state_t {
/* STATE WRITTEN IN IRQ HANDLER */
/* current button state: 0 (up, released) or 1 (down, pressed) */
int st;
/* the cpu-tick time when the current state (up or down) was recorded */
TickType... |
<div class="panel panel-default movie-container">
<div class="panel-body">
<div class="row top-part">
<div class="col-xs-12 col-md-4 movie-image">
<img ng-show="movie.Poster" class="img-rounded" src="{{movie.Poster}}" />
<div ng-show="!movie.Poster" class="img-rou... |
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class CharCounterMain{
final static Charset enc = StandardCharsets.US_ASCII ;
public Cha... |
"use strict";
(function() {
// "todos-angular" is just a hard-code id for storage
var LOCAL_STORAGE_KEY = 'todos-angular';
var ENTER_KEY = 13;
var ESC_KEY = 27;
var internalFilters = {
active: function(toDoItem) {
return !toDoItem.completed;
},
completed: function... |
<?php
namespace Params;
/**
* @codeCoverageIgnore
*/
trait SafeAccess
{
public function __set($name, $value)
{
throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't set it");
}
public function __get($name)
{
throw new \Exception("Property [$... |
html{
height: 100%;
margin: 0;
background-color:#323232;
}
body{
font-family: 'Lato', sans-serif;
font-size: 11pt;
font-weight: 300;
color: #C8C8C8
}
ul {
list-style: none;
}
a:link {color:#6c6c6c;}
a:visited {color:#757575;}
a:hover {color:white;}
a:active {color:white;}
.header{
te... |
from decimal import Decimal
from django import forms
from django.template.loader import render_to_string
from django.template.defaultfilters import slugify
class BaseWidget(forms.TextInput):
"""
Base widget. Do not use this directly.
"""
template = None
instance = None
def get_parent_id(self, na... |
define(function() {
return {
draw: function(context, t) {
var x = this.getNumber("x", t, 100),
y = this.getNumber("y", t, 100),
size = this.getNumber("size", t, 60),
h = this.getNumber("h", t, 40),
colorLeft = this.getColor("colorLe... |
<?php namespace BoundedContext\Contracts\Generator;
use BoundedContext\Contracts\ValueObject\Identifier as IdentifierVO;
interface Identifier extends ValueObject
{
/**
* Generates a new random Identifier.
*
* @return IdentifierVO
*/
public function generate();
/**
* Generates a null... |
<?php
return array (
'id' => '<API key>',
'fallback' => 'softbank_generic',
'capabilities' =>
array (
'<API key>' => '41',
'columns' => '15',
'<API key>' => '34',
'max_image_width' => '176',
'rows' => '6',
'resolution_width' => '176',
'resolution_height' => '208',
'max_image_heig... |
<!DOCTYPE html><html><head><title>https: |
package com.company;
import java.util.Scanner;
public class Greeting {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String firstName = scanner.nextLine();
String lastName = scanner.nextLine();
int age = Integer.parseInt(scanner.nextLine());
... |
package sbahjsic.runtime;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import sbahjsic.core.Warnings;
import sbahjsic.core.Warnings.Level;
import sbahjsic.runtime.Operator.BiOperator;
import sbahjsic.runtime.Operator.UnOperator;
import sbahjsic.runtime.Operator.VarargO... |
{
"date": "2018-02-19",
"type": "post",
"title": "Report for Monday 19th of February 2018",
"slug": "2018\/02\/19",
"categories": [
"Daily report"
],
"images": [],
"health": {
"weight": 79.6,
"height": 173,
"age": 13578
},
"nutrition": {
"c... |
#!/bin/sh
# CYBERWATCH SAS - 2017
# Security fix for USN-2166-1
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
# - libsnmp15:5.4.3~dfsg-2.4ubuntu1.2
# Last versions recommanded by security team:
# - libsnmp15:5.4.3~dfsg-2.4ubuntu1.3
# CVE List:
# - CVE-2012-6151
# - CVE-2014-2284
# - CVE-2014-228... |
class Person < ActiveRecord::Base
has_many :addresses, dependent: :destroy
<API key> :addresses
end |
import React from 'react';
import {connect} from 'cerebral-view-react';
import styles from './styles.css';
import {
isObject,
isArray,
isString,
isBoolean,
isNumber,
isNull
} from 'common/utils';
import JSONInput from './JSONInput';
import connector from 'connector';
function isInPath(source, target) {
if... |
// Package storagedatalake implements the Azure ARM Storagedatalake service API version 2019-10-31.
// Azure Data Lake Storage provides storage for Hadoop and other big data workloads.
package storagedatalake
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.