answer stringlengths 15 1.25M |
|---|
frappe.ui.form.on('Address Template', {
refresh: function(frm) {
if(frm.is_new() && !frm.doc.template) {
// set default template via js so that it is translated
frappe.call({
method: 'frappe.geo.doctype.address_template.address_template.<API key>',
cal... |
title: "Packages for Better React Experience"
categories:
- Web
tags:
- React
Here are some components and utils that will make your React developement even more enjoyable.
# React Components
Feature rich, configurable date picker for react. Worked everytime without any issue.
Drag and drop is not so easy to handl... |
using System.Web;
using System.Web.Optimization;
namespace InsectCatalog
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
... |
class NdlStatAccept < ActiveRecord::Base
default_scope :order => :region
belongs_to :ndl_statistic
attr_accessible :donation, :production, :purchase, :region, :item_type
item_type_list = ['book', 'magazine', 'other_micro', 'other_av', 'other_file']
region_list = ['domestic', 'foreign', 'none']
<API key> :it... |
# Arduino Yun Experiment
This project allows temperature and light sensor readings to be output as a web app.
## Board Setup

## Sketch Setup
Upload `api/api.ino` to the Yun. You should see `Waiting...` on the first row of the LCD dis... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
public function __construct(){
parent:: __construct();
$this->load->model('engine_model');
}
public function add_url(){
$url = $_POST['url'];
$id = $_POST['id'];
... |
<!DOCTYPE html>
<html lang="en">
<!
Copyright 2021 David Stein
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, mer... |
require "day/tracker/version"
module Day
module Tracker
class Cli < Thor
FILE_PATH = File.expand_path("~/.day-tracker")
def initialize(*args)
super
FileUtils.touch FILE_PATH
end
desc "list", "list recorded days"
def list
puts File... |
<!DOCTYPE html>
<html>
<head>
<title>metamachine v.0.03</title>
<meta charset="UTF-8">
<link href="style.css" type="text/css" rel="stylesheet">
<!--- <script type="text/javascript" src="main.js" async></script> -->
<script src="http://code.jquery.com/jquery-2.1.4.j... |
<?php
defined('C5_EXECUTE') or die("Access Denied.");
global $c;
// grab all the collections belong to the collection type that we're looking at
Loader::model('collection_types');
$ctID = $c->getCollectionTypeID();
$ct = CollectionType::getByID($ctID);
$cList = $ct->getPages();
?>
<div class="ccm-ui">
<form method="pos... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model AlexanderEmelyanov\yii\modules\articles\models\Article */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Article',
]) . ' ' . $model->article_id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Art... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class <API key> extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (!Schema::hasTable('roadblocks'))
{
Schema::create('roadbl... |
@import url("./bootstrap/css/bootstrap.css");
@import url("./fontawesome/css/font-awesome.css");
body {
}
.navbar-brand img {
max-height: 30px;
margin-right: 20px;
margin-top: -6px;
} |
#include <cstdio>
#include <algorithm>
using namespace std;
const int maxn = 111;
int arr[maxn];
int main()
{
//freopen("in.txt", "r", stdin);
int n, m;
while(2 == scanf("%d%d", &n, &m) && !(n==0 && m==0)) {
for(int i = 0; i < n; ++i)
scanf("%d", &arr[i]);
arr[n] = m;
sor... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace ContosoUniversity.WebApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
... |
/**
* A debounce method that has a sliding window, there's a minimum and maximum wait time
**/
module.exports = function (cb, min, max, settings) {
var ctx, args, next, limit, timeout;
if (!settings) {
settings = {};
}
function fire() {
limit = null;
cb.apply(settings.context |... |
# -*- coding: utf-8 -*-
from flask import Blueprint
from jotonce.api import route
from jotonce.passphrases.models import Passphrase
bp = Blueprint('passphrase', __name__, url_prefix='/passphrase')
@route(bp, '/')
def get():
p = Passphrase.get_random()
return {"results": p} |
package ru.lanbilling.webservice.wsdl;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
imp... |
class <API key> < ActiveRecord::Migration[5.1]
def change
add_index :partial_flows, [ :is_syn, :state ]
add_index :partial_flows, [ :src_ip, :dst_ip, :src_port, :dst_port, :state ], name: 'identify_index'
end
end |
#include "<API key>.h"
namespace TooManyPeeps {
BackgroundExtractor::BackgroundExtractor(const cv::Mat& original, cv::Mat& result,
int historySize, double threshold)
: ProcessFilter(original, result) {
backgroundExtractor = cv::<API key>(historySize, threshold, TRACK_SHADOWS);
// If TRACK_SHADOWS = tr... |
<?php
namespace App;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\MappedSuperclass
* @ORM\<API key>()
*/
abstract class Entity
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Colu... |
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
mocha = require('gulp-mocha'),
cover = require('gulp-coverage'),
jscs = require('gulp-jscs');
gulp.task('default', ['jscs', 'lint', 'test'], function () {
});
gulp.task('lint', function () { |
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;
namespace RepertoryGridGUI.ufos
{
public partial class <API key> : Form
{
public <API key>()
{
Initi... |
using System.ComponentModel.DataAnnotations;
using EPiServer;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using ImageProcessor.Web.Episerver.UI.Blocks.Business;
namespace ImageProcessor.Web.Episerver.UI.Blocks.Models.Blocks
{
[ContentType(DisplayName = "Detect Edges",
GUID = "<API key>... |
public class Solution {
public List<List<Integer>> generate(int numRows) {
List<List<Integer>> result = new ArrayList<>();
ArrayList<Integer> tmp = new ArrayList<>();
for (int i = 0; i < numRows; i++) {
tmp.add(0, 1);
for (int j = 1; j < tmp.size() - 1; j++) {
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/lib/pure.min.css">
<link rel="stylesheet" href="../css/whhg.css">
<link rel="stylesheet" href="../css/main.css">
<link rel="icon" type="image/png" href="../favicon.png?v=1.01">
<title>Dining @ CU</title>
</h... |
if (typeof window !== 'undefined') {
var less = require('npm:less/lib/less-browser/index')(window, window.less || {})
var head = document.<API key>('head')[0];
// get all injected style tags in the page
var styles = document.<API key>('style');
var styleIds = [];
for (var i = 0; i < styles.lengt... |
(function () {
"use strict";
angular.module("myApp.components.notifications")
.factory("<API key>", <API key>);
<API key>.$inject = [
"Transaction"
];
function <API key>(transactionBackend) {
var service = {
getNewTransactions: getNewTransactions,
setL... |
layout: base
published: true
<style>
#<API key>{
/*max-height: 70vh;*/
padding-top: -10vh;
padding-bottom: 8vh;
height: 100vh;
position: relative;
}
.carousel-inner{
padding-top: -10vh;
padding-bottom: 8vh;
height: 100vh;
position: relative;
background-color: black;
}
.... |
import numpy as np
from pycqed.analysis import <API key> as ma
from pycqed.analysis_v2 import <API key> as ma2
from pycqed.measurement import sweep_functions as swf
from pycqed.measurement import detector_functions as det
MC_instr = None
VNA_instr = None
def <API key>(file_name, start_freq=None,
... |
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "hkl_tree.h"
#include "hkl_alloc.h"
/*
* HklPair
*/
HklPair* hkl_pair_new()
{
HklPair* pair = hkl_alloc_object(HklPair);
pair->key = hkl_string_new();
pair->value = NULL;
return pair;
}
HklPair* <API key>(HklString* key, ... |
/**
(function(){
window.saveUser();
saveBlog();
var util_v1 = new window.util_v1();
util_v1.ajax();
test1();
test2();
test3(); //$(function(){window.test3=fn});
test4();
})();
**/
/**
(function(w){
w.saveUser();
saveBlog();
var util_v1 = new w.util_v1();
util_v1.ajax();
... |
# Change Log
All notable changes to this project will be documented in this file.
## 1.0.0
- Initial commit copied from |
Template.login.events({
'submit form': function(){
event.preventDefault();
var email = event.target.email.value;
var password = event.target.password.value;
//error handling
Meteor.loginWithPassword(email, password, function(error){
if (error) {
al... |
#include "utility/vector.h"
#include "utility/direction.h"
#include <math.h>
static Vector DIRECTIONS[DIRECTION_POOL_SIZE];
void Direction_init() {
double angle = 0.;
int id;
for (id = 0; id < DIRECTION_POOL_SIZE; ++id) {
Vector_set( &DIRECTIONS[id], cos(angle), -sin(angle) );
angle -= 2 * P... |
// 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,
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// in all copies o... |
using System;
using Microsoft.Extensions.DependencyInjection;
using ZptSharp.Dom;
using ZptSharp.Hosting;
namespace ZptSharp
{
<summary>
Extension methods for <see cref="<API key>"/> instances.
</summary>
public static class <API key>
{
<summary>
Adds service registrations to the <pa... |
abstract sealed class Action
case class Atom(atom: Unit => Action) extends Action {
override def toString() = "atom"
}
case class Fork(a1: Action, a2: Action) extends Action {
override def toString = s"fork ${a1 toString} ${a2 toString}"
}
case class Stop() extends Action {
override def toString = "stop"
}
// Not... |
/**
* @generated-from ./$execute.test.js
* This file is autogenerated from a template. Please do not edit it directly.
* To rebuild it from its template use the command
* > npm run generate
* More information can be found in CONTRIBUTING.md
*/
/* eslint-disable no-unused-vars */
import { asyncExecute } from '../.... |
<?php
namespace Brasa\RecursoHumanoBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class <API key> extends EntityRepository {
} |
var through = require('through2');
var cheerio = require('cheerio');
var gulp = require('gulp');
var url = require('url');
var path = require('path');
var fs = require('fs');
var typeMap = {
css: {
tag: 'link',
template: function(contents, el) {
var attribute = el.attr('media');
attribute = attrib... |
package strain
type Ints []int
type Lists [][]int
type Strings []string
func (i Ints) Keep(filter func(int) bool) Ints {
if i == nil {
return nil
}
filtered := []int{}
for _, v := range i {
if filter(v) {
filtered = append(filtered, v)
}
}
i = filtered
ret... |
#ifndef OVR_Math_h
#define OVR_Math_h
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include "OVR_Types.h"
#include "OVR_RefCount.h"
namespace OVR {
// Constants for 3D world/axis definitions.
// Definitions of axes for coordinate and rotation conversions.
enum Axis
{
Axis_X = 0, Axis_Y = 1, Axis_Z = 2
... |
package main
import (
"fmt"
"time"
"github.com/kevinburke/rct/genetic"
)
func main() {
files := genetic.GetOldFiles(1 * time.Hour)
for _, file := range files {
fmt.Println(file)
}
} |
using System;
namespace SampleWebAPIApp.Areas.HelpPage.ModelDescriptions
{
<summary>
Describes a type model.
</summary>
public abstract class ModelDescription
{
public string Documentation { get; set; }
public Type ModelType { get; set; }
public string Name { get; set; }
... |
#include <miopen/rnn.hpp>
#include <miopen/rnn_util.hpp>
#include <miopen/activ.hpp>
#include <miopen/env.hpp>
#include <miopen/gemm_v2.hpp>
#include <miopen/logger.hpp>
#include <vector>
#include <numeric>
#include <algorithm>
namespace miopen {
// Assuming sequence length is set to > 0 otherwise throw exception.
void... |
<?php
namespace Renovate\MainBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Renovate\MainBundle\Entity\Vacancy;
use Renovate\MainBundle\Entity\Document;
class VacanciesController extends Contro... |
class <API key> < ActiveRecord::Migration
def up
add_column :members, :street_address, :string
add_column :members, :address_locality, :string
add_column :members, :address_region, :string
add_column :members, :address_country, :string
add_column :members, :postal_code, :string
add_column :mem... |
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace PS4Macro.Classes.GlobalHooks
{
public class <API key> : HandledEventArgs
{
public GlobalKeyboardHook.KeyboardState KeyboardState { get; private set; }
public GlobalKeyboardHook.<A... |
module Rapa
class AlternateVersion
# @return [Hash]
attr_reader :source
# @param source [Hash]
def initialize(source)
@source = source
end
# @return [String]
def asin
source["ASIN"]
end
# @return [String]
def binding
source["Binding"]
end
# @return [St... |
#include <vector>
#include <utility>
#include <cmath>
#include <string.h>
using namespace std;
#include "domain.h"
#include "random.h"
/** Returns the sign of a real number.
* \param x The number whose sign we wish to extract.
* \return The sign of \c x.
*/
double sign(double x) {
if (x == 0.0) return 0.0;
if (x... |
'use strict';
angular.module('app.directives')
.directive('questionBlock',function() {
return {
restrict: 'E',
scope: {
question:'='
},
templateUrl:'/directives/questions/question-block.html'
};
}); |
# mcrypt_compat
[:
composer require phpseclib/mcrypt_compat
## Supported algorithms
- rijndael-128
- rijndael-192
- rijndael-256
- des
- blowfish
- rc2
- tripledes
- arcfour
## Unsupported algorith... |
from asyncio import coroutine
import pytest
from aiohttp import HttpBadRequest, <API key>
from fluentmock import create_mock
from aiohttp_rest import RestEndpoint
class CustomEndpoint(RestEndpoint):
def get(self):
pass
def patch(self):
pass
@pytest.fixture
def endpoint():
return RestEndpoint... |
package main
import (
"log"
"os"
"golang.org/x/net/context"
"google.golang.org/grpc"
// "google.golang.org/grpc/credentials/oauth"
"google.golang.org/grpc/metadata"
m "github.com/konjoot/grpc/proto/messages"
s "github.com/konjoot/grpc/proto/sessions"
)
const sessionAddr = "localhost:5005... |
'use strict';
var _ = require('lodash');
var utils = require('../utils');
var d3 = require('d3');
var sunCalc = require('suncalc');
var geocoder = require('geocoder');
var Path = require('svg-path-generator');
var margin = {
top: 20,
right: 0,
bottom: 20,
left: 0
};
var dayOfYear = function(d) {
var... |
#ifndef <API key>
#define <API key>
struct counted
{
static int <API key>;
static int <API key>;
static int <API key>;
static int destruction_count;
int id;
static void reset_counts()
{
<API key> = 0;
<API key> = 0;
<API key> = 0;
destruction_count = 0;
}
... |
#! /usr/bin/python
# -*- coding: utf-8 -*-
from numpy import random
# Definition of module level constants
SUCCESS_CODE = 1
FAILURE_CODE = 0
class Strategy():
def __init__(self, n):
<API key> = <API key>(n)
_strategy = {i: p for i, p in enumerate(<API key>, 1)}
self._n = n
self.strat... |
* [](http:
* [Flex ](http:
* [CSS ](http:
* Chrome

1. -> https://zhifeclub.github.io/front-end-learn/zero/nav/#course
1. |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Eloquent\SoftDeletes;
class CreateImagesTable extends Migration
{
//use SoftDeletes;
/**
* Run the migrations.
*
* @return void
*/
... |
package de.v13dev.designpatterns.util;
import java.util.List;
public class TestHelper {
public static boolean isSortedAscending(List<Integer> list) {
if(list.size() < 2) return true;
for(int i = 1; i < list.size(); i++) {
if(list.get(i - 1) > list.get(i)) {
return false;
... |
import { FormGroup } from '@angular/forms';
export class <API key> {
static validate(passwordFormGroup: FormGroup) {
const <API key>.controls.password.value;
const repeat<API key>.controls.<API key>.value;
if (repeatPassword.length <= 0) {
return null;
}
if (repeatPassword !== password) {
... |
<?php
namespace DTR\CrawlerBundle\Services\Crawler;
use DTR\CrawlerBundle\Services\Algorithms\<API key>;
use DTR\CrawlerBundle\Services\Inspectors\ComponentInspector;
use Symfony\Component\DomCrawler\Crawler;
class MenuCrawler implements CrawlerInterface
{
/**
* @var ComponentInspector
*/
private $com... |
module Effective
module Providers
module Free
extend ActiveSupport::Concern
def free
raise('free provider is not available') unless EffectiveOrders.free?
@order ||= Order.find(params[:id])
EffectiveResources.authorize!(self, :update, @order)
unless @order.free?
... |
body {
font-size: 1.0em;
} |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
<meta name="theme-color" content="#03375F">
<script src="https://maps.googleapis.com/maps/api/js?key=<Google Api>"></script>
<!
... |
package fr.aumgn.bukkitutils.geom;
import fr.aumgn.bukkitutils.geom.direction.VectorDirection;
import fr.aumgn.bukkitutils.geom.vector.VectorIterator;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.Enti... |
/**
* Central storage with in-memory cache
*/
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const app = process.type === 'renderer'
? require('electron').remote.app
: require('electron').app;
const _defaultDir = path.join(app.getPath('userData'), 'data');
const _storage... |
<?php
class HtmlTest extends \Codeception\TestCase\Test
{
/**
* @var \CodeGuy
*/
protected $codeGuy;
public function testSend()
{
$instance = new \Hahns\Response\Html();
$response = $instance->send('<h1>hello world</h1>');
$this->assertEquals('<h1>hello world</h1>', $respo... |
require 'spec_helper'
describe AdminsController do
describe 'attempting to access the admin dashboard when not logged in' do
before :each do
get :index, {:id => 2}
end
it 'should redirect to the login page' do
response.should be_redirect
response.should redirect_to('/login')
en... |
<?php
header("<API key>:*");
?>
<html>
<head>
<title>TESTS AJAX</title>
<style type="text/css">
.bouton,.obj_prec{
margin-left:4px;
color:blue;
font-size:14px;
font-weight:bold;
cursor:pointer;
}
.bouton:hover{
... |
#include <stdlib.h>
#include "sway/commands.h"
#include "log.h"
struct cmd_results *<API key>(int argc, char **argv) {
// TODO TRAY
return cmd_results_new(CMD_INVALID, "secondary_button", "TODO TRAY");
} |
<?php
namespace Nemundo\Package\FontAwesome\Icon;
use Nemundo\Package\FontAwesome\<API key>;
class TrashIcon extends <API key>
{
public function getContent()
{
$this->icon = 'trash';
return parent::getContent();
}
} |
import { Component, Input } from '@angular/core';
import { Character } from '../../../data/models/character';
import { LinkLocation } from '../../directive/insertLinks/insertLinks.directive';
@Component({
selector: 'lc-character',
templateUrl: 'character.component.html',
styleUrls: [ 'character.component.scss' ],... |
#include "coincontroldialog.h"
#include "<API key>.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "platformstyle.h"
#include "txmempool.h"
#include "walletmodel.h"
#include "wallet/coincontrol.h"
#include "init.h"
#include "policy/fees.h"
#include "po... |
2015-05-22
#python
* [AlessandroZ/LaZagne](https://github.com/AlessandroZ/LaZagne): Credentials recovery project
* [no13bus/baymax](https://github.com/no13bus/baymax): "Hello, I am your personal health companion"
* [nvbn/thefuck](https://github.com/nvbn/thefuck): Magnificent app which corrects your previous console com... |
package ch.ethz.topobench.graph;
public class TestGraph extends Graph {
public TestGraph(String name, int size) {
super(name, size);
}
public TestGraph(String name, int size, int uniformWeight) {
super(name, size, uniformWeight);
}
public boolean addBidirNeighbor(int n1, int n2) {
... |
<!DOCTYPE html>
<html class="h-100" lang="en">
{% include _head.htm %}
<body>
{% include _cookie_banner.htm %}
{% include _header.htm %}
<div class="min-h-80 docs-container container-fluid">
<div class="row">
<div class="col-xl-3">
<details... |
<div class="{{ field_classes|default:'field' }}{% if field.errors %} error{% endif %}">
{{ field }}
{% if field.errors %}
<div class="ui error message">
{% for error in field.errors %}
<p><i class="warning sign icon"></i> <span>{{ error }}</span></p>
{% endfo... |
layout: post
title: "MySQL Reflection"
date: 2016-11-16
categories: "projects"
assignment: "true"
[Link to Github Repository](https://github.com/ldinkins/malily5)
We continued working on the bash script from Assignment 4 by adding a connection to MySQL. First, we created the database malily if it didn't already exis... |
<?php
/*
Safe sample
input : use fopen to read /tmp/tainted.txt and put the first line in $tainted
Flushes content of $sanitized if the filter number_float_filter is not applied
construction : use of sprintf via a %d with simple quote
*/
$handle = @fopen("/tmp/tainted.txt", "r");
if ($handle) {
if(($tainted = fgets($... |
The Skills API Platform
====================
An open platform to store human skills.
Powered by [API Platform](https: |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Insert Before Example</title>
<script>
onload = insertTagBefore;
function insertTagBefore(){
// CREATE A LI TAG
var list = document.createElement("li");
list.... |
<?php
/* Submission Form Management */
require_once("../includes/admin_init.php");
require_once("../includes/adminAccount.class.php");
require_once("../includes/subForm.class.php");
require_once("../includes/conference.class.php");
/* Intitalize and output header */
initHeader("Submission Form Management");
/* Lets cre... |
'use strict';
/* global $: true */
/* global animation: true */
/* global boidWeights: true */
//Slider for selecting initial number of boids
$('#numBoidsSlider').slider({
min: 0,
max: 400,
step: 10,
value: animation.numBoids
});
$('#numBoidsVal').text(animation.numBoids);
$('#numBoidsSlider').on('slide... |
package test;
/**
scala> map
res6: java.util.HashMap[String,java.util.List[String]] = {AAA=[BBB, CCC, EEE], CCC=[DDD]}
scala> test.Test.printCompany(map)
-AAA
-BBB
-CCC
-DDD
-EEE
*/
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
public class Test {
public static void printCompany(Hash... |
#!/bin/sh
set -e
echo "mkdir -p ${<API key>}/${<API key>}"
mkdir -p "${<API key>}/${<API key>}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRODUCTS_DIR}/$1"
else
local source="${BUILT_PRODUCTS_... |
// Generated by class-dump 3.5 (64 bit).
#import "NSObject.h"
#import "<API key>.h"
@interface <API key> : NSObject <<API key>>
{
id <<API key>> _source;
id <SChartErrorHandler> _errorHandler;
}
@property(nonatomic) id <SChartErrorHandler> errorHandler; // @synthesize errorHandler=_errorHandler;
@property(n... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W28770_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;">
... |
<?php
/* @var $this UserController */
/* @var $data User */
?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('level_i... |
package com.slicer.utils;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Texture;
public class AssetLoader {
public static Texture bgGame, bgGameOver, bgFinish, score, soundOn, soundOff;
public static Sound gameOver, v... |
CKEDITOR.plugins.setLang( 'iframe', 'ko', {
border: ' ',
noUrl: ' (URL) .',
scrolling: ' ',
title: ' ',
toolbar: ''
} ); |
// SMCampaignsManager.h
// SessionM
#ifndef <API key>
#define <API key>
#import "SMFeedMessage.h"
#import "SMPromotion.h"
#import "SMError.h"
#import "SMBaseDelegate.h"
<API key>
/*!
@const <API key>
@abstract Notifies observers that an API request failed.
@discussion An @link SMError @/link object containing info... |
#ifndef <API key>
#define <API key>
#include "QtWidgets/QLabel"
#include "QtWidgets/QPushButton"
#include "GUI/StringSetting.h"
namespace SideCar {
namespace GUI {
class PathSetting : public StringSetting {
Q_OBJECT
public:
PathSetting(PresetManager* mgr, QLabel* viewer, QPushButton* editor, const QString& prom... |
''' This file contains tests for the bar plot.
'''
import matplotlib.pyplot as plt
import pytest
import shap
from .utils import explainer # (pytest fixture do not remove) pylint: disable=unused-import
@pytest.mark.mpl_image_compare
def test_simple_bar(explainer): # pylint: disable=<API key>
""" Check that the bar p... |
/**
* Hydro configuration
*
* @param {Hydro} hydro
*/
module.exports = function(hydro) {
hydro.set({
suite: 'equals',
timeout: 500,
plugins: [
require('hydro-chai'),
require('hydro-bdd')
],
chai: {
chai: require('chai'),
styles: ['should'],
stack: true
}
})
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_40) on Sun Oct 06 19:07:34 PDT 2013 -->
<title>pacman.controllers Class Hierarchy</title>
<meta name="date" content="2013-10-06">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<... |
# -*- coding: utf-8 -*-
from datetime import timedelta, datetime
import asyncio
import random
from .api import every, once_at, JobSchedule, <API key>
__all__ = ['every_day', 'every_week', 'every_monday', 'every_tuesday', 'every_wednesday',
'every_thursday', 'every_friday', 'every_saturday', 'every_sunday',
... |
import {QueryContext} from "../common/QueryContext";
import {IBoundQueryPart} from "./IBoundQueryPart";
export interface IQueryPart {
toCypher(ctx:QueryContext):IBoundQueryPart
} |
package com.raymond.entrypoint;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.<API key>;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.<API key>;
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.