answer stringlengths 15 1.25M |
|---|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Uniter PHP Demo Collection</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ceres: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... |
CKEDITOR.plugins.setLang( 'horizontalrule', 'no', {
toolbar: 'Sett inn horisontal linje'
} ); |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Make use of synaptic as backend."""
# This program is free software; you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See ... |
<?php
// DataValidationClass
if (!defined ("<API key>") ) {
define("<API key>", TRUE);
Class DataValidation {
var $field=null;
var $typeError = 'field';
var $errorMsg='';
var $error=false;
var $errorFields = [];
/**
* Validate the content of $data based o... |
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<div class="alert alert-success" role="alert">
<?= $msg; ?>
</div>
</div> |
<?php
use Illuminate\Support\Facades\Log;
use Overtrue\Pinyin\Pinyin;
if (!function_exists('pinyin')) {
/**
* Get the Pinyin of given string.
*
* @param string $string
* @param string $option
*
* @return string
*/
function pinyin($string, $option = Pinyin::NONE)
{
... |
module Smalrubot
class Board
# namespace for Studuino
module Studuino
PORT_M1 = 0
PORT_M2 = 1
PORT_A0 = 0
PORT_A1 = 1
PORT_A2 = 2
PORT_A3 = 3
PORT_A4 = 4
PORT_A5 = 5
PORT_A6 = 6
PORT_A7 = 7
PIDOPEN = 0
PIDLED = 1
PIDBUZZER = 2
... |
'use strict';
module.exports = function(localeA, localeB, options) {
options = options || {};
if (typeof localeA !== 'object' || typeof localeB !== 'object') {
throw new Error('s18n: `localeA` and `localeB` must be objects.');
}
var localeAMissing = {};
var localeBMissing = {};
var unmodifiedStrings = {... |
package org.sagebionetworks.dashboard.model;
public interface AccessRecord extends Record{
String getSessionId();
String getUserId();
String getObjectId();
String getMethod();
String getUri();
String getQueryString();
String getStatus();
Long getLatency();
String getUserAgent();
... |
//basic physics entity
//This entity extends the joncom base entity and is responsible for
//collision categories
//property inheritance
//default settings/hooks
//It also defines the ObjectWorld and RenderWorld objects "soma" and "animus" (or whatever distinct names you can think of)
//The soma cannot call animus func... |
module Krikri::Enrichments
# Splits a string given in `lat' or `long' in an edm:Place object and
# assigns `lat' and `long' with the split values.
# @example
# Where val is a DPLA::MAP::Place,
# and val.lat == '40.7127,74.0059',
# assign val.lat = '40.7127' and val.long = '74.0059'
# If long is fi... |
package code.template;
/**
*
* @author
*/
public class QueueArray {
int QUEUE_SIZE;
int front;
int back;
Integer[] queueArray;
public QueueArray(int size) {
queueArray = new Integer[size];
QUEUE_SIZE = size;
}
public void equeue(int putInBackArray) {
if (isFull()) ... |
<!--<?php
# MetInfo Enterprise Content Management System
require_once template('head');
$colspan=4;
echo <<<EOT
</head>
<body>
<!
EOT;
$title=$class1?"<a href='index.php?anyid={$anyid}&lang={$lang}&class1={$class1}&module={$module}'>{$met_class[$class1][name]}</a>":"<a href='index.php?anyid={$anyid}&lang={$lang}&module... |
#endregion
using System.Linq;
using Critters.Client;
using NUnit.Framework;
using Pomona.Example.Models;
namespace Pomona.SystemTests
{
[TestFixture]
public class <API key> : ClientTestsBase
{
[Test]
public void <API key>()
{
var entity = Save(new <API key>() { Number = 2... |
package org.fakekoji.xmlrpc.server.<API key>;
import org.fakekoji.xmlrpc.server.xmlrpcrequestparams.XmlRpcRequestParams;
import java.io.BufferedWriter;
import java.io.IOException;
import java.lang.reflect.Array;
import java.lang.reflect.<API key>;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collec... |
import Ember from 'ember';
export default Ember.Mixin.create({
reduxStore: Ember.inject.service(),
dispatch(action) {
return this.get('reduxStore').dispatch(action);
},
dispatchAction(actionName, ...args) {
return this.dispatch(this.action(actionName).apply(this, args));
},
getState(path) {
retu... |
package router
import (
"github.com/Unknwon/macaron"
"github.com/macaron-contrib/binding"
"github.com/containerops/crew/handler"
)
func SetRouters(m *macaron.Macaron) {
m.Group("/v1", func() {
//Session Router
m.Group("/token", func() {
m.Post("/", handler.W1PostToken)
... |
const gulp = require('gulp');
const nodemon = require('gulp-nodemon');
const mocha = require('gulp-spawn-mocha');
gulp.task('start', () => {
nodemon({
script: 'server.js',
ext: 'html js ejs css',
ignore: ['node_modules'],
})
.on('restart', () => {
console.log('restarted')
});
});
gulp.task('test... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*
* @property User|null $user This property is read-only.
*
*/
class AdminLogin extends Model
{
public $username;
public $password;
public $rememberMe = true;
private $_user = false;
/**... |
#import <SimulatorKit/<API key>.h>
@protocol <API key> <<API key>>
- (void)<API key>:(struct CGSize)arg1;
- (void)<API key>:(struct CGSize)arg1;
@end |
module Wice
# a matrix for all declared columns
class TableColumnMatrix < Hash #:nodoc:
# a structure to hold generates Arels for all column filters
attr_reader :<API key>
# init a matrix of all columns
def initialize #:nodoc:
super
@<API key> = []
@by_table_names = <API key>.new
... |
package distribution
import (
"testing"
"github.com/ready-steady/assert"
)
func TestParse(t *testing.T) {
cases := []struct {
line string
success bool
}{
{"Beta(1, 1)", true},
{"beta(0.5, 1.5)", true},
{" Beta \t (1, 1)", true},
{"Gamma(1, 1)", false},
... |
package org.spongepowered.api.item.inventory.properties;
import org.spongepowered.api.data.Property;
import org.spongepowered.api.item.ItemType;
import org.spongepowered.api.item.inventory.InventoryProperty;
import org.spongepowered.api.util.Coerce;
import java.util.Collection;
import java.util.List;
/**
* A property ... |
NANC
===========
Not ANSI C Compiler (pronounce: Nancy)
Nanc is a two phase project.
Phase one is to create a C compiler in Haskell that
conforms to specs in such a way that it compiles most well written C projects.
Phase two will be a fork of phase one. In it we will diverge from the C
spec in such a way as to create ... |
from django.test import TestCase
from medicine.models import Medicine
from medicine.views import ListAllMedicines
from user.models import HealthProfessional
class <API key>(TestCase):
def setUp(self):
# Making a HealthProfessional
self.view = ListAllMedicines
# Making medicati
self.m... |
<?php use_javascript(sfConfig::get('app_base_url') . 'PubsPlugin/js/follow.js') ?>
<?php if ($sf_user->getGuardUser()->getId() == $datos->getId()) { ?>
<?php include_partial('follow', array('datos' => $datos, 'follows' => $followers, 'action' => 'follower')) ?>
<?php } else { ?>
<?php $follow = Doctrine::getTab... |
using Avalonia.Media;
using Avalonia.Platform;
using Avalonia.Utilities;
using Avalonia.VisualTree;
namespace Avalonia.Rendering
{
public class RenderLayer
{
private readonly IDrawingContextImpl _drawingContext;
public RenderLayer(
IDrawingContextImpl drawingContext,
Size... |
/**
* An authorizeation interceptor used to determine if the user can access the given resource.
*/
define([ 'framework/controller/interceptor/i_interceptor',
'framework/core/utils/clazz',
'framework/core/deferred/deferred' ],
function(IInterceptor,
ClazzUtils,
Deferred)
{
var ... |
select job_number,start_time,end_time,cost from %DB%.accounting_view where
(end_time > start_time AND end_period = "%PERIOD%"); |
#include <errno.h>
#include <grp.h>
#include <string.h>
#include "user.h"
int cm_user_get_group(struct passwd *pw, char **group) {
errno = 0;
struct group *g = getgrgid(pw->pw_gid);
if(g == NULL) {
return CM_ERR_NOGRP;
}
strncpy(*group, g->gr_name, strlen(g->gr_name));
return 0;
} |
namespace MeasureMap
{
<summary>
Chain of responsibility for executing tasks
</summary>
public interface ISessionHandler
{
<summary>
Set the next execution item
</summary>
<param name="next">The next handler for the session</param>
void SetNext(ISessionHandler... |
var pkg = require('./package.json'),
gulp = require('gulp'),
gutil = require('gulp-util'),
coffee = require('gulp-coffee'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
livereload = require('gulp-livereload'),
rename = require('gulp-rename'),
coffeelint = require('gu... |
import _plotly_utils.basevalidators
class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="bgcolor", parent_name="sankey.node.hoverlabel", **kwargs
):
super(BgcolorValidator, self).__init__(
plotly_name=plotly_name,
parent_na... |
const Card = require('./src/main');
Card.install = function(Vue) {
Vue.component(Card.name, Card);
};
module.exports = Card; |
/**
* Base object for objects that are using properites to flow updates through the application.
*/
dbm.registerClass("dbm.core.FlowBaseObject", "dbm.core.BaseObject", function(objectFunctions, staticFunctions, ClassReference) {
//console.log("dbm.core.FlowBaseObject");
//"use strict";
//Self reference
... |
from pyperator.decorators import inport, outport, component, run_once
from pyperator.nodes import Component
from pyperator.DAG import Multigraph
from pyperator.utils import InputPort, OutputPort
import pyperator.components |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_27) on Wed Nov 21 16:03:52 EST 2012 -->
<TITLE>
org.pentaho.di.ui.repository
</TITLE>
<META NAME="date" CONTENT="2012-11-21">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
</HEAD>
<BOD... |
import itertools
import os.path
import sys
import time
from . import core
from . import file_io
from . import geometry
from . import stringconv
from . import version
# Functions
def save_output(profileli, opt):
""" Save a summary of results of evaluated profiles
"""
def m(x, pixelwidth):
return geom... |
# A sample Makefile for building Google Test and using it in user
# tests. Please tweak it to suit your environment and project. You
# may want to move it to your project's root directory.
# SYNOPSIS:
# make [all] - makes everything.
# make TARGET - makes the given target.
# make clean - removes all files gen... |
# Android Basics Nanodegree
This repository contains the projects required to complete the [Android Basics Nanodegree](https:
## List of courses
It consisted of the following five courses:
* [Android Basics: User Interface](https:
* [Android Basics: User Input](https:
* [Android Basics: Multi-screen Apps](https:
* [And... |
<!doctype html>
<head>
<meta charset="UTF-8">
<title>Peace Corps Kenya - KSL Glossary</title>
<link rel="icon" href="images/favicon.gif" type="image/x-icon"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]
<link rel="shortcut icon" href="images/favicon.gif" ty... |
# <API key>: true
require "rails_helper"
RSpec.describe Admin::ArticlesController, type: :controller do
render_views
before do
create :blog
end
describe "index" do
let(:publisher) { create(:user, :as_publisher) }
let!(:article) { create(:article) }
before do
sign_in publisher
end
c... |
<?php
namespace HackAveiro\Web2Badge\Util;
class StringCleaner
{
static function removeAccents($string)
{
$unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A',
'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A',
'Æ'=>'A', 'Ç'=... |
<!
FrozenIsBool False
#Propertiser
##Doc
-
>
> The Propertiser is an augmented Defaultor because it will set defaults
attributes
> possibly in properties for the new-style decorated classes. This can set
objects
> with high controlling features thanks to the binding
>
>
-
<small>
View the Propertiser notebook on [NbVie... |
--this = SceneNode()
LineModel = {}
function LineModel.new(inParentNode, inColor, size)
--inParentNode = SceneNode()
local self = {}
local mesh = NodeMesh()
local color = inColor
local points = {}
local w = size and size or 0.075
function self.setVisible(visible)
mesh:setVisible(visi... |
//This C
//This script was originally intended for use with Microsoft Dynamics AX
//and maintained and distributed as a project on CodePlex
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using Microsoft.Dynamics.AX.Framework.Tools.ModelManagement;
using Microsoft.Win3... |
gifbox
===
Little Python/Tornado server that cycles through gifs, plus instructions for how to set it up to launch automatically in Chromium on a Raspberry Pi
Install Instructions
1. Use SDFormatter to format SD card (at least 8GB, more likely 16GB)
1. Download NOOBS (http:
1. Extract files
1. Copy NOOB files to SD car... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
namespace AppUIBasics.Common
{
public class <API key> : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language... |
# <API key>
[ every app. It is nothing fancy, just convenience. I like things nicely aligned, and this makes it really easy. Once you've tried it, you'll be hooked.
## Description
<API key> is a single c... |
.registry-height {
height: 770px;
}
.registry-body {
width: 90%;
margin: 0 auto;
background-color: rgba(255, 255, 255, 0.7);
padding-top: 15px;
padding-bottom: 15px;
margin-top: 25px;
margin-bottom: 25px;
@media (min-width: 1025px) {
width: 65%;
}
}
h3 {
font-family: 'Josefin Sans', sans-serif... |
(function(exports) {
function changeSky(location) {
var sky = document.getElementById("image-360");
sky.setAttribute('src', location);
}
function addMonolith() {
var box = document.createElement('a-box');
document.querySelector('a-scene').appendChild(box);
box.setAttribute('id', 'monolith');
... |
layout: post
title: "[] 01"
date: 2017-08-27
desc: "[] 01"
keywords: ""
categories: [Accounting]
tags: []
icon:
> 1. 100 1 1 $10 ( $15 ) 10,000 |
function injectScript(file, node) {
var th = document.<API key>(node)[0];
var s = document.createElement('script');
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', file);
th.appendChild(s);
}
function injectStyle(file, node) {
var th = document.<API key>(node)[0];
var s = do... |
<?php
namespace felpado\tests;
use felpado as f;
class requiredTest extends felpadoTestCase
{
public function <API key>()
{
$paramRule = f\required();
$this->assertInstanceOf('felpado\required', $paramRule);
}
public function <API key>()
{
$paramRule = f\required(array('v' =>... |
class CommentPolicy < ApplicationPolicy
attr_reader :user, :comment
def initialize(user, comment)
@user = user
@comment = comment
end
def index?
true
end
def show?
comment.project.user_id == @user.id
end
def create?
show?
end
def new?
create?
end
def update?
show?
e... |
#!/usr/bin/perl -w
# refactor_csp.pl
# Refactor for CSP v2
# HTML
# HTML<script>js
# Chrome Dev Editor
# index.html -> index.html.pre_csp ()
# index.html
# index.html.0.js, index.html.1.js, ...
use strict;
use warnings;
use utf8;
use File::Copy;
my $dir = '.';
if(scalar @ARGV == 1) {
$d... |
// Get User's Coordinate from their Browser
window.onload = function() {
// HTML5/W3C Geolocation
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(UserLocation);
}
// Default to Washington, DC
else
NearestCity(38.8951, -77.0367);
}
// Callback function for asynchronous call to HTM... |
// UIButton+CZAddition.h
#import <UIKit/UIKit.h>
@interface UIButton (CZAddition)
/**
@param title
@param fontSize
@param normalColor
@param highlightedColor
@return UIButton
*/
+ (instancetype __nonnull)cz_textButton:(NSString * __nullable)title fontSize:(CGFloat)fontSize normalColor:(UIColor * __nullable)norma... |
using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
namespace ProCultura.Web.Api.Areas.HelpPage
{
public static class <API key>
{
<summary>
Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead of "GetValues/{id}?na... |
<!-- Begin .header -->
<header role="banner" class="site-header--light">
<div class="container">
<div class="site-logo">
<a class="logo" href="/"><img src="../../images/ncc-logo.png" class="no-scale" alt="Northamptonshire County Council"></a>
</div>
</div>
</header>
<!-- End .header --> |
import os
import re
import subprocess
from six.moves.urllib.parse import urlparse, quote_plus
from subprocess import CalledProcessError, PIPE, STDOUT
from conans.client.tools.env import no_op, environment_append
from conans.client.tools.files import chdir
from conans.errors import ConanException
from conans.util.files ... |
#ifndef NET_CAFFE_H
#define NET_CAFFE_H
#include "net_generator.h"
#include "caffe/caffe.hpp"
namespace dd
{
using caffe::Caffe;
using caffe::Net;
using caffe::Blob;
using caffe::Datum;
class CaffeCommon
{
public:
static caffe::LayerParameter* add_layer(caffe::NetParameter *net_param,
... |
Banner.prototype.btn = function() {
var s = this,
o = this.option,
$banner = this.$banner,
$btn;
for (var i = 0, item = ''; i < s.len; i++) {
item += '<a></a>';
}
$banner.append($('<div class="tb-btn"/>').append(item));
s.$btn = $bt... |
# ded
Simple text editor that works with 9P server.
# Why?
* Curiosity and pratice!.
* Scratching my own itches.
* Using Go to create graphical user interfaces with [gxui](https://github.com/google/gxui)
Sometimes it's rellay hard for programs interact with your text editor.
Ded solves that problem by exposing all edit... |
# -*- coding: utf-8 -*-
require 'helper'
class <API key> < Minitest::Test
def setup
setup_dir_var
end
def teardown
@tempfile.close(true)
end
def <API key>
@xlsx = 'excel2003_style04.xlsx'
workbook = WriteXLSX.new(@io, :excel2003_style => true)
worksheet = workbook.add_worksheet
wo... |
'use strict';
var msb = require('msb');
var app = exports;
app.config = require('./lib/config');
app.start = function(cb) {
if (app.config.<API key>) msb.channelMonitorAgent.start();
var RouterWrapper = require('./lib/routerWrapper').RouterWrapper;
app.router = new RouterWrapper();
app.router.load(app.config.ro... |
{{<layouts/account-home}}
{{$account-nav}}
{{>account/user/commercial/nav}}
{{/account-nav}}
{{$h1}}Account home{{/h1}}
{{$column-1}}
<ul>
<li><a href="/account/user/commercial">Account overview</a></li>
<li><a href="/account/user/commercial/crossing-history">Cross... |
<html>
<head>
<title>User agent detail - SAMSUNG-SGH-U800</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="container">
<di... |
$(document).ready(function () {
console.log("ready!");
$("#subs").click(function () {
var name = $('#name').val();
var email = $('#email').val();
if (name != '' && email != '') {
$('#subs_err').html('');
var subs = {name: name, email: email};
var url =... |
module Zuora
module RESTOperations
module All
def all(params={})
Zuora.request(:get, base_resource_url, params)
end
end
end
end |
import
import pycmds.project.classes as pc
import pycmds.hardware.hardware as hw
import pathlib
import appdirs
import toml
import yaqc
driver
class Driver(hw.Driver):
def __init__(self, *args, **kwargs):
self._yaqd_port = kwargs.pop("yaqd_port")
super().__init__(*args, **kwargs)
self.grating... |
/* global createNS */
/* exported filtersFactory */
var filtersFactory = (function () {
var ob = {};
ob.createFilter = createFilter;
ob.<API key> = <API key>;
function createFilter(filId, skipCoordinates) {
var fil = createNS('filter');
fil.setAttribute('id', filId);
if (skipCoordinates !== true) {
... |
u"""
Fixer for Python 3 function parameter syntax
This fixer is rather sensitive to incorrect py3k syntax.
"""
# Note: "relevant" parameters are parameters following the first STAR in the list.
from lib2to3 import fixer_base
from lib2to3.fixer_util import token, String, Newline, Comma, Name
from libfuturize.fixer_util ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.label.xml
Template File: sources-sinks-09.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand(), which may be zero
* GoodSource: Set data to a small, non-zero number (two)
* S... |
'use strict';
angular.module('myApp.post', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/new-post', {
templateUrl: 'posts/new-post.html',
controller: 'PostCtrl'
});
}])
.controller('PostCtrl', ['$scope', '$firebaseArray', 'CommonProp', '$location', func... |
package org.blockartistry.world;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.EnumSkyBlock;
import net... |
// console_log.cpp
#include "monik/log/console_log.h"
#include "monik/log/log_thread.h"
namespace monik { namespace log {
class console_log::data_type : public log_thread {
public:
explicit data_type(buf_size_t);
private:
static void write(const <API key> & s) {
std::cout << s.m_message << std::endl;
... |
<?php
class <API key> extends Varien_Object
{
public function getContent()
{
$elements = json_decode($this->getElements(), true);
$content = array();
foreach ($elements as $element) {
foreach ($element as $value) {
if (isset($value['value'])) {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace WebApp.Controllers
{
public class <API key> : Controller
{
// GET: /Developer/
public ActionResult Index()
{
return View();
}
}
} |
package org.sdmlib.openbank.util;
import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.openbank.FeeValue;
import org.sdmlib.openbank.TransactionTypeEnum;
import org.sdmlib.models.pattern.AttributeConstraint;
import org.sdmlib.models.pattern.Pattern;
import java.math.BigInteger;
import org.sdmlib.openbank.u... |
var WALKING_SPEED_RATIO = 30; // how many times faster than walking speed are you?
var FIRST_PERSON = false;
var <API key> = function() {camera.position.set(-168, 25, -17);}
var <API key> = false;
function endPathAnimation() {
<API key> = false;
}
function nextCameraTween(path, index, sf, ef) {
var start = conv... |
package coreunix
import (
"bytes"
"context"
"io"
"io/ioutil"
"math/rand"
"os"
"testing"
"time"
"github.com/ipfs/go-ipfs/blocks/blockstore"
"github.com/ipfs/go-ipfs/blockservice"
"github.com/ipfs/go-ipfs/commands/files"
"github.com/ipfs/go-ipfs/core"
dag "github.com/ip... |
using Auth0.AuthenticationApi.Models;
using Auth0.ManagementApi;
using Auth0.ManagementApi.Models;
using Auth0.Tests.Shared;
using FluentAssertions;
using System;
using System.Threading.Tasks;
using Auth0.AuthenticationApi.IntegrationTests.Testing;
using Auth0.IntegrationTests.Shared.CleanUp;
using Xunit;
namespace Aut... |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GeneralLevel : Level
{
public float <API key> = 2;
private bool <API key>;
private IEnumerator CompleteLevel()
{
yield return new WaitForSeconds(this.<API key>);
... |
<?php
/* AcmeDemoBundle:Secured:helloadmin.html.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->blocks = array(
'title' => array($this, 'block_title'),
'content' => array($this, 'block_... |
package tw.showang.<API key>.example.api;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.<API key>;
import tw.showang.<API key>.example.api.base.ApiTestBase;
import tw.showang.<API key>.example.api.base.ExampleApiBase.ApiErrorListener;
import tw.showang.<API key>.example.api.base.Example... |
<?php
/* <API key>::Configurator/final.html.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("<API key>::Configurator/layout.html.twig");
$this->blocks = array(
... |
// Symbols chart
$(window).on("load", function(){
function generate(offset, amplitude) {
var res = [];
var start = 0, end = 10;
for (var i = 0; i <= 50; ++i) {
var x = start + i / 50 * (end - start);
res.push([x, amplitude * Math.sin(x + offset)]);
}
r... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.OpenIdConnect;
using Microsoft.Owin.Security;
namespace SQLDashboard.Controllers
{
public class AccountController : Controller
{
... |
// T4 code generation is enabled for model 'C:\Users\maor gigi\documents\visual studio 2013\Projects\MVc_Assignment2\MVc_Assignment2\dataStore.edmx'.
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// property to 'Legacy ObjectContext'. This property is available in the ... |
MIME-Version: 1.0
Server: CERN/3.0
Date: Sunday, 01-Dec-96 20:33:22 GMT
Content-Type: text/html
Content-Length: 531
Last-Modified: Thursday, 07-Dec-95 20:14:41 GMT
<html>
<head>
<title> My Publications </title>
</head>
<body>
<H1> Asif Ghias </H1>
<H4>Publications</H4>
<ul>
<li> Asif Ghias, Jonathan Logan, David Chambe... |
// <API key>.h
// UIRPGController
#import <UIKit/UIKit.h>
@interface <API key> : <API key>
@end |
class User < ActiveRecord::Base
tango_user
simple_roles
devise :<API key>, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:<API key>, :confirmable, :lockable,
:timeoutable
# Setup accessible (or protected) attributes for your model
attr_accessible :name, :emai... |
def getCount(str)
str.tr("^aeiou", "").size
end |
using System;
using System.IO;
using System.Collections.Generic;
using UnityEngine;
namespace KspCraftOrganizer
{
public class SettingsService
{
private static readonly float <API key> = 30;
private float <API key>;
private IKspAl ksp = IKspAlProvider.instance;
private FileLocati... |
/**
* Heldesks' code (Zendesk, etc..)
*/
App.helpdesk = {
init: function () {
// fetch template content from the extension
if (window.location.hostname.indexOf('zendesk.com') !== -1) {
App.helpdesk.zendesk.init();
}
},
zendesk: {
init: function () {
... |
#include "tiledb.h"
#include <cstdio>
#include <cstdlib>
int main(int argc, char** argv) {
// Sanity check
if(argc != 2) {
fprintf(stderr, "Usage: ./tiledb_list parent_dir\n");
return -1;
}
// Initialize context with the default configuration parameters
TileDB_CTX* tiledb_ctx;
tiledb_ctx_init(&tiled... |
(function (global) {
"use strict";
var colorShaderVS = {
name: "color-shader-vs",
type: "x-shader/x-vertex",
body:
"precision highp float;" +
"uniform mat4 uProjectionMatrix;" +
"uniform mat4 uModelViewMatrix;" +
"uniform vec4 uColor;" +
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.