answer stringlengths 15 1.25M |
|---|
namespace SharedWeekends.MVC.Areas.Administration.Controllers
{
using System.Web.Mvc;
using SharedWeekends.Data;
using SharedWeekends.MVC.Controllers;
[Authorize(Roles = "admin")]
public abstract class AdminController : BaseController
{
public AdminController(IWeekendsData data)
... |
# VisMod
While the ultimate goal of VisMod is to assist in groundwater flow model visualization,
the current classes support the export of files that can be used in visualization software
such as [http://wci.llnl.gov/codes/visit/].
[;
function MockProject() {
var root = process.cwd();
var pkg = {};
Project.apply(this, [root, pkg]);
}
MockProject.prototype.require = function(file) {
if (file === './server') {
return function() {
return {
listen: function()... |
<!DOCTYPE html>
<html lang="en" ng-app="App">
<head>
<meta charset="UTF-8">
<title>form</title>
<link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.min.css">
<style>
.container {
margin-top: 30px;
}
</style>
</head>
<body ng-controller="MyCtrl">
<div class="container">
<... |
#[derive(Debug)]
pub struct Rectangle {
length: u32,
width: u32,
}
impl Rectangle {
pub fn can_hold(&self, other: &Rectangle) -> bool {
self.length > other.length && self.width > other.width
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn <API key>() {
let larger = Rect... |
'use strict';
function NavalMap(canvasId, imageMapUrl, imageCompassUrl, config) {
this.canvas = document.getElementById(canvasId);
this.imageMap = new Image();
this.imageCompass = new Image();
this.config = config;
this.itemsLoaded = false;
this.nationsLoaded = false;
this.shopsLoaded = fals... |
import _curry2 from "./_curry2";
/**
* Accepts an object and build a function expecting a key to create a "pair" with the key
* and its value.
* @private
* @function
* @param {Object} obj
* @returns {Function}
*/
var _keyToPairIn = _curry2(function (obj, key) {
return [key, obj[key]];
});
export default _key... |
// CHeapPtr for VB
#pragma once
template <typename T>
class VBHeapPtr :
public CHeapPtrBase<T, VBAllocator>
{
public:
VBHeapPtr() throw() : CHeapPtrBase<T, VBAllocator>()
{
}
VBHeapPtr(VBHeapPtr<T>& p) throw() :
CHeapPtrBase<T, VBAllocator>(p)
{
}
explicit VBHeapPtr(T* p) throw(... |
'use strict';
alchemy.use('http', 'http');
alchemy.use('path', 'path');
alchemy.use('graceful-fs', 'fs');
alchemy.use('util', 'util');
alchemy.use('mongodb', 'mongodb');
alchemy.use('less', 'less');
alchemy.use('hawkejs', 'hawkejs');
alchemy.hawkejs = new Classes.Hawkejs.Hawkejs;
/**
* The function to detect when ever... |
package com.eaw1805.data.model.map;
import com.eaw1805.data.constants.RegionConstants;
import com.eaw1805.data.model.Game;
import java.io.Serializable;
/**
* Represents a region of the world.
*/
public class Region implements Serializable {
/**
* Required by Serializable interface.
*/
static final l... |
h1 {
/* inline || block || */
display: inline;
/* padding-box || border-box */
box-sizing: content-box;
padding: 0;
margin: 0;
}
/* Important Auto */
.auto-parent {
width: 500px;
}
.auto-child {
/* With Auto Width - it will fill up to take all the remaining space - 400 px */
margin-l... |
js
var PlistUtils = (function() {
function readTextFile(strPath) {
var error;
var str = ObjC.unwrap(
$.NSString.<API key>(
$(strPath).<API key>,
$.<API key>,
error
)
);
if (error)
throw Error('Could n... |
#!/bin/sh
# Verifies that go code passes go fmt, go vet, golint, and go test.
lintignore=golintignore
o=$(tempfile)
fail() {
echo Failed
cat $o
exit 1
}
echo Formatting
gofmt -l $(find . -name '*.go') 2>&1 > $o
test $(wc -l $o | awk '{ print $1 }') = "0" || fail
echo Vetting
go vet ./... 2>&1 > $o || fail
e... |
Tessellator.Model.prototype.drawObject = Tessellator.Model.prototype.add; |
#!-*- coding:utf-8 -*-
import time
def retries(times=3, timeout=1):
def decorator(func):
def _wrapper(*args, **kw):
att, retry = 0, 0
while retry < times:
retry += 1
try:
return func(*args, **kw)
except:
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Ginolhac">
<meta name="generator" content="Hugo 0.42... |
{% from "components/table.html" import list_table, field, <API key>, row_heading, <API key> %}
{% from "components/page-footer.html" import page_footer %}
<div class="<API key>" aria-labelledby='pill-selected-item'>
<div class="dashboard-table bottom-gutter-3-2">
{% call(item, row_number) list_table(
[notificat... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>V8 API Reference Guide for node.js v8.10.0: Class Members</title>
<link href="tabs.css" rel... |
.loading {
margin: 0 auto;
width: 100px;
padding-top: 50px;
}
.la-ball-fussion,
.la-ball-fussion > div {
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.la-ball-fussion {
display: block;
font-size: 0;
color: #fff;
}... |
// rd_route.c
// This software may be modified and distributed under the terms
#include <stdlib.h> // realloc()
#include <libgen.h> // basename()
#include <assert.h> // assert()
#include <stdio.h> // fprintf()
#include <dlfcn.h> // dladdr()
#include "TargetConditionals.h"
#if d... |
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// furnished to do so, subject to the following conditions:
// substantial portions of the Software.
// IMPLIED, INCLUDING BUT... |
<!
Safe sample
input : backticks interpretation, reading the file /tmp/tainted.txt
SANITIZE : use of preg_replace with another regex
File : use of untrusted data in one side of a quoted expression in a script
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html>
<head>
<title>readlines (Buffering)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/... |
var crypto = require('crypto');
var lob = require('lob-enc')
var hashname = require('hashname');
var log = require("./log")("Handshake")
module.exports = {
bootstrap : handshake_bootstrap,
validate : handshake_validate,
from : handshake_from,
types : handshake_types,
collect : handshake_collect
};... |
# <API key>
> a bower publish processor for gitflow-publisher


[
[ {
browser.get('index.html');
it('should automatically redirect to /home when location hash/fragment is empty', function() {
expect(browser.getLocationAbsUrl()).toMatch("/home");
});
describe('view1', function() {
beforeEach(function() {
browser.get('inde... |
datab = [{},{"Attribute":{"colspan":"1","rowspan":"1","text":"Modality"},"Tag":{"colspan":"1","rowspan":"1","text":"(0008,0060)"},"Value":{"colspan":"1","rowspan":"1","text":"CT"}},{"Attribute":{"colspan":"1","rowspan":"1","text":"Photometric Interpretation"},"Tag":{"colspan":"1","rowspan":"1","text":"(0028,0004)"},"Va... |
<!doctype html>
<html>
<title>commands</title>
<meta http-equiv="content-type" value="text/html;utf-8">
<link rel="stylesheet" type="text/css" href="../static/style.css">
<body>
<div id="wrapper">
<h1><a href="../api/commands.html">commands</a></h1> <p>npm commands</p>
<h2 id="SYNOPSIS">SYNOPSIS</h2>
<pre><... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutIteration(Koan):
def <API key>(self):
it = iter(range(1,6))
total = 0
for num in it:
total += num
self.assertEqual(15 , total)
def <API key>(self):
stages = iter(['alpha','beta'... |
{% extends "layout.html" %}
{% block body %}
<title>All Events - Media Services</title>
<form id="adminForm" action="" method=post>
<div class="container">
<table class="table">
<thead>
<td>
<ul class="nav nav-pills">
<li class="nav-item">
... |
html,
body {
font-family: 'Roboto', 'Helvetica', sans-serif;
}
strong,
b {
font-weight: 700;
}
h1,
h2,
h3 {
font-family: "Roboto Slab", "Helvetica", "Arial", sans-serif;
}
pre, code {
font-family: "Roboto mono", monospace;
}
.<API key> {
position: absolute;
top: 50px;
bottom: 50px;
left:... |
function RenderPassManager(renderer)
{
// not implemented yet
throw "Not implemented";
var mRenderPasses = [];
return this;
}
RenderPassManager.prototype.addRenderPass = function(renderPass)
{
mRenderPasses.push(renderPass);
};
RenderPassManager.prototype.render = function()
{
for(var renderPass in mRende... |
package com.malalaoshi.android.ui.dialogs;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.widge... |
#!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var optimist = require('optimist');
var prompt = require('prompt');
var efs = require('efs');
var encext = require('./index');
var defaultAlgorithm = 'aes-128-cbc';
var argv = optimist
.usage('usage: encext [-r] [-a algorithm] [file ...]')
.des... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
Sebastian Daza
| R package to compute statistics from the American Community Survey (ACS) and Decennial US ... |
using CertificateManager.Entities;
using CertificateManager.Entities.Interfaces;
using System.Collections.Generic;
using System.Security.Claims;
namespace CertificateManager.Logic.Interfaces
{
public interface IAuditLogic
{
IEnumerable<AuditEvent> GetAllEvents();
void <API key>(ClaimsPrincipal u... |
<?php
if (empty($content)) {
return;
}
$title = 'Bank Emulator Authorization Center';
?>
<html lang="ru">
<?=
View::make('ff-bank-em::layouts.head', array(
'title' => $title,
)); ?>
<body>
<div class="navbar navbar-default">
<?=
View::make('ff-bank-em::layouts.navbar-header', array(
'title' => $... |
export function wedgeYZ(a, b) {
return a.y * b.z - a.z * b.y;
}
export function wedgeZX(a, b) {
return a.z * b.x - a.x * b.z;
}
export function wedgeXY(a, b) {
return a.x * b.y - a.y * b.x;
} |
package cloudformation
// <API key> AWS CloudFormation Resource (AWS::ECS::Service.<API key>)
type <API key> struct {
// MaximumPercent AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
MaximumPercent int `json:"... |
package sysadmin
import org.scalatest._
import scalikejdbc._
import scalikejdbc.scalatest.AutoRollback
import skinny.logging.Logging
import skinny.test.FactoryGirl
class userAdminSpec
extends fixture.FunSpec
with Matchers
with Connection
with CreateTables
with AutoRollback
with Logging {
overr... |
var scroungejs = require('scroungejs'),
startutils = require('./startutil');
startutils.<API key>({
pathSrc : './test/indexSrc.html',
pathFin : './test/index.html'
}, function (err, res) {
if (err) return console.log(err);
scroungejs.build({
inputPath : [
'./test/testbuildSrc',
'./node_modul... |
var Struct = ( function()
{
return function ( members )
{
var mode = "default";
var ctor = function( values )
{
if ( mode === "new" )
{
mode = "void";
return new Struct();
}
if ( mode === "void" )
... |
var utils = require('./utils')
, request = require('request')
;
module.exports = {
fetchGithubInfo: function(email, cb) {
var githubProfile = {};
var api_call = "https://api.github.com/search/users?q="+email+"%20in:email";
var options = { url: api_call, headers: { 'User-Agent': 'Blogdown' } };
con... |
// STShare.h
// Loopy
#import "STAPIClient.h"
#import <Foundation/Foundation.h>
#import <Social/Social.h>
@interface STShareActivityUI : NSObject
@property (nonatomic, strong) UIViewController *parentController;
@property (nonatomic, strong) STAPIClient *apiClient;
- (id)initWithParent:(UIViewController *)parent apiC... |
using Radical.Reflection;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
namespace Radical.Windows
{
static class <API key>
{
public static string GetDisplayName(this PropertyInfo propertyInfo)
{
if (propertyInfo != null && property... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleCiphers.Models
{
public static class ArrayOperations
{
// a b text = 1
// a 1 2 return x = 0, y = 0
public static bool ContainsIn(string text, str... |
import java.text.NumberFormat;
// ManageAccounts.java
// Use Account class to create and manage Sally and Joe's bank accounts
public class ManageAccounts
{
public static void main(String[] args)
{
Account acct1, acct2;
NumberFormat usMoney = NumberFormat.getCurrencyInstance();
//crea... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
</head>
<body id="body" lang="en">
<?php echo $sf_content ?>
</body>
</html> |
from api_request import Api
from util import Util
from twocheckout import Twocheckout
class Sale(Twocheckout):
def __init__(self, dict_):
super(self.__class__, self).__init__(dict_)
@classmethod
def find(cls, params=None):
if params is None:
params = dict()
response = cls... |
<?php
/**
* Class for handling multiple GtkWindow objects
*
* contains all static methods
*/
class CC_Wm
{
/**
* GtkWindow object array
* [string GtkWindow_Name]
* array(
* GtkWindow - Store GtkWindow object
* )
*
* @var array
*/
protecte... |
module.exports = <API key>;
function <API key> () {
return {
restrict: 'AE',
replace: true,
scope: {
submitClick: '&submitClick',
cancelClick: '&cancelClick'
},
templateUrl: '/src/utils/views/formButtons.tmpl.html',
link: function (scope, elem)... |
ActionController::Routing::Routes.draw do |map|
map.resources :projects
map.resources :priorities
map.resources :tasks
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
#... |
<?php
namespace Master\AdvertBundle\Controller;
use Elastica\Filter\GeoDistance;
use Elastica\Query\Filtered;
use Elastica\Query\MatchAll;
use Master\AdvertBundle\Document\Advert;
use Master\AdvertBundle\Document\Localization;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundatio... |
# ASConfigCreator
[;
//= require data-basic
$context.section('Форматирование', 'Механизм одностороннего связывания (one-way-binding)');
//= require data-format
$context.section('Настройка', 'Управление изменением виджет... |
package org.dvare.annotations;
import org.dvare.expression.datatype.DataType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface... |
import json
import os
from flask import request, g, render_template, make_response, jsonify, Response
from helpers.raw_endpoint import get_id, store_json_to_file
from helpers.groups import get_groups
from json_controller import JSONController
from main import app
from pymongo import MongoClient, errors
HERE = os.path.d... |
package com.arekusu.datamover.model.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTyp... |
<?php
namespace PragmaRX\Sdk\Services\Accounts\Exceptions;
use PragmaRX\Sdk\Core\<API key>;
class InvalidPassword extends <API key> {
protected $message = 'paragraphs.invalid-password';
} |
import React from 'react';
import './skills.scss';
export default () => {
return (
<section className="skills-section">
<svg className="bigTriangleColor separator-skills" width="100%" height="100" viewBox="0 0 100 102" preserveAspectRatio="none">
<path d="M0 0 L0 100 L70 0 L100 100 L100 0 Z" />
... |
import axios from 'axios';
export default axios.create({
baseURL: 'http://localhost:9000/v1/'
}); |
/*
* THIS FILE IS AUTO GENERATED FROM 'lib/lex/lexer.kep'
* DO NOT EDIT
*/
define(["require", "exports", "bennu/parse", "bennu/lang", "nu-stream/stream", "ecma-ast/token", "ecma-ast/position",
"./boolean_lexer", "./comment_lexer", "./identifier_lexer", "./<API key>", "./null_lexer",
"./number_lexer", "./punct... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using IdentityServer3.Core.Events;
using IdentityServer3.<API key>.Extensions;
using IdentityServer3.<API key>.Mapping;
using IdentityServer3.<API key>.Mapping.Configuration;
using Serilog.Events;
using Unittests.Extension... |
<h1><?=$title?></h1>
<h5>Ordered by Points</h5>
<?php foreach ($users as $user) : ?>
<div class="mini-profile left">
<img class="gravatar left" src="<?= $this->mzHelpers->get_gravatar($user->email, 128); ?>" alt="">
<div class="info">
<a hr... |
// Multiprocessor support
// mist32 is not supported multiprocessor
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
struct cpu cpus[NCPU];
int ismp;
int ncpu;
void
mpinit(void)
{
ismp = 0;
ncpu = 1;
lapic = 0;
cpus[ncpu].id = ncpu;
ncpu++;
re... |
#include <stdio.h>
#include "cgm_play.h"
#include "cgm_list.h"
#ifndef _CGM_TYPES_H_
#define _CGM_TYPES_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef int(*CGM_FUNC)(tCGM* cgm);
typedef struct {
double xmin;
double xmax;
double ymin;
double ymax;
} tLimit;
typedef struct {
unsigned long red;
unsigned lon... |
require 'spec_helper'
require 'serializables/vector3'
describe Moon::Vector3 do
context 'Serialization' do
it 'serializes' do
src = described_class.new(12, 8, 4)
result = described_class.load(src.export)
expect(result).to eq(src)
end
end
end |
package org.liquidizer.snippet
import scala.xml._
import scala.xml.parsing._
import net.liftweb.util._
import net.liftweb.http._
import net.liftweb.http.js._
import net.liftweb.http.js.JsCmds._
import net.liftweb.common._
import org.liquidizer.model._
object Markup {
val URL1= "(https?:/[^\\s\"]*[^\\s!?&.<>])"
val ... |
<?php
$typeList[] = "varchar";
$typeList[] = "char";
$typeList[] = "text";
$typeList[] = "tinytext";
$typeList[] = "mediumtext";
$typeList[] = "longtext";
$typeList[] = "tinyint";
$typeList[] = "smallint";
$typeList[] = "mediumint";
$typeList[] = "int";
$typeList[] = "bigint";
$typeList[] = "real";
$typeList[] = "doubl... |
body {
font-family: helvetica, arial, sans-serif;
font-size: 24px;
line-height: 36px;
background: url("<API key>.jpg");
background-position: top center;
background-size: cover;
background-repeat: none;
overflow: hidden;
}
* {
box-sizing: border-box;
-moz-box-sizing: border-box;
... |
#if false
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LionFire.Behaviors
{
public class Coroutine
{
}
}
#endif |
package SOLID.Exercise.Logger.model.appenders;
import SOLID.Exercise.Logger.api.File;
import SOLID.Exercise.Logger.api.Layout;
import SOLID.Exercise.Logger.model.files.LogFile;
public class FileAppender extends BaseAppender {
private File file;
public FileAppender(Layout layout) {
super(layout);
... |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Module to be tested:
log10 = require( './../lib/array.js' );
// VARIABLES //
var expect = chai.expect,
asse... |
match x:
| it?(): true |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>circuits: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zchinese: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
import {Component} from 'react'
export class Greeter {
constructor (message) {
this.greeting = message;
}
greetFrom (...names) {
let suffix = names.reduce((s, n) => s + ", " + n.toUpperCase());
return "Hello, " + this.greeting + " from " + suffix;
}
greetNTimes ({name, times}) {
let greeting =... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>jsGrid - Data Manipulation</title>
<link rel="stylesheet" type="text/css" href="demos.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600,400' rel='stylesheet' type='text/css'>
<link r... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <teatime.h>
static int <API key>(uint32_t *major, uint32_t *minor);
static int <API key>(GLuint program);
static int <API key>(GLuint shader);
#define <API key>(FN,RC) if ((RC = <API key>(__LIN... |
class CreateLists < ActiveRecord::Migration[5.1]
def change
create_table :lists do |t|
t.string :letter
t.string :tax_reference
t.string :list_type
t.date :date_list
t.timestamps
end
end
end |
var groove = require('groove');
var semver = require('semver');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var mkdirp = require('mkdirp');
var fs = require('fs');
var uuid = require('./uuid');
var path = require('path');
var Pend = require('pend');
var DedupedQueue = require('./dedup... |
import { stringify } from 'qs'
import _request from '@/utils/request'
import mini from '@/utils/mini'
import env from '@/config/env'
// import { modelApis, commonParams } from './model'
// import { version } from '../package.json'
let apiBaseUrl
apiBaseUrl = `${env.apiBaseUrl}`
const regHttp = /^https?/i
const isMock =... |
import m from 'mithril';
import _ from 'underscore';
import postgrest from 'mithril-postgrest';
import models from '../models';
import h from '../h';
import <API key> from '../c/<API key>';
import <API key> from '../c/<API key>';
import <API key> from '../c/<API key>';
import <API key> from '../vms/<API key>';
import F... |
<?php
namespace Faker\Provider\fa_IR;
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array( // land line formts seprated by province
"011
"013
"017
"021
"023
"024
"025
"026
"028
"031
"034
... |
'use strict';
import { TPromise, Promise } from 'vs/base/common/winjs.base';
import { xhr } from 'vs/base/common/network';
import { <API key>, Extensions } from 'vs/platform/configuration/common/<API key>';
import strings = require('vs/base/common/strings');
import nls = require('vs/nls');
import { IDisposable, dispose... |
// IGViewController.h
// KaifKit
#import <UIKit/UIKit.h>
@interface IGViewController : UIViewController
@end |
<?php
$news = array(
array(
'created_at' => '2015-04-29 00:00:00',
'image' => 'http://fakeimg.pl/768x370/3c3c3c/',
'thumb' => 'http://fakeimg.pl/200x200/3c3c3c/',
'title' => 'Blimps to Defend Washington, D.C. Airspace',
'content' => '<p>Lorem ipsum dolor sit amet, consectetur adi... |
# Dreedi
To start your this app:
1. Install dependencies with `mix deps.get`
2. Create and migrate your database with `mix ecto.create && mix ecto.migrate`
3. Start Phoenix endpoint with `mix phoenix.server`
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class <API key> extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('platforms', function (Blueprint $table) {
$table->incre... |
require 'spec_helper'
RSpec.describe RailsAdmin::ApplicationHelper, type: :helper do
describe '#authorized?' do
let(:abstract_model) { RailsAdmin.config(FieldTest).abstract_model }
it 'doesn\'t use unpersisted objects' do
expect(helper).to receive(:action).with(:edit, abstract_model, nil).and_call_origi... |
package nl.ulso.sprox.json.spotify;
import nl.ulso.sprox.Node;
import java.time.LocalDate;
import java.util.List;
/**
* Sprox processor for Spotify API album data. This is a very simple processor that ignores most data.
* <p>
* This implementation creates an Artist object for each and every artist in the response. B... |
from corecat.constants import OBJECT_CODES, MODEL_VERSION
from ._sqlalchemy import Base, CoreCatBaseMixin
from ._sqlalchemy import Column, \
Integer, \
String, Text
class Project(CoreCatBaseMixin, Base):
"""Project Model class represent for the 'projects' table
which is used to store project's basic inf... |
/**
* Angular 2 decorators and services
*/
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { environment } from 'environments/environment';
import { AppState } from './app.service';
/**
* App Component
* Top Level Component
*/
@Component({
selector: 'my-app',
encapsulation: ViewEnc... |
#ifndef <API key>
#define <API key>
#include "uint256.h"
#include "sapling/address.h"
#include "sapling/sapling.h"
#include <array>
namespace libzcash {
// Ciphertext for the recipient to decrypt
typedef std::array<unsigned char, <API key>> <API key>;
typedef std::array<unsigned char, <API key>> SaplingEncPlaintext;
//... |
import React from 'react';
import { TypeChooser } from 'react-stockcharts/lib/helper'
import Chart from './Chart'
import { getData } from './util';
class ChartComponent extends React.Component {
componentDidMount () {
getData().then(data => {
this.setState({ data})
})
}
render () {
if (this.stat... |
# Cookbook Name:: stow
# Spec:: default
require 'spec_helper'
describe 'stow::default' do
context 'When all attributes are default, on an unspecified platform' do
let(:chef_run) do
runner = ChefSpec::ServerRunner.new
runner.converge(described_recipe)
end
it 'converges successfully' do
ch... |
#ifndef <API key>
#define <API key>
#include <boost/filesystem.hpp>
#include <turbo_broccoli/type/key.hpp>
#include <turbo_broccoli/type/value.hpp>
#include <turbo_broccoli/type/blob.hpp>
#include <turbo_broccoli/type/tags.hpp>
#include <turbo_broccoli/type/tagged_records.hpp>
#include <turbo_broccoli/type/result_find.... |
#!/usr/bin/env python
from ansible.module_utils.hashivault import hashivault_argspec
from ansible.module_utils.hashivault import <API key>
from ansible.module_utils.hashivault import hashivault_init
from ansible.module_utils.hashivault import hashiwrapper
ANSIBLE_METADATA = {'status': ['stableinterface'], 'supported_by... |
package com.gmail.hexragon.gn4rBot.command.ai;
import com.gmail.hexragon.gn4rBot.managers.commands.CommandExecutor;
import com.gmail.hexragon.gn4rBot.managers.commands.annotations.Command;
import com.gmail.hexragon.gn4rBot.util.GnarMessage;
import com.google.code.chatterbotapi.ChatterBot;
import com.google.code.chatter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.