text stringlengths 3 1.05M |
|---|
namespace blink {
// static
const char FontFaceSetWorker::kSupplementName[] = "FontFaceSetWorker";
FontFaceSetWorker::FontFaceSetWorker(WorkerGlobalScope& worker)
: FontFaceSet(worker), Supplement<WorkerGlobalScope>(worker) {
}
FontFaceSetWorker::~FontFaceSetWorker() = default;
WorkerGlobalScope* FontFaceSetWor... |
const scssLoader = require('./../scssLoader');
const util = require('../util');
const colors = ['red', 'blue', 'orange', 'purple', 'teal'];
/**
* Loads the parameter for a page to be displayed.
* @param {String} pageName The name of the page the parameter will be loaded for.
*/
const getParams = async (pageName) => ... |
function Collection (predicate) {
return function (obj) {
for(var key in obj) {
if (!predicate(obj[key])) {
return false;
}
}
return true;
}
}
module.exports = Collection |
package frog.database;
import java.io.Serializable;
import java.util.Arrays;
/**
* Contains the linguistic variables considered in the fuzzy system
*/
public class DataBase implements Serializable {
/** Input variables **/
public Variable[] inputs;
/** Output variables **/
public Variable[] outputs;... |
package org.apache.derbyTesting.functionTests.tests.lang;
import java.sql.SQLException;
import java.lang.reflect.Array;
import java.util.Enumeration;
import java.util.Iterator;
import org.apache.derby.vti.StringColumnVTI;
/**
* <p>
* Abstract Table Function which lists out all of the objects in an
* Enumeration,... |
package gw.test;
import gw.internal.ext.org.objectweb.asm.ClassReader;
import gw.internal.ext.org.objectweb.asm.Opcodes;
import gw.internal.ext.org.objectweb.asm.tree.AbstractInsnNode;
import gw.internal.ext.org.objectweb.asm.tree.ClassNode;
import gw.internal.ext.org.objectweb.asm.tree.LineNumberNode;
import gw.int... |
/**
* These plugins provide extra functionality for interaction with textareas.
*/
( function ( $ ) {
if ( document.selection && document.selection.createRange ) {
// On IE, patch the focus() method to restore the windows' scroll position
// (bug 32241)
$.fn.extend( {
focus: ( function ( jqFocus ) {
ret... |
import { DictZipParser } from "./dictionaries/dsl/DictZipParser";
import { getEncodingInBuffer } from "./EncodingDetector";
import { BufferReader } from "./BufferReader";
import { OSSpecificImplementationGetter } from "./os-specific/OSSpecificImplementationGetter";
import { IEncodingStat } from "./model/IEncodingStat";... |
//
// Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of ... |
import { Injectable, ElementRef, OnDestroy, Inject } from '@angular/core'
import { Router, NavigationEnd } from '@angular/router'
import { Observable } from 'rxjs/Observable'
import { BehaviorSubject } from 'rxjs/BehaviorSubject'
import { Subscription } from 'rxjs/Subscription'
import {
distinctUntilChanged,
filter... |
FROM balenalib/surface-go-debian:buster-build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
\
# .NET Core dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu63 \
libssl1.1 \
libstdc++6 \
... |
layout: lookup
---
<article class="page">
<div>
<h1>Lookup your UCLA Logon ID</h1>
<form action="/userlookup.php" method="post" data-abide novalidate>
<label title="Enter your last name as it is on file with UCLA. Do not include any suffix." for="sn">Last Name
<input name="sn" type... |
package com.xeiam.xchange.lakebtc.dto.trade;
import com.xeiam.xchange.lakebtc.dto.LakeBTCRequest;
/**
* Created by cristian.lucaci on 12/19/2014.
*/
public class LakeBTCSellOrderRequest extends LakeBTCRequest {
private static final String METHOD_NAME = "sellOrder";
/**
* Constructor
*/
publi... |
<?php
$GET = $filter->sanitizeArray(INPUT_GET);
if(isset($GET['url']) && !empty($GET['url'])){
$user->checkAuth(50, $_SESSION['userId']) ? null : header('Location: ./index.php?p=home&view=Dashboard');
$pageContent = $page->getPageContent($GET['url']);
}else{
header('Location: ./i... |
FROM balenalib/generic-fedora:31-build
ENV NODE_VERSION 10.23.1
ENV YARN_VERSION 1.22.4
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.net --... |
package org.bitcoins.core.api.wallet
import org.bitcoins.crypto.{DoubleSha256Digest, StringFactory}
/** Represents the various ways the wallet can do coin selection */
sealed abstract class CoinSelectionAlgo
object CoinSelectionAlgo extends StringFactory[CoinSelectionAlgo] {
/** Randomly selects utxos until it ha... |
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig
PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
"http://www.ibatis.com/dtd/sql-map-config-2.dtd" >
<sqlMapConfig>
<settings cacheModelsEnabled ="true"
lazyLoadingEnabled="true"
enhancementEnabled="true"
errorTracingEnabled="true"
max... |
Source code for my personal website and blog. Built with [jekyll](https://jekyllrb.com/docs/home).
## Getting Started
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `je... |
export default class Command {
}
|
<?php
namespace Google\Service\AndroidManagement;
class KeyDestructionEvent extends \Google\Model
{
/**
* @var int
*/
public $applicationUid;
/**
* @var string
*/
public $keyAlias;
/**
* @var bool
*/
public $success;
/**
* @param int
*/
public function setApplicationUid($appl... |
<!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_29) on Sat Mar 17 18:05:32 MSK 2012 -->
<TITLE>
Uses of Class org.apache.poi.hssf.record.SCLRecord (POI API Documentation)
</TITLE>
<META NAME="date... |
(()=>{
'use strict';
module.exports = (grunt)=>{
var _ = require('lodash'),
util = require('util'),
promise = require('bluebird'),
path = require('path'),
// promisifyAll the fs module...
fs = promise.pr... |
<?php defined('BASEPATH') or exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Ty... |
"""
WSGI config for ptd_nso_demo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... |
class TSheets::Adapter
class << self
def get(url, options)
raise NotImplementedError
end
def post(url, data, options)
raise NotImplementedError
end
def put(url, data, options)
raise NotImplementedError
end
def delete(url, data, options)
raise NotImplementedError
... |
package resultstore
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible w... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="file://$PROJECT_DIR$" libraries="{Node.js Dependencies for ant.js}" />
</component>
</project>
|
package memory
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/jaegertracing/jaeger/model"
"github.com/jaegertracing/jaeger/storage/spanstore"
)
var testingSpan = &model.Span{
TraceID: model.TraceID{
Low: 1,
High: 2,
},
SpanID: model.SpanID(1),
Process: &model.Process{
Ser... |
(function(window, jQuery, angular, undefined) {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function decode64(input) {
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;
// remove all characters that are not A-Z, a-z, 0-9, +, /, o... |
package com.xiasuhuei321.gankkotlin;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public... |
package io.wcm.handler.link.type;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assert... |
A lightweight, and docile, JavaScript (ES5) library to help embracing functional programming.
[](https://www.npmjs.com/package/lamb) [](https://github.com/ascartabelli/lamb/ac... |
<?php
namespace ZendTwig\Test\Extension;
use PHPUnit\Framework\TestCase;
use Laminas\Mvc\MvcEvent;
use ZendTwig\Extension\Extension;
use ZendTwig\Module;
use ZendTwig\Test\Bootstrap;
use ZendTwig\Test\Fixture\DummyClass;
use ZendTwig\Test\Fixture\Extension\InstanceOfExtension;
use ZendTwig\View\TwigStrategy;
class C... |
section: libraries
title: Saving and Refreshing JWT Tokens
description: Keeping your user logged in
public: false
topics:
- libraries
- lock
- ios
- tokens
contentType:
- how-to
useCase:
- add-login
- enable-mobile-auth
---
# Lock iOS: Saving and Refreshing JWT Tokens
<%= include('../_... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
angular.module('F1FeederApp.controllers', ['ajoslin.promise-tracker']).
/* Drivers controller */
controller('driversController', function($scope, ergastAPIservice,promiseTracker) {
$scope.loadingTracker = promiseTracker();
$scope.condition = "new";
$scope.nameFilter = null;
$scope.driversList = [];
... |
<?php
session_start();
include "dbconnect.php";
include "variable.php";
require_once("includes/ContentSanitize.class.php");
if(($show_ans<0)){
header("location:"."ans.php");
exit();
}
if (!isset($_SESSION['isregistered_platzen'])){
header("Location: index.php");
}
$query = "SELECT score FROM user_in... |
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.te... |
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/**
* \file
* \brief C API: definitions of ICU version numbers
*
* This file is included by uversion.h and other files. This file contains only
* macros and definitions. The actual version numbers are ... |
<!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_67) on Sun Sep 07 15:29:49 CEST 2014 -->
<title>Uses of Class org.apache.cassandra.cql3.Attributes (apache-cassandra API)</title>
<meta... |
<p>layout: projects
authors: Matahi MOARII, Elli PAPAEMMANUIL
title: Pan Myeloid Stratification
location: Memorial Sloan Kettering Cancer Center.</p>
<h2>categories: projects-2015</h2>
|
module TokyoMetro::Factory::Generate::Static::MetaClass
end |
package com.orientechnologies.orient.core.fetch;
import com.orientechnologies.common.collection.OMultiCollectionIterator;
import com.orientechnologies.common.collection.OMultiValue;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.orient.core.db.record.OIdentifiable;
import com... |
package com.mftech.f;
import com.google.common.io.Files;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.suppor... |
interface Array<T> {
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T,
initialValue?: T): T;
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U,
initialValue: U): U;
}
var a: Array<string>;
var r5 = a.redu... |
import sys
import logging
import feedparser
# py-podcast imports
from podcasts.series_driver import SeriesDriver
from podcasts.episodes_driver import EpisodesDriver
from podcasts.storers.json_storer import JsonStorer
from podcasts.models.series import Series
import podcasts.itunes as itunes
def grab_from_link():
# C... |
This is a PHP 5.3 wrapper around [Selenium 2](http://code.google.com/p/selenium/) WebDriver Server via the [wire protocol](http://code.google.com/p/selenium/wiki/JsonWireProtocol).
It is useful, reasonably well-tested, cleanly built and extensible. Although it does not wrap everything [yet](https://github.com/xi-proje... |
This repo has just been transferred to Stripe. Alongside this transfer, Stripe has released version 2.x of the bindings. **[Read about Version 2 here](https://github.com/stripe/stripe-node/wiki/Version-2)**. We'll be going through the backlogged issues in the next few days.
## Installation
`npm install stripe`
## Do... |
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from xml.etree import cElementTree as ET
from . import base
import time
import logging
log = logging.getLogger(__name__)
class xep_0199(base.b... |
package com.gmail.walles.johan.exactype;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import androidx.annotation.Nullable;
public class ExactypeModeTest {
private static final Stri... |
import browserSync from 'browser-sync';
import {
browserSyncConfig
} from '../config';
export const server = () => {
return browserSync.init(browserSyncConfig);
};
export const reload = calback => {
browserSync.reload();
calback();
};
|
static jfieldID getLongFieldID(JNIEnv* env, jobject obj, const char* name) {
jclass cls = env->GetObjectClass(obj);
jfieldID fid = env->GetFieldID(cls, name, "J");
assert(fid);
return fid;
}
static void setInstanceLong(
JNIEnv* env, jobject obj, const char* name, long value) {
return env->SetLongField(... |
Message Fields in Depth
=======================
Structure
---------
Eliot messages are typically serialized to JSON objects.
Fields therefore must have ``str`` as their name.
Message values must be supported by JSON: ``int``, ``float``, ``None``, ``str``, ``dict`` or ``list``.
The latter two can only be composed of o... |
[](https://galaxy.ansible.com/list#/roles/3859)
[](http://opensource.org/licenses/MIT)
[](https://travis-... |
package org.fujaba.graphengine;
import java.util.HashMap;
/**
* The IdManager can track and create IDs for Objects to identify them later on.
*
* @author Philipp Kolodziej
*/
public class IdManager {
private HashMap<Object, Long> idMap;
private HashMap<Long, Object> objectMap;
private long next... |
@interface FLEXExplorerToolbarItem ()
@property (nonatomic) FLEXExplorerToolbarItem *sibling;
@property (nonatomic, copy) NSString *title;
@property (nonatomic) UIImage *image;
@property (nonatomic, readonly, class) UIColor *defaultBackgroundColor;
@property (nonatomic, readonly, class) UIColor *highlightedBackground... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="3507743d-1d97-4e20-91da-62cb87f83427" name="Default" comment="" />
<ignored path="Progressive-Metronome.iws" />
<ignored path=".idea/workspace.xml" />
<option name="TRACKING_ENABL... |
<?php
namespace CsvMigrations\FieldHandlers\Provider\ValidationRules;
/**
* IntegerValidationRules
*
* This class provides the validation rules for the integer field type.
*/
class IntegerValidationRules extends AbstractValidationRules
{
/**
* {@inheritDoc}
*/
public function provide($validato... |
package com.kinoko.graduationdesign.repository;
import com.kinoko.graduationdesign.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import jav... |
Basic algorithms implementation, mainly in C
|
import defineData from './init/defineData';
import captureMeasures from './init/captureMeasures';
import defineVisitOrder from './init/defineVisitOrder';
import { multiply } from 'webcharts';
import layout from './init/layout';
import updatePopulationAnnotation from './init/updatePopulationAnnotation';
import customize... |
const unsigned char font_pc_80x25[4096];
const unsigned char font_pc_80x50[2048];
const unsigned char font_pc_baltic[4096];
const unsigned char font_pc_cyrillic[4096];
const unsigned char font_pc_french_canadian[4096];
const unsigned char font_pc_greek[4096];
const unsigned char font_pc_greek_869[4096];
const unsigned ... |
#import "WXMonitor.h"
#import "WXSDKEngine.h"
#import "WXSDKInstance.h"
#import "WXAppMonitorProtocol.h"
#import "WXHandlerFactory.h"
#import "WXLog.h"
#import "WXUtility.h"
#import "WXComponentManager.h"
#import "WXThreadSafeMutableDictionary.h"
#import "WXAppConfiguration.h"
NSString *const kStartKey = @"start";
N... |
var _; //globals
describe("About Applying What We Have Learnt", function() {
var products;
beforeEach(function () {
products = [
{ name: "Sonoma", ingredients: ["artichoke", "sundried tomatoes", "mushrooms"], containsNuts: false },
{ name: "Pizza Primavera", ingredients: ["roma", "sundried toma... |
package org.geometrycommands;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryCollection;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.LineString;
import org.locationtech.jts.geom.LinearRing;
import o... |
package progen.kernel.functions;
import java.util.Random;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
* ERC que define un valor aleatorio de 32 bits.
*
* @author David Fernandez García & César Estébanez Tascón
* @since 1.0
* @version 2.0
*
*/
public class Bit32ERC extends ERC {
private... |
module IceCube
class DailyRule < ValidatedRule
include Validations::HourOfDay
include Validations::MinuteOfHour
include Validations::SecondOfMinute
include Validations::DayOfMonth
include Validations::DayOfWeek
include Validations::Day
include Validations::MonthOfYear
# include Validat... |
var path = require('path'),
config = require(path.join(__dirname, '..', 'config')).db,
dblite = require('dblite'),
db;
dblite.bin = config.sqlite;
db = dblite(config.file);
// generate url-safe id from title
exports.id = function (title) {
var id = title.trim().toLowerCase();
id = id.replace(/\s+/g, '... |
package org.apache.myriad;
import java.io.IOException;
import java.util.Map;
import org.apache.myriad.configuration.MyriadConfiguration;
import org.apache.myriad.configuration.NodeManagerConfiguration;
import org.apache.myriad.configuration.ServiceConfiguration;
import org.apache.myriad.scheduler.ExecutorCommandLin... |
package ecs
//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... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content... |
layout: default
---
<div class="row">
<div class="col-sm-8">
{{ content }}
</div>
<div class="col-sm-4">
<div class="row">
<div class="col-md-6 margin-trailer">
<a class="btn btn-sm btn-block btn-default" href="https://itunes.apple.com/us/podcast/the-second-page/id971895818?mt=2"><i class="fa fa-fw fa-mu... |
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
[TestFixture]
public class Test13
{
//ChangeTxStatus
[TestCase]
public void ChangeTransactionStatus_ShouldWorkCorrectly_On_ExistingTX()
{
//Arrange
IChainblock cb = new Chainblock();
Trans... |
package libcore.java.net;
import com.google.mockwebserver.Dispatcher;
import com.google.mockwebserver.MockResponse;
import com.google.mockwebserver.MockWebServer;
import com.google.mockwebserver.RecordedRequest;
import com.google.mockwebserver.SocketPolicy;
import java.io.ByteArrayOutputStream;
import java.io.File;
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
Berberis aetnensis C.Presl
### Remarks
null |
"""Main windows GUI kickoff app.
This file contain the code of the main windows.
"""
from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, Screen, WipeTransition
from kivy.lang import Builder
from kivy.properties import NumericProperty, StringProperty
from kivy.clock import Clock
from section im... |
FROM balenalib/amd64-fedora:31-build
ENV NODE_VERSION 12.22.1
ENV YARN_VERSION 1.22.4
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.net --re... |
package org.teavm.backend.c.intrinsic;
import org.teavm.ast.InvocationExpr;
import org.teavm.model.MethodReference;
import org.teavm.runtime.MemoryTrace;
public class MemoryTraceIntrinsic implements Intrinsic {
@Override
public boolean canHandle(MethodReference method) {
return method.getClassName().... |
function init(virtual)
if not virtual then
pipes.init({itemPipe})
self.timer = 0
self.pickupCooldown = 0.2
self.ignoreIds = {}
self.dropPoint = {entity.position()[1] + 1, entity.position()[2] + 1.5}
end
end
--------------------------------------------------------------------------------
funct... |
This is a Sample application for Android built with Xamarin that showcases [App Indexing](https://developers.google.com/app-indexing/introduction) part of Google Play Services and Google Search. The app can be found on [Google Play](https://play.google.com/store/apps/details?id=com.refractored.monkeysapp) and the compa... |
import React, { useMemo } from 'react'
import { createEditor } from 'slate'
import { Slate, Editable, withReact } from 'slate-react'
import { withHistory } from 'slate-history'
const PlainTextExample = () => {
const editor = useMemo(() => withHistory(withReact(createEditor())), [])
return (
<Slate editor={edit... |
MfgBatchx.order_class = 'MfgOrderx::Order'
MfgBatchx.rfq_class = 'JobshopRfqx::Rfq'
MfgBatchx.show_rfq_path = 'jobshop_rfqx.rfq_path(r.rfq_id)'
MfgBatchx.warehouse_checkin_path = "produced_item_warehousex.new_item_path(:batch_id => @batch.id, :name => @rfq.product_name + ' ' + @rfq.drawing_num, :qty => @batch.qty_produ... |
<!--
@license
Copyright (c) 2015 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 contributors may be found at http:/... |
<?php
$is_cp_status = ( function_exists( "bsf_product_status" ) ) ? bsf_product_status('14058953') : '';
$reg_menu_hide = ( (defined( 'BSF_UNREG_MENU' ) && ( BSF_UNREG_MENU === true || BSF_UNREG_MENU === 'true' )) ||
(defined( 'BSF_REMOVE_14058953_FROM_REGISTRATION' ) && ( BSF_REMOVE_14058953_FROM_REGISTRATION ==... |
Lightning talks maken sinds 2015 deel uit van GAPIP. De bedoeling is om
wat uitwisseling te doen over hoe we zaken
aanpakken bij de Chiro en bij de Scouts.
We doen dit zaterdag voor het middageten, omdat dat meestal een rustig
moment is. We voorzien voldoende koffie :-)
We hanteren 20 minuten spreektijd per spreker, ... |
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
|
<?php
namespace Mldic\ApiBundle\Tests\Unit\Orm;
use Mldic\ApiBundle\Orm\LanguageBuilder;
class LanguageBuilderTest extends \PHPUnit_Framework_TestCase
{
private $languageBuilder;
public function setUp()
{
$this->languageBuilder = new LanguageBuilder();
}
public function testShoul... |
int __fastcall myFastCallFunction () {
}
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
// DLL entry method
}
DWORD WINAPI myThreadRun( LPVOID lpUserData )
{
// WINAPI stuff
}
static BOOL CALLBACK EnumWindowsProc(
H... |
using System;
using System.Data.Entity.Migrations;
using System.Linq;
using SaaSPro.Common;
using SaaSPro.Common.Helpers;
using SaaSPro.Domain;
namespace SaaSPro.Data.Repositories
{
public class EFRespository<TEntity> : IRepository<TEntity> where TEntity : Entity
{
protected readonly EFDbContext _dbC... |
import sys
import os
import shlex
sys.path.append(os.path.abspath('../'))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
# sys.... |
package com.uwetrottmann.trakt5.entities;
import javax.annotation.Nonnull;
public class EpisodeIds extends BaseIds {
public Integer tvdb;
public Integer tvrage;
@Nonnull
public static EpisodeIds trakt(int trakt) {
EpisodeIds ids = new EpisodeIds();
ids.trakt = trakt;
return i... |
package com.ycsoft.report.dao.config;
import org.springframework.stereotype.Component;
import com.ycsoft.daos.abstracts.BaseEntityDao;
import com.ycsoft.daos.core.JDBCException;
import com.ycsoft.report.bean.RepOptrConfigrep;
import com.ycsoft.report.commons.ReportConstants;
@Component
public class RepOptr... |
export default class ItemResource {
constructor(item) {
this._links = item.links;
this.entityId = item.entityId;
this.count = item.count;
this.article = {entityId: item.article.entityId};
this.done = item.done;
this.lastModified = item.lastModified;
}
}
|
From the beauties and the details, remove fisheye on the HERO3 Black / HERO3+ Black / HERO3+ Silver to get a non-distorted view. Be STOKED!
###How to use.
download hack to the SD, turn on, wait 5 secs and start recordng. all video will be nonfisheye
|

Typer is an Angular directive that simulates someone typing and deleting over a list of words. The directive is highly customisable and allows the words to be set by passing an array of strings as an attribute, the... |
package personal.smartms.Entity;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;
import java.io.FileNotFoundException;
import java.io.IOException;
import personal.smartms.MainActivity;
/**
* Created by karan on 31/5/15.
*/
public class Contact {
String Name, uri, N... |
import { Plugin } from '../Mod';
export default class OptimizeCssAssetsWebpackPlugin extends Plugin { }; |
import unittest
from saliere.main import load_variables
class TestMain(unittest.TestCase):
def setUp(self):
self.correct_string_single_var = "var1=value1"
self.correct_string_multiple_vars = "var1=value1|var2=value2"
self.incorrect_string = "var1=value1,var2=value2"
self.correct_y... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
using Knowledge.Prospector.Common.Utilites;
namespace Knowledge.Prospector.IO.Documents.Providers
{
public class LocalDocumentProvider : DocumentProviderBase, IDocumentProvider
{
protected override IEnu... |
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#ifndef V8SVGPathSegLinetoRel_h
#define V8SVGPathSegLinetoRel_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/ToV8.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8DOMWrapper.h"
#i... |