answer stringlengths 15 1.25M |
|---|
import * as React from 'react';
import * as ReactDom from 'react-dom';
import * as strings from '<API key>';
import { Version } from '@microsoft/sp-core-library';
import {
<API key>,
<API key>,
} from '@microsoft/sp-webpart-base';
import { <API key> } from '@pnp/<API key>/lib/<API key>';
import BarChartDemo from '.... |
package ca.wescook.wateringcans.events;
import ca.wescook.wateringcans.potions.ModPotions;
import net.minecraft.entity.<API key>;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.FOVUpdateEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraft... |
<html><body>
<h4>Windows 10 x64 (18362.449)</h4><br>
<h2>FEATURE_CHANGE_TIME</h2>
<font face="arial"> <API key> = 0n0<br>
<API key> = 0n1<br>
<API key> = 0n2<br>
<API key> = 0n3<br>
<API key> = 0n128<br>
</font></body></html> |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... |
var GoogleStrategy = require('<API key>').OAuth2Strategy;
var util = require('util');
var session = require('express-session');
var passport = require('passport');
module.exports = (app, url, appEnv, User) => {
app.use(session({
secret: process.env.SESSION_SECRET,
name: 'freelancalot',
proxy... |
const path = require('path');
const express = require('express');
const bodyParser = require('body-parser');
const auth = require('http-auth');
// const basicAuth = require('basic-auth-connect');
const apiHandler = require('./api-handler')
/**
* Installs routes that serve production-bundled client-side assets.
* It i... |
from djblets.cache.backend import cache_memoize
class BugTracker(object):
"""An interface to a bug tracker.
BugTracker subclasses are used to enable interaction with different
bug trackers.
"""
def get_bug_info(self, repository, bug_id):
"""Get the information for the specified bug.
... |
using System;
using System.Linq;
namespace <API key>.Common.Extensions
{
public static class StringExtensions
{
public static string ToCamelCase(this string value)
{
return value.Substring(0, 1).ToLower() + value.Substring(1);
}
public static string ToPascalCase(this ... |
package net.zer0bandwidth.android.lib.content.querybuilder;
import android.content.ContentResolver;
import android.support.test.runner.AndroidJUnit4;
import android.test.ProviderTestCase2;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static junit.framework.Assert.assertNull;
/... |
#ifndef PIN_MANAGER_H
#define PIN_MANAGER_H
#define INPUT 1
#define OUTPUT 0
#define HIGH 1
#define LOW 0
#define TOGGLE 2
#define ANALOG 1
#define DIGITAL 0
#define PULL_UP_ENABLED 1
#define PULL_UP_DISABLED 0
// get/set Volume aliases
#define Volume_TRIS TRISA5
#define Volum... |
using System;
namespace DD.Cloud.WebApi.TemplateToolkit
{
<summary>
Factory methods for creating value providers.
</summary>
<typeparam name="TContext">
The type used as a context for each request.
</typeparam>
public static class ValueProvider<TContext>
{
<summary>
Creat... |
#ifndef <API key>
#define <API key>
#pragma once
#include <cobalt/utility/compare_floats.hpp>
#include <cobalt/utility/enum_traits.hpp>
#include <cobalt/utility/enumerator.hpp>
#include <cobalt/utility/factory.hpp>
#include <cobalt/utility/hash.hpp>
#include <cobalt/utility/type_index.hpp>
#include <cobalt/utility/iden... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Babylonian</source>
<translation>در مورد Babylonian</translation>
... |
import sys
from stack import Stack
def <API key>(expression):
"""
Parse expression into list of parts
:rtype : list
:param expression: str # i.e. "2 * 3 + ( 2 - 3 )"
"""
raise NotImplementedError("complete me!")
def evaluate_expression(a, b, op):
raise NotImplementedError("complete me!")
def... |
namespace TraverseDirectory
{
using System;
using System.IO;
using System.Text;
using System.Xml;
class Program
{
static void Main()
{
using (XmlTextWriter writer = new XmlTextWriter("../../dir.xml", Encoding.UTF8))
{
writer.Formatting = Fo... |
__history = [{"date":"Fri, 12 Jul 2013 08:56:55 GMT","sloc":9,"lloc":7,"functions":0,"deliveredBugs":0.05805500935039566,"maintainability":67.90674087790423,"lintErrors":3,"difficulty":5.3076923076923075}] |
/* eslint-disable */
'use strict';
var path = require('path');
module.exports = function configGrunt(grunt, p) {
grunt.registerTask('test', []);
}; |
// Preprocessor Directives
#define <API key>
// Local Headers
#include "glitter.hpp"
#include "shader.h"
#include "camera.h"
// Console Color
#include "consoleColor.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
// Standard Headers
//#include <cstdio>
//#in... |
require File.expand_path('../boot', __FILE__)
require 'rails'
# Pick the frameworks you want:
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
# requir... |
{{<govuk_template}}
{{$head}}
{{>includes/elements_head}}
{{>includes/elements_scripts}}
{{/head}}
{{$propositionHeader}}
{{>includes/<API key>}}
{{/propositionHeader}}
{{$headerClass}}with-proposition{{/headerClass}}
{{$content}}
<header class="page-header">
</header>
<main id="page-container" role="main">
<di... |
using System.ComponentModel.DataAnnotations;
namespace ContosoUniversity.Web.ViewModels
{
public class TokenViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
}
... |
<?php
session_start();
include_once "base.php";
$rowsPerPage=10;
$offset=2;
$sql = "SELECT area_code,area_desc,active FROM `area` ORDER BY area_code ";
$query = mysql_query($sql);
if(!$query) die('MySQL Error: '.mysql_error());
?>
<div class='form'>
<button onclick="open_menu('area_form');"><span><a>+ Add... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Shop_currency_model</title>
<link rel="stylesheet" href="resources/bootstrap.min.css?<SHA1-like>">
<link rel="stylesheet" href="resources/style.css?<SHA1-like>">
</head>
<body>
<div id="navigation" class="navbar navbar-fixed-top">
... |
require "spec_helper"
describe Time do
describe ".<API key>" do
subject { time.<API key> }
context "after 5am" do
let(:time) { Time.parse("2011-11-07 15:15:33") }
let(:<API key>) { Time.parse("2011-11-07 5:00:00") }
it { should be_within(1.second).of(<API key>) }
end
context "before ... |
#PDF Finish
PDF finishing touches tool to add metadata and table of contents.
Generated PDF files, from various programs, may not have complete metadata
and may not have the desired content in the navigation table of contents
available in online readers.
##Usage
There are two usage modes, show and update.
Show mode
Sho... |
<?php
use Guzzle\Plugin\Mock\MockPlugin;
use OpenTok\Archive;
use OpenTok\Util\Client;
class ArchiveTest extends <API key> {
// Fixtures
protected $archiveData;
protected $API_KEY;
protected $API_SECRET;
protected $archive;
protected $client;
protected static $mockBasePath;
public static... |
package ca.uwo.eng.sel.cepsim.placement
import java.util.{List => JavaList, Set => JavaSet}
import ca.uwo.eng.sel.cepsim.query._
import scala.collection.JavaConversions._
import scala.collection.mutable
/** Companion Placement object */
object Placement {
def apply(vertices: JavaSet[Vertex], vmId: Int): Placement = n... |
var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var url = require('url');
var log4js = require('log4js');
var stashBoxConfig = require('./lib/config');
var pkg = require('./package.json');
var proxy = require('express-http-proxy');
var fileDriver = require('./drive... |
require 'active_support/core_ext/array/conversions'
require 'delegate'
module ServiceObject
# Provides a customized +Array+ to contain errors that happen in service layer.
# Also provides a utility APIs to handle errors well in controllers.
# (All array methods are available by delegation, too.)
# errs = Serv... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @author victor li nianchaoli@msn.cn
# @date 2015/10/07
import baseHandler
class MainHandler(baseHandler.RequestHandler):
def get(self):
self.redirect('/posts/last') |
// NSDate+WT.h
// lchSDK
#import <Foundation/Foundation.h>
@interface NSDate (WT)
- (BOOL)isThisYear;
- (BOOL)isYesterday;
- (BOOL)isToday;
@property (nonatomic, copy, readonly) NSString *timeStamp;
//@property (nonatomic, assign, readonly) long timeStamp;
@property (nonatomic, strong, readonly) NSDateComponents *com... |
package me.dayler.ai.ami.conn;
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.<API key>;
import java.util.Scanner;
import java.util.regex.Pattern;
/**
* Default implementat... |
<!DOCTYPE html>
<html lang="en-us" ng-app="myApp">
<head>
<meta charset="utf-8">
<title>Scope and Interpolation</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- load bootstrap and fontawesome via CDN -->
<li... |
// test/main.js
var Parser = require('../src/markdown-parser');
var parser = new Parser();
var parserOptions = new Parser();
var assert = require("assert");
describe('tests', function() {
describe('parsing', function() {
it('bold', function(done) {
parser.parse("**b** __b__", function(err, result) {
... |
import React from "react";
import { connect } from "react-redux";
import { withRouter, Route } from "react-router";
import { Link } from "react-router-dom";
import { Entry } from "../../pages/entry";
class BlogCard extends React.Component {
render() {
return (
<div>
<h2>{this.props.title}</h2>
... |
.page-content .navbar-fixed-bottom,.page-content .navbar-fixed-top{position:relative}.page-content .card-block{padding-left:0;padding-right:0}.page-content .card-block .card-link+.card-link{margin-left:0}.scrollspy-example{position:relative;height:200px;padding:0 20px;overflow:auto;-webkit-box-shadow:0 2px 4px rgba(0,0... |
module.exports = {
stores: process.env.STORES ? process.env.STORES.split(',') : [
'elasticsearch',
'postgresql',
'leveldb'
],
postgresql: {
host: process.env.POSTGRESQL_HOST || 'localhost',
port: process.env.POSTGRESQL_PORT || '5432',
username: process.env.POSTGRESQL_USER || 'postgres',
... |
import React from 'react';
import { createStore } from 'redux';
import { <API key> } from 'history';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import rootReducer from '../../src/reducers';
import Routes from '../../src/Routes';
import App from '../../src/containers/App';
const configureStore = in... |
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<string.h>
int main(){
int pid1,pid2,pid3,pid4;
int p1[2],p2[2];
char bufr[30],rev[30];
int countL=0,countU=0,i=-1,j=0,countV=0,len;
pipe(p1);
pipe(p2);
if(pid1=fork()==0){
if(pid2=fork()==0){
read(p2[0],bufr,sizeof(bufr... |
import appActions from './application'
import todosActions from './todos'
import filterActions from './filter'
import commentsActions from './comments'
import userActions from './user'
export {
appActions,
todosActions,
filterActions,
commentsActions,
userActions
}
export * from './application'
export * from ... |
<link <API key>="true" href="http://zebra.easybird.cn//assets/application-<SHA256-like>.css" media="all" rel="stylesheet">
<script <API key>="true" src="http://zebra.easybird.cn//assets/assets/application-<SHA256-like>.js"></script>
<meta content="authenticity_token" name="csrf-param">
<meta content="mk1Ai+<API key>/ZV... |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substanti... |
# <API key>
start ```npm run start``` |
import * as R_drop from '../ramda/dist/src/drop';
declare const number: number;
declare const string: string;
declare const boolean_array: boolean[];
// @dts-jest:pass
R_drop(number, string);
// @dts-jest:pass
R_drop(number, boolean_array); |
function <API key>() {
return !! (history && history.replaceState && history.pushState);
}
$(document).ready(function() {
//_gaq.push(['_trackEvent', '<API key>', 'Load']);
if(<API key>()) {
var formSelector = ".current form";
initializeHistory();
var getCurrentPosition = function () {
var slugA... |
.crystal-tooltip {
position: absolute;
z-index: 1030;
display: block;
padding: 5px;
font-size: 13px;
opacity: 0;
filter: alpha(opacity=0);
visibility: visible;
}
.crystal-tooltip.shown {
opacity: .8;
}
.crystal-tooltip.bottom {
margin-bottom: -3px;
padding-top: 9px;
}
.crystal-tooltip.top {
marg... |
<?php
namespace Symfony\Tests\Component\Security\User;
use Symfony\Component\Security\User\AccountChecker;
class AccountCheckerTest extends \<API key>
{
public function testCheckPre<API key>()
{
$checker = new AccountChecker();
$this->assertNull($checker->checkPreAuth($this->getMock('Symfony\Com... |
Ext.define('CustomIcons.view.Main', {
extend: 'Ext.tab.Panel',
xtype: 'main',
requires: [
'Ext.TitleBar',
'Ext.Video'
],
config: {
tabBarPosition: 'bottom',
items: [
{
title: 'Welcome',
iconCls: 'headphones',
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../../_lib/setUTCDay/index.js');
var _index2 = <API key>(_index);
var _index3 = require('../../../_lib/setUTCISODay/index.js');
var _index4 = <API key>(_index3);
var _index5 = require('../../../_lib/setUTCISOWeek/ind... |
<script src='<?php echo base_url()?>assets/js/tinymce/tinymce.min.js'></script>
<script>
tinymce.init({
selector: '#myartikel'
});
</script>
<form action="<?php echo base_url('admin/Cartikel_g/proses_add_artikel') ?>" method="post" enctype="multipart/form-data">
<div class="col-md-8 whitebox">
<h3 cla... |
#ifndef BITCOIN_SPAN_H
#define BITCOIN_SPAN_H
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <type_traits>
#ifdef DEBUG
#define <API key>
#define ASSERT_IF_DEBUG(x) assert((x))
#else
#define <API key> constexpr
#define ASSERT_IF_DEBUG(x)
#endif
#if defined(__clang__)
#if __has_at... |
# <API key>: true
module ArrayUtil
def self.insert_before(array, new_element, element)
idx = array.index(element) || -1
array.insert(idx, new_element)
end
def self.insert_after(array, new_element, element)
idx = array.index(element) || -2
array.insert(idx + 1, new_element)
end
end |
// get params
function getParams()
{
var params = {
initial_amount: parseInt($('#initial_amount').val(), 10) || 0,
<API key>: parseFloat($('#<API key>').val()) / 100 || 0,
monthly_amount: parseFloat($('#monthly_amount').val()),
num_months: parseInt($('#num_months').val(), 10)
};
... |
using Lidgren.Network;
namespace Gem.Network.Handlers
{
public class DummyHandler : IMessageHandler
{
public void Handle(NetConnection sender, object args)
{ }
}
} |
define([
"dojo/_base/declare",
"dojo/_base/fx",
"dojo/_base/lang",
"dojo/dom-style",
"dojo/mouse",
"dojo/on",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dojo/text!./templates/TGPrdItem.html",
"dijit/_OnDijitClickMixin",
"dijit/<API key>",
"dijit/form/Button"
], functi... |
<?php
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/Util/Filter.php';
require_once 'PHPUnit/Util/Timer.php';
PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
abstract class <API key> extends <API key>
{
/**
* @var integer
*/
protected $maxRunningTime = 0;
/**
* @ret... |
const { ipcRenderer, remote } = require('electron');
const mainProcess = remote.require('./main');
const currentWindow = remote.getCurrentWindow();
const $name = $('.name-input');
const $servings = $('.servings-input');
const $time = $('.time-input');
const $ingredients = $('.ingredients-input');
const $directions = $(... |
require 'spec_helper'
module Sexpr::Matcher
describe Rule, "eat" do
let(:rule){ Rule.new :hello, self }
def eat(seen)
@seen = seen
end
it 'delegates to the defn' do
rule.eat([:foo])
@seen.should eq([:foo])
end
end
end |
/*
* Store drawing on server
*/
function saveDrawing() {
var drawing = $('#imagePaint').wPaint('image');
var imageid = $('#imageTarget').data('imageid');
var creatormail = $('input[name=creatorMail]').val();
//Add spinning wheel
var spin = $(document.createElement('div'));
spin.addClass('spin');
$('#dia... |
'use strict'
//Globals will be the stage which is the parrent of all graphics, canvas object for resizing and the renderer which is pixi.js framebuffer.
var stage = new PIXI.Container();
var canvas = document.getElementById("game");;
var renderer = PIXI.autoDetectRenderer(1024, 570, {view:document.getElementById("game"... |
import React, {Component} from 'react';
import {connect} from 'react-redux';
class MapFull extends Component {
constructor() {
super();
this.state = {
htmlContent: null
};
}
componentDidMount() {
this.getMapHtml();
}
componentDidUpdate(prevProps, prevState) {
if (!this.props.map || t... |
// Karma configuration file, see link for more information
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('<API key>'),
require('<API ke... |
description: An example using the Auth0 Quickstart for a SPA implementation with Auth0 Universal Login.
classes: video-page
# Authenticate: SPA Example
See an example using the Auth0 Quickstart for a single-page application (SPA) implementation and learn how Auth0's Universal Login feature does most of the authenticati... |
<div class="container">
<div class="row">
<sd-toolbar></sd-toolbar>
</div>
<div class="row">
<sd-navbar></sd-navbar>
</div>
<div class="row">
<router-outlet></router-outlet>
</div>
</div> |
from ab_tool.tests.common import (SessionTestCase, TEST_COURSE_ID,
<API key>, <API key>, <API key>,
APIReturn, LIST_MODULES)
from django.core.urlresolvers import reverse
from ab_tool.models import (Experiment, <API key>)
from ab_tool.exceptions import (<API key>,
<API key>, UNAUTHORIZED_ACCESS,
<API key... |
#-*- coding: utf-8 -*-
from flask import current_app, flash, url_for, request
from flask_admin import expose, BaseView
from logpot.admin.base import AuthenticateView, flash_errors
from logpot.admin.forms import SettingForm
from logpot.utils import ImageUtil, getDirectoryPath, loadSiteConfig, saveSiteConfig
import os
fr... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Queues extends CI_Controller {
public function __construct()
{
parent::__construct();
<API key>('Asia/Kolkata');
$this->is_logged_in();
}
public function index()
{
$data['pageName']='Queues';
... |
SOURCES=$(shell find notebooks -name *.Rmd)
TARGETS=$(SOURCES:%.Rmd=%.pdf)
%.html: %.Rmd
@echo "$< -> $@"
@Rscript -e "rmarkdown::render('$<')"
%.pdf: %.Rmd
@echo "$< -> $@"
@Rscript -e "rmarkdown::render('$<')"
default: $(TARGETS)
clean:
rm -rf $(TARGETS) |
header: meta
example: Collection.meta
The `meta` attribute is a special attribute on a Collection which allows you to store additional information about the Collection instance. For example, you can save pagination data in `meta`.
The meta information is part of the information that is stored in the object when you ca... |
use std::ops::{Add, Mul};
use std::iter::Sum;
#[derive(Copy, Clone, Serialize, Deserialize)]
pub struct Color(pub f64, pub f64, pub f64);
pub const RED: Color = Color(1.0, 0.0, 0.0);
pub const GREEN: Color = Color(0.0, 1.0, 0.0);
pub const BLUE: Color = Color(0.0, 0.0, 1.0);
pub const WHITE: Color = Color(1.0, 1.0, 1.0... |
<?php namespace Todohelpist\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class Inspire extends Command {
/**
* The console command name.
*
* @var string
*... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.10.21 at 02:36:24 PM CEST
package nl.wetten.bwbng.toestand;
import java.util.ArrayList;
... |
var f = require('fs');
var _ = require('underscore');
var r = {};
var cr = require('../config.json').resources;
var k = require('../config.json').plugins;
var b = require('../config.json').APIVARS.PLUGINS;
var n = __dirname.replace('/autoform', b.DIR);
var w = ['tokens', 'settings'];
var s = ['actions', 'login', 'recov... |
SET DEFINE OFF;
ALTER TABLE AFW_13_PAGE_ITEM ADD (
CONSTRAINT <API key>
FOREIGN KEY (REF_MESG_AIDE)
REFERENCES AFW_01_MESG (SEQNC)
ENABLE VALIDATE)
/ |
#ifndef ARROW_PASS_H
#define ARROW_PASS_H
#include <memory>
#include <string>
#include "arrow/generator.hpp"
namespace arrow {
class Pass {
public:
explicit Pass(GContext& ctx) : _ctx(ctx) { }
Pass(const Pass& other) = delete;
Pass(Pass&& other) = delete;
Pass& operator=(const Pass& other) = delete;
Pass& op... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once("Auth.php");
class GameQuestion extends Auth {
public function __construct(){
parent::__construct();
$this->load->model("game_md");
$this->load->model("question_md");
}
public function index($game_id)... |
date: 2015-05-09T16:59:30+02:00
title: "Exporting Your Mockups"
menu: "menugoogledrive3"
product: "Balsamiq Mockups 3 for Google Drive"
weight: 160
tags:
- "Exporting"
- "PDF"
- "PNG"
- "Printing"
- "Image"
include: "exporting"
editorversion: 3
aliases: /google-drive/exporting/ |
/* get_next_line.c :+: :+: :+: */
/* By: gmange <gmange@student.42.fr> +#+ +:+ +#+ */
/* Created: 2013/12/02 16:03:39 by gmange #+# #+# */
#include <unistd.h>
#include "libft.h"
#include "get_next_line.h"
/*
** retur... |
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
namespace Affixx.Core.Database.Generator
{
internal class <API key> : SchemaReader
{
private DbConnection _connection;
public override Tables ReadSchema(DbConnection connection)
{
var result = new ... |
<p align="center"><a href="https:
Package [response](https:
It provides syntactic sugar that lets you easily write responses on the context.
[
SET @sql ='CREATE SCHEMA StackExchange AUTHORIZATION [dbo]'
IF NOT EXISTS(SELECT name FROM sys.schemas WHERE name = 'StackExchange')
begin
EXEC sp_executesql @sql;
end
-- NOTE: StackExchange is replaced by the name of the site
IF EXISTS ... |
var AWS = require('aws-sdk');
var Policy = require("./s3post").Policy;
var helpers = require("./helpers");
var POLICY_FILE = "policy.json";
var schedule = require('node-schedule');
var Worker = function(sqsCommnad, s3Object, simpleData){
var queue = sqsCommnad;
var s3 = s3Object;
var simpleDataAuth = simple... |
# TODO When raising an exception pass a lambda function, the function being the module/path/name thing
ERROR = {'default': "Unknown engine error ({0})",
400: "Bad request sent to search API ({0})",
401: "Incorrect API Key ({0})",
403: "Correct API but request refused ({0})",
404: "Ba... |
import React, { Component } from 'react'
import { Form, Grid, Image, Transition } from 'shengnian-ui-react'
const transitions = [
'scale',
'fade', 'fade up', 'fade down', 'fade left', 'fade right',
'horizontal flip', 'vertical flip',
'drop',
'fly left', 'fly right', 'fly up', 'fly down',
'swing left', 'swin... |
#!/bin/bash
QBIN=$(which qdyn5_r8)
OK="(\033[0;32m OK \033[0m)"
FAILED="(\033[0;31m FAILED \033[0m)"
steps=( $(ls -1v *inp | sed 's/.inp
for step in ${steps[@]}
do
echo "Running step ${step}"
if ${QBIN} ${step}.inp > ${step}.log
then echo -e "$OK"
cp ${step}.re ${step}.re.rest
else
echo -e "$FAILED"
ech... |
# <API key>
Return the vertical-rhythm setting scope class
Return **{ [String](http://www.sass-lang.com/documentation/file.SASS_REFERENCE.html#sass-script-strings) }** The vertical-rhythm scope class from settings.vertical-rhythm.scope-class
Author : Olivier Bossel [olivier.bossel@gmail.com](mailto:olivier.bossel@gmail... |
export class Guest {
constructor(public name: String, public quantity: number){
}
} |
FROM sameersbn/ubuntu:14.04.20150805
MAINTAINER sameer@damagehead.com
ENV REDMINE_VERSION=3.1.0 \
REDMINE_USER="redmine" \
REDMINE_HOME="/home/redmine" \
REDMINE_LOG_DIR="/var/log/redmine" \
SETUP_DIR="/var/cache/redmine" \
RAILS_ENV=production
ENV REDMINE_INSTALL_DIR="${REDMINE_HOME}/redmine" \
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dosen extends MY_Controller {
public $data = array(
'breadcrumb' => 'Dosen',
'pesan' => '',
'subtitle' => '',
'main_view' => 'viewDosen',
);
public function __construct(){
parent::__constr... |
import {server} from './initializers'
module.exports = function startServer(){
server.listen(8080)
} |
using System;
using System.ServiceModel;
namespace SoapCore.Tests.Wsdl.Services
{
[ServiceContract]
public interface <API key>
{
[OperationContract]
NulEnum? GetEnum(string text);
}
public class NullableEnumService : <API key>
{
public NulEnum? GetEnum(string text)
... |
var Game = {
map: {
width: 980,
height: 62 * 12
},
tiles: {
size: 62,
count: [100, 12]
},
sprite: {
8: 'LAND_LEFT',
2: 'LAND_MID',
10: 'LAND_RIGHT',
9: 'LAND',
5: 'WATER_TOP',
12: 'WATER',
4: 'STONE_WITH_MONEY',
11: 'STONE',
6: 'CACTUS',
13: 'GRASS',
... |
# Demo mode
Smart meter has a demo mode that is intended to make demonstrating the product and system-level testing easier.
Demo mode allows creating situations that would be hard to create otherwise (e.g. connection to cloud is lost between
price request and parking event registering). Demo mode is to be used in devel... |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... |
#!/usr/bin/python
import os
import re
from lxml import etree as et
import pcbmode.config as config
from . import messages as msg
# pcbmode modules
from . import utils
from .point import Point
def makeExcellon(manufacturer='default'):
ns = {'pcbmode':config.cfg['ns']['pcbmode'],
'svg':config.cfg['ns']['svg... |
'use strict';
import _ from 'lodash';
import bluebird from 'bluebird';
import fs from 'fs';
import requireDir from 'require-dir';
import Logger from '../../logger';
bluebird.promisifyAll(fs);
function main() {
const imports = _.chain(requireDir('./importers'))
.map('default')
.map((importer) => importer.run()... |
// <API key>.cs created with MonoDevelop
// User: ben at 1:31 P 19/03/2008
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
using System;
namespace EmergeTk.Model
{
public class <API key> : Attribute
{
string name;
public string Name {
get {
... |
Ext.define('Category.view.GenericList', {
extend: 'Ext.grid.Panel',
alias: 'widget.genericlist',
store: 'Generic',
title: Raptor.getTag('category_header'),
iconCls:'',
initComponent: function() {
this.columns = [{
header:Raptor.getTag('category_name'),
dataIndex: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.