text stringlengths 3 1.05M |
|---|
import logging
from urwid import WidgetWrap
from bundleplacer.assignmenttype import AssignmentType
from bundleplacer.ui import PlacementView
from ubuntui.ev import EventLoop
log = logging.getLogger('bundleplacer')
class PlacerView(WidgetWrap):
def __init__(self, placement_controller, config, cb,
... |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.dreamsnatcher.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" />
<application
andro... |
package com.wegas.log.rest;
import com.wegas.core.XlsxSpreadsheet;
import com.wegas.core.ejb.GameFacade;
import com.wegas.core.ejb.GameModelFacade;
import com.wegas.core.ejb.RequestManager;
import com.wegas.core.ejb.TeamFacade;
import com.wegas.core.rest.GameController.StreamingOutputImpl;
import com.wegas.log.xapi.X... |
package lib
import (
"fmt"
"net/http"
"net/http/httptest"
"sync"
"testing"
"time"
"github.com/juju/ratelimit"
"github.com/stretchr/testify/assert"
)
func getTestServerAndClient(code int, body string) (*httptest.Server, *Client) {
server := getTestServer(code, body)
return server, getTestClient(server.URL)
... |
<Expr>
<Sum>
<Sum>
<Number filename="examples/data/Numbers/1.tsv"/>
<Sum>
<Number filename="examples/data/Numbers/1.tsv"/>
<Prod>
<Number filename="examples/data/Numbers/3.tsv"/>
<Prod>
<Number filename="examples/data... |
package textapp
import textapp.server.ServerApp
import textapp.client.ClientApp
object TextAppMain {
private val defaultHost = "localhost"
private val defaultPort = "9999"
def main(args: Array[String]) {
val clap = new CommandLineArgumentProcessor(args)
val host = clap.getParam("host", "h").getOrElse... |
package me.coley.bmf.insn.impl;
import me.coley.bmf.insn.Instruction;
import me.coley.bmf.insn.OpType;
public class POP2 extends Instruction {
public POP2() {
super(OpType.STACK, Instruction.POP2, 1);
}
}
|
//---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Compiler
//
// This file contains Module scope class declaration.
//
// (C)2021-2022, by Aleksey Rakov
//------------------------------------------------------... |
eskimo-brothers
===============
Application and database for eskimo brother relationship maintenance (EBRM)
|
<?php
namespace matuck\LibraryBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symf... |
layout: post
title: Configuring Multiple Loggers in Python
author: Fred Muya
---
At times you may want to have multiple loggers in your application, e.g. one for a payments module and another for a messaging module. I'm going to explain how to set this up in your application, as well as show some examples for usage.
... |
package net.s5games.mafia.beans;
/**
* Dice class to represent a dice roll.
*/
public class Dice {
private int numberOfDice;
private int numberOfSides;
private int bonus;
/**
* Create a default pair of dice to roll.
*/
public Dice() {
numberOfDice = 2;
... |
var fs = require('fs');
var path = require('path');
var CUSTOM_CONFIG_ENUMS = {
DUALSTACK: {
FILE_NAME: 'config_use_dualstack',
INTERFACE: 'UseDualstackConfigOptions'
}
};
function TSGenerator(options) {
this._sdkRootDir = options.SdkRootDirectory || process.cwd();
this._apiRootDir = p... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_72) on Wed Nov 05 20:55:55 EST 2014 -->
<title>Uses of Class org.apache.cassandra.thrift.TCustomSocket (apache-cassandra API)</title>
<... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
For the purpose of easier reading the script
is divided into following sections:
- initialization
- compilation
- jar
- execution
- debugging
- javadoc
- test c... |
import getters from './getters'
import actions from './actions'
import mutations from './mutations'
export default {
state: {
randomDishes: null
},
getters,
actions,
mutations
}
|
file(REMOVE_RECURSE
"CMakeFiles/matrix_power_12.dir/matrix_power.cpp.o"
"matrix_power_12.pdb"
"matrix_power_12"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/matrix_power_12.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
|
<?php
declare(strict_types=1);
namespace Tests\Unit\Coverage\Processor;
use Paraunit\Configuration\OutputFile;
use Paraunit\Coverage\Processor\Text;
use Prophecy\Argument;
use Symfony\Component\Console\Output\OutputInterface;
use Tests\BaseUnitTestCase;
class TextTest extends BaseUnitTestCase
{
/**
* @data... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
using System;
using System.Collections.Generic;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Rdbms;
using Umbraco.Core.Persistence.Querying;
using Umbraco.Core.Persistence.SqlSyntax;
using Umbraco.Core.Persistence.UnitOfWork;
namespace Umbraco.Core.Persistence.Repositories
{
int... |
#import <Foundation/NSObject.h>
#import <Foundation/NSEnumerator.h>
@class NSArray, NSURL;
@interface NSDictionary : NSObject <NSCoding, NSCopying, NSMutableCopying, NSFastEnumeration>
- initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count;
- initWithObjects:(NSArray *)objects forKeys:(NSArray ... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:topLeftRadius="10dp" android:bottomLeftRadius="0dp"
... |
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/component/vehicle/shared_adv_warhead_launcher.iff"
result.attribute_template_id = -1
result.stfName("craft_item_ingredients_n","adv_warhead_launcher")
#### BEGIN MODIFICATIONS ####
#### END MODIFICATIONS ... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defi... |
module minerva.controls.grid.arrange.tapins {
export function doOverride (input: IInput, state: IState, output: IOutput, tree: core.IUpdaterTree, finalRect: Rect): boolean {
var cr = state.childRect;
var rm = input.gridState.rowMatrix;
var cm = input.gridState.colMatrix;
for... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Fri Mar 06 22:13:06 CST 2015 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.apache.hadoop.h... |
package uk.co.alynn.games.ld30.world;
import uk.co.alynn.games.ld30.AudioEngine;
public class DeadPlayerShip extends PlayerShip {
private final float m_deathTimer;
public DeadPlayerShip(float deathTimer) {
super();
m_deathTimer = deathTimer;
}
@Override
public PlayerShip ... |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... |
package org.yy.studyesper.fw.esper;
import org.yy.studyesper.fw.EpsEventBean;
import com.espertech.esper.client.EventBean;
public final class EsperHelper {
public static EpsEventBean[] wrap(EventBean[] esperEvents) {
if (esperEvents == null || esperEvents.length == 0) {
return new EsperEpsEventBean[0];
}
... |
"""
Export all open fonts as UFO
Iterate through all open fonts, and export UFOs.
Note:
This script will look for a UFO named <vbf_name_without_extension>.ufo.
If it can't find this UFO, it will make a new one.
If it can find the UFO, it will only export:
glyphs
feature data
font.lib
alignm... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Mycol. eur. (Erlanga) 3: 37 (1828)
#### Original name
Dendrosarcus cornucopiae Paulet, 1793
### Remarks
null |
#import "NSFontPanel.h"
@interface NSFontPanel (DVTARCAdditions)
- (BOOL)dvt_requiresWeakIntercession;
@end
|
<?php
namespace app\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Config;
/**
* ConfigSearch represents the model behind the search form about `app\models\Config`.
*/
class ConfigSearch extends Config
{
/**
* @inheritdoc
*/
public function rules()
... |
cask :v1 => 'baudline' do
version '1.08'
sha256 'f47201069812333c36715beaacb17de93bc8fa5f7e68952fe51296f04df69f83'
url "http://www.baudline.com/baudline_#{version}_macosx_universal.dmg"
homepage 'http://www.baudline.com/'
license :unknown # todo: change license and remove this comment; ':unknown' is a mac... |
class TcpRmInvitatonResender: public TcpRmClient
{
public:
TcpRmInvitatonResender(QTcpSocket *s, TcpClientThread *tst, rm::serverInvitationVerif siv, RsaKeys *keys, CustomRsa *rsa, std::string connType);
void sendConnType();
void ownWork(std::string msgType, QByteArray byteArray);
private:
rm::serverIn... |
package emmy.inference.aevb
import breeze.numerics.abs
import emmy.autodiff.ContainerOps.Aux
import emmy.autodiff._
import emmy.distribution.Factor
import org.scalatest.FlatSpec
import scalaz.Scalaz
import scalaz.Scalaz.Id
class CategoricalSpec extends FlatSpec {
case class TestCatVariable()(implicit val ops: Con... |
(function(window, $, undefined) {
if (typeof $ !== 'function') {
return console.error('nette.ajax.js: jQuery is missing, load it please');
}
var nette = function () {
var inner = {
self: this,
initialized: false,
contexts: {},
on: {
init: {},
load: {},
prepare: {},
before: {},
start: {},
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<sb:echoInteger xmlns:sb="http://soapinterop.org/"
env:encodingStyle="http:/... |
package com.skycaster.geomapper.activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Handler;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v4.widget.NestedScro... |
using SharpKit.JavaScript;
namespace THREE
{
[JsType(JsMode.Prototype, Export = false)]
public class ShaderMaterial : Material
{
public ShaderMaterial(ShaderMaterialOptions parameters)
{
}
public object uniforms { get; set; }
public bool wireframe { get;... |
using System.Web.Mvc;
using jquery.mobile.mvc.Abstract;
using jquery.mobile.mvc.Widgets;
namespace jquery.mobile.mvc.Builders
{
public class ListViewItemBuilder<TModel> : Builder<TModel, ListView.Item>
{
public ListViewItemBuilder(HtmlHelper<TModel> htmlHelper, ListView.Item element)
: base(htmlHel... |
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<size android:height="210.0dip" android:width="215.0dip" />
<solid android:color="@color/backgroundd" />
</shape> |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { UserService } from '@user/user.service';
import { User } from '@user/user.entity';
@Injectable()
export class JwtStrategy extends Passp... |
<?php
use Pimcore\Tool;
use Pimcore\File;
use Pimcore\Model\Object;
class Admin_ObjectHelperController extends \Pimcore\Controller\Action\Admin {
public function loadObjectDataAction() {
$object = Object::getById($this->getParam("id"));
$result = array();
if($object) {
... |
<?xml version="1.0" encoding="utf-8"?>
<worldGeneration version="2"
xmlns="WarpDrive"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="WarpDrive warpDrive.xsd"
mods="UndergroundBiomes">
<for variable="type" in="igneous,metamorphic,sedimentary">
<for variable="meta... |
/* -------------------------------------------------------------------------------------- *\
feature_analog.h
Global Header file for Tempus Fugit Analog Clock feature
Author: Peter Deutsch (engineerbill@stemchest.com)
Date Created: 8/28/13
\* ----------------------------------------... |
class CreateSpudPagePartials < ActiveRecord::Migration
def change
create_table :spud_page_partials do |t|
t.integer :spud_page_id
t.string :name
t.text :content
t.string :format
t.timestamps
end
add_index :spud_page_partials,:spud_page_id
end
end
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tag above.
It will be replaced with the URL of the `publ... |
<?php
class BaseApiController extends Controller
{
const OK = 0;
const TIMEOUT = -1;
const BAD_AUTH_HEADER = -2;
const BAD_HMAC = -3;
const BAD_TOKEN = -4;
const GENERIC_ERROR = -10;
private $content;
protected $data;
protected $headers;
protected $isCrud = false;
private ... |
var wilddog = wilddog || { };
wilddog.EditorClient = (function () {
'use strict';
var Client = wilddog.Client;
var Cursor = wilddog.Cursor;
var UndoManager = wilddog.UndoManager;
var WrappedOperation = wilddog.WrappedOperation;
function SelfMeta (cursorBefore, cursorAfter) {
this.cursorBefore = curso... |
<?php
namespace ReceiptValidator\Tests\GooglePlay;
use Google\Service\AndroidPublisher;
use Google\Service\AndroidPublisher\ProductPurchase;
use Google\Service\AndroidPublisher\ProductPurchasesAcknowledgeRequest;
use Google\Service\AndroidPublisher\Resource\PurchasesProducts;
use Google\Service\AndroidPublisher\Resou... |
layout: post
title: ! '[dica rapida] syntax hightlight no seu blog com javascript'
tags:
- syntax highlight
- programming
- developer
- blog
- trick
---
se voce tem um blog sobre programação, provavelmente voce postará snippets de codigo e provavelmente voce vai querer que esse snippet tenha syntax highlight como no se... |
{extend name="public/content" /}
{block name="myBeforeStyle"}
<link href="__ROOT__/public/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="__ROOT__/public/static/admin/css/other.css" rel="stylesheet">
{/block}
{block name="content"}
<div class="ibox float-e-margins">
<div class="ibox-cont... |
import { expect } from 'chai';
import requirePropFactory from './requirePropFactory';
describe('requirePropFactory', () => {
const componentNameInError = 'componentNameInError';
let requireProp;
before(() => {
requireProp = requirePropFactory(componentNameInError);
});
it('should have the right shape',... |
package be.gerard.game.service.model;
/**
* GameDetailRecord
*
* @author bartgerard
* @version v0.0.1
*/
public class GameDetailRecord {
}
|
layout: post
microblog: true
audio:
photo:
date: 2018-09-21 07:53:57 -0500
guid: http://michael.micro.blog/2018/09/21/you-help-to.html
---
"You help to make each day a special day by just your being yourself. There's no one else in the whole world who's exactly like you and people can like you exactly as you are." — ... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PuppetDB 1.4 » API » v1 » Querying Nodes — Documentation — Puppet Labs</title>
<link rel="alternat... |
var express = require('express');
var router = express.Router();
var PokedexLib = require('../pokedex');
var Pokedex = new PokedexLib();
/* GET home page. */
router.get('/', function(req, res, next) {
renderContent('1', req, res); //default to master-ball
});
/* GET home page. */
router.get('/:id', function(req, res... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/palmos/display.cpp
// Purpose: Palm OS Implementation of wxDisplay class
// Author: William Osborne - minimal working wxPalmOS port
// Modified by:
// Created: 10.13.04
// RCS-ID: $Id: display.cpp,v 1.2 2... |
#if UNITY_EDITOR
using System.Collections.Generic;
using System.Linq;
using NodeCanvas.Framework;
using UnityEditor;
using UnityEngine;
using CanvasGroup = NodeCanvas.Framework.CanvasGroup;
namespace NodeCanvas.Editor{
public class GraphEditor : EditorWindow{
const string WATERMARK = "@NodeCanvas Framework v2.6... |
/*
example from
http://lea.verou.me/2011/03/on-css-preprocessors/
*/
#foo {
font-size: 150%;
-moz-transform: rotate(40deg);
-ms-transform: rotate(40deg);
-o-transform: rotate(40deg);
-webkit-transform: rotate(40deg);
transform: rotate(40deg);
}
#bar {
background: silver;
-moz-transform: rotate(40deg... |
package org.glowroot.agent.plugin.jaxrs;
import java.util.List;
import org.glowroot.agent.plugin.api.Agent;
import org.glowroot.agent.plugin.api.MessageSupplier;
import org.glowroot.agent.plugin.api.ThreadContext;
import org.glowroot.agent.plugin.api.ThreadContext.Priority;
import org.glowroot.agent.plugin.api.Threa... |
'use strict';
/* Controllers */
angular.module('myApp.controllers', [])
.controller('MyCtrl1', ['$scope', function($scope) {
$scope.addPost = function(){
console.log($scope.article);
}
}])
.controller('MyCtrl2', ['$scope', function($scope) {
}]);
|
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>aw</display-name>
<welcome-file-list>... |
<?php //-->
namespace Eve\Plugin\Captcha;
/**
* Argument Class
*
* @package Eve
* @category Plugin
* @author Christian Blanquera <cblanquera@openovate.com>
* @standard PSR-2
*/
class Argument extends \Eden\Core\Argument
{
}
|
/* Modernizr 2.7.0 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-shiv-cssclasses-testprop-testallprops-prefixes-domprefixes-cssclassprefix:has!
*/
;
window.Modernizr = (function( window, document, undefined ) {
var version = '2.7.0',
Modernizr = {},
enableClasses = true,
d... |
import sys
import os
cur_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(cur_dir, os.pardir))
import unishark
import unittest
import logging
from time import sleep
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
def setUpModule():
print('%s.setUpModule' % __... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\search\ProvinciaSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="provincia-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ... |
package smile.imputation;
/**
* Interface to impute missing values in the dataset.
*
* @author Haifeng
*/
public interface MissingValueImputation {
/**
* Impute missing values in the dataset.
* @param data a data set with missing values (represented as Double.NaN).
* On output, missing values ... |
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... |
SK_A32_SHIFT == 24
#define LIBYUV_I420_TO_ARGB libyuv::I420ToARGB
#define LIBYUV_I422_TO_ARGB libyuv::I422ToARGB
#define LIBYUV_I444_TO_ARGB libyuv::I444ToARGB
#define LIBYUV_I420ALPHA_TO_ARGB libyuv::I420AlphaToARGB
#define LIBYUV_J420_TO_ARGB libyuv::J420ToARGB
#define LIBYUV_H420_TO_ARGB libyuv::H420ToARGB
#elif... |
<?php
namespace Magento\Customer\Controller\Adminhtml\Index;
class Index extends \Magento\Customer\Controller\Adminhtml\Index
{
/**
* Customers list action
*
* @return \Magento\Backend\Model\View\Result\Page|\Magento\Backend\Model\View\Result\Forward
*/
public function execute()
{
... |
typedef struct {
LPSTR lpFileName;
char szOldName[15];
} ValidateData, FAR *LPValidateData;
BOOL _EXPORT CALLBACK validateProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static LPCSTR extractOne(LPCSTR, LPCSTR, LPSTR, LPSTR, BOOL );
BOOL checkName(LPCSTR lpcFileName, CheckDomain checkDomain)
{
... |
$(".slider-box").vegas({
timer:false,
cover:true,
slides: [
{ src: "img/large-oil-refinery-plant-production-compressed.jpg" },
{ src: "img/banner_img1.jpg" },
{ src: "img/tco-onshore-oil-gas-1-l.jpg" }
],
animation: 'fade'
});
$(document).ready(function(){
$(".logo-an").fade... |
"""Tests for ceilometer/publisher/udp.py
"""
import datetime
import socket
import mock
import msgpack
from oslo_config import fixture as fixture_config
from oslo_utils import netutils
from oslotest import base
from ceilometer.publisher import udp
from ceilometer.publisher import utils
from ceilometer import sample
... |
package result
import (
"fmt"
// "github.com/eyebluecn/tank/code/tool/i18n"
"github.com/3xxx/engineercms/controllers/tool/i18n"
"net/http"
)
type WebResult struct {
Code string `json:"code"`
Msg string `json:"msg"`
Data interface{} `json:"data"`
}
func (this *WebResult) Error() string {
return thi... |
'use strict';
var Actions = require('../constants/Actions');
module.exports = {
loadTopDeals: function (context, payload) {
return context.hairfieApi
.get('/tops/deals', { query: { limit: 3 }})
.then(function (deals) {
context.dispatch(Actions.RECEIVE_TOP_DEALS, dea... |
package shortbread
import org.scalatest.mock.MockitoSugar
import org.scalatest.FunSuite
import org.scalatest.matchers.ShouldMatchers
import org.openqa.selenium.remote.RemoteWebDriver
import org.mockito.Mockito._
import DriverConfig._
final class DriverConfigSuite extends FunSuite with ShouldMatchers with MockitoSug... |
import moment from 'moment';
import configAPI from 'config';
import {
processSpeech,
getNoun,
getJsDateFromExcel,
normalizeTitle} from '../functions';
import ExceldbQuery from '../data/ExceldbQuery.graphql';
import CoolOffQuery from '../data/CoolOffQuery.graphql';
import { request } from 'graphql-request';
imp... |
layout: post
author: csiu
date: 2017-04-18
title: "Day53: SVD in Scikit-learn"
categories: update
tags:
- 100daysofcode
- machine-learning
excerpt: It doesn't crash!
---
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
A couple days ago, ... |
pyquil.quil_atom
----------------
.. automodule:: pyquil.quil_atom
:members:
:undoc-members:
:show-inheritance:
|
package org.spacehq.openclassic.api.level.generator.noise;
import java.util.Random;
/**
* Octave noise used in generating a normal level.
*/
public class OctaveNoise extends Noise {
private PerlinNoise[] algs;
private int count;
public OctaveNoise(Random rand, int algs) {
this.count = algs;
this.algs = new... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace vm.Aspects.Cache.Associative.NWaySet
{
/// <summary>
/// Class NWayAssociativeSet implements N-way associative set cache.
/// </summary>
/// <typeparam name="TK... |
angular.module('starter.services', [])
.factory('ProjectService', function() {
// Might use a resource here that returns a JSON array
// Some fake testing data
var projects = [
{ id: 0, title: 'Pangea', description: 'Saving the world, one starving country at a time.' },
{ id: 1, title: 'BroHacks', descr... |
var freeflowComponent = function (options) {
/* initialize SDK */
this.sdk = new madCreator ({
id : 26
});
/* tab identifier */
this.tab = options.tab;
/* input container */
this.container = options.container;
/* ad preview container */
this.content = options.content;
... |
package com.koudai.net.toolbox.rpc.annotation;
/**
* Created by krystaljake on 16/6/20.
*/
public @interface BodyParameter {
String key() default "";
boolean isNeedEncrypt() default false;
}
|
unbound = 1; // Error
function actuallyBound() {
let unbound;
unbound = 3; // No error, should not be confused with the real unbound name.
}
(unbound: UnboundType); // Error
(unbound: UnboundType); // Error
(unbound: UnboundType); // Error
unboundFunction(); // Error
unboundFunction(); // No error, only erro... |
> Idiomatic PHP client for [Stackdriver Debugger](https://cloud.google.com/debugger/).
[](https://packagist.org/packages/google/cloud-debugger) [](https://packagist.... |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express()... |
OpinionLabs is a 3rd-party site which collects survey-style user feedback. Feedback is entered into a popup window accessed through certain pages on www.paypal.com. The popup window is served by opinionlabs.com so is not hosted by paypal.com (paypal.com pages only create the link to the survey popup window).
Additiona... |
namespace Org.BouncyCastle.Asn1.X509
{
/**
* The KeyPurposeID object.
* <pre>
* KeyPurposeID ::= OBJECT IDENTIFIER
* </pre>
*/
public sealed class KeyPurposeID
: DerObjectIdentifier
{
private const string IdKP = "1.3.6.1.5.5.7.3";
private KeyPurpo... |
SET NOCOUNT ON;
DECLARE @trigger_id BIGINT
,@trigger_name NVARCHAR(100)
,@trigger_table_view_name NVARCHAR(80)
,@trigger_table_schema NVARCHAR(50)
,@trigger_text VARCHAR(8000)
,@trigger_schema_table_view NVARCHAR(200)
,@table_view_name NVARCHAR(80)
,@table_schema NVARCHAR(50)
,@schema_table_vie... |
var gulp = require('gulp');
var runSequence = require('run-sequence');
// Default task
gulp.task('default', function (cb) {
runSequence(
['jade', 'images', 'scss', 'watch'],
cb
);
});
// Final task (ftp upload, inliner)
gulp.task('final', function (cb) {
runSequence(
['jade-final','images'],
'postcss',
'... |
Release Process
====================
* Update translations, see [translation_process.md](https://github.com/yxomcoinpay/yxomcoin/blob/master/doc/translation_process.md#syncing-with-transifex)
* Update hardcoded [seeds](/contrib/seeds)
* * *
### First time / New builders
Check out the source code in the following dir... |

Traces is a code flow tracing library.
[](https://travis-ci.org/petercipov/traces)
## Documentation
[The introduction article](http://www.pe... |
namespace euphoria::runner
{
void
load_world
(
core::vfs::FileSystem* fs,
World* world,
ScriptRegistry* reg,
const core::vfs::FilePath& path,
ObjectCreator* creator,
LuaState* ctx
)
{
const auto json = core::get_default_... |
package com.twosigma.beakerx.evaluator;
public interface Hook {
void run();
}
|