text stringlengths 3 1.05M |
|---|
package ess
//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... |
/**
* Created by rahulguha on 8/30/14.
*/
var express = require('express'),
bodyParser = require('body-parser'),
routes = require('./routes.js'),
config = require('./config/config.json'),
util = require('./util.js'),
_ = require('lodash-node'),
cor... |
<?php
function smarty_block_widget_block($params, $content, Smarty_Internal_Template $template, &$repeat){
if(!$repeat){
if(!isset($params['name'])){
throw new Exception("模版[{$template->source->filepath}]中定义的fis_widget_content必须包含name属性");
}
$name = 'fis_widget_conte... |
package org.cipango.kaleo.presence.policy;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.cipango.kaleo.Resource;
import org.cipango.kaleo.xcap.XcapService;
public class XcapPolicyManager implements PolicyManager
{
private XcapService _xcapService;
private Ma... |
"""ecfm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... |
import socket
import client
import commands
import threading
import packets
from packet import Packet
class Server:
def __init__(self, host, port):
# open the socket
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# bind our server to a port
self.sock.bind(("", 61022)... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
http://www.eclipse.org/org/documents/... |
var sami = "https://api.samsungsami.io/v1.1/messages";
var cloud_switch_id = "08027d8460e34a0db81c3268285da1e9";
var token = "33b5e6833b88476890f410ee02dafb4b";
/**
* USER TOKEN:The token(/bearer) information obtained from calling the self API is the user token
* The user token is valid as long as the user is log... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Kansas State Council - Council Details</title>
<link rel="stylesheet" type="text/css" media="all" href="../../../index.php@css... |
<?php
// Include config file
require_once 'config.php';
// Define variables and initialize with empty values
$Client = $RoomNumber = $BuildingID = $Status = "";
$Client_err = $RoomNumber_err = $BuildingID_err = $Status_err ="";
// Processing form data when form is submitted
if($_SERVER["REQUEST_METHOD"] == "POST")... |
package com.example.coolweather.activity;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.te... |
import grpc
from google.cloud.spanner_admin_database_v1.proto import (
spanner_database_admin_pb2 as google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2,
)
from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2
from google.iam.v1 impor... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>smt-check: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
<?php
namespace Spatie\String;
use ArrayAccess;
use Spatie\String\Exceptions\UnknownFunctionException;
use Spatie\String\Exceptions\UnsetOffsetException;
use Spatie\String\Exceptions\ErrorCreatingStringException;
use Spatie\String\Integrations\Underscore;
/**
* Magic methods provided by underscore are documented he... |
using System;
using OpenCvSharp.Internal;
// ReSharper disable UnusedMember.Global
namespace OpenCvSharp;
/// <inheritdoc />
/// <summary>
/// Linear Discriminant Analysis
/// </summary>
// ReSharper disable once InconsistentNaming
public class LDA : DisposableCvObject
{
/// <summary>
/// constructor
//... |
PHP Ratelimiter
===============
A framework independent, flexible and highly extensible rate limiter for PHP.
[](https://insight.sensiolabs.com/projects/51be0137-1158-403a-9fc7-ab863f2c0ca9)
[![Scrutinizer Code ... |
// ZAP: 2012/11/30 Issue 425: Added tab index to support quick start tab
// ZAP: 2013/07/23 Issue 738: Options to hide tabs
// ZAP: 2013/12/13 Added support for remembering the old tab name, which is used for nameless tabs.
// ZAP: 2014/01/28 Issue 207: Support keyboard shortcuts
// ZAP: 2014/02/07 Issue 207: A... |
package fi.csc.antero.controller;
import fi.csc.antero.config.ConfigService;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.skyscreamer.jsonassert.JSONAssert;
import org.skyscreamer.jsonassert.JSONCompareMode;
import org.springframework.beans.factory.annotation.Autowired;
i... |
import { Injectable } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { QuestionBase } from './question-base';
@Injectable()
export class QuestionControlService {
constructor() { }
public toFormGroup(questions: Questio... |
UPGRADE FROM 4.x to 5.0
=======================
BrowserKit
----------
* Removed `Client`, use `AbstractBrowser` instead
* Removed the possibility to extend `Response` by making it final.
* Removed `Response::buildHeader()`
* Removed `Response::getStatus()`, use `Response::getStatusCode()` instead
* The `Client::... |
* Bundled with GHC 7.10.1
* Drop redundant `ghc-prim` dependency
## 1.4.1.0 *Mar 2015*
* Drop redundant constraints from a few `NFData` instances (if
possible for a given `base` version)
## 1.4.0.0 *Dec 2014*
* Switch to Generics based `DefaultSignature` `rnf` method
implementation (based on code ... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18408
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
from tkinter import *
class login():
global done
done = False
def show(self):
root = Tk()
root.title("pyDino")
self.input_box(root)
while not done:
root.update()
root.destroy()
self.done = False
return(True, 'main_menu', self.username)
... |
layout: post
title: Migrating content from old blog
description: "Migrating content and more stuff from the old blog."
modified: 2013-09-30
category: articles
tags: [Jekyll]
image:
feature: rbui.jpg
credit: Rb-Components
creditlink: http://newaeonweb.github.io/rb-ui
comments: true
share: true
---
# Coming Soon... |
<section id="List-group" class="styleguide">
<h1>List-group</h1>
<div class="code-sample">
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li... |
# MyLibrary.py
import sys, time, random, math, pygame
from pygame.locals import *
# calculates velocity of an angle
def angular_velocity(angle):
vel = Point(0, 0)
vel.x = math.cos(math.radians(angle))
vel.y = math.sin(math.radians(angle))
return vel
# calculates angle between two po... |
namespace Microsoft.VisualStudio.Services.Agent.Worker.Build
{
public enum BuildCleanOption
{
None,
Source,
Binary,
All,
}
} |
package jenkins.consulo.postBuild.consuloArtifactTask;
import org.apache.commons.compress.archivers.ArchiveEntry;
import org.apache.commons.compress.archivers.cpio.CpioArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarConstants;
import... |
package org.openqa.selenium.grid.sessionmap;
import static java.nio.charset.StandardCharsets.UTF_8;
import com.google.common.collect.ImmutableMap;
import org.openqa.selenium.grid.data.Session;
import org.openqa.selenium.grid.web.CommandHandler;
import org.openqa.selenium.json.Json;
import org.openqa.selenium.remote.... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Diagnostics;
using System.Text;
namespace Lidgren.Network
{
public partial class NetIncomingMessage
{
/// <summary>
/// Ensures the buffer can hold this number of bits
/// </summary>
private void InternalEnsureBuff... |
module InstanceManager
module TestSupport
module AccountHelpers
def request_confirmation_link instance, email
ActionMailer::Base.deliveries.clear
click_link 'Sign out'
visit instance_url(instance) + instance_manager.new_private_user_confirmation_path
fill_in 'Email', ... |
@interface MyScene : SKScene
@end
|
<?php namespace Neonbug\Common\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
abstract class Controller extends BaseController ... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Atti R. Accad. Fisiocrit. Siena, Sér. 4 8: 65 (1896)
#### Original name
Ascochyta arundinariae Gonz. Frag.
### Remarks
null |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
package log
import (
"log"
"testing"
)
type FakeWriter struct {
Count int
}
func (w *FakeWriter) Write(p []byte) (n int, err error) {
w.Count = w.Count + 1
return 0, nil
}
func TestLogLevel(t *testing.T) {
writer := &FakeWriter{}
logger := &ParityLogger{Level: DEBUG}
log.SetOutput(writer)
logger.Log(INFO,... |
package org.oscm.ui.servlet;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.oscm.paymentservice.constants.HeidelpayPostParameter;
import org.oscm.ui.stub.PaymentRegistrationServiceStub;
import org.oscm.ui.stubs.HttpServletRequestStub;
import org.oscm.ui.stubs.HttpServletResponse... |
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:os-core="http://www.openspaces.org/schema/core"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframewor... |
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
import { Observable } from 'rxjs/Observable';
import { AbstractControl } from '@angular/forms';
@Injectable()
export class FormErrorsService {
// Observable string sources
public static control: AbstractControl = null;
public st... |
<?php
namespace ChaseH\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Contact extends Model {
use SoftDeletes;
protected $table = "contacts";
protected $fillable = [
'name',
'email',
'user_id',
'message',
'extr... |
package kieker.tools.slastic.simulation.software.controller.threading;
import kieker.tools.slastic.simulation.software.controller.ProgressingFlow;
/**
*
* @author Robert von Massow
*
*/
public class CFGenerationTask implements Runnable, Comparable<CFGenerationTask> {
private final ProgressingFlow pf;
priva... |
/**
* Pajdeg
* Add a metadata entry to a PDF.
*
* This example takes a PDF as input and a filename as output and passes the input PDF through
* Pajdeg to the output file.
*
* The example adds a metadata object, and sets up a task that links the PDF's so called root object to
* this new object.
*
* If the PDF... |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="aj.canvas.audiosearch">
<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
</application>
</manifest>
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <pthread.h>
#include <string>
#include <sstream>
#include <cutils/properties.h>
#include <cutils/sockets.h>
#include "common.h"
#include "roots.h"
#include "voldclient.h"
#include "Volu... |
//
// FayeMessage.m
// FayeObjC
//
#import "FayeMessage.h"
#import "NSObject+PropertySupport.h"
#import "NSObject+Serialize.h"
@implementation FayeMessage
@synthesize channel;
@synthesize clientId;
@synthesize successful;
@synthesize authSuccessful;
@synthesize version;
@synthesize minimumVersion;
@synthesize ... |
<!doctype html>
<!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of... |
import time, json, hmac, base64, logging, hashlib
from datetime import datetime, tzinfo, timedelta
from django.http import HttpResponse
from django.template.response import TemplateResponse
from django.views.generic import View
from django.utils.decorators import method_decorator
from django.views.decorators.csrf imp... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Metasphaeria cumana var. luzulina P. Karst.
### Remarks
null |
..
Super Simple Stocks
https://github.com/tgorka/SuperSimpleStocks
Copyright (C) 2016 Tomasz Gorka <http://tomasz.gorka.org.pl>
:mod:`supersimplestocks.spark` Package
--------------------------------------
.. automodule:: supersimplestocks.spark
:members:
:undoc-members:
:show-inheritance: |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var canvasGrid = document.getElementById('grid');
var contextGrid = canvasGrid.getContext('2d');
//var msg_ola = msg_hello;
var incX... |
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.renard.ocr;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.renard.ocr";
public static final String BUILD_TYPE = "debug";
public static final St... |
package simplebft
import (
"crypto/sha256"
"encoding/base64"
"github.com/golang/protobuf/proto"
)
func hash2str(h []byte) string {
return base64.RawStdEncoding.EncodeToString(h)
}
func hash(data []byte) []byte {
h := sha256.Sum256(data)
return h[:]
}
func merkleHashData(data [][]byte) []byte {
var digests... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
(function() {
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, getRootModule, helpers, i, len, loadFile, path, ref;
CoffeeScript = require('./');
child_process = require('child_process');
helpers = require('./helpers');
path = require('path');
// Load and run a CoffeeScript fi... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>YubitSec CTF - Mobile Number - OSINT — The Gospel of Mark</title>
<meta name="description" content="Title: YubitSec CTF - Mobile Number - OSINT; Date: 2017-04-25; Author: Mark Kipyegon">
<meta name="author" content="Mark Kipyegon Koskei">
<meta ... |
using System.IO;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace UrbanSketchers.Interfaces
{
/// <summary>
/// Edit sketch page view model interface
/// </summary>
public interface IEditSketchPageViewModel
{
/// <summary>
/// Gets or sets the sketch
/// </summa... |
package net.ontopia.topicmaps.viz;
import net.ontopia.topicmaps.core.TopicIF;
public class DoSetTTVisibilityState implements RecoveryObjectIF {
private TopicIF type;
private int visibility;
public DoSetTTVisibilityState(TopicIF type, int visibility) {
this.type = type;
this.visibility = visibility;
... |
import * as React from 'react';
import Button from '@mui/joy/Button';
import Stack from '@mui/joy/Stack';
import Modal from '@mui/joy/Modal';
import ModalClose from '@mui/joy/ModalClose';
import ModalDialog from '@mui/joy/ModalDialog';
import Typography from '@mui/joy/Typography';
export default function VariantModalD... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace ResotelApp.Models
{
/// <summary> A pair of Dates (both being at midnight). The thing is StartDate is before EndDate, by design.</summary>
public class DateRange : IValidable, IDataErrorInfo, ICloneable
{
privat... |
import React from 'react';
import Immutable from 'immutable';
import BlockWapperTest from '../components/BlockWapperTest.jsx';
import CommentBlock from '../components/CommentBlock.jsx';
export const BlockRenderMap = Immutable.Map({
'superTitleBlock': {
element: 'h1',
wrapper: <BlockWapperTest/>
},
'comm... |
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License... |
==================================
JSonic - JavaScript text-to-speech
==================================
This documentation describes JSonic v |release| and was rendered on |today|. The documented APIs and behaviors are **unstable** until v 1.0.
.. rubric:: Table of Contents
.. toctree::
:maxdepth: 2
star... |
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion: 4.0.30319.42000
//
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
// der Code n... |
<?php
use Joomla\Registry\Registry;
defined('_JEXEC') or die;
/**
* GMail Authentication Plugin
*
* @since 1.5
*/
class PlgAuthenticationGMail extends JPlugin
{
/**
* This method should handle any authentication and report back to the subject
*
* @param array $credentials Array holding the user cre... |
using System.Collections.Generic;
using Xunit;
namespace System.Text.Tests
{
public class UnicodeEncodingGetChars
{
private static readonly RandomDataGenerator s_randomDataGenerator = new RandomDataGenerator();
public static IEnumerable<object[]> GetChars_TestData()
{
strin... |
package com.siyeh.ig.portability;
import com.intellij.codeInsight.CodeInsightUtilCore;
import com.intellij.psi.PsiLiteralExpression;
import com.intellij.psi.PsiType;
import com.siyeh.InspectionGadgetsBundle;
import com.siyeh.ig.BaseInspection;
import com.siyeh.ig.BaseInspectionVisitor;
import com.siyeh.ig.psiutils.Ty... |
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## triangleGrid
Takes a bounding box and a cell depth and returns a set of triangular [polygons][1] in a grid.
### Parameters
* `bbox` **[Array][2]<[number][3]>** extent in \[minX, minY, maxX, maxY] order
* `cellSide`... |
using System;
using FsCheck;
namespace Sharper.C.Testing.Arbitraries
{
public static partial class SystemArbitrariesModule
{
public static Arbitrary<long> AnyLong
=>
Arb.Default.Int64();
public static Arbitrary<long> Natural(this Arbitrary<long> arb)
=>
arb.MapFilter(Math.Abs, n => n ... |
package microsoft
import "testing"
func TestLanguageCatalogLanguages(t *testing.T) {
expectedCodes := []string{"en", "de", "es", "ru", "jp"}
expectedNames := []string{"English", "German", "Spanish", "Russian", "Japanese"}
// instantiate language catalog and inject mocked out language provider
languageProvider :=... |
<?php
namespace Webforge\TestData\PHPCodeStandard\PSR;
class WhileCase extends CodeIndentation {
/**
* @return string correctly indentend in PSR2
*/
public function toPSR2() {
return <<<'PHP'
while ($expr) {
echo "structure body";
}
PHP;
}
/**
* @return string in some indentation
*/
pu... |
'use strict';
/**
* @ngdoc directive
* @name evaluateApp.directive:sidebar
* @description
* # evaluateApp.sidebar
*/
angular.module('evaluateApp')
.directive('sidebar',['$location',function() {
return {
templateUrl:'scripts/directives/sidebar/sidebar.html',
restrict: 'E',
replace: true,
... |
Redknapp
========
A truly minimal router for Hack\HHVM
## Table of Contents
* [Redknapp](#redknapp)
* [Table of Contents](#table-of-contents)
* [Introduction](#introduction)
* [Usage](#usage)
* [Future](#future)
## Introduction
Redknapp at this stage is a proof of concept library designed solely fo... |
<div class="header-proposition">
<div class="content">
<a href="#proposition-links" class="js-header-toggle menu">Menu</a>
<nav id="proposition-menu">
<a href="/" id="proposition-name">Personal Independence Payment</a>
<!--
<ul id="proposition-links">
<li><a href="url-to-page-1" clas... |
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Column names and types in a dataframe. — types_df • CRAmisc</title>
<!-- jquer... |
package org.apache.causeway.core.metamodel.facets.param.layout.annotation;
import java.lang.reflect.Method;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import org.apache... |
namespace blimp {
std::ostream& operator<<(std::ostream& out,
const StreamPacketWriter::WriteState state) {
switch (state) {
case StreamPacketWriter::WriteState::IDLE:
out << "IDLE";
break;
case StreamPacketWriter::WriteState::HEADER:
out << "HEADER";
break;
... |
require "spec_helper"
describe EveOnline::ESI::Models::DogmaEffectModifiers do
it { should be_a(EveOnline::ESI::Models::Base) }
let(:options) { double }
subject { described_class.new(options) }
describe "#initialize" do
its(:options) { should eq(options) }
end
describe "#dogma_effects" do
conte... |
(function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$timeout', '$log','$localStorage','$state',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param... |
/*
* Behaviour.h
*
* Created on: 30 May 2014
* Author: Marco
*/
#ifndef BEHAVIOUR_H_
#define BEHAVIOUR_H_
#include "GameDelta.hpp"
class Game;
typedef struct
{
Behaviour *nextBehaviour;
const GameDelta *generatedDelta;
} BehaviourStep;
typedef struct
{
string name;
double maxTime;
} Frame;
cl... |
"""
.. dialect:: firebird+kinterbasdb
:name: kinterbasdb
:dbapi: kinterbasdb
:connectstring: firebird+kinterbasdb://user:password@host:port/path/to/db[?key=value&key=value...]
:url: http://firebirdsql.org/index.php?op=devel&sub=python
Arguments
----------
Kinterbasedb backend specific keyword argument... |
package com.balsamiq.mockups;
/**
* @author Edgar Anzaldúa Moreno
* Follow me @edgarator
* Created on Tue Apr 29 21:37:36 CST 2014
*/
public class SiteMap extends UIElement{
public SiteMap() {
super();
super.getControlAttributes().get("controlTypeID").setPropertyValue("com.balsamiq.mockups::S... |
package main
import (
"errors"
"sync"
)
var (
//ErrBigWindow happens when we try to get more datapoints to average what
//we can put in our accumulator. Good place to panic
ErrBigWindow = errors.New("averaging window is bigger than accumulator")
//ErrSmallSample happens when we just began and got not enough da... |
console.log('Union types e.g. "number | null" are convenient when something can take or return values of few types')
function calcSqrt(x: number): number | null {
let xSqrt = null;
if (x >= 0) {
xSqrt = Math.sqrt(x);
}
return xSqrt;
}
console.log(calcSqrt(16));
console.log(calcSqrt(... |
// @flow
import React, {Component} from 'react'
import update from 'react-addons-update'
import { shallowEqual } from 'react-pure-render'
import { DropTarget, DragDropContext } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
import * as activeActions from '../../actions/active'
import * as stopStr... |
FROM havengrc-docker.jfrog.io/contribsys/faktory:0.9.0
RUN addgroup -S havenuser && adduser -S -g havenuser havenuser
WORKDIR /home/havenuser
ENV HOME /home/havenuser
RUN mkdir -p /home/havenuser/.faktory/db
RUN chown -R havenuser:havenuser /home/havenuser && chgrp -R 0 /home/havenuser && chmod -R g=u /h... |
;;- Constraint definitions for the pdp11 for GNU C compiler
;; Copyright (C) 2010-2013 Free Software Foundation, Inc.
;; Contributed by Michael K. Gschwind (mike@vlsivie.tuwien.ac.at).
;; This file is part of GCC.
;; GCC is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General ... |
<div class="row thread-actions" data-actions>
<div class="col s12 m12 l12">
<div class="card">
<div class="card-content">
<span class="card-title">Thread Actions</span>
<div class="row">
<div class="input-field col s12">
... |
<?php /* Smarty version 2.6.18, created on 2009-03-30 00:35:09
compiled from index.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?... |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Anuracode.Forms.Controls.Droid1")]
[assemb... |
import React, {Component} from 'react'
import {View, Text, StyleSheet, Dimensions, Alert} from 'react-native'
import {ZButton} from "domain/component"
import {Routes} from "domain/page"
import {flexCenter} from 'basic'
import {COLOR_TEXT_LIGHT, COLOR_TITLE} from "domain/def/color"
export class NetworkError extends... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using DCalcCore.Algorithm;
using DCalcCore.Assemblers;
using DCalcCore.Utilities;
using System.Threading;
using System.IO;
using DCalcCore.Remoting.Common;
namespace DCalcCore.Remoting.Http
{
public class HttpRemoteGa... |
<?xml version="1.0"?>
<cd:ProductDefinition xmlns:cd="http://www.stcorp.nl/coda/definition/2008/07" id="Multi_Sensor_AAI_L3_nc3" format="hdf5" last-modified="2017-02-15">
</cd:ProductDefinition>
|
package com.jx.androiddemos;
import android.content.Intent;
import android.support.v4.util.ArrayMap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Re... |
#ifndef GRPC_CORE_LIB_IOMGR_TCP_POSIX_H
#define GRPC_CORE_LIB_IOMGR_TCP_POSIX_H
/*
Low level TCP "bottom half" implementation, for use by transports built on
top of a TCP connection.
Note that this file does not (yet) include APIs for creating the socket in
the first place.
All calls passing slice tr... |
/*! Flickity v2.0.5
http://flickity.metafizzy.co
---------------------------------------------- */
@import url(https://fonts.googleapis.com/css?family=Comfortaa);
.flickity-enabled {
position: relative; }
.flickity-enabled:focus {
outline: none; }
.flickity-viewport {
overflow: hidden;
position: relative;
h... |
<?xml version="1.0" encoding="UTF-8"?><!-- the document starts with an invisible utf8 byte order mark, which is valid-->
<rsm:myinvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableA... |
<?php
namespace W3TC;
/**
* class Root_Environment
*/
class Root_Environment {
/**
* Fixes environment
*
* @param Config $config
* @throws Util_Environment_Exceptions
*/
function fix_in_wpadmin( $config, $force_all_checks = false ) {
$exs = new Util_Environment_Exceptions();
$fix_on_event = false;... |
import signal
import string
import argparse
import urllib2
import xml.dom.minidom
import ConfigParser
import time
import subprocess
import sys
import os
import warnings
import tempfile
import psutil
import logging.handlers
import netaddr
import xml
import xmltodict
plugin_name = "vrouter-xmpp"
plugin_instance = "lma-c... |
Eve Online Map API aggregator and visualization in Kibana dashboard
Usage:
EVE Online Map API (jumps, kills) upload to Elasticsearch:
php console eveonline:map2es
You can find the Kibana3 dashboards file under resources/kibana3.
|
namespace blink {
XRTransientInputHitTestResult::XRTransientInputHitTestResult(
XRInputSource* input_source,
const Vector<device::mojom::blink::XRHitResultPtr>& results)
: input_source_(input_source) {
for (const auto& result : results) {
results_.push_back(MakeGarbageCollected<XRHitTestResult>(
... |