answer stringlengths 15 1.25M |
|---|
package org.lattilad.bestboard.utils;
public interface ExtendedCopy
{
public Object getCopy();
} |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace FritzTheDog.Properties
{
[global::System.Runtime.CompilerServices.<API key>()]
[global::System.CodeDom.Compiler.<A... |
// HYHomePopAnimator.h
// Fleshy
#import <Foundation/Foundation.h>
@interface HYHomePopAnimator : NSObject<<API key>>
@end |
import React from 'react';
import PropTypes from 'prop-types';
import {
MainInfoContainer,
PosterContainer,
PosterImage,
AnimeDetails,
Row,
TitleDetail,
Detail,
} from 'style/animeMainInfo';
const AnimeMainInfo = props => (
<MainInfoContainer>
<PosterContainer>
<PosterImage src={props.posterIm... |
package leds
import (
"fmt"
"math/rand"
// "time"
"github.com/siggy/bbox/bbox/color"
"github.com/siggy/rpi_ws281x/golang/ws2811"
)
const (
// 2x side fins
STRAND_COUNT1 = 5
STRAND_LEN1 = 144
// 1x top and back fins
STRAND_COUNT2 = 10
STRAND_LEN2 = 60
LED_COUNT1 = STRA... |
#!/bin/bash
# Stop processing on any error.
set -e
function <API key>() {
declare -r formula="$1"
if [[ $(brew list ${formula} &>/dev/null; echo $?) -ne 0 ]]; then
brew install ${formula}
else
echo "$0 - ${formula} is already installed."
fi
}
brew update
<API key> cmake
<API key> glog
<API key> gflags
<... |
module Cryptoexchange::Exchanges
module Etorox
module Services
class Trades < Cryptoexchange::Services::Market
def fetch(market_pair)
output = super(ticker_url(market_pair))
adapt(output, market_pair)
end
def ticker_url(market_pair)
"#{Cryptoexchange::Ex... |
*/
/*background-color: #555*/
/*# sourceMappingURL=bootstrap.min.css.map */ |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ApiManagement::Mgmt::V2018_01_01
module Models
# Policy Contract details.
class PolicyContract < Resource
include MsRestAzure
... |
package uk.org.rbc1b.roms.db.report;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
/**
* Hibernate implementation of... |
export const extensionID = '<API key>'; |
<!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... |
'use strict';
var $ = require('jquery');
var Confirm = require('pandora-confirm');
var Widget = require('pandora-widget');
var matcher = {
regexp: /<embed\s+[^>]*?src="(.+?)"[^>]*>/gim,
lookup: function (arr, item) {
return (arr.indexOf(item.src) !== -1);
}
};
function itemExists (itemArr, item) {
... |
.sample-img{width:50px;height:50px;background-image:url('img.png')} |
# SearchYJ
Search on Yahoo Japan.
## Installation
Gemfile
ruby
gem 'searchyj'
$ bundle
$ gem install searchyj
## Usage (CLI)
JSON
- uri
- title
-
- rank
-
- SearchYJ
list
$ searchyj list [options] <SearchTerm>
# --size, -s
10
# --from, -f
detect
$ searchyj detect [options] <SearchTerm>
_null_
#... |
package com.gmail.raynlegends.adventofcode.puzzles;
import com.gmail.raynlegends.adventofcode.Puzzle;
public class _10_1_Puzzle implements Puzzle {
@Override
public String calculate(String input) {
String current = input;
for (int i = 0; i < 40; i++) {
StringBuilder out = new StringB... |
//GLOBALS
var APP = require("core");
var CONFIG = arguments[0];
var audioPlayer = {};
//FUNCTIONS
var init = function() {
APP.log("debug", "radio_milwaukee.init | " + JSON.stringify(CONFIG));
$.NavigationBar.setBackgroundColor(APP.Settings.colors.primary || "#000");
if(CONFIG.isChild === true) {
$.N... |
package gatsbyexamples
import io.gatling.core.Predef._
import com.themillhousegroup.gatsby.GatsbySimulation
import com.themillhousegroup.gatsby.<API key>._
import io.gatling.http.Predef._
/**
* Showing how simply wrapping a call with withStubby() will
* cause an endpoint that returns 200 OK to be stubbed in.
*/
clas... |
import './blaze.js';
import './object.js';
import './string.js';
import './ui.js';
import './user.js';
import './utils.js';
import './viewer.js'; |
layout: post
date: 2017-03-03
title: "Camille La Vie Cleo Sequined Cutout Dress with Open Back Sleeveless Sweep/Brush Train Aline/Princess"
category: Camille La Vie
tags: [Camille La Vie,Aline/Princess ,Jewel,Sweep/Brush Train,Sleeveless]
Camille La Vie Cleo Sequined Cutout Dress with Open Back
Just **$269.99**
Sleevel... |
layout: post
date: 2015-08-09
title: "Allure Women Wedding Dresses - Style W314 2013 Spring Sleeveless Chapel Train Ballgown Plus Size"
category: Allure
tags: [Allure,Ballgown,Plus Size,Sweetheart,Chapel Train,Sleeveless,2013,Spring]
Allure Women Wedding Dresses - Style W314
Just **$308.99**
2013 Spring Sleeveless Chap... |
package credentials
import (
"errors"
"testing"
"github.com/stretchr/testify/assert"
)
type stubProvider struct {
creds Value
err error
}
func (s *stubProvider) Retrieve() (Value, error) {
s.creds.ProviderName = "stubProvider"
return s.creds, s.err
}
func TestCredentialsGet(t *testing.T) {... |
<div class="preferences-scene">
<div class="palm-page-header multi-line">
<div class="<API key>">
<div class="title"> </div>
<div class="subtitle" id="subtitle">Preferences</div>
</div>
</div>
<div class="palm-list">
<div class="palm-row first">
... |
require "net/http"
require "uri"
Given /^no session$/ do
Capybara.reset_sessions!
begin
uri = URI.parse("http://localhost:#{Capybara.server_port}")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Delete.new(<API key>)
response = http.request(request)
rescue => e
end
end
Given /^I a... |
package org.hannes.musicbot.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.<API key>;
import java.net.HttpURLConnection;
import java.net.URISyntaxException;
import java.net.URL;
import javax.script.ScriptException;
import org.hannes.musicbot.App;
import o... |
@charset "UTF-8";
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after {
content: "";
display: block;
clear: both;
}
#content, .header-inner {
max-width: 960px;
... |
<?php
/**
* @file
* Definition of Kula\Core\Component\Database\Query\Delete
*/
namespace Kula\Core\Component\Database\Query;
use Kula\Core\Component\Database\Database;
use Kula\Core\Component\Database\Connection;
/**
* General class for an abstracted DELETE operation.
*
* @ingroup database
*/
class Delete extend... |
<?php
return [
'failed' => 'Ces identifiants ne correspondent pas à nos enregistrements',
'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.',
]; |
// <API key>.h
// SCGPushSDK
#import <Foundation/Foundation.h>
@interface <API key> : NSObject < <API key> >
@property (nonatomic, readonly, assign) BOOL preventRedirect;
- (instancetype) <API key>: (BOOL) <API key>;
@end |
--API to download and install files
--The function to run is getAndInstall(itemTable, showUI, overwrite)
--Provide an itemTable in the format of
-- {{"label1", "Download URL 1", "Path to save to 1"}, {"label2", "Download URL 2", "Path to save to 2"}}
--Provide a number for overwrite
--1: Will overwrite files
--2: W... |
# Bitbot::Trader
[, calculates and prints their sum.
using System;
class Program
{
static void Main()
{
Console.Write("Please enter five digits separated by a space: ");
string[] allDigits = Console.ReadLine().Split();
d... |
#pragma once
#include <string>
namespace pyconv {
namespace language {
namespace types {
namespace variable {
using std::string;
class VariableType {
public:
typedef int variable_t;
static const variable_t DOUBLE = 0;
static const variable_t INT = 1;
static const variable_t STRING = 2;
static const ... |
let DiceRoller = require('roll-dice');
let diceRoller = new DiceRoller();
let result1 = diceRoller.roll('d20');
let result2 = diceRoller.roll('2d8+2');
let result3 = diceRoller.roll('[ cat | dog | fish ]');
console.dir(result1);
console.dir(result2);
console.dir(result3); |
# Abstract class, defines a generic Billing Policy that always returns 0.0 cost
module CloudCostTracker
module Billing
PRECISION = 10 # (Should match database migration precision)
# Defines a directory for holding YML pricing constants
CONSTANTS_DIR = File.join(File.dirname(__FILE__),'../../../config... |
# encoding: utf-8
require 'spec_helper.rb'
describe ActiveService::API do
subject { ActiveService::API.new }
context "initialization" do
describe ".setup" do
it "creates a default connection" do
ActiveService::API.setup :url => "https://api.example.com"
expect(ActiveService::API.default_ap... |
#!/usr/bin/env python3
import asyncio
import time
from test_framework.util import assert_equal, assert_raises
from test_framework.test_framework import <API key>
from test_framework.loginit import logging
from test_framework.electrumutil import (ElectrumConnection,
<API key>, <API key>, <API key>,
<API key>)
AD... |
package evanq.game.info;
public interface Game {
public About about();
public CopyRight copyRight();
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Limitless - Responsive Web Application Kit by Eugene Kopyov</title>
<!-- Global stylesheets -->
<link h... |
// Code Linker originally by @CADbloke (Ewen Wallace) 2015
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace CodeLinker
{
internal static class ProjectMaker
{
<summary> Copies and links a List of Projects into the <c> destinationFolder </c>.
<para> Fil... |
<?php
// autoload_real.php @generated by Composer
class <API key>
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
public static function getLoader()
... |
package plugins
import (
"html/template"
"log"
"github.com/Masterminds/sprig"
"io/ioutil"
"bytes"
"path/filepath"
"github.com/pkg/errors"
"time"
"os"
)
type withTemplate struct {
Template string `yaml:"template"`
TemplateFile string `yaml:"templateFile"` // template file ... |
import React from 'react';
import Seeding from './Seeding';
import Checking from './Checking';
import Downloading from './Downloading';
import Error from './Error';
import Status from './Status';
function StatusDetails({ torrent }) {
if (torrent.hasErrors) {
return <Error torrent={torrent} />;
}
if (torrent.i... |
package vm
import (
"net/url"
"strconv"
"github.com/goby-lang/goby/vm/classes"
"github.com/goby-lang/goby/vm/errors"
)
var <API key> = []*BuiltinMethodObject{
{
// Returns a Net::HTTP or Net::HTTPS's instance (depends on the url scheme).
// ```ruby
// u.scheme # => "https"
... |
## Gold Sponsors
[
- [Jeremy Combs](https://github.com/jmcombs)
- [Gadget](https://gadget.dev/)
- Kelly Burke
- [Matt Miller](https://mmiller.me/) |
import Ember from 'ember'
const {Router} = Ember
import config from './config/environment'
const DemoRouter = Router.extend({
location: config.locationType,
rootURL: config.rootURL
})
DemoRouter.map(function () {
this.route('demo', {path: '/'}, function () {
this.route('overview', {path: '/'})
this.route(... |
package com.ocdsoft.bacta.swg.server.game.message.client;
import com.ocdsoft.bacta.soe.message.GameNetworkMessage;
import lombok.AllArgsConstructor;
import lombok.Getter;
import com.ocdsoft.bacta.soe.message.Priority;
import java.nio.ByteBuffer;
@Getter
@Priority(0x2)
@AllArgsConstructor
public final class SelectCharac... |
TipmyGit::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web serve... |
package chat.client.view;
import chat.client.controller.ClientController;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import j... |
#include <bits/stdc++.h>
#define INF 67108864
using namespace std;
int idcnt;
unordered_map<string, int> ids;
int readId() {
string s;
cin >> s;
auto r = ids.emplace(s, idcnt);
if (r.second) ++idcnt;
return r.first->second;
}
int M[55][55];
int main() {
ios_base::sync_with_stdio(0);cin.tie(0);
... |
import { ArrayBufferBuilder } from "../../../../utils/ArrayBufferBuilder";
import { BitsReader } from "../../../../utils/BitsReader";
import { SerializerUtils } from "../../../../utils/SerializerUtils";
import { <API key> } from "../data/<API key>";
import { PokerTimeData } from "../data/PokerTimeData";
import { <API k... |
using Newtonsoft.Json;
namespace RailDataEngine.Domain.Services.<API key>.Entity
{
public class <API key>
{
[JsonProperty("signalling_id")]
public string SignallingId { get; set; }
[JsonProperty("CIF_train_category")]
public string TrainCategory { get; set; }
[JsonPropert... |
require 'strapon/stylesheets/builder'
module Strapon
module Generators
class RiccoGenerator < Rails::Generators::Base
source_root File.expand_path("../templates", __FILE__)
class_option :path, :type => :string, :desc => %q{Path to stylesheet_index.yml to be used to copy stylesheets.
Allows finer contr... |
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: '<API key>',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-co... |
title: 'Kubernetes Networking: Part 2 - Calico'
layout: post
category: blog
tags:
- kubernetes
- calico
In the previous post, I went over some basics of how Kubernetes networking works from a fundamental standpoint. The requirements are simple: every pod needs to have connectivity to every other pod. The only different... |
/*global Backbone:true */
'use strict';
// Require.js allows us to configure shortcut alias
require.config({
paths: {
backbone: 'lib/backbone',
localstorage: 'lib/backbone.localstorage',
jed: 'lib/jed',
// jsmad: 'lib/jsmad',
// indexedDB: 'lib/indexeddb',
install: 'l... |
import Promise from 'bluebird';
import mongoose from 'mongoose';
import DateProcess from '../Helpers/DateProcess';
// const debug = require('debug')('chatify-server:index');
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
const Message = new Schema({
roomId: {
type: ObjectId,
required: [true... |
package is.hail.types.physical
import is.hail.annotations._
import is.hail.asm4s._
import is.hail.expr.ir.{EmitCodeBuilder, EmitMethodBuilder, IEmitCode}
import is.hail.types.physical.stypes.interfaces.{SIndexableCode, SIndexableValue}
abstract class PContainer extends PIterable {
override def containsPointers: Boole... |
# Web Worker API
Shared Web WorkersService Workers
Web Worker`importScripts()`
[Instagram JS Filter][01]
text
../instagram_js_filter/js
filter.canvas.js
filter.js
lagrange.js
worker.filter.js
worker.js ←
worker.util.js
worker.jsworker.filter.jsworker.util.jslagrange.js
OK
javascript
importScripts(
'wo... |
import {Component} from '@angular/core';
import {Direction} from '@angular/cdk/bidi';
@Component({
selector: '<API key>',
templateUrl: './<API key>.component.html'
})
export class <API key> {
direction: Direction = 'ltr';
toggleDirection() {
this.direction = this.direction === 'ltr' ? 'rtl' : 'ltr';
}
} |
#![cfg_attr(feature = "unstable", feature(const_fn, drop_types_in_const))]
#![cfg_attr(feature = "serde_derive", feature(proc_macro))]
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
#![cfg_attr(not(feature = "unstable"), deny(warnings))]
extern crate... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Circle - p2.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/... |
import Ember from 'ember';
import SerialPort from '../utils/serial-port';
const { Service, computed } = Ember;
const { Promise } = Ember.RSVP;
export default Service.extend({
serialPortFactory: window.require("serialport"),
init() {
this.set('ports', {});
},
baudRate: 9600,
dataBits: 8,
stopBits: 1,
p... |
<?php
namespace App\Http\Controllers\business;
use App\User;
use App\Helpers\File;
use App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class <API key> extends controller
{
public function certificate($action = '', $id= '')
{
$table = __FUNCTION__;
retur... |
NAME=<API key>
URLS=ftp://ftp.ncbi.nih.gov/genomes/<API key>/CHR_Un/<API key>.fa.gz
source getter.sh |
using System;
using CasualMeter.Core.Helpers;
using Lunyx.Common.UI.Wpf.Collections;
using Nicenis.ComponentModel;
using Tera.Game;
namespace CasualMeter.Tracker
{
public class PlayerInfo : PropertyObservable
{
public DamageTracker Tracker { get; private set; }
public Player Player { get; privat... |
package mapleroad;
import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mapred.Re... |
const toolingPresetVue = require('../')
test('main', () => {
expect(typeof toolingPresetVue).toBe('function')
}) |
#ifndef <API key>
#define <API key>
#include <Vuforia/View.h>
#include <Vuforia/ViewList.h>
#include <Vuforia/Mesh.h>
#include <Vuforia/Matrices.h>
#include <Vuforia/Vectors.h>
#include <Vuforia/ViewerParameters.h>
namespace Vuforia
{
RenderingPrimitives class
/**
* This class provides rendering primitives to be used ... |
Imports SistFoncreagro.BussinessEntities
Imports SistFoncreagro.DataAccess
Public Class <API key> : Implements <API key>
Dim factoryrepository As <API key>
Public Sub New()
factoryrepository = New <API key>
End Sub
Public Sub <API key>(ByVal idRequisito As Integer) Implements <API key>.<API key>... |
## 0.3.2 (Aug 21, 2017)
fix
- fix `getNiceTickValues` when the number is a scientific notation
## 0.3.1 (Jun 11, 2017)
fix
- fix `getDigitCount` when the number is a scientific notation
## 0.3.0 (Mar 01, 2017)
feat
- Add new ticks function `<API key>`
## 0.2.3 (Feb 28, 2017)
fix
- Fix calculation precision of calculate... |
""" Physics test sandbox for the space race game!
Alistair Reid 2015
"""
import matplotlib.pyplot as pl
import matplotlib as mpl
import numpy as np
from numpy.linalg import norm
from time import time, sleep
import os
def integrate(states, props, inp, walls, bounds, dt):
""" Implementing 4th order Runge-Kutta fo... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Corona Docs: API > Types > Map > setRegion</title>
<meta name="revised" content... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var CIL;
(function (CIL) {
var Runtime;
(function (Runtime) {
var OpCodes;
... |
# Freedom - Mind-blowing issue tracker.
# Veselin Todorov <hi@vesln.com>
require 'spec_helper'
describe <API key> do
let(:current_project) { current_project = mock_model(Project, :id => 1) }
let(:project_id) { current_project.id }
let(:milestone) { create(:milestone, :project_id => project_id) }
let(:milestones... |
#ifndef <API key>
#define <API key>
#if defined(WEBRTC_WIN)
#include <API key> //original-code:"rtc_base/asyncsocket.h"
#include <API key> //original-code:"rtc_base/criticalsection.h"
#include <API key> //original-code:"rtc_base/messagequeue.h"
#include <API key> //original-code:"rtc_base/socket.h"
#include <API key> /... |
author: robmyers
comments: true
date: 2005-12-22 06:47:08+00:00
layout: post
slug: <API key>
title: New Rhizome Site Design Launch
wordpress_id: 763
categories:
- Generative Art
The excellent Rhizome have a new site design:
[http:
Give it a go.
Technorati Tags: [generative art](http: |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp2156Component } from './comp-2156.component';
describe('Comp2156Component', () => {
let component: Comp2156Component;
let fixture: ComponentFixture<Comp2156Component>;
beforeEach(async(() => {
TestBed.<API key>({
decl... |
<?php
abstract class qCal_Value {
protected $value;
public function __construct($value) {
$this->setValue($value);
}
/**
* A factory for data type objects. Pass in a type and a value, and it will return the value
* casted to the proper type
*/
public static function factory($t... |
// Kyle Russell
// AUT University 2016
// Highly Secured Systems A2
package com.kyleruss.cryptocommons;
import java.security.<API key>;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.<API key>;
import java.security.SecureRandom;
import javax.crypto.BadPaddingException;
impor... |
if ( jQuery && $('a[href="/UserDetails.aspx"]' , '#boxUser').length )
$(function()
{
$.get(
'/UserDetails.aspx' ,
{} ,
function(o)
{
$('a[href="/UserDetails.aspx"]' , '#boxUser ')
.eq(0)
.before(
... |
package fredboat.event;
import fredboat.Config;
import fredboat.commandmeta.CommandManager;
import fredboat.commandmeta.CommandRegistry;
import fredboat.commandmeta.abs.Command;
import net.dv8tion.jda.core.events.message.<API key>;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.regex.Matcher;... |
'use strict';
/*
* Polyfills loaded: None
* Used in: Chrome
*/
// TODO: This needs to not exist at all.
//TODO(notwaldorf): this is temporary and should be removed.
import '../bower_components/shadycss/src/ShadyCSS.js'
import '../src/unresolved.js' |
package problem1;
import java.util.stream.LongStream;
/**
* 10, 3 5 3, 5, 6, 9 4, 23 .<br>
* , 1000 3 5 .
*
* @author user
*/
public class Problem1 {
/** minimum value in the range. (thisValue <= range) */
private static final int BEGIN_VALUE = 1;
/** value of less than. (range < thisValue) */
... |
import 'rxjs/add/operator/let';
import 'rxjs/add/operator/pluck';
import { Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { <API key> } from 'app/app-config';
import { IAppState } from 'app';
import { ITrack, ITracklistCursor } from 'app/trac... |
var React = require('react');
import $ from 'jquery';
var Search = React.createClass({
componentDidMount(){
searchThings();
},
render(){
return (
<section id="search-section">
<input id="search-notes"
type="text"
ref="name"
placeholder="Search... |
Ext.override(Ext.ux.StatusBar, {
hideBusy() {
return this.setStatus({
text: this.defaultText,
icon_cls: this.defaultIconCls
});
}
}); |
"""
To build cx_Freeze executable:
python setup.py bdist_msi
"""
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = [], excludes = [])
import PyQt5
from glob import glob
import sys, os
import os.path as osp
base = 'Win32... |
#define <API key>
enum Main {
// GL_CULL_VERTEX_IBM = 103050,
}; |
#ifndef __XYZFILE_H__
#define __XYZFILE_H__
#include "file.h"
namespace ZBPlugin
{
// CXyzFile: XYZ file format
class CXyzFile : public CFile
{
public:
CXyzFile(){};
~CXyzFile(){};
inline Vector3DVector& <API key>() {return m_vertices;}
inline Vector3DVector& <API key>() {return m_texCoo... |
# Support macro to use a precompiled header
# Usage:
# <API key>(CURRENT_MODULE HEADER_FILE SRC_FILE)
macro(<API key>)
if(<API key> OR <API key>)
<API key>(${DIOS_MODULE_${DIOS_BUILDER_MODULE}_DIRECTORY}/src/precompiled.h ${DIOS_MODULE_${DIOS_BUILDER_MODULE}_DIRECTORY}/src/precompiled.cpp)
elseif(<API... |
namespace HomeCloud.DataStorage.DataAccess.Components.Repositories
{
#region Usings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using HomeCloud.DataAccess.Contracts;
using HomeCloud.DataStorage.DataAccess.Contracts;
using HomeCloud.Dat... |
'use strict';
import * as assert from 'assert';
import { TextModel } from 'vs/editor/common/model/textModel';
import { SyntaxRangeProvider } from 'vs/editor/contrib/folding/syntaxRangeProvider';
import { <API key>, FoldingRange, FoldingContext } from 'vs/editor/common/modes';
import { ITextModel } from 'vs/editor/commo... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'complain_book',
'dbdriver' => 'mysqli',
'dbprefix'... |
package equus.independent.data;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Set;
import equus.indep... |
public class Solution {
public int RemoveElement(int[] a, int toRemove) {
int writeIndex = 0;
for (int readIndex = 0; readIndex < a.Length; readIndex++)
{
if (a[readIndex] != toRemove)
{
a[writeIndex++] = a[readIndex];
}
}
r... |
import Component from 'ember-component';
import hbs from '<API key>';
/**
* Not operational sidebar search component
* @class NavigationAPI.SearchBar
* @constructor
* @extends Ember.Component
*/
export default Component.extend({
layout: hbs``
}); |
* {
margin: 0px;
padding: 0px;
}
/* must declare 0 margins on everything, also for main layout components use padding, not
vertical margins (top and bottom) to add spacing, else those margins get added to total height
and your footer gets pushed down a bit more, creating vertical scroll bars in the browser */
h... |
Tinypfadmin::Application.routes.draw do
resources :aliases
resources :users
resources :domains
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :contr... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace Resources {
using System;
using System.Reflection;
<summary>
A strongly-typed resource class, for look... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.