answer stringlengths 15 1.25M |
|---|
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body>
<!-- Main navigation -->
<?php
do_action( 'omega_before_header' );
?>
<!-- Featured post -->
<div c... |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extensio... |
package net.dudehook.cliche2.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author ASG
*/
public final class ArrayHashMultiMap<K, V> implements MultiMap<K, V>
{
private Map<K, List<V>> listMap;
... |
const fs = require('fs')
const { normalize, resolve, join, sep } = require('path')
function getAppDir () {
let dir = process.cwd()
while (dir.length && dir[dir.length - 1] !== sep) {
if (fs.existsSync(join(dir, 'quasar.conf.js'))) {
return dir
}
dir = normalize(join(dir, '..'))
}
const { fatal... |
<?php
require_once('config.php');
$session->requireLoggedIn();
require('design_head.php');
$text = '';
if (!empty($_POST['text'])) {
$text = $_POST['text'];
guessLanguage($text);
}
?>
<h2>Guess language</h2>
Enter some text and see if the program can guess the language that the text were written in.
<form metho... |
module.exports = {
testClient: 'http://localhost:8089/dist/',
mochaTimeout: 10000,
testLayerIds: [0],
seleniumTimeouts: {
script: 5000,
implicit: 1000,
pageLoad: 5000
}
} |
'use strict';
import Maths from './maths.js'
import FSM from './fsm.js'
import { Animation, Interpolation } from './animation.js'
export { Maths, FSM, Interpolation, Animation } |
namespace Free.FileFormats.VRML.Interfaces
{
public interface <API key>
{
}
} |
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substantial... |
// Runs the wiki on port 80
var server = require('./server');
server.run(80); |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#pragma once
#include "windows.h"
#include "targetver.h"
#include <string>
// Headers for CppUnitTest
//#include "CppUnitTest.h"
// TODO: reference additional head... |
from datetime import datetime
from zipfile import ZipFile
from io import BytesIO
from lxml import etree
from docxgen import *
from docxgen import nsmap
from . import check_tag
def test_init():
doc = Document()
check_tag(doc.doc, ['document', 'body'])
check_tag(doc.body, ['body'])
def test_save():
doc = ... |
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.clients.commerce.customer.accounts;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.... |
using System;
using System.Linq;
namespace CapnProto.Schema.Parser
{
class CapnpVisitor
{
protected Boolean mEnableNestedType = true;
protected CapnpModule mActiveModule;
protected void EnableNestedType()
{
mEnableNestedType = true;
}
protected void DisableNestedType()... |
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
require 'rake'
require 'rake/tasklib'
require '<API key>/redmine_helper'
require '<API key>/general_task'
require '<API key>/environment_task'
require '<API key>/database_task'
requi... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http:
<html xmlns="http:
<head>
<title>Nitrogen 2.x Documentation</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="title" content="Nitrogen 2.x Documentation"/... |
.dividend-wrap {
display: none;
}
.dividend-wrap.active {
display: flex;
width: 100%;
}
.overflow.dividendModal > form input::-<API key> { /* Chrome/Opera/Safari */
opacity: .8;
color: #fff;
font-size: 14px;
}
.overflow.dividendModal > form input::-moz-placeholder { /* Firefox 19+ */
opacity: .8;
color:... |
package pipe.actions.gui;
import pipe.controllers.PetriNetController;
import pipe.controllers.PlaceController;
import uk.ac.imperial.pipe.models.petrinet.Connectable;
import uk.ac.imperial.pipe.models.petrinet.Place;
import java.awt.event.MouseEvent;
import java.util.Map;
/**
* Abstract action responsible for adding a... |
layout: page
title: Adding Atom to Your Dotfiles
Keeping all your dotfiles and system configurations together, under version control, and stored somewhere accessible (say on GitHub) is a good practice. It allows you to easily access and install everything from bash/zsh settings to environment variables to git aliases (... |
var Type = require("@kaoscript/runtime").Type;
module.exports = function(expect) {
class Shape {
constructor() {
this.__ks_init();
this.__ks_cons(arguments);
}
__ks_init_0() {
this._color = "";
}
__ks_init() {
Shape.prototype.__... |
module TasksFileMutations
AddFilesToTask = GraphQL::Relay::Mutation.define do
name 'AddFilesToTask'
input_field :id, !types.ID
return_field :task, TaskType
resolve -> (_root, inputs, ctx) {
task = <API key>.<API key>(inputs['id'], ctx['ability'])
files = [ctx[:file]].flatten.reject{ |f| f.... |
package uk.co.nevarneyok.entities.product;
import com.google.gson.annotations.SerializedName;
public class ProductSize {
private long id;
@SerializedName("remote_id")
private long remoteId;
private String value;
public ProductSize() {
}
public ProductSize(long id, long remoteId, String value... |
# -*- coding: utf-8 -*-
"""
json
"""
import requests
import json
import os
from word.models import (Word, EnDefinition, CnDefinition, Audio, Pronunciation, Example, Note)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print(BASE_DIR)
def process_data(data):
data = data['data']['reviews']... |
layout: post
title: All Roads Lead to Shenzhen (for Electronics)
excerpt: "An account of my first visit to Shenzhen, China - the modern day Mecca of electronics manufacturing."
tags: [electronics, Shenzhen, China]
categories: [Electronics]
comments: true
modified: 2015-01-17
thumbnail: images/2016/01/shenzhen-bldg.jpg
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>wCMF 4.1: Member List</title>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A MDSD framework for building reliable, maintainable an... |
.icons > [class^="icon-"] {
position: relative;
text-align: left;
font-size: 32px;
}
.icons > [class^="icon-"] > span {
display: none;
padding: 20px 23px 18px 23px;
background: #00101c;
width: auto;
color: #fff;
font-family: 'Roboto', Arial, sans-serif;
font-size: 16px;
}
.icons > [class^="icon-"]:h... |
<?php namespace System\Classes;
use App;
use Url;
use File;
use Lang;
use Event;
use Cache;
use Route;
use Config;
use Request;
use Response;
use Assetic\Asset\FileAsset;
use Assetic\Asset\GlobAsset;
use Assetic\Asset\AssetCache;
use Assetic\Asset\AssetCollection;
use Assetic\Factory\AssetFactory;
use October\Rain\Pars... |
raspi led
> basic LED interactions on a raspberry pi

# Setup
Follow the base setup of the johnny-five LED example

# Usage
`Make sure you do these steps on a raspberry pi`
* install prerequisites `sudo apt-g... |
<?php
## CREATE APPLICATION DEFINITIONS ##
define('APPLICATION', 'application');
define('CONFIG', 'config');
define('CONTROLLER', 'controllers');
define('CORE', 'core');
define('DS', DIRECTORY_SEPARATOR);
define('ERRORS', 'errors');
define('LIBRARY', 'libraries');
define('MODEL', 'models');
define('RUN', ... |
#include "<API key>.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include "boost\filesystem.hpp"
using namespace std;
namespace bst = boost::filesystem;
<API key>::~<API key>()
{
}
<API key>::<API key>(std::string folderName)
{
noOfFiles = 0;
noOfTrainingFiles = 0;
noOfScoringFiles = 0;
... |
'use strict'
angular
.module('softvApp')
.controller('ModalAddhubCtrl', function (clusterFactory, tapFactory, $rootScope, areaTecnicaFactory, $uibModalInstance, opcion, ngNotify, $state) {
function init() {
if (opcion.opcion === 1) {
vm.blockForm2 = true;
muestraColonias();
muestra... |
require 'spec_helper'
require 'rails_helper'
require 'email_helper'
describe CommitteeController do
fixtures :users
fixtures :meetings
fixtures :committees
fixtures :announcements
fixtures :participations
before(:each) do
sign_in users(:tester)
# allow to do production mode
... |
package permafrost.tundra.math;
import java.text.MessageFormat;
/**
* A collection of convenience methods for working with integers.
*/
public final class IntegerHelper {
/**
* The default value used when parsing a null string.
*/
private static int DEFAULT_INT_VALUE = 0;
/**
* Disallow ins... |
'use strict';
var path = require('path');
var fs = require('fs');
module.exports = function(gen,cb) {
var sections;
if (gen.config.get('framework')==='bigwheel') {
var model = require(path.join(process.cwd(),'src/model/index.js'));
sections = ['Preloader'];
Object.keys(model).forEach(function(key) {
... |
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
<title>Aarthi Gurusami</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../stylesheets/stylesheet.css">
<link rel = "stylesheet" type = "text/css" href = "../styl... |
{% extends "../base.html" %}
{% block content %}
<div class="row">
<div class="col-sm-6">
<legend translate>Platform Information</legend>
<!--ajax_result
<div class="ajax_result">
{% if msg %}
<div class="alert alert-info" role="alert">{{msg}}</div>
{% end... |
layout: base
{% include header.html type="page" %}
<div class="container" role="main">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ content }}
{% if page.comments %}
<div class="disqus-comments">
{% include disqus.html %}
</div>
... |
require 'asciidoctor/extensions'
Asciidoctor::Extensions.register do
treeprocessor do
process do |doc|
doc
end
end
end |
package com.artfulbits.utils;
import android.text.TextUtils;
import java.io.<API key>;
import java.util.logging.Logger;
/** Common string routine. */
public final class StringUtils {
/** Our own class Logger instance. */
private final static Logger _log = LogEx.getLogger(StringUtils.class);
/** Default strings en... |
#include <string.h>
#include "context.h"
void
makecontext(uctx *ucp, void (*func)(void), intptr_t arg)
{
long *sp;
memset(&ucp->uc_mcontext, 0, sizeof ucp->uc_mcontext);
ucp->uc_mcontext.mc_rdi = (long)arg;
sp = (long*)ucp->uc_stack.ss_sp+ucp->uc_stack.ss_size/sizeof(long);
sp -= 1;
sp = (void*)((uintptr_t)... |
package main
import (
"testing"
"github.com/k0kubun/pp"
_ "bitbucket.org/ikeikeikeike/antenna/conf/inits"
libm "bitbucket.org/ikeikeikeike/antenna/lib/models"
"bitbucket.org/ikeikeikeike/antenna/models"
"bitbucket.org/ikeikeikeike/antenna/models/character"
_ "bitbucket.org/ikeikeikeike/anten... |
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.core.management import call_command
from django.db import models, connections, transaction
from django.urls import reverse
from django_tenants.clone import CloneSchema
from .postgresql_backend.base import _check_sch... |
#ifndef <API key>
#define <API key>
#define HIP_SCOPED_MARKER(markerName, group)
#define HIP_BEGIN_MARKER(markerName, group)
#define HIP_END_MARKER()
#endif |
package server
import (
"io"
"io/ioutil"
"log"
"net/http"
)
type Rest struct {
channels map[string]*Channel
}
func NewRestServer(server *Server) *Rest {
return &Rest{server.channels}
}
func (self *Rest) PostOnly(h http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r ... |
#!/bin/sh
# CYBERWATCH SAS - 2017
# Security fix for DSA-2885-1
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
# - <API key>:0.38-3+deb7u2
# Last versions recommanded by security team:
# - <API key>:0.38-3+deb7u3
# CVE List:
# - CVE-2014-2525
# More details:
sudo apt-get install --only-upgrade <API ... |
\author AMD Developer Tools Team
\file <API key>.h
#ifndef <API key>
#define <API key>
#pragma once
// Local:
#include <AMDTOSWrappers/Include/<API key>.h>
// Class Name: OS_API <API key>
// General Description:
// Aid class that enables "exception safe" locking of a synchronization object.
// Its constru... |
<!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">
<meta name="description" content="">
<meta name="author" content="">
<title>beta</title>
<!-- Bootstrap Co... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class HistorialC extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->helper('date');
$this->load->model('HistorialM');
if (!$this->session->userdata("login")) {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using RiotSharp.MatchEndpoint.Enums;
namespace RiotSharp.Misc
{
static class Util
{
public static DateTime BaseDateTime = new DateTime(1970, 1, 1);
public static DateTime <API key>(this long millis)
{
return B... |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('pillzApp'));
var MainCtrl,
scope,
$httpBackend;
// Initialize the controller and a mock scope
beforeEach(inject(function (_$httpBackend_, $controller, $rootScope) {
$httpBackend = _$http... |
Confl
==
Load or reload configuration!
[;
var resetStorage = require('./');
var dbName = 'test-item';
describe('#localStorage', function () {
beforeEach(function (done) {
localStorage.clear();
done();
});
it('should save value', function () {
var expected = { foo: 'bar', goo: 'nuu' };
lo... |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.XPath;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using alby.core.threadpool ;
namespace alby.codegen.generator
{
public partial class <API k... |
.progressbar-top {
margin-top: -24px;
margin-bottom: 24px;
width: 70%;
margin-left: -24px;
position: absolute;
}
.check-icon {
color: #21C9A1;
}
.overdue-text {
color: #ce2424;
font-weight: bold;
}
.alert-icon {
color: #ce2424;
}
.offset-top-mat-icon {
margin-top: 17px;
}
.pointer {
cursor: pointe... |
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <chainparams.h>
#include <chainparamsbase.h>
#include <logging.h>
#include <util/system.h>
#include <util/translation.h>
#include <util/url.h>
#include <wallet/wallettool.h>
#include <functional>
const std::function<std::string(const char*)> ... |
<?php
namespace App\Common\Models\Order\Mysql;
use App\Common\Models\Base\Mysql\Base;
class OrderCommon extends Base
{
/**
* -
* This model is mapped to the table iorder_common
*/
public function getSource()
{
return 'iorder_common';
}
public function reorganize(array $data)
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Treorisoft.Net.Utilities
{
<summary>
Provides properties and instance methods for sending files over a <see c... |
package main
import "fmt"
func main() {
fmt.Println("go" + "lang")
fmt.Println("1+1 =", 1+1)
fmt.Println("7.0/3.0 =", 7.0/3.0)
fmt.Println(true && false)
fmt.Println(true || false)
fmt.Println(!true)
} |
import React from 'react'
import DocumentTitle from '<API key>'
import ReactHeight from 'react-height'
import Header from './header/header'
import Content from './content/content'
import Footer from './footer/footer'
import { APP_NAME } from '../constants'
class Layout extends React.Component {
render() {
const h... |
import Graph from 'graphology-types';
export default function mergePath(graph: Graph, nodes: Array<unknown>): void; |
var i18n = require('i18n');
var _ = require('lodash');
exports.register = function (plugin, options, next) {
i18n.configure(options);
plugin.ext('onPreResponse', function (request, extNext) {
// If is an error message
if(request.response.isBoom) {
i18n.setLocale(getLocale(request, options));
re... |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Henge: b_ine</title>
<link rel="stylesheet" href="/vendor/bootstrap-3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/site.css">
</head>
<body>
<div id="staticBody">
<header>
<h... |
from nintendo import dauth, switch
from anynet import http
import pytest
CHALLENGE_REQUEST = \
"POST /v6/challenge HTTP/1.1\r\n" \
"Host: 127.0.0.1:12345\r\n" \
"User-Agent: libcurl (nnDauth; <API key>; SDK 12.3.0.0)\r\n" \
"Accept: */*\r\n" \
"<API key>: FA\r\n" \
"Content-Length: 17\r\n" \
... |
import expect from 'expect';
import createStore from './createStore';
describe('createStore()', () => {
let store;
beforeEach(() => {
store = createStore();
});
it('should write data and return its key when write() is called', () => {
const hash = store.write({ hello: 'world' });
... |
package com.jxtech.distributed.zookeeper.pool;
import java.util.<API key>;
import org.apache.commons.pool.ObjectPool;
import org.apache.commons.pool.<API key>;
import org.apache.commons.pool.impl.StackObjectPool;
import org.apache.zookeeper.ZooKeeper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.... |
#include "paymentserver.h"
#include "Testcoinunits.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "base58.h"
#include "chainparams.h"
#include "ui_interface.h"
#include "util.h"
#include "wallet.h"
#include <cstdlib>
#include <openssl/x509.h>
#include <openssl/x509_vfy.h>
#include <QApplication>
#include <Q... |
<div class="page-actions">
<!-- AUDIO CONTAINER (conditional) -->
<?php if ($page->episode_file()->isNotEmpty()) { ?>
<div class="audio-holder" itemprop="audio">
<audio preload="none" controls>
<source src="/podcasts/<?php echo $page->episode_file() ?>" type="audio/mpeg" />
</audio>
</di... |
When /(.*) should receive: (.*) email/ do |email, preference_list|
u = User.find_by(email:email)
print(u)
preference_list.split(",").each do |p|
if p[1,p.length-2] == "internal"
expect(u.internal).to be(false)
end
end
end
When /I should see correct flash message "([^"]*)"$/ d... |
#!/usr/bin/env python3
# Test addressindex generation and fetching
import binascii
from test_framework.messages import COIN, COutPoint, CTransaction, CTxIn, CTxOut
from test_framework.test_framework import <API key>
from test_framework.test_node import ErrorMatch
from test_framework.script import CScript, OP_CHECKSIG, ... |
import xml.etree.ElementTree as ET
import numpy as np
import openmc
import pytest
from tests.unit_tests import assert_unbounded
def test_basic():
c1 = openmc.Cell()
c2 = openmc.Cell()
c3 = openmc.Cell()
u = openmc.Universe(name='cool', cells=(c1, c2, c3))
assert u.name == 'cool'
cells = set(u.ce... |
// Name: wx/gtk/slider.h
// Purpose:
// Id: $Id: slider.h,v 1.20 2005/08/02 22:57:57 MW Exp $
// Licence: wxWindows licence
#ifndef __GTKSLIDERH__
#define __GTKSLIDERH__
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface
#endif
// wxSlider
class WXDLLIMPEXP_CORE wxSlider : public wxS... |
<?php
namespace Braintree\Error;
/**
*
* Validation Error codes and messages
*
* ErrorCodes class provides constants for validation errors.
* The constants should be used to check for a specific validation
* error in a <API key>.
* The error messages returned from the server may change;
* but the codes will rem... |
var xml = require('xmlbuilder');
var fs = require('fs');
/**
* Function is used to create plis file which is required for downloading ios app.
* @param {string} name app name
* @param {string} path path to application
* @param {string} title title for alert
* @param {Function} callback functio... |
<h2><span class="pref">options.data.</span>rows</h2>
<p>Specifies a custom row definition for this item. This allows you to render multiple rows for a single item.</p>
<p>This is useful when you want to have a data item be represented with multiple rows. This is especially useful when you toggle the visibility of the s... |
<?php
/**
* Model_Post actions test
*
* @group anonymous
* @group invalid
*/
class PostTest extends <API key>
{
private static $_empty_db = FALSE;
protected function setUp()
{
Kohana::$config->load('database')->default = Kohana::$config->load('database')->test;
Database::$default = 'tes... |
package math;
import util.IReplicable;
public class Vector3 implements IReplicable<Vector3> {
private static final float MIN_TOLERANCE = (float) 1E-9;
public float x;
public float y;
public float z;
public static Vector3 of(float x, float y, float z) {
Vector3 vector = new Vector3();
... |
using Phaxio.Examples.ReceiveCallback.Models;
using System.Collections.Generic;
using System.Runtime.Caching;
using System.Web.Mvc;
namespace Phaxio.Examples.ReceiveCallback.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ObjectCache cache = Mem... |
<!DOCTYPE html>
<html>
<head>
<title>MathNotes</title>
<link rel="stylesheet" href="css/main.css"/>
<link rel="shortcut icon" href="img/pi.png"/>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=AM_CHTML">
</script>
</head>
<body>
<ul id="navba... |
{-|
Module : TestUtils.Validate
Description : The Validate type class
Copyright : (c) Andrew Burnett 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : Unknown
'Validate' provides a definition for validating a data structure. For example,
we may cache information about the s... |
'use strict';
define([],
function($) {
var Util = class {
static charToLineCh(string, char) {
var stringUpToChar = string.substr(0, char);
var lines = stringUpToChar.split("\n");
return {
line: lines.length - 1,
... |
package org.usfirst.frc.team5518.robot.subsystems;
import org.usfirst.frc.team5518.robot.RobotMap;
import org.usfirst.frc.team5518.robot.commands.ArcadeDriveJoystick;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Spe... |
<?php
session_start();
if (isset($_SESSION['username'])) {
$username = $_SESSION['username'];
}
$veza = new PDO('mysql:host=' . getenv('MYSQL_SERVICE_HOST') . ';port=3306;dbname=developer_blog', 'admin', 'user');
$veza->exec("set names utf8");
if (isset($_POST['update'])) {
$titl... |
#if !NOT_UNITY3D
namespace Zenject
{
public class <API key> : <API key>
{
public <API key>(
BindInfo bindInfo,
<API key> gameObjectInfo)
: base(bindInfo, gameObjectInfo)
{
}
public <API key> WithGameObjectName(string gameObjectName)
{
... |
<?php
namespace Hautelook\ExactTargetBundle\Services;
use ET_Subscriber;
use Hautelook\ExactTargetBundle\Model\Subscriber as <API key>;
class SubscriberService extends AbstractService
{
public function __construct($appSignature, $clientId, $clientSecret, $defaultWsdl)
{
parent::__construct($appSignature... |
function initBtnStartAlgo(){
$('#btn_startDispatch').bind('click', function(event) {
event.preventDefault();
initAlgo();
createResultPanel("div_resultPanel");
doRound();
printRound("resultRegion");
printResultPersonal("resultPersonal");
<API key>();
});
}
// html
function initAlgo(){
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>olturf Namespace: toolbars</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]
<link type="text/css" rel="stylesheet... |
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using QEngine.Physics.Shared;
using QEngine.Physics.Tools.Triangulation.Delaunay.Delaunay;
using QEngine.Physics.Tools.Triangulation.Delaunay.Delaunay.Sweep;
namespace QEngine.Physics.Tools.Triangulation.Delaunay
{
<summary>
2D constrained Delauna... |
// ViewController.h
// XSInfoView
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end |
<?php
namespace Sf\TodoBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SfTodoBundle extends Bundle
{
} |
import * as _ from 'lodash';
import Vuex from 'vuex';
import {Deck} from '../models/Deck'
import DeckState from '../models/state/DeckState'
const store =
{
state: new DeckState(),
mutations:
{
addToDeck(state, card)
{
if (!card) { return; }
state.currentDeck.cards.pus... |
namespace _01.SchoolClasses
{
// Disciplines have name, number of lectures and number of exercises
using System;
class Disciplines : <API key>
{
private int lecturesNumber;
private int exercisesNumber;
public Disciplines(string name, int lecturesNumber, int exercisesNumber)
... |
module Language.Aspell (
-- * Constructors
SpellChecker,
spellChecker,
<API key>,
<API key>,
-- * Using the spell checker
check,
suggest
) where
import Data.ByteString.Char8
import Foreign
#if !MIN_VERSION_base(4,7,0)
hiding (unsafePerformIO)
#endif
import Foreign.C.String
import Fo... |
# == Schema Information
# Table name: github_stargazers
# id :integer not null, primary key
# linked_account_id :integer not null
# tracker_id :integer not null
# stargazer :boolean
# subscriber :boolean
# forker :boolean
# synced_at ... |
'use strict';
angular.module('articles').controller('<API key>', ['$scope', '$timeout', '$stateParams', '$window', 'Authentication', 'FileUploader', 'Articles',
function ($scope, $timeout, $stateParams, $window, Authentication, FileUploader, Articles) {
$scope.user = Authentication.user;
$scope.article = Art... |
#chrome-heart {
display: inline-block;
margin-bottom: -30px;
background: url(../images/chrome_logo.png) 50% 50% no-repeat;
width: 100px;
height: 100px;
background-position: 50% 50%;
background-size: cover;
}
.spin {
-<API key>: rotateRight;
-<API key>: 10s;
-<API key>: linear;
-<API key>: 50% 50%;
-<API key>: infinite;... |
# Halitosis
TODO: Write a gem description
## Installation
Add this line to your application's Gemfile:
gem 'halitosis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install halitosis
## Usage
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature branch (`git che... |
/** @jsx h */
import h from '../../../helpers/h'
import { Mark } from '../../../..'
export default function(change) {
change.addMark(
Mark.create({
type: 'bold',
data: { thing: 'value' },
})
)
}
export const input = (
<value>
<document>
<paragraph>
<anchor />w<focus />ord
... |
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* App\Entity$<API key>.
*
* @ORM\Table(name="<API key>")
* @ORM\Entity(repositoryClass="App\Repository\<API key>")
*/
class <API key>
{
/**
* @var i... |
package main
import (
"net/http"
"sync"
"time"
"github.com/1lann/airlift/airlift"
humanize "github.com/dustin/go-humanize"
"github.com/gin-gonic/contrib/renders/multitemplate"
"github.com/gin-gonic/contrib/sessions"
"github.com/gin-gonic/gin"
)
func formatBasicTime(t time.Time) string {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.