code stringlengths 4 1.01M |
|---|
namespace Ioke.Lang {
using Ioke.Lang.Util;
using System.Text;
public class Locals {
public static void Init(IokeObject obj) {
obj.Kind = "Locals";
obj.GetMimics().Clear();
obj.SetCell("=", obj.runtime.Base.Cells["="]);
var assgn = IokeObjec... |
<div class="copy">
All Rights Reserved <span class='uc'>[uC]</span> 2017
</div> |
module.exports = require('./lib/Redback');
|
import {Component, ElementRef} from '@angular/core';
import { ProductionTileService } from '../../shared/services/productiontile.service';
import { Router } from '@angular/router';
import {Observable} from 'rxjs/Rx';
//import 'style-loader!./tiles.scss';
@Component({
selector: 'production-tiles',
styleUrls: ['./tile... |
#[macro_use]
extern crate nom;
extern crate regex;
#[macro_use]
extern crate log;
#[macro_use]
mod internals;
pub mod types;
pub mod parser; |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'C:/xampp/htdocs/castledevcms/user/plugins/admin/languages/ar.yaml',
'modified' => 1493044482,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'هذا إصدار بيتا! استخدم هذا في الإنتاج على مسؤوليتك الخا... |
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.ExceptionHandling;
namespace Hyperfriendly.WebApi.ErrorHandling
{
public class HyperfriendlyExceptionHandler : ExceptionHandler
{
private readonly ExceptionTransformer _transformer... |
import React, { Component } from 'react';
import CatagoryBox1 from '../CatagoryBox1';
import { BgBox } from './style';
function BackgroundBox (props) {
const {bcolor} = props;
const {data} = props;
const cata = data.map((d,i) => <CatagoryBox1 data={d} key={i} />);
return (
<BgBox bcolor={bcolor}>
... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Security... |
# logparser
A generic log parser that reads in a configuration file before reading logs. The configuration file specifies what information the user is looking for and how to display the information.
This totally doesn't work at all, I barely started it.
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodeAbp.Scaffolding.Models
{
public enum euColumnType
{
/// <summary>
/// int
/// </summary>
intCT = 0x1
,
/// <summary>
/// dec... |
var playState = {
create: function(){
var background = game.add.sprite(0, 0, 'cidade');
background.width = 1300;
background.height = 650;
graphics = game.add.graphics(0, 0);
groupCidade = game.add.group();
groupCidade.inputEnableChildren = true;
var x = 1... |
/* Google Fonts to use. See the following page for more fonts:
http://cssdeck.com/labs/cool-and-professional-google-web-fonts-for-use
*/
@import url(//fonts.googleapis.com/css?family=Ubuntu);
@import url(//fonts.googleapis.com/css?family=Advent+Pro);
html {
min-height: 100%;
position: relative;
}
body {
/... |
version https://git-lfs.github.com/spec/v1
oid sha256:d33a38aa03c6c04c3b54d84dbf40da10270e517a1f2ca5ed32486bd757d16cd0
size 455
|
---
layout: post
title: The doodle
date: 2016-06-24 01:40:00.810Z
description: "Maggie"
---

|
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vm.h"
ProcessorState * ProcessorState_new() {
// State box for this processor
ProcessorState *new_procstate = (ProcessorState *) malloc(sizeof(ProcessorState));
// Setup the processor
Processor *new_proc = (Pro... |
using System;
using System.Globalization;
using Newtonsoft.Json;
using HolisticWare.Ph4ct3x.Sports.Judo.InternationalJudoFederation.Internal;
namespace HolisticWare.Ph4ct3x.Sports.Judo.InternationalJudoFederation.Internal
{
public class SearchAllResult
{
[JsonProperty("module")]
public Module... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Exam Schema
*/
var GroupSchema = new Schema({
group_name: {//分组名称
type: String,
default: ''
},
group_type: { //分组类型
type: String,
default: '',
trim: true
},
group_created:{//分组数据入库时间... |
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
"strings"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
"github.com/... |
# Copyright 2015 The TensorFlow 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 required by applica... |
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("SheepAspect.Commons.Test")]
[assembly: As... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TextBox_")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Asse... |
//-----------------------------------------------------------------------
// <copyright file="Reserve.cs" company="ShareKnowledge">
// Copyright (c) ShareKnowledge. All rights reserved.
// </copyright>
// <author>Alejandro Perdomo</author>
//-----------------------------------------------------------------------
... |
/**
* Example
* @version 0.0.1
*/
var MetaReponse = require('./MetaResponse');
var MetaData = require('./MetaData');
var MetaError = require('./MetaError');
var data1 = new MetaData();
var mr = new MetaReponse();
data1.setId(3);
data1.setType('recipe');
data1.addAttribute('title', 'Risotto al funghi');
dat... |
<?php
// library for using escaped sql
class DB {
protected static $db;
static function getDB() {
return self::$db;
}
// choose database
static function init($databaseName) {
//insert MySQL server, user, password
self/* or DB */::$db = mysqli_connect("yourServer", "yourUs... |
//=======================================================================
// Copyright (c) 2014-2020 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... |
# About Kohana Cache
[Kohana_Cache] provides a common interface to a variety of caching engines. [Cache_Tagging] is
supported where available natively to the cache system. Kohana Cache supports multiple
instances of cache engines through a grouped singleton pattern.
## Supported cache engines
* APC ([Cache_Apc])
... |
import { Class as Model } from 'meteor/jagi:astronomy';
import * as Errors from './errors.js';
export function init(config) {
config.collection = new Mongo.Collection(config.collectionName);
config.model = Model.create({
name: config.modelName,
collection: config.collection,
fields: co... |
~~~ {.html #id .codeclass}
<b>bold</b>
~~~
|
"use strict";
/* tslint:disable */
var load_themed_styles_1 = require("@microsoft/load-themed-styles");
var styles = {};
load_themed_styles_1.loadStyles([{ "rawString": ".ms-FocusTrapZoneBoxExample{border:dashed 1px #ababab}.ms-FocusTrapComponent{border:#000 2px solid;padding:5px}" }]);
module.exports = styles;
/* tsli... |
export default function VuxTableColumnDefinition (options) {
return {
...{
key: 'id',
label: 'Id',
isDisabled: false,
isHidden: false,
isSortable: false,
isSorting: false,
sortDirection: 'desc',
isFilterable: false,
displayComponent: null,
editComponent:... |
/*
UrchinTSS
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the right... |
/*******************************************************************************
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html.
*
* This f... |
# frozen_string_literal: true
require 'spec_helper'
shared_examples_for 'AtomicInternalId' do |validate_presence: true|
describe '.has_internal_id' do
describe 'Module inclusion' do
subject { described_class }
it { is_expected.to include_module(AtomicInternalId) }
end
describe 'Validation'... |
#ifdef DEBUG
#if(DEBUG)
#define DBGPRINTF(...) fprintf(stderr,__VA_ARGS__);
#else
#define DBGPRINTF(...) 0
#endif
#endif
|
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
$table = postvalue("table");
if (!checkTableName($table))
{
exit(0);
}
require_once("include/".$table."_variables.php");
if((!isLogged() || !CheckSecurity(@$_SESSION["_".$strTableName."_OwnerID"],"Se... |
---
layout: post
title: Request Routing
categories: magento-certification-notes request-flow
---
##Describe request routing/request flow in Magento
https://up.kibakoapp.com/QXvgswmXcs
Once the Magento application has instantiated front controller and matched a router in the database it should be able to match the UR... |
/*
Algorithm for Influence Estimation and Maximization
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without re... |
.pure-danger{
background: red;
}
.right{
float: right;
}
/* Put your CSS here */
.inlineblock{
display: inline-block;
}
.loading{
background-image: url("../images/loader.gif");
background-color: #fffffff;
display: inline-block;
width: 32px;
height: 32px;
}
.footer{
position: fixed;
bottom: 0;
... |
<?php
return array(
'modules' => array(
'LammStorage',
'LammRedis',
),
'module_listener_options' => array(
'config_glob_paths' => array('../../../config/autoload/{,*.}{global,local}.php'),
'module_paths' => array('module','vendor'),
),
);
|
Plugins
=========
Each one of the following CUDA programs can be generated in two ways:
- as a dynamic shared object (*.so files): `make plugins` (or simply `make`)
- as a standalone program: `make executables`
The difference between them is that the standalone programs take their parameters through ARGV, while the *... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization
//
... |
#include "stdafx.h"
#include "Help.h"
namespace LiteCppDB_Console_Commands
{
DataAccess Help::getAccess() noexcept
{
return DataAccess::None;
}
bool Help::IsCommand(LiteCppDB::StringScanner& s) noexcept
{
return s.Scan("help[[:s:]]*").length() > 0;
}
void Help::Execute(LiteCppDB::LiteEngine engine, LiteCp... |
package zfs_test
import (
"fmt"
"path/filepath"
"github.com/cerana/cerana/acomm"
zfsp "github.com/cerana/cerana/providers/zfs"
)
func (s *zfs) TestGet() {
tests := []struct {
args *zfsp.CommonArgs
err string
}{
{&zfsp.CommonArgs{Name: ""}, "missing arg: name"},
{&zfsp.CommonArgs{Name: "ds_no_exist"}, ... |
# docker-rustfmt
Docker image for rustfmt
|
//
// SBAppDelegate.h
// SBLibrary
//
// Created by NguyenTran on 08/24/2017.
// Copyright (c) 2017 NguyenTran. All rights reserved.
//
@import UIKit;
@interface SBAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
Silex Web Profiler Provider
===========================
A Silex Service and Controller provider to make use of Symfony's Web Profiler.
This is very Alpha, not to be depended on.
Contributing
------------
Get in touch before hacking on anything, I've no idea what I might be doing, the
whole library may have changed ... |
## Bookmarks tagged [[game-development]](https://www.codever.land/search?q=[game-development])
_<sup><sup>[www.codever.land/bookmarks/t/game-development](https://www.codever.land/bookmarks/t/game-development)</sup></sup>_
---
#### [SiegeLord/RustAllegro](https://github.com/SiegeLord/RustAllegro)
_<sup>https://github.c... |
- https://twitter.com/zubkou/lists/flow/members
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div>
<?php echo validation_errors(); ?>
<?php if (isset($error)) : ?>
<div>
<?= $error ?>
</div>
<?php endif; ?>
<?= form_open('user/register') ?>
<div>
<label for="username">Use... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <IDEKit/IDENavigableItemDomainProvider.h>
@interface IDENavigableItemSourceControlDomainProvider : IDENavigableItemDomainProvider
{
}
+ (id)domainObjectForWorkspace:(i... |
#if UNIT_TEST_PROG == true
#include "tests/unit_tests.hpp"
#endif
#include <utility>
#include "common/global/program_data.hpp"
#include "menus/budget_menu.hpp"
namespace
{
global::program_data load_program_data();
int start_prog();
/**
* @brief Returns a global::program_data that is initi... |
<?php
namespace EPFL\Menus\CLI;
if (! defined( 'ABSPATH' )) {
die( 'Access denied.' );
}
use \WP_CLI;
use \WP_CLI_Command;
require_once(dirname(__DIR__) . '/lib/i18n.php');
use function EPFL\I18N\___;
require_once(__DIR__ . '/epfl-menus.php');
use \EPFL\Menus\ExternalMenuItem;
class EPFLMenusCLICommand extend... |
package compilerapi
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"strings"
)
const (
GoogleEndpointUrl = "http://closure-compiler.appspot.com/compile"
)
// See https://developers.google.com/closure/compiler/docs/api-ref for details about the options
type Client struct {
// Possible... |
// The MIT License (MIT)
//
// Copyright (c) 2015-2016 Rasmus Mikkelsen
// Copyright (c) 2015-2016 eBay Software Foundation
// https://github.com/rasmus/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software")... |
# Quantum Computing for Computer Scientists Drills
DONE SO FAR:
- Chapter 2
- Chapter 3
- Chapter 4.1
TODO:
- All other chapters
Merge requests are welcome for anybody who can make more optimal solutions to the drills
|
interface ITableListBindings {
addButton: any;
config: any;
data: any;
extra: any;
filters: any;
onAction: Function;
onSort: Function;
openFiltersPanel: Function;
rowClickable: boolean;
sort: any;
title: string;
}
interface ITableListController extends ITableListBindings {
isFunction(field: any... |
'use strict'
const MongoClient = require('mongodb').MongoClient
const muri = require('muri')
const chai = require('chai')
const expect = chai.expect
const assert = chai.assert
const chaiSubset = require('chai-subset')
chai.use(chaiSubset)
chai.should()
const stringConnection = 'mongodb://localhost:27017/lambda-mongo... |
//= require ./src/module
//= require_tree ./src/services
//= require_tree ./src/controllers
//= require_tree ./src/directives |
class Thor
module ZshCompletion
module Command
def self.included(klass)
klass.class_eval do
desc "zsh-completion", "Print zsh completion script"
option :name, aliases: [:n]
def zsh_completion
name = options.name || File.basename($0)
puts ZshCompl... |
'''
Created on Jun 16, 2014
@author: lwoydziak
'''
import pexpect
import sys
from dynamic_machine.cli_commands import assertResultNotEquals, Command
class SshCli(object):
LOGGED_IN = 0
def __init__(self, host, loginUser, debug = False, trace = False, log=None, port=22, pexpectObject=None):
se... |
<?php
namespace Common\DataBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CommonDataBundle extends Bundle
{
}
|
[](http://travis-ci.org/pirxpilot/guard)
[](http://badge.fury.io/js/guard)
# guard
Trivial guard: triggers callback when internal counter reaches 0.
## API
Create ```guard``` passing callback function... |
package com.revolut.sinap.payment;
import java.util.Objects;
import java.util.UUID;
public class Payment implements PaymentServiceOperation {
private final UUID transactionId;
private long sourceAccountId;
private Currency sourceCurrency;
/**
* minor units
*/
private long sourceAmount;
... |
// Operational amplifier
extern struct {
// OPAMP1 control register
struct {
unsigned int OPAMP1_EN: 1; // OPAMP1 enable
unsigned int FORCE_VP: 1; // FORCE_VP
unsigned int VP_SEL: 2; // OPAMP1 Non inverting input selection
unsigned int : 1; // Reserved
unsigned int VM_SEL: 2; // OPAMP1 i... |
describe "Application 'conekta-motion'" do
# before do
# @app = UIApplication.sharedApplication
# end
#
# it "has one window" do
# @app.windows.size.should == 1
# end
end
|
(function($){
$.applyBulkSelectTable = function(obj, settings) {
var lastClickedElement = null,
lastClickedChecked = false,
lastClickedIndex = null;
var applyClass = function(obj, className, checked) {
if(checked)
obj.addClass(className);
else
obj.removeClass(className);
};
obj.... |
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not recei... |
using Asteroids.Model;
using Asteroids.Utils;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows;
using Xamarin.Forms;
namespace Asteroids.ViewModel
{
public class AsteroidsViewModel : INotifyPropertyChanged
{
#r... |
#include "DecisionTreeLearner.h"
#include "RowListUtil.h"
#include <stdexcept>
#include <vector>
#include <sstream>
using namespace std;
using namespace ml;
typedef vector<DecisionTree*>::iterator DTIterator;
typedef vector<DecisionTree*>::const_iterator DTCIterator;
typedef vector<DecisionTree*>::reverse_iterator DT... |
use nix::sys::socket::{InetAddr, UnixAddr, getsockname};
use std::{mem, net};
use std::path::Path;
use std::str::FromStr;
use std::os::unix::io::AsRawFd;
use ports::localhost;
#[test]
pub fn test_inetv4_addr_to_sock_addr() {
let actual: net::SocketAddr = FromStr::from_str("127.0.0.1:3000").unwrap();
let addr =... |
// Copyright (c) 2013 Richard Long & HexBeerium
//
// Released under the MIT license ( http://opensource.org/licenses/MIT )
//
#import <Foundation/Foundation.h>
#import "CABaseException.h"
#import "CAJob.h"
@protocol CAJobListener <NSObject>
-(void)jobCompleted:(id<CAJob>)job;
-(void)jobFailed:(id<... |
using AVDump3CL;
using AVDump3Lib.Processing.HashAlgorithms;
using AVDump3Lib.Settings;
using AVDump3Lib.Settings.CLArguments;
using System.Diagnostics;
using System.Security.Cryptography;
using System.Xml.Linq;
using Xunit;
namespace AVDump3Tests;
public class CLTests {
[Fact]
public void WithoutArgs() {
var man... |
{% extends "template.html" %}
{% block content %}
<h1>About</h1>
<p>This is all about us.</p>
{% endblock %}
|
@include ('theme.header')
@yield('content')
@include ('theme.footer') |
<?php
if ( ! class_exists( 'WP_Customize_Control' ) )
return NULL;
/**
* Customize Control for Heading
*/
class WEN_Customize_Heading_Control extends WP_Customize_Control {
public $type = 'heading';
public function render_content() {
?>
<h3 class="wen-customize-heading"><?php echo esc_html( $thi... |
package myheadlessplugin;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
}
}
|
using System.Reflection;
using System.Runtime.CompilerServices;
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("16... |
package controller.tasks;
import static controller.NAMControllerCompilerMain.LOGGER;
import java.io.File;
import java.io.FileFilter;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.ExecutionException;
import javax.swing.SwingWorker;
import controller.Compile... |
package seedu.task.commons.util;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import javafx.stage.FileChooser;
import javafx.stage.FileChooser.ExtensionFilter;
import javafx.stage.Stage;
/**
* Writes and reads files
*/
public class FileUtil {
private static final String CHARSET... |
/**
* IconElement is often mixed into other classes to generate an icon.
* Icons are graphics, about the size of normal text. They are used to aid the user
* in locating a control or to convey information in a space-efficient way. See the
* [OOUI documentation on MediaWiki] [1] for a list of icons
* included in th... |
//
// UIButton+SKClickInterval.h
// SKExtension
//
// Created by CFsyk on 2017/10/23.
// Copyright © 2017年 CFsyk. All rights reserved.
//
#import <UIKit/UIKit.h>
//设置按钮的点击间隔为"kDefaultClickInterval"
@interface UIButton (SKClickInterval)
@end
|
![In-game picture of Madagascar][1]
The country of Madagascar is only reachable through sea. This means that if the country closes its shipyard before I reach it there is no way I can possibly win… or is there?
How can I work around this?
http://www.crazymonkeygames.com/Pandemic-2.html
[1]: http://i.stack.imgur.c... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
<?php
namespace Dafiti\Correios\Adapter;
use Dafiti\Correios\Entity;
class SapAdapterTest extends \PHPUnit_Framework_TestCase
{
private $adapter;
private $config;
public function setUp()
{
$this->adapter = $this->getMockBuilder(__NAMESPACE__.'\\SoapAdapter')
->disableOriginalCons... |
#include "actiongroup.h"
#include "taskheader_p.h"
#include "taskgroup_p.h"
#include "actionlabel.h"
#include "actionpanelscheme.h"
#include <QtGui/QPainter>
namespace QSint
{
ActionGroup::ActionGroup(QWidget *parent)
: QWidget(parent)
{
myHeader = new TaskHeader(QPixmap(), "", false, this);
myHeader->se... |
<?php
/*
* This file is part of the Liquid package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Liquid
*/
namespace Liquid\Tag;
use Liquid\TestCase;
use Liquid\Template;
class TagForTest extends TestCase
{
/**
... |
#ifndef MARKER_OBJECT_H
#define MARKER_OBJECT_H
class StateGraphicsObject;
class MarkerObject
{
public:
MarkerObject(int id, int color, StateGraphicsObject* parent = nullptr);
public:
void connectToState(StateGraphicsObject* state);
void disconnectFromState();
int getId();
int getColor();
private... |
/**
* Created by Yang on 2/11/16.
*/
import { createSelector } from 'reselect';
const selectForgetPasswordPage = () => (state) => state.get('forgetpassword');
const selectEmail = () => createSelector(
selectForgetPasswordPage(),
(forgetPasswordState) => forgetPasswordState.get('email')
);
const selectError = (... |
### SpendFrom ###
Use the raw transactions API to send coins received on a particular
address (or addresses).
### Usage: ###
Depends on [jsonrpc](http://json-rpc.org/).
spendfrom.py --from=FROMADDRESS1[,FROMADDRESS2] --to=TOADDRESS --amount=amount \
--fee=fee --datadir=/path/to/.gvidoncore --testnet -... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: test.py
#
# Copyright 2018 Costas Tyfoxylos
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without li... |
import { createPool } from '../index';
const pool = createPool(
{
create: function () {
return Promise.resolve('test');
},
destroy: function (resource) {
}
},
{
max: 10,
idleTimeoutMillis: 30000,
priorityRange: 3
}
);
pool.acquire().then(function (client) {
pool.release(cli... |
import {assert} from 'chai'
import {toConsole} from '../src/destinations'
import {Message} from '../src/message'
import {addDestination} from '../src/output'
import {assertContainsFields} from '../src/testing'
describe('toConsole', function() {
/** @test {toConsole} */
it('performs a noop if no suitable meth... |
import isNil from "lodash/isNil";
import isArray from "lodash/isArray";
import isFunction from "lodash/isFunction";
import isObject from "lodash/isObject";
import mergeWith from "lodash/mergeWith";
import Fakerator from "lib/fakerator";
module.exports = function() {
let locale = require("lib/locales/sv-SE");
let fb... |
module.exports = {
'tokens': [
{
'type': 'category',
'name': 'Colors',
'tokens': [
{
'variable': '--app-accent-color',
'name': 'App Accent Color',
'type': 'color',
'themes': {
'plain': {
'value': 'black',
'va... |
using System.Linq.Expressions;
using System.Reflection;
namespace GraphExec
{
internal sealed class ExpressionProcessResult<T>
{
internal MemberExpression Member { get; set; }
internal ConstantExpression Constant { get; set; }
internal FieldInfo Field { get; set; }
internal str... |
require 'spec_helper'
describe MongoProfiler do
end
|
#ifndef _LIBP_VPX_H_
#define _LIBP_VPX_H_
#ifdef __cplusplus
extern "C" {
#endif
void* vpx_init(const char* filename);
const unsigned char* vpx_read(void *input, unsigned int *length);
void vpx_destroy(void *input);
#ifdef __cplusplus
}
#endif
#endif |
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
/**
* @exports BMNGRestLayer
*/
define([
'../error/ArgumentError',
'../layer/Layer',
'../util/Logger',
'../... |
console.log('Hello!');
var thermostat = new Thermostat();
var updateTemperature = function() {
$('#temperature_display').text(thermostat.temperature);
$('#temperature_display').css('color', thermostat.colour);
};
$(document).ready(function() {
updateTemperature();
$('#increase-button').on('click', functio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.