answer stringlengths 15 1.25M |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-odd-order: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... |
body {
background-color: #1C2331;
}
.card {
margin-top: 40px;
padding-right: 0px;
padding-left: 0px;
}
.card-header {
display: flex;
flex-direction: row;
}
h3 {
margin-bottom: 0px;
}
#exchange-holder {
margin-left: 25px;
margin-right: 25px;
}
.panel-rate {
text-align: right;
... |
<!DOCTYPE html>
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" href="../bower_components/jasmine/lib/jasmine-core/jasmine.css">
<script data-main="require.jasmine" src="../bower_components/requirejs/require.js"></script>
</head>
<body>
<div id="stage" style="overflow: hidden; height: 1p... |
(function($){
/**
* @param obj
* @attr wordCount {Number} the number of words the user want to for matching it with the dictionary
* @attr mode {String} set "outter" for using an autocomplete that is being displayed in the outter layout of the textarea, as opposed to inner display
* @... |
using System.Linq;
using Xunit;
namespace Farity.Tests
{
public class FilterTests
{
[Fact]
public void <API key>()
{
var expected = new[] {1, 2, 3};
var actual = F.Filter(x => x < 4, new[] {1, 2, 3, 4, 5});
Assert.Equal(expected, actual);
}
... |
import os
from local_settings import SECRET_KEY, DATABASES, DEBUG
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
SECRET_KEY = SECRET_KEY
# SECURITY WARNING: don'... |
package com.zhanghedr.mvc;
public class User {
private String name;
private String email;
public User(String name, String email) {
this.name = name;
this.email = email;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = n... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Ponscoin</source>
<translation>O Ponscoinu</translation>
</messa... |
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System;
using System.Text;
using System.IO;
using System.Collections;
using System.Text.RegularExpressions;
[InitializeOnLoad]
public class NoesisUpdater: EditorWindow
{
static NoesisUpdater()
{
EditorApplication.update += CheckVer... |
<?php
namespace VehiculosBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class <API key> extends WebTestCase
{
/*
public function <API key>()
{
// Create a new client to browse the application
$client = static::createClient();
// Create a new entry in th... |
#include <set>
#include <map>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <cmath>
#include <list>
#include <cassert>
#include <climits>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <fstream>
#include <sstream>
#include <iostream>
#include <algorit... |
class HomeController < <API key>
def index
end
def playgame
@orientation = ""
@waiting_players = []
if params[:nick_name]
# This user gave us a nickname and is looking for other players
@looking = true
#register user
nick_name = params[:nick_name]
@u = User.<API key>(nick... |
h1{
text-align: center;
}
main{
width: 50%;
margin: 0 auto;
}
.question-wrapper{
width: 100%;
overflow: auto;
}
.question{
width: 100%;
}
.square{
width:80px;
height:80px;
margin:20px;
border-radius:50%;
border: 2px solid rgb(40,40,40);
float:left;
}
.red{
/*background-color:rgb(250,0,0);*/
}
... |
package com.almasb.fxglgames.geowars.component;
import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.dsl.components.HealthIntComponent;
import com.almasb.fxgl.entity.component.Component;
import com.almasb.fxgl.texture.Texture;
import com.almasb.fxgl.time.LocalTimer;
import com.almasb.fxglgames.geowars.GeoWarsApp;
im... |
package org.sisioh.aws4s.eb.model
import com.amazonaws.services.elasticbeanstalk.model._
import org.sisioh.aws4s.PimpedType
import scala.collection.JavaConverters._
object <API key> {
def create(): <API key> =
new <API key>()
}
class <API key>(val underlying: <API key>)
extends AnyVal
with PimpedType[<API... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W28513_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = fn;
var _includes = require('utilise/includes');
var _includes2 = <API key>(_includes);
var _client = require('utilise/client');
var _client2 = <API key>(_client);
var _all = require('utilise/all');
var _all2 = <API key>(_a... |
# Debian: PHP 5 (+ FANN)
# VERSION 0.0.1
# Pull the base image.
FROM ericmdev/php5
# Set the author.
MAINTAINER Eric Mugerwa <dev@ericmugerwa.com>
# Set environment variables.
ENV FILES config/
# Install packages.
RUN apt-get update && apt-get install -y \
libfann-dev
# Install pecl fann.
RUN pecl install fann
# Ad... |
'use strict';
/* jshint -W098 */
angular.module('mean.rules').controller('RulesController', ['$scope', '$stateParams', '$location', '$http','Global', 'Rules', 'MeanUser','Circles','Groups',
function($scope, $stateParams, $location, $http, Global, Rules, MeanUser,Circles,Groups) {
$scope.global = Global;
$scop... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt-->
<title>Function <API key></title>
<link rel="stylesheet" type="text/css" href="../../styles/ddox.css"/>
... |
var utilities = (function(window, $){
/**
* Draws a rounded rectangle using the current state of the canvas.
* If you omit the last three params, it will draw a rectangle
* outline with a 5 pixel border radius
* @param {<API key>} ctx
* @param {Number} x The top left x coordinate
* @pa... |
# WeMojo
Node module for interfacing with Belkin Wemo devices. Heavily inspired by
[wemonode](https://github.com/supsi/wemonode) but with a (hopefully) nicer API.
## Getting Started
Install the module with: `npm install wemojo`
javascript
var WeMojo = require('wemojo'),
Client = WeMojo.Client()
Client.startDiscover... |
layout: post
title: Redis
category: Redis
tags: Redis
keywords: Redis,
description:
500IDRedisList
* LPUSH latest.comments<ID>list
* LTRIM latest.comments 0 500500ID
*
def get_latest_comments(start,num_items):
id_list = redis.lrange("latest.comments",start,start+num_items-1)
if ( id_list.length < nu... |
require 'forwardable'
module Gimlet
module Queryable
module API
extend Forwardable
def select(options = {})
selecting = @instances
options[:where].each do |attribute, operator, argument|
selecting = selecting.select do |id, instance|
instance[attribute].send(opera... |
layout: post
title: "Zero to Established! - StackOverflow"
date: 2016-12-22 06:00:55 +0530
tags: stackoverflow
It's been a great winter month, and I've finally started my StackOverflow journey. I had a goal of reaching 1000 reputation by New Year's, but I've already surpassed it by 122 points (at this moment) with 9... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
<?php
namespace Oro\Bundle\PlatformBundle\Tests\Unit\Provider;
use Composer\Package\Package;
use Oro\Bundle\PlatformBundle\Composer\<API key>;
use Oro\Bundle\PlatformBundle\Provider\PackageProvider;
class PackageProviderTest extends \<API key>
{
/** @var PackageProvider */
protected $provider;
/** @var <API... |
package graphql.analysis;
import graphql.PublicApi;
import graphql.language.Argument;
import graphql.language.Node;
import graphql.schema.GraphQLArgument;
import graphql.schema.<API key>;
import graphql.schema.GraphQLSchema;
import graphql.util.TraverserContext;
import java.util.Map;
@PublicApi
public interface <API ke... |
#!/usr/local/bin/python3
from zeroconf import Zeroconf, ServiceInfo
import socket
import configparser
from . import hazc_cmd
# import pdb
class hazc_device:
#Forward constants
NO_PARAM = hazc_cmd.NO_PARAM
BOOL = hazc_cmd.BOOL
FLOAT = hazc_cmd.FLOAT
STRING = hazc_cmd.STRING
INT = hazc_cmd.INT
... |
<div id="<API key>" class="container">
<nav class="nav-graph col-xs-12 col-sm-3 col-md-3" >
<h3>{%trans%}Preview{%endtrans%}:</h3>
<div class="list-group panel">
<h4>{% trans %}Trade Balance{% endtrans %}</h4>
<a href="#<API key>" class="list-group-item" data-toggle="collap... |
#!/bin/bash
# Copy this script to $HOME and run it
path=/srv/www/todo
tmp=/srv/www/tmp
echo 'Cloning repo from github...'
git clone git@github.com:dreamerslab/<API key>.git $tmp
echo '...done!'
echo ''
echo 'Removing development files...'
sudo rm $tmp/README.md
sudo rm -fr $tmp/doc
echo '...done!'
echo ''
echo 'Install... |
var c = require("./config").twitter;
var Twit = require('twit');
console.log(c.apiKey);
console.log(c.apiSecret);
console.log(c.accessToken);
console.log(c.accessTokenSecret);
var T = new Twit({
consumer_key: c.apiKey,
consumer_secret: c.apiSecret,
access_token: c.accessToken,
access_token_secret: c.acc... |
// These are the pages you can go to.
// They are all wrapped in the App component, which should contain the navbar etc
// about the code splitting business
import { getAsyncInjectors } from './utils/asyncInjectors';
const errorLoading = (err) => {
console.error('Dynamic page loading failed', err); // eslint-disable-... |
var copy = require('./copy');
var chain = require('./chain');
var super_ = require('./super');
var core = {
new: function(options){
typeof options === 'string' && (options = {name: options});
var obj = chain.create(this, options);
obj.protoName = this.name;
obj.model = this;
... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using System.Xml;
namespace Kitechan
{
public class UserInfo
{
public struct ImagePath
{
public string ImageUrl { get; set; }
public stri... |
from victor.exceptions import (
<API key>,
<API key>,
FieldRequiredError,
<API key>
)
class Field(object):
required = True
"""Field is required and an exception will be raised if missing"""
missing_value = None
"""Value to use when field is missing and not required"""
strict = False
... |
using System;
namespace MiningCore.Stratum
{
public enum StratumError
{
Other = 20,
JobNotFound = 21, // stale
DuplicateShare = 22,
LowDifficultyShare = 23,
UnauthorizedWorker = 24,
NotSubscribed = 25,
MinusOne = -1
}
public class StratumException ... |
#include "Globals.h"
#include "CryptoNoteCore/Account.h"
#include "CryptoNoteCore/<API key>.h"
#include "CryptoNoteCore/CryptoNoteTools.h"
#include "CryptoNoteCore/TransactionApi.h"
#include "Transfers/<API key>.h"
#include "Transfers/<API key>.h"
#include <mutex>
#include <condition_variable>
#include <future>
#includ... |
const express = require('express');
const path = require('path');
const fs = require('fs');
const bodyParser = require('body-parser')
// const formidable = require('formidable');
// const createTorrent = require('create-torrent');
// const WebTorrent = require('webtorrent');
const socketController = require('./socketCo... |
#include "ParserPch.h"
// strings for builtin names
#define HASH_NAME(name, hashCS, hashCI) \
const StaticSym g_ssym_##name = \
{ \
hashCS, \
sizeof(#name) - 1, \
OLESTR(#name) \
};
#include "objnames.h"
#undef HASH_NAME |
layout: post
title: Dropbox Core API(ruby)proxy
categories: ruby
Ruby[Dropbox Core API](https:
proxyDorpbox Core APINet::HTTP`http_proxy`OSXLinux.bashrc
bash
export http_proxy='http://hoge.proxy.com:8080'
Windows
ruby
ENV['HTTP_PROXY'] = 'http://hoge.proxy.com:8080'
# Dropbox Core API
Dropbox Core APINet::HTTPBundlerNo... |
#ifndef DRTRBOS1_H
#define DRTRBOS1_H
#include "dcmtk/config/osconfig.h" // make sure OS specific configuration is included first
#include "dcmtk/ofstd/oflist.h" // for standard list class
#include "dcmtk/dcmrt/drttypes.h" // module-specific helper class
/** Interface class for <API key> (300c,00b0) in ... |
# vim_mamba
it's a simple vim plugin for [mamba]https://github.com/nestorsalceda/mamba BDD specs library
it adds expects, doublex_expects and doublex import; and a bare spec structure
to install it: just put the repository at ~/.vim/plugin/
to use it: in an empty python file execute: :Mambat |
# <API key>
Chart.js plugin to display labels on pie, doughnut and polar area chart. Original Chart.PieceLabel.js
## Demo
[Demo](http://emn178.github.io/<API key>/samples/demo/)
## Download
[Compress](https://raw.github.com/emn178/<API key>/master/build/<API key>.min.js)
[Uncompress](https://raw.github.com/emn178/<API ... |
using Content.Server.Throwing;
using Content.Shared.Acts;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
namespace Content.Server.Explosion.Components
{
[RegisterComponent]
public sealed class <API key> : Component, IExAct
{
[Dependency] private readonly IEntity... |
/* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.office.impl;
import com.wilutions.com.*;
@SuppressWarnings("all")
@CoClass(guid="{<API key>}")
public class ODSOColumnImpl extends Dispatch implements com.wilutions.mslib.office.ODSOColumn {
@DeclDISPID(1610743808) public IDispatch getApplicatio... |
#include "BLITSaw_processor.h"
#include "BLITSaw_guids.h"
#include "pluginterfaces/vst/<API key>.h"
#include <algorithm>
namespace MyVst {
BLITSaw_processor::BLITSaw_processor()
{
setControllerClass(BLITSawControllerID);
}
FUnknown* BLITSaw_processor::create(void* context)
{
return (... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootst... |
param
(
[Parameter(Mandatory=$true)]
[string] $VmName,
[string] $HostName = 'localhost',
[int] $ProcessorCount = 1,
[long] $MemorySize = 2GB,
[string] $VmAdminUserName,
[securestring] $VmAdminPassword
)
Configuration HostConfiguration {
param
(
[Parameter(Mandatory=$true... |
<?php
/*
Safe sample
input : get the UserData field of $_SESSION
sanitize : cast via + = 0
construction : interpretation with simple quote
*/
$tainted = $_SESSION['UserData'];
$tainted = $tainted + 0;
$query = "$temp = ' $tainted ';";
$res = eval($query);
?> |
<?php
namespace StorageBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\<API key>\Datagrid\ProxyQuery;
use Symfony\Component\Validator\C... |
#. Separate DOM-Events from Non-Dom Events (dom events should be bound on each template render while non-Dom Events can be bound only on construction)
#. Solve model binding initialization problem
#. Give a nice spec to event DSL |
const path = require('path')
module.exports = {
context: __dirname,
entry: './js/ClientApp.js',
devtool: 'eval',
output: {
path: path.join(__dirname, '/public'),
publicPath: '/public/',
filename: 'bundle.js'
},
devServer: {
publicPath: '/public/',
historyApiFallback: true
},
resolve:... |
#!/usr/bin/env python
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following condit... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>actuary: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace _2._1.WebForms_Sumator
{
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} |
<?php
namespace Nova\View;
use Nova\Container\Container;
use Nova\Events\Dispatcher;
use Nova\Support\Contracts\ArrayableInterface as Arrayable;
use Nova\View\Engines\EngineResolver;
use Nova\View\Layout;
use Nova\View\View;
use Nova\View\ViewFinderInterface;
use Closure;
use <API key>;
class Factory
{
/**
* T... |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'pp&p7ex-&+#n4waijg96v&txz$=y*rh=t$u-!hri... |
import SqSortableList from 'sq-ember-inputs/components/sq-sortable-list';
export default SqSortableList; |
(function() {
"use strict";
angular.module('common.dragdrop', [])
.factory('DragDropHandler', [function() {
return {
dragObject: undefined,
addObject: function(object, objects, to) {
objects.splice(to, 0, object);
},
moveObject: functio... |
layout: page
title: "Eun Hyea Kim"
comments: true
description: "blanks"
keywords: "Eun Hyea Kim,CU,Boulder"
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src="../... |
import * as yargs from "yargs";
import { Runner } from "./runner";
import { <API key>, parseSettings } from "./settingsParser";
import { StatusCode } from "./statusCode";
const <API key>: <API key> = yargs
.usage("Usage: $0 --csproj <csproj> --target <target>")
.command("csproj", "File path to the source .cspro... |
<div class="dummyTransaction col-xs-12">
<div class="dummyUserAction">
<label class="dummyMainName Title"><%if(isNew){%>Add Transaction<%} else {%><%=model.name%><%}%></label>
<form class="form dummyForm">
<div class="form-group dummyInputGroup nopadding">
<label class="s... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _functionalCurry = require('../functional/curry');
var lt = (0, _functionalCurry.curry)(function (a, b) {
return a < b;
});
exports.lt = lt; |
# <API key>: true
require "rack/session/abstract/id"
require "active_support/core_ext/hash/conversions"
require "active_support/core_ext/object/to_query"
require "active_support/core_ext/module/anonymous"
require "active_support/core_ext/module/redefine_method"
require "active_support/core_ext/hash/keys"
require "activ... |
<div style="border: solid 1px #ccc">
<sky-page-summary>
<<API key> *ngIf="showAlert">
<sky-alert alertType="info">This is an alert.</sky-alert>
</<API key>>
<<API key> *ngIf="showImage">
<sky-avatar [name]="name" [canChange]="true"></sky-avatar>
</<API key>>
<<API key> *ngIf="showTitle... |
/**
* Palindromic Substrings
*
* Given a string, your task is to count how many palindromic substrings in this string.
*
* The substrings with different start indexes or end indexes are counted as different substrings even they consist of
* same characters.
*
* Example 1:
*
* Input: "abc"
* Output: 3
* Expl... |
// -*- mode: java; c-basic-offset: 2; -*-
package com.google.appinventor.components.runtime;
import android.app.Activity;
import android.net.ConnectivityManager;
import android.net.DhcpInfo;
import android.net.NetworkInfo;
import android.net.wifi.WifiManager;
import com.google.appinventor.components.annotations.Designe... |
<!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.7"/>
<title>App Engine PHP SDK: Class Members</title>
<link href="tabs.css" rel="stylesheet" type="text/... |
namespace do
managers = layer "managers"
users = layer "users"
environment "secrets" do
add_member "manage_variable", managers.roleid
add_member "use_variable", users.roleid
end
alice, bob, claire = %w(alice bob claire).map do |hostname|
host hostname
end
managers.add_host alice.roleid
us... |
package shaft.poker.game.table;
import shaft.poker.game.ITable;
import shaft.poker.game.ITable.*;
/**
*
* @author Thomas Schaffer <thomas.schaffer@epitech.eu>
*/
public interface <API key> {
public void gameAction(ITable table, IPlayerData plData, ActionType type, int amount);
public void leave(ITable table,... |
* {
-webkit-transition: all 1s;
transition: all 1s;
-o-transition: all 1s;
}
* {
-webkit-transition: all 1s;
-o-transition: all 1s;
} |
<!DOCTYPE html>
<html xmlns:msxsl="urn:<API key>:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="<API key>">.NET Portability Report</title>
<style>
/* Body style, for the entire document */... |
jest.unmock('../../src/filtering/filter');
import React from 'react';
import {shallow} from 'enzyme';
import {Filter} from '../../src/filtering/filter';
describe('Filter', () => {
it('has empty filtering text by default', () => {
// when
const filter = shallow(
<Filter/>
);
... |
shamoji()
====
[ { 'accounts/:account_id/item_lists.json' }
around do |example|
begin
ExampleCom::ItemList.define_action :index, method: :get, path: custom_path
example.run
ensure
ExampleCom::... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About VPSCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
package umm3601.plant;
import com.mongodb.MongoClient;
import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import org.bson.types.ObjectId;
import org.junit.Before;
import org.junit.Test;
import umm3601.<API key>.PlantContr... |
{% extends "templates/base.html" %}
{% block content %}
<br/>
<div id="messages"></div>
<textarea id="message"></textarea>
<br/>
<input type="text" id="user"></input>
<br/>
<button id="send">add message</button>
<!-- scripts -->
<script type="text/javascript" src="{{servlet-context}}/js/site.js"></script>
<script type... |
# <API key>: true
class Projects::TriggersController < Projects::<API key>
before_action :<API key>!
before_action :<API key>!, except: [:index, :create]
before_action :<API key>!, only: [:edit, :update]
before_action :trigger, only: [:take_ownership, :edit, :update, :destroy]
layout 'project_settings'
def ... |
package com.example.android.popularmoviesapp;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... |
package org.diorite.material.blocks.stony;
import java.util.Map;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.diorite.BlockFace;
import org.diorite.cfg.magic.MagicNumbers;
import org.diorite.material.BlockMaterialData;
import org.diorite.mate... |
<?php
require(__DIR__ . '/vendor/autoload.php');
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$<TwitterConsumerkey>";
$order = Balanced\Order::get("/orders/<API key>");
$order->description = 'New description for order';
$order->meta = array(
"anykey" => "value... |
<!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.9.1"/>
<title>V8 API Reference Guide for node.js v0.1.31: Member List</title>
<link href="tabs.css" rel=... |
package cn.ezandroid.ezfilter.render;
import android.content.Context;
import android.opengl.GLES20;
import cn.ezandroid.lib.ezfilter.core.util.Path;
import cn.ezandroid.lib.ezfilter.extra.IAdjustable;
import cn.ezandroid.lib.ezfilter.extra.<API key>;
/**
*
*
* @author like
* @date 2017-09-17
*/
public class BWRend... |
@extends ('site.layouts.home.master')
@section ('conteudo')
<div class="w3-row">
<div class="w3-padding-64 w3-container login">
<div class="w3-content">
<div class="w3-container">
<h2>Resetar Senha</h2>
<hr>
<form role="form" method="POST" action="{{ route('empresa.reseta-senha.reque... |
<TS language="sq" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliko me të djathtën për të ndryshuar adresën ose etiketen.</translation>
</message>
<message>
<source>Create a new address</source... |
/* eslint-env jest */
import fs from 'fs-extra'
import { join } from 'path'
import {
killApp,
findPort,
launchApp,
nextStart,
nextBuild,
fetchViaHTTP,
} from 'next-test-utils'
import webdriver from 'next-webdriver'
import cheerio from 'cheerio'
jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '... |
/**
* Calculates the complex number raised to some power
*
* @param {numeric} c The power to which the complex number should be raised
* @return {Complex}
*/
pow(c) : Complex {
var re, im, abs, arg;
if (MathLib.type(c) === 'complex') {
re = c.re;
im = c.im;
abs = this.abs();
... |
'use strict';
const sinon = require('sinon'),
q = require('q'),
mockery = require('mockery'),
_ = require('lodash'),
should = require('chai').should();
describe('Create episode', () => {
const idsGeneratorStub = () => '123';
it('Should call the next callback', done => {
let deferred = q.... |
RSpec.describe Magick::Image, '#find_similar_region' do
it 'works' do
image = described_class.new(20, 20)
girl = described_class.read(IMAGES_DIR + '/Flower_Hat.jpg').first
region = girl.crop(10, 10, 50, 50)
x, y = girl.find_similar_region(region)
expect(x).not_to be(nil)
expect(y).not_to be(ni... |
// Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods.
using System;
using System.Reflection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Z.Reflection.Test
{
[TestClass]
public class <API key>
{
[TestMethod]
public ... |
<?php
namespace Igorw\Trashbin;
use Silex\Application;
use Silex\<API key>;
use Symfony\Component\Finder\Finder;
class Provider implements <API key>
{
public function register(Application $app)
{
$app['app.languages'] = $app->share(function () {
$languages = array();
$finder = ne... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4 <API key>.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4zM4 5h16v2H4z" />
, 'WrapTextTwoTone'); |
# -*- coding:utf-8 -*-
import abc
import platform
from UserList import UserList
class Monitor(object):
@abc.abstractmethod
def current(self):
pass
@abc.abstractmethod
def percent(self, range):
pass
@abc.abstractmethod
def reset(self):
pass
@abc.abstractmethod
def ... |
package org.jahap.business.base;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.log4j.Logger;
import org.jahap.business.acc.revaccountsbean;
import org.jahap.entities.<API key>;
import org.jahap.entities.acc.AccountPosition;
import org.jahap.entities.acc.Csc;
import or... |
require_relative 'location_splitter'
require_relative 'elevation_checker'
require_relative 'terrain_checker'
class DetailsChecker
attr_reader :locations, :services_response
def initialize(locations)
@locations = locations
end
def call!
split_locations! unless locations.is_a?(Array)
check_elevation!
... |
# -*- coding: utf-8 -*-
"""
Forms for day forms
"""
from django.conf import settings
from django import forms
from django.utils.translation import ugettext as _
from arrow import Arrow
from datebook.models import DayEntry
from datebook.forms import CrispyFormMixin
from datebook.utils.imports import safe_import_module
D... |
<!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/env python
# -*- coding: utf8 -*-
# ** PTS -- Python Toolkit for working with SKIRT **
## \package pts.core.tools.special Special functions.
# Ensure Python 3 compatibility
from __future__ import absolute_import, division, print_function
# Import standard modules
import numpy as np
# Import th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.