answer stringlengths 15 1.25M |
|---|
// <API key>.h
// BBBLayer
#import <UIKit/UIKit.h>
@interface <API key> : UIViewController
@end |
<?php
namespace Phpmvc\Comment;
/**
* To attach comments-flow to a page or some content.
*
*/
class CommentController implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectable;
/**
* View all comments.
*
* @return void
*/
public function viewAction($page)
{
$comments ... |
#!/bin/bash
# Exit immediately if any commands return non-zero
set -e
# Output the commands we run
set -x
# This is a modified version of the Cloud Foundry Blue/Green deployment guide:
test $URL
# Update the blue app
cf unmap-route <API key> $URL
cf push <API key> -b https://github.com/AusDTO/java-buildpack.git --no-ho... |
import ast
import heisenberg.library.<API key>
import heisenberg.library.orbit_plot
import heisenberg.option_parser
import heisenberg.plot
import heisenberg.util
import matplotlib
import numpy as np
import sys
matplotlib.rcParams['agg.path.chunksize'] = 10000
dynamics_context = heisenberg.library.<API key>.Numeric()
op... |
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/<API key>.mailgun.org/messages",
auth=("api", "<Mailgun>"),
data={"from": "Mailgun Sandbox <postmaster@<API key>.mailgun.org>",
"to": "nick <nicorellius@gmail.com>",
"subject": "Hello nic... |
<?php
namespace Ooxif\LaravelSpecSchema\SqlServer;
trait BlueprintTrait
{
} |
def load_keys(filepath):
"""
Loads the Twitter API keys into a dict.
:param filepath: file path to config file with Twitter API keys.
:return: keys_dict
:raise: IOError
"""
try:
keys_file = open(filepath, 'rb')
keys = {}
for line in keys_file:
key, value =... |
// Why base-58 instead of standard base-64 encoding?
// - Don't want 0OIl characters that look the same in some fonts and
// could be used to create visually identical looking account numbers.
// - A string with non-alphanumeric characters is not as easily accepted as an account number.
// - E-mail usually won't l... |
"""Main entry points for scripts."""
from __future__ import print_function, division
from argparse import ArgumentParser
from collections import OrderedDict
from copy import copy
from datetime import datetime
import glob
import json
import logging
import math
import os
import scipy.stats
import numpy as np
from .versio... |
title: "Aggregates"
description: "Reference documentation for Sensu Named Aggregates."
product: "Sensu Core"
version: "1.8"
weight: 4
menu:
sensu-core-1.8:
parent: reference
## Reference documentation
- [What is a Sensu named aggregate?](#<API key>)
- [When should named aggregates be used?](#<API key>)
- [How d... |
<!DOCTYPE html>
<html>
<head lang="ru">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Template</title>
<link href="http://themesanytime.com/startui/demo/img/favicon.144x144.pn... |
using System;
namespace sep20v1.Areas.HelpPage
{
<summary>
This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
</summary>
public class TextSample
{
public TextSample(string text)
{
if (text =... |
* http://github.com/sinisterchipmunk/bot-away
Unobtrusively detects form submissions made by spambots, and silently drops those submissions. The key word here is
"unobtrusive" -- this is NOT a CAPTCHA. This is a transparent, modular implementation of the bot-catching techniques
discussed by Ned Batchelder at http://ned... |
<?php
namespace YB\Bundle\<API key>\Tests\Translation\Loader;
use <API key>;
/**
* Class AwsS3LoaderTest
* @package YB\Bundle\<API key>\Tests\Translation\Loader
*/
class AwsS3LoaderTest extends <API key>
{
/**
* @param mixed $expected
* @param mixed $result
*
* @dataProvider getExamples
... |
package com.syncano.android.lib.modules.users;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.syncano.android.lib.modules.Params;
import com.syncano.android.lib.modules.Response;
/**
* Params to create new user.
*/
public class ParamsUserNew extends Params {
... |
<API key>
====================
<API key> is an extensible, reusable, recyclable rolling scrollView element. |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>[POJ] 1276. Cash Machine — amoshyc's CPsol... |
class BeachApiCore::TeamUpdate
include Interactor
def call
if context.team.update context.params
context.status = :ok
else
context.status = :bad_request
context.fail! message: context.team.errors.full_messages
end
end
end |
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include "server.h"
#include "rio.h"
int write... |
# -*- coding: utf-8 -*-
def calc_note(count, value):
qnt = 0
if count >= value:
qnt = int(count) / value
print '%d nota(s) de R$ %d.00' % (qnt, value)
return count - qnt * value
n = float(raw_input())
print 'NOTAS:'
n = calc_note(n, 100)
n = calc_note(n, 50)
n = calc_note(n, 20)
n = calc_note(n,... |
""[PostCSS](https://github.com/postcss/postcss)
<img align="right" width="100" height="100"
title="Philosopher’s stone, logo of PostCSS"
src="http://postcss.github.io/postcss/logo.svg">
[](https:
**** PostCSS
** yarn**
yarn add postcss-plugins
** npm**
npm i postcss-plugins
javascript
const plugins = requir... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_18) on Thu Dec 18 17:18:35 PST 2014 -->
<title>Uses of Interface java.net.SocketImplFactory (Java Platform SE 7 )</title>
<meta name="date" content="2014-12-18">
<link rel="stylesheet" type="text/css" href="../../... |
'use strict';
module.exports = function (grunt) {
var exec = require('child_process').exec;
grunt.registerMultiTask('<API key>', 'Installs npm dependencies.', function () {
var cb, options, cp;
cb = this.async();
options = this.options({
cwd: '',
stdout: true,
stderr: true,
failO... |
#pragma once
#include "Common-Things.h"
const string BRIGHTNESS_OPTIONS[] =
{
"BRIGHTNESS 15",
"BRIGHTNESS 12",
"BRIGHTNESS 7",
"BRIGHTNESS 0"
};
const string <API key>[] =
{
"GLOBAL SCALE (*2)",
"GLOBAL SCALE (*1)",
"GLOBAL SCALE (/2)",
"GLOBAL SCALE (/4)"
};
const string VCTR_OPTIONS[]... |
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', -1);
$loader = require __DIR__ . '/../vendor/autoload.php';
$loader->add('<API key>', __DIR__); |
<?php
/*
Safe sample
input : get the field userData from the variable $_GET via an object, which store it in a array
SANITIZE : use of preg_replace
construction : use of sprintf via a %s with simple quote
*/
class Input{
private $input;
public function getInput(){
return $this->input['realOne'];
}
public f... |
ActionController::Dispatcher.to_prepare do
# Extend :account model to add :issues association.
Account.send(:include, <API key>)
# Make issues observable.
ActivityObserver.instance.send :add_observer!, ServiceRequest
# Add :issues plugin helpers.
ActionView::Base.send(:include, <API key>)
end
# Make the iss... |
<style type="text/css">
.escondido {
display: none;
}
</style>
<div id="div1" class="xxx">div1</div>
<div id="div2" class="escondido">2</div> |
layout: post
title: How the Go team could track what to include in release notes
date: 2021-03-13
author: Paschalis Ts
tags: [golang, foss]
mathjax: false
description: ""
Release notes can sometimes be exciting to read.
Condensing the work since the last release into a couple of paragraphs, announcing new exciting... |
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'chips-demo',
templateUrl: 'chips-demo.html',
styleUrls: ['chips-demo.css']
})
export class ChipsDemoComponent {
} |
<section data-ng-controller="ConsumersController">
<div class="page-header">
<h1>New Order</h1>
</div>
<div class="row" ng-show="errors.has()">
<div class="alert alert-danger" ng-repeat="err in errors.all">
{{ err }}
</div>
</div>
<div class="col-md-12" data-ng-in... |
using System;
using System.Collections.Generic;
using System.Text;
public interface IIdentifiable
{
string Id { get; }
} |
package com.v2gclarity.risev2g.evcc.states;
import java.util.concurrent.TimeUnit;
import com.v2gclarity.risev2g.evcc.session.<API key>;
import com.v2gclarity.risev2g.shared.enumerations.GlobalValues;
import com.v2gclarity.risev2g.shared.enumerations.V2GMessages;
import com.v2gclarity.risev2g.shared.messageHandling.<API... |
#ifndef <API key>
#define <API key>
#include "cppcms_skel/contents/content.h"
#include "contents/forms/external_login.h"
//%%%<API key>%%%
namespace tatosso {
namespace contents {
namespace tokens {
/**
* @class Tokens
* @brief Base content for every action of Tokens controller
* @since 31 March 2014
*/
struct Toke... |
<?php
declare(strict_types=1);
namespace Phpcq\Runner\Test\Console\Definition;
use Phpcq\Runner\Console\Definition\OptionDefinition;
use Phpcq\Runner\Console\Definition\OptionValue\<API key>;
use PHPUnit\Framework\TestCase;
/** @covers \Phpcq\Runner\Console\Definition\OptionDefinition */
final class <API key> extends T... |
<?php
if (isset($user_data['id'])) {
?>
<script>
var $records_per_page = '<?php echo $this->security->get_csrf_hash(); ?>';
var page_url = '<?php echo base_url(); ?>';
var $user_data ="<?php echo $user_data['id']?>";
</script>
<script src="<?p... |
#include "txdb.h"
#include "miner.h"
#include "kernel.h"
using namespace std;
// BitcoinMiner
extern unsigned int nMinerSleep;
int static FormatHashBlocks(void* pbuffer, unsigned int len)
{
unsigned char* pdata = (unsigned char*)pbuffer;
unsigned int blocks = 1 + ((len + 8) / 64);
unsigned char* pend = pdat... |
using System.Threading.Tasks;
using Lykke.Service.ExchangeConnector.Client.Models;
using MarginTrading.Backend.Core;
using MarginTrading.Contract.<API key>;
namespace MarginTrading.Backend.Services.Notifications
{
public interface <API key>
{
Task AccountHistory(string transactionId, string accountId, s... |
require 'ims/lti'
class GuideController < <API key>
def home
end
def xml_builder
@placements = CanvasExtensions::PLACEMENTS
end
def xml_config
tc = IMS::LTI::Services::ToolConfig.new(:title => "Example Tool Provider", :launch_url => blti_launch_url)
tc.description = "This is a Sample Tool Provider... |
require_relative '../../../spec_helper'
require_relative 'shared/constants'
require_relative '../../../core/file/shared/read'
describe "Digest::SHA512.file" do
describe "when passed a path to a file that exists" do
before :each do
@file = tmp("md5_temp")
touch(@file, 'wb') {|f| f.write SHA512Constants... |
layout: post
title: "ASP.NET Core(7)-"
subtitle: "ASP.NET Core <API key>"
tags: [netcore, fundamentals, logging]
ASP.NET Core`ILoggerFactory``ILogger<T>`
`ILoggerFactory`,(Logger)`CreateLogger`
csharp
var logger = loggerFactory.CreateLogger("Catch all Endpoint");
logger.LogInformation("No endpoint found for ... |
using System;
using System.Threading.Tasks;
using Anotar.NLog;
using CroquetAustralia.Domain.Services.Serializers;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
namespace CroquetAustralia.Domain.Services.Queues
{
public abstract class QueueBase : IQueueBase
{
private ... |
module ModPlanet
use ModConstants
use ModSizeGITM
implicit none
! Modified (01/18/07) : SWB : Aij, s-exponents for mutual diffusion
! Modified (06/12/08) : SWB : ordering to species revised
! Modified (06/12/08) : SWB : nSpecies = 6; nSpeciesTotal = 11
! Majors (6): COntrol the Pressures Gradients and wind... |
class CreatePhrases < ActiveRecord::Migration
def change
create_table :phrases do |t|
t.belongs_to :country
t.string :hello
t.string :please
t.string :thanks
t.string :bathroom
t.timestamps
end
end
end |
const electron = require('electron');
const ipcRenderer = electron.ipcRenderer;
window.onload = function() {
ipcRenderer.send('game-preview-loaded');
}
ipcRenderer.on('game-preview-start', function(event, data) {
var app = new Application({
// resize: true,
fullscreen: true,
antyAliasing: true,
prel... |
module.exports = {
<API key>,
polling: {
timeout: 3,
limit: 100
}
}; |
#region Using directives
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AM;
using AM.Windows.Forms;
using CodeJam;
using IrbisUI;
using JetBrains.Annotations;
using ManagedIrbis;
using MoonSharp.... |
<?php
return array(
'_root_' => 'admin/index', // The default route
'_404_' => 'welcome/404', // The main 404 route
'admin/detail/:id' => array('admin/detail/$1', 'name' => 'detail'),
'admin/write' => '/admin/write/',
'test'=> 'api/test',
'blog'=> 'api/blog',
'blog/insert'=> 'api/blog... |
Installing Sencha Touch
[Download the Sencha Touch SDK][sdk], and unzip the archive. Assuming that you've saved the SDK into your downloads folder (`~/Downloads/sencha-touch-2-b3`), you can run the following commands in the terminal:
cd path/to/<API key>/recipe2
cp -R ~/Downloads/sencha-touch-2-b2/resources tou... |
<!-- Modal -->
<div class="modal fade" id="explor_post" tabindex="-1" role="dialog" aria-labelledby="post_structlLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span... |
using System.Collections.ObjectModel;
using ActiproSoftware.Text;
using ActiproSoftware.Text.Utility;
using ActiproSoftware.Windows.Controls.SyntaxEditor;
using ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation;
using NQuery.Authoring.ActiproWpf.SymbolContent;
using NQuery.Authoring.ActiproWpf.... |
#include <iostream>
using namespace std;
void display(const int *xPos, const int *yPos);
void move(int *xPos, int *yPos);
int main(void) {
int x = 10;
int y = 20;
display(&x, &y);
move(&x, &y);
display(&x, &y);
return 0;
}
void display(const int *xPos, const int *yPos) {
// btw const not nee... |
<!DOCTYPE html>
<html>
<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">
<link rel="shortcut icon" href="/static/img/ruby.ico" />
<title>43 - LJZN</title>
<... |
Template.friendPosts.onCreated(function() {
Bisia.Notification.resetNotify('note', 'post');
})
Template.friendPosts.helpers({
getPost: function(postId) {
var post = Posts.findOne(postId);
if (post) {
var user = Users.findOne({ '_id': post.authorId }, { 'fields': {
'us... |
import { all, takeEvery } from 'redux-saga/effects';
import actions from '#actions';
import <API key> from './<API key>/<API key>';
import <API key> from './<API key>/<API key>';
import <API key> from './<API key>/<API key>';
function* <API key>(apis) {
yield all([
takeEvery(actions.<API key>, <API key>, apis),
... |
var fs = require('fs'),
eol = require('eol'),
path = require('path'),
mkdirp = require('mkdirp'),
watch = require('watch');
var specialFiles = {
'welcome.md': function(fileContent, consoleContent) {
consoleContent.welcome = processFileContent(fileContent);
},
'config.json': function(... |
#!/bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
channel() {
if [ -n "${TRAVIS}" ]; then
if [ "${TRAVIS_RUST_VERSION}" = "${CHANNEL}" ]; then
pwd
(set -x; cargo "$@")
fi
elif [ -n "${APPVEYOR}" ]; then
if [ "${<API key>}" = "${CHANNEL}" ]; th... |
<?php
include_once('conexao.class.php');
class Disciplina{
public $id_disciplina;
public $nome;
public $professor;
public $curso;
public $carga_horaria;
public function __construct(){
//print "Disciplina instanciada!";
}
public function... |
{{{
"bodyClass" : "bg-white",
"screenshot" : {
"background-size" : "contain"
}
}}}
<div class="cf">
<div class="fl w-50 w-20-ns tc pv5 bg-black-05">
1
</div>
<div class="fl w-50 w-20-ns tc pv5 bg-black-10">
2
</div>
<div class="fl w-100 w-20-ns tc pv5 bg-black-20">
3
</div>
<div clas... |
// 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... |
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Flasky - Edit Teacher Profile{% endblock %}
{% block side_content %}
<div class="page-header">
<h1>Edit Student's Info</h1>
</div>
<div class="col-md-4">
{{ wtf.quick_form(form) }}
</div>
{% endblock %} |
export const Camera = `
<svg viewBox="0 0 28 28">
<g fill="none" fill-rule="evenodd">
<path d="M3 3h22a2 2 0 012 2v18a2 2 0 01-2 2H3a2 2 0 01-2-2V5a2 2 0 012-2z" stroke="currentColor"/>
<circle stroke="currentColor" cx="14" cy="14" r="5"/>
<path d="M22 7h1" stroke="currentColor" stroke-linecap="round" str... |
import datetime
import time
import boto
import redis
import requests
import random
import zlib
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.template.loader import render_to_string
from django.db import IntegrityE... |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... |
const <API key> = ({ inputFile, inputArgs = [], config }) => {
const path = require("path");
const fs = require("fs");
const glob = require("glob");
let filesToRun = [];
if (inputFile) {
filesToRun.push(inputFile);
} else if (inputArgs.length > 0) {
inputArgs.forEach(inputArg => filesToRun.push(inpu... |
import "reflect-metadata";
import {<API key>, <API key>, <API key>} from "../../utils/test-utils";
import {Connection} from "../../../src/connection/Connection";
import {Post} from "./entity/Post";
import {expect} from "chai";
import {PostStatus} from "./model/PostStatus";
describe("github issues > #182 enums are not s... |
// nodejs
var Stream = require('stream').Stream,
util = require('util');
var LineStream = function() {
this.writable = true;
this.readable = true;
this.buffer = '';
};
util.inherits(LineStream, Stream);
LineStream.prototype.write = function(data, encoding) {
if (Buffer.isBuffer(data)) {
data... |
using LibrarySystem.Models;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LibrarySystem.Account
{
public partial class Manage : System.Web.UI.Page
{
protected string SuccessMessage
{
... |
__author__ = "Guillaume"
__license__ = "MIT"
__copyright__ = "2015, ESRF"
import numpy
from freesas.model import SASModel
class Grid:
"""
This class is used to create a grid which include all the input models
"""
def __init__(self, inputfiles):
"""
:param inputfiles: list of pdb files ne... |
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
#include "btree.h"
namespace structural
{
namespace flyweight
{
BTree::BTree(long size) : size_(size)
{
leafs_ = new operational::iterator::List<Font*>();
nodes_ =... |
# <API key>
This is a work in progress.
## Install
bash
npm install
npm install -g typings gulp
typings install
gulp
npm start
## Credits
- Developed by [Andreas Carlson](http://andreascarlson.se)
Thanks to:
- [iggyfisk](https://github.com/iggyfisk)
- Based on [<API key> quickstart](https://github.com/claudioc/<API key... |
#include <assert.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// #include <antlr3.h>
#include "toml.h"
#include "toml-parser.h"
// #include "tomlParser.h"
// #include "tomlLexer.h"
struct _TOMLStringifyData {
TOMLError *error;
int bufferSize;
... |
Enefele::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test su... |
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Zabuun - Learn Egyptian Arabic for English speakers</title>
<meta name="description" content="">
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/l... |
package main
import (
"os"
"github.com/codegangsta/cli"
)
func main() {
app := cli.NewApp()
app.Name = "nano-client"
app.Usage = "Send a request to service"
app.Version = Version
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "service, s",
Usage: "Service endp... |
import logger from './logger';
import app from './app';
const port = app.get('port');
const server = app.listen(port);
process.on('unhandledRejection', (reason, p) =>
logger.error('Unhandled Rejection at: Promise ', p, reason)
);
server.on('listening', () =>
logger.info('Feathers application started on http://%s:%d... |
# Gistoria
[**Gistoria**](http://gistoria.drteam.rocks/) it's a **Gist** of the some of **Stories** - a project devoted to Russian literature.
Online development streams every Monday, Wednesday and Friday.
https:
If you can help to **Gistoria** it will be great!
## How to install
git clone git@github.com:EvilFreela... |
package test
import akka.actor.ActorSystem
import akka.pattern.AskTimeoutException
import github.gphat.datadog._
import java.nio.charset.StandardCharsets
import org.json4s._
import org.json4s.native.JsonMethods._
import org.specs2.mutable.Specification
import scala.concurrent.duration._
import scala.concurrent.Executio... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>class RubyXL::CellStyle - rubyXL 3.3.29</title>
<script type="text/javascript">
var rdoc_rel_prefix = "../";
var index_rel_prefix = "../";
</script>
<script src="../js/jquery.js"></script>
<script src="../js/darkfish.js"></script>
<link href="../css/fonts.... |
// Template Source: <API key>.java.tt
package com.microsoft.graph.requests;
import com.microsoft.graph.models.ContactFolder;
import com.microsoft.graph.http.<API key>;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Contact Folder Collection Response.
*/
publ... |
require "capybara/rspec"
require "webmock/rspec"
require "plek"
require "gds_api/test_helpers/publishing_api"
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.<API key> = true
end
config.mock_with :rspec do |mocks|
moc... |
#!/usr/bin/env python
"""
Project-wide application configuration.
DO NOT STORE SECRETS, PASSWORDS, ETC. IN THIS FILE.
They will be exposed to users. Use environment variables instead.
See get_secrets() below for a fast way to access them.
"""
import os
"""
NAMES
"""
# Project name used for display
PROJECT_NAME = 'quota... |
{
"date": "2019-12-01",
"type": "post",
"title": "Report for Sunday 1st of December 2019",
"slug": "2019\/12\/01",
"categories": [
"Daily report"
],
"images": [],
"health": {
"weight": 82.9,
"height": 173,
"age": 14228
},
"nutrition": {
"ca... |
<table class="legend-table" *ngIf="units">
<thead>
<tr class="header">
<th>Chraracter</th>
<th>Length (seconds)</th>
</tr>
</thead>
<tbody>
<tr>
<th>Dot ( )</th>
<td class="red">{{ units.dot }} Seconds</td>
</tr>
<tr>
<th>Dash ( - )</th>
<td class="red">{{ ... |
layout: post
date: '2015-10-13'
title: "Watters - Wtoo Wtoo Maids Dress 891 2015 Spring Sleeveless Knee-Length Aline/Princess"
category: Watters - Wtoo
tags: [Watters - Wtoo,Wtoo,Aline/Princess ,Jewel,Knee-Length,Sleeveless,2015,Spring]
Watters - Wtoo Wtoo Maids Dress 891
Just **$189.99**
2015 Spring Sleeveless Knee-Le... |
#include "udivmodti4.h"
__int128 __modti3(__int128 a, __int128 b)
{
unsigned __int128 r;
unsigned __int128 sign = a >> 127;
udivmodti4_(a + sign ^ sign, b < 0 ? -b : b, &r);
return r + sign ^ sign;
} |
# Swaggy Jenkins
# Jenkins API clients generated from Swagger / Open API specification
# Contact: blah@cliffano.com
Describe -tag 'PSOpenAPITools' -name 'EmptyChangeLogSet' {
Context 'EmptyChangeLogSet' {
It '<API key>' {
# a simple test to create an object
#$NewObject = <API key> -C... |
class <API key> < ActiveRecord::Migration
def change
add_index :skill_totals, :name
add_index :skill_totals, :date
end
end |
<!DOCTYPE html>
<html>
<head lang="en">
<title></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content=" , TMSOTMS" />
<meta content="
Emai,APP" name="description" />
<meta http-equiv="X-UA-Co... |
require_relative '../../../spec_helper'
require 'matrix'
describe "Vector#normalize" do
it "returns a normalized copy of the vector" do
x = 0.2672612419124244
Vector[1, 2, 3].normalize.should == Vector[x, x * 2, x * 3]
end
it "raises an error for zero vectors" do
lambda {
Vector[].normalize
... |
'use strict';
/**
* Module dependencies.
*/
var users = require('../../app/controllers/users'),
goaliedash = require('../../app/controllers/goaliedash');
module.exports = function(app) {
app.route('/goaliedash')
.get(users.requiresLogin, users.hasAuthorization);
}; |
// @flow
import React from 'react'
import withPropsStream from '@vega/utils/withPropsStream'
import {map} from 'rxjs/operators'
import styles from './styles/Communicator.css'
import ThreadList from './ThreadList'
import CreateComment from './CreateComment'
function getPropsStream(props$) {
// todo: implement open/clo... |
# ember-promise-block
This is an Ember Addon that exposes a component `promise-block` which shows a loader while a given promise is being resolved.
## Installing
Install as an Ember-CLI addon:
ember install ember-promise-block
## Usage
// templates/posts.hbs
{{#promise-block promise=postsPromise loaderTempl... |
package pricing;
import org.configureme.<API key>;
import org.configureme.Environment;
import org.configureme.GlobalEnvironment;
import org.configureme.environments.DynamicEnvironment;
public class ShowPrice {
public static void main(String a[]){
showPrice();
showPriceIn("USA", GlobalEnvironment.INS... |
## Part 3
[</em>
`componentMount` `<API key>.mountComponent` (1)
**** `TopLevelWrapper` (React )
`TopLevelWrapper` ( `ExampleApplication` `<API key>`) .
(1)
instance updater
`transaction.getUpdateQueue()` (2) `updater` `ReactUpdateQueue` `<API key>` `updater`
`updater` **`se... |
## Release 1.1.0
## Breaking Changes
* removed cross-spawn dependency
Features
- ([fc25d5e](https://github.com/igniteram/protractor-cli/commit/<SHA1-like>))
feat(install modules): added npm progress & async installation
## Release 1.0.1
Features
- ([7441967](https://github.com/igniteram/protractor-cli/commit/<SHA1-li... |
local d = require "distribution"
d6 = d.uniform(6)
d20 = d.uniform(20)
foo = 2*d6 + d20
-- The basic summary method gives a sorted list of all the outcomes
-- and a summary of statistical values
print("2d6 + d20")
print(foo:summary())
-- Note that tostring(foo) and print(foo) will automatically call summary
-- To check... |
/* Error handling */
#include "Python.h"
void
PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback)
{
PyThreadState *tstate = PyThreadState_GET();
PyObject *oldtype, *oldvalue, *oldtraceback;
/* Save these in locals to safeguard against recursive
invocation through Py_XDECREF */
old... |
#pragma once
#include <VoxieBackend/VoxieBackend.hpp>
#include <VoxieBackend/Data/Data.hpp>
#include <VoxieClient/ObjectExport/Client.hpp>
#include <VoxieClient/ObjectExport/ExportedObject.hpp>
#include <QtCore/QPointer>
#include <QtDBus/<API key>>
#include <QtDBus/QDBusObjectPath>
namespace vx {
class NodePrototype;
n... |
var models = require('../models');
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
console.log(req.session);
res.render('layout');
});
module.exports = router; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.