text stringlengths 3 1.05M |
|---|
from __future__ import unicode_literals, division, absolute_import, print_function
import os
import sys
import locale
import sublime
import golangconfig
if sys.version_info < (3,):
golang_build = sys.modules['golang_build']
else:
golang_build = sys.modules['Golang Build.golang_build']
class ShellenvMock():... |
package java.io;
/**
* Base class for character conversion exceptions.
*
* @author Asmus Freytag
* @version 1.16, 11/17/05
* @since JDK1.1
*/
public class CharConversionException
extends java.io.IOException
{
/**
* This provides no detailed message.
*/
public CharConversionExce... |
package test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
*
* @author Mavrov
*/
public class GeneticAlgorithm {
public GeneticAlgorithm() {
initializeGenerator();
// Initialize population
Speciment firstSpeciment = new Sp... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
/**
* @file Moses3.cpp
* @brief 3D Pose
*/
//#include <gtsam/3rdparty/Sophus/sophus/sim3.cpp>
//#include <gtsam/3rdparty/Sophus/sophus/so3.cpp>
//#include <gtsam/3rdparty/Sophus/sophus/scso3.cpp>
#include <gtsam/geometry/Moses3.h>
#include <gtsam/geometry/Pose2.h>
#include <gtsam/geometry/concepts.h>
#includ... |
layout: post
title: "Memasang Flatpak Pada BlankOn X Tambora"
description: "Memasang Flatpak Pada BlankOn X Tambora"
comments: false
keywords: "Flatpak, BlankOn"
---
Apa itu [Flatpak](http://flatpak.org)? Silakan Anda baca sendiri pada tautan [ini](http://flatpak.org).
Versi Flatpak dilumbung BlankOn saat ini adalah ... |
package org.apache.tez.runtime.library.common.sort.impl.dflt;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.lock... |
package tablewriter
import (
"bytes"
"fmt"
"io"
"regexp"
"strings"
)
const (
MAX_ROW_WIDTH = 30
)
const (
CENTER = "+"
ROW = "-"
COLUMN = "|"
SPACE = " "
NEWLINE = "\n"
)
const (
ALIGN_DEFAULT = iota
ALIGN_CENTER
ALIGN_RIGHT
ALIGN_LEFT
)
var (
decimal = regexp.MustCompile(`^-?(?:\d{1,3}(?:,... |
package com.echo.holographlibrary;
import android.graphics.Path;
import android.graphics.Region;
public class LinePoint {
private float x = 0;
private float y = 0;
private Path path;
private Region region;
public LinePoint(double x, double y){
this.x = (float)x;
this.y = (float)y;
}
public LinePoint(fl... |
Projects and code snippets
|
'use strict'
const vash = require('vash')
exports.name = 'vash'
exports.outputFormat = 'html'
exports.compile = vash.compile
|
import { Type } from 'angular2/src/facade/lang';
export { NgControlName } from './directives/ng_control_name';
export { NgFormControl } from './directives/ng_form_control';
export { NgModel } from './directives/ng_model';
export { NgControl } from './directives/ng_control';
export { NgControlGroup } from './directives/... |
package diskplan
import (
"github.com/sacloud/usacloud/pkg/ccol"
"github.com/sacloud/usacloud/pkg/output"
)
var defaultColumnDefs = []output.ColumnDef{
ccol.Zone,
ccol.ID,
ccol.Name,
{Name: "StorageClass"},
{Name: "Availability"},
{
Name: "Available Sizes",
Template: `[ {{ range .Size }}{{ if eq .Avai... |
package li.strolch.runtime.configuration.model;
import li.strolch.agent.api.ComponentContainer;
import li.strolch.agent.api.StrolchComponent;
public class ServiceHandlerTestImpl extends StrolchComponent implements ServiceHandlerTest {
public ServiceHandlerTestImpl(ComponentContainer container, String componentName... |
package play.utils.crud;
public interface CRUDKeys {
String FLASH_SUCCESS_KEY = "play2-crud.flash.success";
String FLASH_ERROR_KEY = "play2-crud.flash.error";
}
|
Lua-nums
========
Pure Lua number library providing BigNum and fixed width unsigned integer types.
BigNum (Infinite Precision)
---------------------------
A simple BigNum implementation that supports all mathematic metatable
functions.
This is pure Lua and is not designed to be the fastest possible BigNum library
i... |
<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="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
<meta name="keywords" content="{{page.tag... |
layout: post
title: Scala, once again
date: 2014-06-04 14:46:29 UTC
updated: 2014-06-04 14:46:29 UTC
comments: false
categories: Scala
readmore: true
---
In 2009, when Scala was just getting popular, I tried to build a data-pipeline system based on Scala. At the time, the intention was to build an ETL system where dat... |
"use strict";
//var _roostSW = {version: 1, logging: true, appKey:"6paox8ctqtmfggp1b94355tknhdoc47q", host: "http://localhost:8081", baseURL: "http://localhost:8081"};
var _roostSW = {
version: 1,
logging: true,
appKey: "6paox8ctqtmfggp1b94355tknhdoc47q",
host: "https://go.goroost.com"
};
self.addEven... |
We believe that Jesus Christ is the Son of God, God manifest in the flesh, the Creator of Heaven and Earth, the Savior of all those who believe on His Name. He is the only Mediator between God and man.
* 1 Timothy 2:5
* John 1:1-3, 14
* Isaiah 9:6
* 1 Timothy 3:16
|
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/navigation_settings"
android:icon="@drawable/ic_settings_black_24dp"
android:title="@string/title_setup" />
<item
android:id="@+id/navigation_home"
... |
This file is used to list changes made in each version of rackspace-cloud-backup.
## 1.0.3
* #23 - Install rest-client gem, a required dependency.
## 1.0.2
* #20 - Switches from custom yum resource to yum-epel cookbook (@steve-jansen)
## 1.0.1
* Move rest-client requires into each method call, so cookbook can be loa... |
<?php get_template_part('templates/page', 'header'); ?>
<?php if (!have_posts()) : ?>
<div class="alert alert-warning u-alert">
<?php _e('Sorry, no results were found.', 'sage'); ?>
</div>
<div class="c-search-form">
<?php get_search_form(); ?>
</div>
<?php endif; ?... |
package alluxio.master.journal;
import alluxio.Configuration;
import alluxio.Constants;
import alluxio.PropertyKey;
import alluxio.proto.journal.Journal.JournalEntry;
import alluxio.retry.RetryPolicy;
import alluxio.retry.TimeoutRetry;
import com.google.common.base.Preconditions;
import org.slf4j.Logger;
import org... |
<style>
@font-face {
font-family: 'Salish2Salish2SILDoulosRegular';
src: url('/assets/fonts/salish/Salish2Salish2SILDoulosRegular.eot?#iefix') format('embedded-opentype'), url('/assets/fonts/salish/Salish2Salish2SILDoulosRegular.woff') format('woff'), url('/assets/fonts/salish/Salish2Salish2SILDoulosRegul... |
A simple flask application to display freely accessible Trendnet cameras on a map.
Uses the code created by [@TRENDnetExposed](https://twitter.com/TRENDnetExposed).
### Features
- Mark cameras as "dead" (TODO)
- Tag cameras (TODO)
- Search cameras by tag (TODO)
- Put comments on cameras (TODO)
### TODO
- Features m... |
<?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xm... |
create table Table1 (
Table1ID int primary key identity
, Attribute1 int
, Attribute2 nvarchar(255)
);
create table Table2 (
Table2ID int primary key identity
, Table1ID int foreign key references Table1 (Table1ID)
, Attribute1 int
, Attribute2 nvarchar(255)
);
|
#ifndef COMPRESSED_INT_ARRAY_H_
#define COMPRESSED_INT_ARRAY_H_
#include <vector>
#include <stdexcept>
/**
An array of integers, each with num_bits of storage.
Implemented as an array of larger ints (of type storage_int)
into which the client's ints are packed.
*/
template< typename storage_int, unsigned num_bits... |
//
// cnfWindowDelegate.h
// eViihde
//
// Created by Sami Siuruainen on 26.3.2010.
// Copyright 2010 Sami Siuruainen. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <CalendarStore/CalendarStore.h>
#import "cnfController.h"
#import <WebKit/WebKit.h>
@interface cnfWindowDelegate : NSObject {
IBOutlet ... |
using System.Web.Mvc;
namespace SpaceTraffic.GameUi.Areas.Game
{
/// <summary>
/// Initializes Game Area
/// </summary>
public class GameAreaRegistration : AreaRegistration
{
/// <summary>
/// Gets the name of the area to register.
/// </summary>
/// <returns>The n... |
import { fetchJSONWithCSRF } from "redux-hammock/django_csrf_fetch"
import { POST } from "../constants"
export const courseEnrollmentsEndpoint = {
name: "courseEnrollments",
checkNoSpinner: false,
namespaceOnUsername: false,
verbs: [POST],
postUrl: "/api/v0/cour... |
/*! \file streamer_defines.hpp
* \brief Defines for streamer node configuration.
*/
#ifndef STREAMER_DEFINES_H
#define STREAMER_DEFINES_H
#define NO_FILTERING 0
#define GAUSSIAN_FILTERING 1
#define BILATERAL_FILTERING 2
#define DETECTOR_MODE_RAW 0
#define DETECTOR_MODE_LUM 1
#define DETECTOR... |
import logging
from devil import base_error
from devil.android import device_errors
logger = logging.getLogger(__name__)
def RetryOnSystemCrash(f, device, retries=3):
"""Retries the given function on a device crash.
If the provided function fails with a DeviceUnreachableError, this will wait
for the device t... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Hastane_Otomasyon_Suna
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
... |
package io.crnk.data.jpa.query;
import com.querydsl.core.types.Expression;
import io.crnk.data.jpa.internal.query.backend.querydsl.QuerydslObjectArrayTupleImpl;
import org.junit.Assert;
import org.junit.Test;
import javax.persistence.TupleElement;
public class ObjectArrayTupleImplTest {
private QuerydslObjectArray... |
<?php
return array(
//default Target !
'target' => '_blank',
//default icon for each li element !
'icon' => 'icon-tag',
//bindings - elements class or id that you want to bind to them , Default value set to the whole Document !
//if you want to set an ID or class you must wrap them i... |
require 'VariableDict.rb'
class TextField < VariableDict
def initialize( varTitle, defaultValue='')
super( varTitle)
@curVal = defaultValue
@html_height = 40
end
def to_html
table_width = html_width - 25
table_height = html_height - 10
htmlStr = %Q~#{@v... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.wso2.carbon.store</groupId>
<artifactId>social-feature</artifactId>
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
#ifndef CKLBGCTask_h
#define CKLBGCTask_h
#include "CKLBLuaPropTask.h"
/*!
* \class CKLBGCTask
* \brief Garbage Collection Task class
*
* /!\ This task is only designed for the C# Scripting.
* /!\ This task has never been tested with a full game, just with basic samples.
*
* CKLBGCTask processes regular Garbage C... |
@implementation JRAssetCollection
- (NSString *)description {
return self.yy_modelDescription;
}
@end
|
class Combiner {
public:
using BigO = util::BigO;
using Strings = std::list<std::string>;
public:
virtual ~Combiner() {}
virtual int combine(const std::string& str) = 0;
virtual const Strings& combinations() const = 0;
virtual BigO complexity() const = 0;
};
class InPlaceCombiner: public Combin... |
require 'spec_helper'
RSpec.describe Fb::Messenger::Event::Delivery do
let(:event_data) { build(:fb_msg_event, :delivery) }
subject { Fb::Messenger::Event::Delivery.new(event_data) }
context '#watermark' do
it 'returns watermark' do
expect(subject.watermark).to eq(1_458_668_856_253)
end
end
c... |
from weather import Weather
weather = Weather()
# Lookup via location name.
location = weather.lookup_by_location('Auburn, AL')
condition = location.condition()
astronomy = location.astronomy()
atmosphere = location.atmosphere()
units = location.units()
wind = location.wind()
print ("Date updated: " + condition['date... |
namespace zzbgames
{
namespace rick
{
class RickConfiguration
{
public:
RickConfiguration();
RickConfiguration(const RickConfiguration& config) = delete;
~RickConfiguration() = default;
RickConfiguration& operator=(const RickConfiguration& config) = delete;
unsigned int getWindowWidth() const;... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>cml</groupId>
<arti... |
extern crate serde;
// We use the json! macro only in the tests
extern crate bytes;
extern crate futures;
#[macro_use]
extern crate serde_derive;
#[cfg_attr(test, macro_use)]
extern crate serde_json;
#[macro_use]
extern crate slog;
extern crate tokio_core;
extern crate tokio_io;
extern crate uuid;
pub mod codec;
pub m... |
import MapReducer from '../../reducers/MapReducer'
import * as MapActions from '../../actions/MapActions'
import MapProperties from '../../reducers/data/MapProperties'
test('initial state', () => {
const expectedState = new MapProperties();
expect(MapReducer(undefined, {})).toEqual(expectedState)
});
test('set ce... |
using System;
using System.Collections.Generic;
using System.Text;
using Apache.Hadoop.Hbase.Thrift;
namespace OHM
{
public abstract class BaseTable
{
public BaseTable()
{
}
public abstract void save();
public abstract void delete();
public abstract void loadAll();
protected String genera... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>infotheo: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<translate
android:fromXDelta="0"
android:toXDelta="-100%p"
android:duration="200"/>
</set>
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace SharePoint.Remote.Access.Caml.Operators
{
public sealed class Or : LogicalJoin
{
internal const string OrTag = "Or";
internal Or(IEnumerable<Operator> operators)
: base(OrTag, opera... |
// @remove-on-eject-begin
// @remove-on-eject-end
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlug... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace DotNetty.Common.Internal
{
using System;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Socke... |
using Xunit;
namespace bgTeam.Core.Tests.Infrastructure
{
[CollectionDefinition("SqlLiteCollection")]
public class SqlLiteCollection : IClassFixture<SqlLiteFixture>
{
}
}
|
- Added support for realtime collaboration
- Added persistence interfaces to store versions and snaphots on the server
- Added a package system to provide a simple plugin mechanism
- Introduced the concept of an `IsolatedNode` enabling arbitrary complex editors and external components (such code editors)
- Optimized re... |
<?php defined('SYSPATH') OR die('No direct access allowed.');
class Kohana_Auth_ORM extends Auth {
/**
* Checks if a session is active.
*
* @param mixed $role Role name string, role ORM object, or array with role names
* @return boolean
*/
public function logged_in($role = NULL)
{
... |
package net.notejam.spring.security.owner;
import static org.mockito.Mockito.when;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.security.access.AccessDenie... |
<?php
namespace DataMonkey\Repository\Exception;
class InvalidPrimaryKeyException extends \RuntimeException
{
}
|
namespace app { namespace Uno { namespace Content { namespace Fonts { struct TextShaderData; } } } }
namespace app {
namespace Uno {
namespace Content {
namespace Fonts {
struct SpriteFontShader;
struct SpriteFontShader__uType : ::app::Uno::Content::Fonts::TextShader__uType
{
};
SpriteFontShader__uType* SpriteFontS... |
namespace SparkDotNet {
/// <summary>
/// A persona for an authenticated user, corresponding to a set of privileges within an organization.
/// This roles resource can be accessed only by an admin.
/// </summary>
public class Role : WebexObject
{
/// <summary>
/// A unique identi... |
int main()
{
FILE* f = fopen("macro_defines.h", "w+");
fprintf(f, "#ifndef POLARSSL_MACRO_DEFINES\n");
fprintf(f, "#define POLARSSL_MACRO_DEFINES\n");
fprintf(f, "\n");
fprintf(f, "#include \"../general_definitions/general_definitions.h\"\n");
fprintf(f, "\n");
fprintf(f, "#include <stddef.h>\n");
fp... |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... |
/** indexFiles
*
* author: jbroglio
* Date: 5/14/14
* Time: 1:49 PM
*/
// An example script for sending files to Elastic Search at the standard port
// The mapping file is appropriate for the Lewis Reuters corpus
var path = require('path')
// CHANGE next item to require('xml-to-es') if you copy file to another d... |
@page certificates Certificates in Tor.
We have, alas, several certificate types in Tor.
The tor_x509_cert_t type represents an X.509 certificate. This document
won't explain X.509 to you -- possibly, no document can. (OTOH, Peter
Gutmann's "x.509 style guide", though severely dated, does a good job of
explaining how... |
import { platformBrowser } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
import { AppModuleNgFactory } from '../../../temp/app/pivotgrid/custom-rendering/app.module.ngfactory';
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); |
package org.bychan.core.langs.boolexp;
import org.bychan.core.basic.Lexeme;
import org.bychan.core.basic.LexingMatch;
import org.bychan.core.basic.Token;
import org.bychan.core.dynamic.RegexMatcher;
import org.bychan.core.dynamic.TokenMatcher;
import org.jetbrains.annotations.NotNull;
public class NotToken implements... |
'use strict';
// MODULES //
var tape = require( 'tape' );
var noop = require( '@stdlib/utils/noop' );
var Float64Array = require( '@stdlib/array/float64' );
var Uint8Array = require( '@stdlib/array/uint8' );
var Complex64Array = require( '@stdlib/array/complex64' );
var Complex128Array = require( '@stdlib/array/com... |
//
// GoodsTableViewController.m
// WSScrollTabBarController
//
// Created by 余汪送 on 2017/10/25.
// Copyright © 2017年 capsule. All rights reserved.
//
#import "GoodsTableViewController.h"
#import "WSGoodsDetailViewController.h"
@interface GoodsTableViewController ()
@end
@implementation GoodsTableViewController... |
namespace sequencing {
template<class> class sequence;
#if 0
template<class T>
class sequence_iterator : public std::iterator<std::input_iterator_tag, T> {
friend class sequence<T>;
typedef typename boost::coroutines::asymmetric_coroutine<T>::push_type coro_t;
typedef decltype(boost::begin(std::declval<coro... |
<!DOCTYPE html>
<!--
______ ______ ______ ______ __ __ ______ ______ __ _____ ______ ______
/\ __ \ /\ __ \ /\ == \ /\ __ \ /\ "-.\ \ /\ ___\ /\ == \ /\ \ /\ __-. /\ ___\ /\ == \
\ \ __ \ \ \ __ \ \ \ __< \ \ \/\ \ \ \ \-. \ ... |
<!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 May 13 11:47:42 EDT 2015 -->
<title>Cassandra.Processor.prepare_cql_query (apache-cassandra API)</title>
<meta name="date" c... |
setenforce permissive
sed -i "/SELINUX=enforcing/c\SELINUX=permissive" /etc/selinux/config
# Disable firewall
systemctl stop firewall
systemctl disable firewalld
# Install dependencies for KVM on Cloudstack
sleep 5
yum -y install http://mirror.karneval.cz/pub/linux/fedora/epel/epel-release-latest-7.noarch.rpm
yum -y ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-translations: 2 m 40 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... |
var squares = [];
var square;
var phase = 1;
var beige;
var squareSize;
var gray = 50;
function setup() {
createCanvas(400, 400);
squareSize = width / sqrt(2);
console.log(squareSize);
beige = color(255, 255, 200);
square = new Square(200, 200, squareSize, beige, QUARTER_PI);
initSquares();
}
function dra... |
<HTML><HEAD>
<TITLE>Review for Me & Isaac Newton (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0218433">Me & Isaac Newton (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Ste... |
require File.join( File.dirname( File.expand_path(__FILE__)), 'smell_detector')
require File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), 'smell_warning')
module Reek
module Smells
#
# Control Coupling occurs when a method or block checks the value of
# a parameter in order to decide whi... |
<!DOCTYPE html>
<html>
<head>
<title>Header</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../../stylesheets/blog.css">
<link rel="stylesheet" type="text/css" href="../stylesheets/default.css">
</head>
<body>
<nav>
<ul class="navlink">
<li><a href="index.html" class="navlink... |
module.exports = function(values, func) {
var total = 0;
values.forEach(function(ratio) {
total += parseInt(ratio);
});
var percentages = [];
values.forEach(function(ratio, key) {
var percentage = (parseInt(ratio) / total) * 100;
if(func) {
percentage = func(p... |
namespace chasky {
class NodeDefBuilder {
public:
explicit NodeDefBuilder() {}
NodeDefBuilder &Name(const std::string &x) {
def_.set_name(x);
return *this;
}
NodeDefBuilder &IsSource(bool x) {
def_.set_is_source(x);
return *this;
}
NodeDefBuilder &IsEnd(bool x) {
def_.set_is_end(x);
... |
import contextlib
import os
import sys
import docker
from . import app
RABBIT_IMAGE = 'rabbitmq:3.8.2-management-alpine'
RABBIT_NAME = 'rabbitmq_queue_utils_test_app_{}'.format(os.getpid())
@contextlib.contextmanager
def rabbitmq_test_server():
client = docker.from_env()
exposed_ports = ['{0}/tcp'.format(... |
<!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 Sep 05 23:33:06 UTC 2014 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.apache.hadoop.y... |
<?php
/**
* Created by PhpStorm.
* User: ibndoom
* Date: 28.03.15
* Time: 18:12
*/
namespace frontend\controllers;
use yii\rest\ActiveController;
class ProjectController extends ActiveController
{
public $modelClass = 'common\models\Project';
} |
<div class="row">
<div class="col-md-12">
<div class="btn-toolbar" role="toolbar">
<div class="btn-group">
<div class="btn-group">
<button class="btn btn-default">
<i class="fa fa-save"></i>
</button>
... |
__author__ = 'ivan.shynkarenka'
import argparse
from TTWebClient.TickTraderWebClient import TickTraderWebClient
def main():
parser = argparse.ArgumentParser(description='TickTrader Web API sample')
parser.add_argument('web_api_address', help='TickTrader Web API address')
parser.add_argument('web_api_id'... |
layout: meetup
title: JavaScript Gaming
author: jmccann
when: 2011-01-18T19:30:00-06:00
video: https://vimeo.com/18995176
speakers:
- name: Bradley Meck
title:
avatar: https://pbs.twimg.com/profile_images/282339703/Photo_7_400x400.jpg
bio: Bradley is a [Node.js](http://nodejs.org) user and has implemented... |
"""Timetabler PTF9 import functions."""
import unsync
import petl
@unsync.command()
@unsync.option('--input-file', '-i', type=unsync.Path(exists=True, dir_okay=False, readable=True, resolve_path=True), help='Timetabler PTF9 file to extract data from.')
@unsync.option('--destination', '-d', default='enrollments', help... |
"*An object that represents a descriptive aspect of the domain with no
conceptual identity is called a VALUE OBJECT.*" (Eric Evans).
As opposite to [Entities](Entities.md), which have their identities
(Id), a Value Object has not it's identity. If identities of two
Entities are different, they are considered as differ... |
package org.strykeforce.swerve;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.kinematics.ChassisSpeeds;
import edu.wpi.first.math.kinematics.SwerveDriveKinematics;... |
package io.vertigo.stella.work;
import io.vertigo.lang.Assertion;
import io.vertigo.stella.master.WorkResultHandler;
/**
* Handler unique permettant de collecter les infos relatives à l'exécution des tests.
*
* @author pchretien
* @param<R> result
*/
public final class MyWorkResultHanlder<R> implements WorkResu... |
case node['platform_family']
when 'debian'
default['runit']['sv_bin'] = '/usr/bin/sv'
default['runit']['chpst_bin'] = '/usr/bin/chpst'
default['runit']['service_dir'] = '/etc/service'
default['runit']['sv_dir'] = '/etc/sv'
default['runit']['lsb_init_dir'] = '/etc/init.d'
default['runit']['executabl... |
package org.assertj.core.api.byte_;
import org.assertj.core.api.ByteAssert;
import org.assertj.core.api.ByteAssertBaseTest;
import org.assertj.core.data.Percentage;
import static org.assertj.core.data.Percentage.withPercentage;
import static org.mockito.Mockito.verify;
class ByteAssert_isCloseToPercentage_byte_Test... |
import { client } from '../Client'
import * as bot from '../@decorators'
import { RichEmbed } from 'discord.js'
export default class Links {
@bot.when('message')
async onMessage (message) {
if (message.author === client.user) return
if (!message.guild) return
if (!this.isValidLink(mess... |
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_container"
android:layout_width="match_parent" android:layout_height="match_parent">
</FrameLayout> |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
import { Range, satisfies } from 'semver'
import { getPackageVersion } from './get-package-version'
import { rootLogger } from './logger'
import { Errors, interpolate } from './messages'
const logger = rootLogger.child({ namespace: 'versions' })
/**
* @internal
*
* Don't forget to update peerDependencies in packa... |
module.exports = function (modulus) {
var help = new modulus.help('Servo', modulus);
// list command
help.add('list', function () {
this.line('servo list'.verbose);
this.line('View all servos you have.'.input);
this.line(' options:'.input);
this.line(' -p, --project-name Name of the proje... |
essence.js
==========
About
-----
Essence.js is a async dependency injection framework to help build loosely coupled Node.js applications.
Check out the sample website app to see how essence js goodness helps constructing a web application.
###Why?
Creating loosely coupled applications helps to reduce complexity, imp... |