answer stringlengths 15 1.25M |
|---|
#ifndef <API key>
#define <API key>
#include "fsl_common.h"
/*
* @addtogroup debug_console
* @{
*/
/*! @brief Definition to select sdk or toolchain printf, scanf. */
#ifndef SDK_DEBUGCONSOLE
#define SDK_DEBUGCONSOLE 1U
#endif
/*! @brief Definition to printf float number. */
#ifndef PRINTF_FLOAT_ENABLE
#define PRINTF... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Latihan extends CI_Controller{
public function __construct(){
parent::__construct();
//Codeigniter : Write Less Do More
}
function index(){
$this->load->view('mhs/latihan');
// $this->load->view('sample');
}
}
?> |
package tabular
import (
"bufio"
"bytes"
"io"
"testing"
"github.com/stretchr/testify/suite"
)
var (
testHeaders = []struct {
Key string
Title string
}{
{
Key: "name",
Title: "First name",
},
{
Key: "surname",
... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Secur... |
<section data-ng-controller="ArticlesController" data-ng-init="findOne()">
<div class="page-header">
<h1>Edit Post</h1>
</div>
<div class="col-md-12">
<form name="articleForm" class="form-horizontal" data-ng-submit="update()" novalidate>
<fieldset>
<div class="form-group">
<label c... |
#<API key>
[
We emphasis on keywords questions like "Barack Obama birth date?"
You can find some examples of this transformation is the f... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
-- a simple telnet server
-- https://github.com/nodemcu/nodemcu-firmware/blob/master/lua_examples/telnet.lua
tport = tport or 2323
_telnet_srv = net.createServer(net.TCP, 180)
print("Telnet port: " .. (tport))
_telnet_srv:listen(tport, function(socket)
local fifo = {}
local fifo_drained = true
local functio... |
"use strict";
var EventEmitter = require ('events');
module.exports = new EventEmitter (); |
'use strict'
const tap = require('tap')
const ActiveDirectory = require('../index')
const config = require('./config')
const serverFactory = require('./mockServer')
const settings = require('./settings').<API key>
tap.beforeEach((done, t) => {
serverFactory(function (err, server) {
if (err) return done(err)
c... |
package com.github.lg198.codefray.jfx;
import com.github.lg198.codefray.api.game.Team;
import com.github.lg198.codefray.game.GameEndReason;
import com.github.lg198.codefray.game.GameStatistics;
import com.github.lg198.codefray.util.TimeFormatter;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.... |
<?php
namespace Flatmate\UtilitiesBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Consumption
*
* @ORM\Table()
* @ORM\Entity
* @ORM\<API key>()
*/
class Consumption
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
... |
<!--<?php
# MetInfo Enterprise Content Management System
require_once template('head');
echo <<<EOT
</head>
<body>
<!
EOT;
$title="<a href='index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>";
$class1=$class1?$class1:($id?$id:0);
$title=title($class1,$anyid,$lang)?title($class1,$any... |
<?
include('dbconnect.php');
$headerOptions = array(
"title" => "Edit Stats"
);
require_once "header.php";
?>
<?php
$tn = $_GET['tn'];
$played = $_GET['played'];
$wins = $_GET['wins'];
$losses = $_GET['losses'];
$draws = $_GET['draws'];
$ncs = $_GET['ncs'];
... |
#include "ErrorCodes.h"
std::error_code make_error_code(SimBlockErrc ec)
{
return {static_cast<int>(ec), simblockErrCategory};
} |
<?php
/*
Safe sample
input : backticks interpretation, reading the file /tmp/tainted.txt
sanitize : cast in float
construction : use of sprintf via a %d with simple quote
*/
$tainted = `cat /tmp/tainted.txt`;
$tainted = (float) $tainted ;
$var = include(sprintf("pages/'%d'.php", $tainted));
?> |
<div class="ui container" id="event">
<div class="ui stackable one column grid">
<div class="column">
<div class="ui card">
<div class="content">
<div class="header">{{ vm.event.attributes.title }}</div>
</div><!-- header -->
<div class="content">
<h3>Organization... |
<?php
namespace Oriancci\Query;
class Insert extends Built
{
public function buildQuery()
{
// INSERT INTO
$sql = 'INSERT INTO ';
$sql .= $this->buildTableName(INSERT_INTO);
// SET
$sql .= ' SET ';
$sql .= $this->buildSet(SET);
return $sql;
}
} |
package pl.yourempire.api.event;
import java.lang.reflect.<API key>;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class Event
{
private static Map<Class<Event>, ArrayList<ListenerCaller>> listenerMap = new HashMap<>();
public static void callEvent(E... |
tinyMCE.init({
mode : 'textareas',
theme : "advanced",
<API key> : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
<API key> : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullis... |
package org.fluentjava.iwant.plannerapi;
public interface ResourcePool {
boolean hasFreeResources();
Resource acquire();
void release(Resource resource);
} |
#ifndef <API key>
#define <API key> 1
#include <mi/VolumeData.hpp>
class EndocastExtractor
{
private:
public:
EndocastExtractor ( void ) ;
~EndocastExtractor ( void ) ;
bool extract ( mi::VolumeData<float>& distData, mi::VolumeData<int>& labelData, const double scale ) ;
private:
bool in... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qcert: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
/* eslint-env node */
'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
'ember-cli-babel': {
includePolyfill: true
}
});
app.import('node_modules/highlightjs/styles/monokai-sublime.css');
/*
... |
import { SplashEffect } from "./effect.js";
import { Linear } from "../interpolation.js";
export class <API key> extends SplashEffect {
constructor(element, options) {
super(element);
options = options || {};
this.x = options.x || 0;
this.y = options.y || 0;
// Can be whateve... |
/* RTL except Hebrew (see below): Tahoma as the first font; */
body.rtl,
body.rtl .press-this a.wp-switch-editor {
font-family: Tahoma, Arial, sans-serif;
}
/* Arial is best for RTL headings. */
.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
font-family: Arial, sans-serif;
font-weight: 600;
}
/* he_... |
<html><img border=0 src=716-53-0.txt alt=716-53-0.txt></img><body>
"x"
"1" "KAZIUS, J, MCGUIRE, R AND BURSI, R. DERIVATION AND VALIDATION OF TOXICOPHORES FOR MUTAGENICITY PREDICTION. J. MED. CHEM. 48: 312-320, 2005"
</body></html> |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// copies or substantial p... |
namespace Sorting
{
using System;
using System.Collections.Generic;
using Constants;
<summary>
Define class for selection sort algorithm and its implementation
</summary>
<typeparam name="T">Type of the elements to be sorted</typeparam>
<see cref="https://en.wikipedia.org/wiki/Selection_... |
# encoding: utf-8
module Axiom
class Relation
module Operation
# A mixin for Binary relations
module Binary
include Axiom::Operation::Binary
# Hook called when module is included
# @param [Module] descendant
# the module or class including Binary
# @return [un... |
<?php
/**
* @file
*
* Contains \Drupal\Tests\test_example\Unit\<API key>.
*/
namespace Drupal\Tests\test_example\Functional;
use Drupal\simpletest\BrowserTestBase;
/**
* Ensure that the simpletest_example content type provided functions properly.
*
* The <API key> is a functional test case, meaning that it
* ac... |
package com.myconnector.client.domain;
import java.util.List;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.myconnector.client.domain.interfaces.ITodoContext;
import com.myconnector.client.domain.interfaces.ITodoItem;
import com.myconnector.client.domain.interfaces.ITodoList;
public class TodoListCli... |
const File = require('./File');
exports.FileDetail = class extends File.File {
constructor(opts) {
opts.className = 'file detail';
super(opts);
}
initDOM(parentNode) {
let file = this._file;
this.create(
parentNode,
{
id: this.se... |
import { Position } from '../core/position';
import { Range } from '../core/range';
import { InlineDecoration, ViewModelDecoration } from './viewModel';
import { <API key> } from '../config/editorOptions';
var <API key> = /** @class */ (function () {
function <API key>(editorId, model, configuration, linesCollectio... |
<?php namespace Code200\ImageKing\Classes;
use Cms\Helpers\File;
use Code200\ImageKing\Classes\Exceptions\<API key>;
use Code200\Imageking\models\Settings;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\URL;
class ImageService
{
/**
* @var string
*/
private $html;
/**
* @v... |
wedge = 14
background = {
epsilon = 0.997179,
q = 0.619347
}
streams = {
{
epsilon = -1.297424,
mu = 190.545111,
r = 13.878006,
theta = 0.198390,
phi = 3.139994,
sigma = 3.743833
},
{
epsilon = -1.008419,
mu = 199.646461,
r... |
const _transform = require('lodash/transform');
function MatchTransformer(match) {
if( !(this instanceof MatchTransformer) ) {
return this.transform(new MatchTransformer(match));
}
if( typeof match === 'string' ) {
// Escape string
match = match.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>huffman: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
body {
margin:0;
padding:0;
font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
-<API key>:antialiased;
font-size:11px;
}
a {
color:#111;
}
a:hover {
text-decoration:none;
}
header {
background:url(header.jpg) center center #111;
text-align:center;
color:#fff;
positio... |
import ProgressBar from "progress";
import padEnd from "lodash/padEnd";
class <API key> {
constructor() {
this.bar = null;
}
init(total) {
if (this.bar) {
this.terminate();
}
// Intentionally a noop because node-progress doesn't work well in non-TTY
// environments
if (!process.stdou... |
var commons = require('../commons')
var frisby = require('frisby');
var FormData = require('form-data');
frisby.create('Get file')
.get(commons.host+'/file/2134354/zgzhrthztrh/sgeh' )
.after(function(err, res, body) {
expect(res.request.href.match(/errcode=404/)).not.toBeNull()
})
.toss() |
<!doctype html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
<!-- Meta, title, CSS, favicons, etc. -... |
<?php
namespace Frontend\PublicBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
class <API key> extends Extension
{
/**
... |
package command
import (
"fmt"
"os"
"path/filepath"
"time"
"github.com/kemokemo/gckdir/lib"
"github.com/skratchdot/open-golang/open"
"github.com/urfave/cli"
)
var (
// UsageVerify is Usage of verify subcommand for cli
UsageVerify = "Verifies the structure and each hash value of files... |
search_result['2189']=["<API key>--.html","<API key> Attached Properties",""]; |
<reference path="Transform3D.ts" />
namespace zen {
export class GameObject extends Transform3D {
public name:string = "GameObject";
public tag:string = "";
public layer:string = "";
private _guid:string = zen.guid.create();
public get guid() {
return this._guid;
... |
$(document).ready(function () {
startAnimation();
});
if (!window.<API key>) {
window.<API key> = (window.<API key> || window.<API key> || window.<API key> || window.<API key> || function (callback) {
return window.setTimeout(callback, 1000 / 60);
});
}
(function ($, window) {
function Constellati... |
<?php get_template_part('templates/front', 'page'); ?> |
/*jshint camelcase: false */
(function(window, module, undefined) {
'use strict';
// lifted from Underscore then bastardized
var _flatten = function(input, output) {
for (var i = 0, length = input.length; i < length; i++) {
var value = input[i];
if (value.type === 'div') {
_flatten(value.c... |
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
// watch for changes and trigger compass, jshint, uglify and livereload
watch: {
js: {
files: ['jquery.accrue.js'],
... |
require "lita"
Lita.load_locales Dir[File.expand_path(
File.join("..", "..", "locales", "*.yml"), __FILE__
)]
require "lita/handlers/urban" |
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.IO;
using System.Text;
public class KinectManager : MonoBehaviour
{
public enum Smoothing : int { None, Default, Medium, Aggressive }
// Public Bool to determine how ma... |
<?php
namespace Lam\MdlBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Lam\MdlBundle\Entity\<API key>
* @ORM\Table()
* @ORM\Entity(repositoryClass="Lam\MdlBundle\Entity\<API key>")
*/
class <API key>
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer", nullable=false)
* ... |
package com.hackathon.hackathon2014.activity;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import and... |
require_relative 'shell/version'
require_relative 'shell/loader'
require_relative 'shell/alfrc'
module Alf
module Shell
# This is the default configuration to be forked from
DEFAULT_CONFIG = Alfrc.new
# Command factory
def self.Command(*args)
Quickl::Command(*args){|builder|
builder.comm... |
package net.tqft.iterables.interfaces;
public interface Transformer<S, T> {
public abstract T evaluate(S s);
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-analysis: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... |
require "capybarel/dsl/elements"
require "capybarel/dsl/javascript"
require "capybarel/dsl/from_yaml"
module Capybarel
module DSL
module All
include Capybarel::DSL::Elements
include Capybarel::DSL::JavaScript
include Capybarel::DSL::FromYaml
end
end
end |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import update from 'immutability-helper';
class ListItemBullet extends Component {
render() {
let cssClasses = `listbullet`;
const bulletStyle = {
border: `5px solid ${this.props.color}`,
backgroundColor: ... |
require 'spec_helper'
describe RubygemsController do
before do
@g = Factory.create :rubygem
@v = Factory.create :version, rubygem: @g
end
it 'should #show successfully' do
tr = Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id
get :show, id: @g.name
response.should be_successfu... |
using System;
using System.IO;
namespace Pulse.Core
{
<summary>
НЕ потокобезопасный!
</summary>
public sealed class StreamSegment : Stream
{
private long _offset, _length;
public readonly Stream BaseStream;
public StreamSegment(Stream stream, long offset, long length, FileAcc... |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: '',
didInsertElement: function() {
this.startPoppover();
},
willDestroyElement: function() {
this.dismissPoppover();
},
startPoppover: function() {
var options = this.getPoppoverOptions();
Ember.$(function() {
... |
#ifndef _RELLIK_H_
#define _RELLIK_H_
#include "gametime.h"
typedef struct rellik Rellik;
Rellik *rellik_Create();
void rellik_Destroy(Rellik *self);
void rellik_Initialize(Rellik *self);
void rellik_Update(Rellik *self, GameTime gameTime);
void rellik_Render(Rellik *self);
#endif |
header {
width: 100%;
color: #fff;
text-align: center;
}
.container {
width: 80%;
margin: 0 auto;
}
.brand {
background: linear-gradient(-225deg, #2c5499, #3e97e6);
padding: 30px 0;
}
.brand img {
cursor: pointer;
}
h1 {
font-size: 3em;
font-weight: normal;
line-height: 60px;
cursor: pointer;
... |
FROM debian:8.2
MAINTAINER Stuart Ellis <stuart@stuartellis.eu>
ENV REFRESHED_AT 2015-09-09
ENV PYTHON_VERSION 3.4.2-2
RUN apt-get update && \
apt-get install -qy python3=$PYTHON_VERSION && \ |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class TagsTableSeeder extends Seeder
{
/**
* Run the database seeding.
*/
public function run()
{
DB::table('tags')->truncate();
DB::table('tags')->insert([
[
'name' => 'Qnique',
... |
using System;
using System.Diagnostics;
using Microsoft.CodeAnalysis;
using SonarAnalyzer.Helpers;
using SonarLint.VisualStudio.Integration.Vsix.Suppression;
namespace SonarLint.VisualStudio.Integration.Vsix
{
// This workflow affects only the VSIX Analyzers
internal class <API key> : <API key>
{
pr... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* SoundcloudSearch Schema
*/
var <API key> = new Schema({
// SoundcloudSearch model fields
search: {
type: String,
required: 'There must be a search term',
trim: true
... |
layout: home
title: All Posts
description: "An archive of posts."
comments: false
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<article>
<h2 id="{{ this_year }}-ref... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="lens.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>... |
{% extends 'base.html' %}
{% block body %}
<div>
rest: {{ restaurant.name }}
</div>
{% endblock %} |
import random
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
_largesize = 300
def __init__(self, head):
self.head = head
self.lsize = 0
while head.next:
head... |
package db
import (
"io/ioutil"
"os"
. "fmt"
"strings"
. "github.com/yak-labs/chirp-lang"
"github.com/yak-labs/smilax-web/table/levi"
)
/*
table get Site Table Row -> []Value
table set Site Table Row []Value
table match Site Table RowPattern ValuePattern -> []{row value}
*/
var Lev =... |
package com.github.wovnio.wovnjava;
import java.util.HashMap;
import javax.servlet.FilterConfig;
import javax.servlet.http.HttpServletRequest;
import org.easymock.EasyMock;
import java.net.URL;
import java.net.<API key>;
import junit.framework.TestCase;
public class HeadersTest extends TestCase {
private Lang japan... |
package eu.cyfronoid.core.configuration.evaluator;
import java.util.ArrayDeque;
public class Stack extends ArrayDeque<Double> {
private static final long serialVersionUID = 1L;
@Override
public void push(Double v) {
super.push(v);
}
@Override
public Double pop() {
Double v = supe... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import os
from misura.canon import option
from misura.canon.option import get_typed_cols, get_insert_cmd, base_col_def, print_tree
import sqlite3
from misura.canon.tests import testdir
db = testdir + 'storage/tmpdb'
c1 = testdir + 'storage/Conf.csv'
def go(t):
... |
/* Taken from the popular Visual Studio Vibrant Ink Schema */
.cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
.cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
.cm-s-vibrant-ink .<API ... |
// * cli upload
// * uploads image by providing a link by running:
var cli_upload = function () {}
// vendor dependencies
var Promise = require('bluebird')
// local dependencies
var logger = require(ENDURO_FOLDER + '/libs/logger')
var file_uploader = require(ENDURO_FOLDER + '/libs/admin_utilities/file_uploader')... |
import React from "react"
import Img from "gatsby-image"
import { StaticQuery, graphql } from "gatsby"
import html5 from "../images/html5.svg"
import js from "../images/javascript.svg"
import jQuery from "../images/jquery.svg"
import php from "../images/php.svg"
import python from "../images/python.svg"
import css3 fro... |
var debug = require('debug')('harmonyhubjs:client:login:hub')
var Client = require('node-xmpp-client')
var Q = require('q')
var util = require('../util')
/** PrivateFunction: getIdentity
* Logs in to a Harmony hub as a guest and uses the userAuthToken from logitech's
* web service to retrieve an identity token.
*
*... |
from players.player import player
from auxiliar.aux_plot import *
import random
from collections import deque
import sys
sys.path.append('..')
import tensorblock as tb
import numpy as np
import tensorflow as tf
# PLAYER REINFORCE RNN
class <API key>(player):
# __INIT__
def __init__(self):
player.__init_... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>huffman: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
<html>
<head>
<title>User agent detail - Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0</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>
... |
<!DOCTYPE html>
<html>
<head>
<title>MyFonts Webfonts Demo for iOS devices</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="all">
h2 {
font-weight:normal;
}
@font-face {
font-family:"ProximaNova-Bold";
src:url("2FE569_0.svg#... |
Namespace Media
''' <summary></summary>
''' <autogenerated>Generated from a T4 template. Modifications will be lost, if applicable use a partial class instead.</autogenerated>
''' <generator-date>17/02/2014 16:03:03</generator-date>
''' <generator-functions>1</generator-functions>
''' <generator-sou... |
package org.spongepowered.api.text;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.collect.ImmutableList;
import org.spongepowered.api.scoreboard.Score;
import org.spongepowered.api.text.format.TextColor;
import org.spongepowered.api.text.format.TextColors;
import org.spongepo... |
module.exports = require('regenerate')(0x261D, 0x26F9, 0x1F385, 0x1F3C7, 0x1F46E, 0x1F47C, 0x1F4AA, 0x1F57A, 0x1F590, 0x1F6A3, 0x1F6C0, 0x1F6CC, 0x1F926).addRange(0x270A, 0x270D).addRange(0x1F3C2, 0x1F3C4).addRange(0x1F3CA, 0x1F3CC).addRange(0x1F442, 0x1F443).addRange(0x1F446, 0x1F450).addRange(0x1F466, 0x1F469).addRan... |
# VivaTalk
Oh god it's time.
run this to push to GH pages:
rm output/images; cp -r images output; ghp-import -n output -p; rm -r output/images; ln -s ../images output/images |
from SBaaS_base.postgresql_orm_base import *
class <API key>(Base):
__tablename__ = '<API key>'
id = Column(Integer, Sequence('<API key>'), primary_key=True)
analysis_id = Column(String(500))
experiment_id = Column(String(50))
<API key> = Column(String(500)) # equivalent to <API key>
sample_name... |
require 'faraday'
# @private
module Faraday
module Disqussion
# @private
class RaiseHttp4xx < ::Faraday::Response::Middleware
def on_complete(env)
case env[:status].to_i
when 400
raise ::Disqussion::BadRequest.new(error_message(env), env[:response_headers])
when 401
... |
#
CuSha is a CUDA-based vertex-centric graph processing framework that uses G-Shards and Concatenated Windows (CW) representations to store graphs inside the GPU global memory. G-Shards and CW consume more space compared to Compressed Sparse... |
package jp.co.future.uroborosql.parameter.mapper;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.Timestamp;
import java.text.ParseException;
impor... |
<?php namespace Ejimba\Pesapal\OAuth;
class OAuthRequest {
private $parameters;
private $http_method;
private $http_url;
// for debug purposes
public $base_string;
public static $version = '1.0';
public static $POST_INPUT = 'php://input';
function __construct($http_method, $http_url, $pa... |
#!/bin/sh
# Capture the current version.
VERSION=`cat ./VERSION`
# Currently using YUI Compressor for minification.
YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar
JAVA=`which java`
if [ "$JAVA" == "" ]; then echo "Not found: java" ; exit 1 ; fi
# Output tmp version file (use comment style that works for... |
<template name="home">
<div id="ww">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-offset-2 centered">
{{> me}}
</div><!-- /col-lg-8 -->
</div><!-- /row -->
</div> <!-- /container -->
</div>
{{> work}}
</template> |
/**
* Scale Interpolation Function.
*
* @param {number} a start scale
* @param {number} b end scale
* @param {number} v progress
* @returns {string} the interpolated scale
*/
export default function scale(a, b, v) {
// <API key> no-bitwise
return `scale(${((a + (b - a) * v) * 1000 >> 0) / 1000})`;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.