answer stringlengths 15 1.25M |
|---|
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Sun Dec 11 02:01:58 EET 2011 -->
<TITLE>
edu.cmu.cs.stage3.alice.core.behavior Class Hierarchy
</TITLE>
<META NAME="date" CONTENT="2011-12-11">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.c... |
from bioscrape.inference import <API key> as DLL
from bioscrape.inference import <API key> as STLL
from bioscrape.inference import <API key>
from bioscrape.inference import BulkData
import warnings
import numpy as np
class PIDInterface():
'''
PID Interface : Parameter identification interface.
Super class t... |
/**
* format currency
* @ndaidong
**/
const {
isNumber,
} = require('bellajs');
const formatCurrency = (num) => {
const n = Number(num);
if (!n || !isNumber(n) || n < 0) {
return '0.00';
}
return n.toFixed(2).replace(/./g, (c, i, a) => {
return i && c !== '.' && (a.length - i) % 3 === 0 ? ',' + c :... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using <API key>.Annotations;
using <API key>.Helpers;
using <API key>.Interfaces;
namespace <API key>.ViewModels
{
public class SqlServerViewModel : <API key>, IDataErrorInfo
{
... |
<upgrade>
<<API key>>
<setting>
<group>server_settings</group>
<module_id>log</module_id>
<is_hidden>0</is_hidden>
<type>integer</type>
<var_name>active_session</var_name>
<phrase_var_name><API key></phrase_var_name>
<orderi... |
import React from 'react'
import PropTypes from 'prop-types'
import FormGroup from '../forms/FormGroup'
import InputColor from '../forms/InputColor'
const ColorStackOption = ({ label, name, value, definitions, required, onChange, error }) => {
// default value may be null
if (value === null) {
value = ''
}
... |
import * as React from 'react';
import './TextBox.css';
interface Props {
className: string;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
placeholder: string;
}
class TextBox extends React.Component<Props, {}> {
public constructor(props: Props) {
super(props);
this.handleChange = this.ha... |
layout: post
date: '2016-09-08'
title: "A-line Empire Waist Sweetheart Beading Floor Length Satin Chiffon Lace Wedding Dress"
category: A-Line
tags: ["floor","line","length","star","bride"]
image: http:
A-line Empire Waist Sweetheart Beading Floor Length Satin Chiffon Lace Wedding Dress
On Sales: **$331.794**
<a href="... |
<template name="main">
<head>
<title>Typing Master</title>
</head>
<body>
<h1>Typing Master!</h1>
{{> loginButtons}}
<ul>
<li>
<a href="/">Play</a>
</li>
<li>
<a href="/addDocument">Add a new document</a>
</li>
<li>
<a href="/rooms">Create or join a game room</a>
</li>
... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Tmds.DBus.Tests
{
class PingPong : IPingPong
{
public static readonly ObjectPath Path = new ObjectPath("/tmds/dbus/tests/pingpong");
public event Action<string> OnPing;
public event Action OnPingNoArg;
... |
#include "key_handlers/key_normal.h"
#include "core/matrix_interpret.h"
#include "hid_reports/keyboard_report.h"
/* TODO: fn keycode */
bit_t is_layer_keycode(keycode_t keycode) {
return ( keycode >= KC_L0 && keycode <= KC_STICKY_RGUI );
}
void <API key>(keycode_t keycode, key_event_t event) REENT {
/* TODO: ch... |
from flask_bcrypt import <API key>
# Change the number of rounds (second argument) until it takes between
# 0.25 and 0.5 seconds to run.
<API key>('password1', 8) |
<!DOCTYPE html>
<html>
<head>
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Nest API Test App</title>
</head>
<body>
<div id="app"></div>
<div id="overlay"></div>
<script type="text/javascript" src="bundle.j... |
<?php defined('SYSPATH') OR die('No direct script access.');
class Grid_Core {
/** Array of table columns */
private $columns = array();
/** Array of action links */
private $links = array();
/** Table dataset */
private $dataset = array();
/**
* Add a column to the table
*
* ... |
package cn.honjow.leanc.ui.Fragment;
import cn.honjow.leanc.adapter.QuestionListAdapter;
import cn.honjow.leanc.ui.Activice.ChoQueActivity;
import cn.droidlover.xdroidmvp.base.SimpleRecAdapter;
import cn.honjow.leanc.model.QuestionItem;
import cn.honjow.leanc.ui.BaseLeancFragment;
import cn.droidlover.xrecyclerview.<AP... |
#pragma warning disable 1591
// <autogenerated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
[assembly: Android.Runtime.<API key>("VlcXamarin.Sample.Resource", IsApplication=true)]
namespac... |
<?php
namespace JHWEB\SeguridadVialBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SvCfgTipoVictima
*
* @ORM\Table(name="sv_cfg_tipo_victima")
* @ORM\Entity(repositoryClass="JHWEB\SeguridadVialBundle\Repository\<API key>")
*/
class SvCfgTipoVictima
{
/**
* @var int
*
* @ORM\Column(name="id... |
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Start TicTrainer Session</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/stylesheets/bgStyle.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/no... |
<div>{{error}}</div>
<div><h3>{{account.name}}</h3></div>
<div>Created on: {{account.created | date}}</div>
<div>Server: {{world.name}} Population: {{world.population}}</div>
<div class="panel panel-default">
<div class="panel-heading">Characters</div>
<div class="panel-body">
<div ng-repeat="character ... |
#include <Python.h>
#include <stdio.h>
#include <complex.h>
#include "julia.c"
static PyObject *_julia_Julia(PyObject *self, PyObject *args){
double min_r, max_r, min_i, max_i, resolution;
Py_complex z;
double complex Z;
if(!PyArg_ParseTuple(args, "ddddDd", &min_r, &max_r, &min_i, &max_i, &z, &resolutio... |
// Singleton
#include <iterator>
#include "Log.h"
#include <stdio.h>
#include <stdarg.h>
#include <windows.h>
namespace ps2emu
{
typedef std::map<int32, std::string>::iterator m_mapIterator;
//////////////////////////// PUBLIC ///////////////////////////////////////
Log* Log::_instance = 0;
Log* Log::Instance() {
... |
class Post < ActiveRecord::Base
belongs_to :forum, :counter_cache => true
belongs_to :user, :counter_cache => true
belongs_to :topic, :counter_cache => true
has_one :event_log, :as => :target, :dependent => :destroy
acts_as_ferret :fields => ['company_id', 'project_id', 'body', 'forum_id']
format_attrib... |
<?php
namespace UserBundle\Security;
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use Symfony\Component\Routing\Router;
class GoogleService
{
protected $container;
protected $router;
protected $redirectRouteName = 'google_check';
protected $scopes = ['email', 'profile'];
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Querify.Advanced
{
public static class <API key>
{
public interface IAdvancedQueryable<out T>
{
IQueryable<T> Query { get; }
}
private class <API key><T> : IAdv... |
<?php
$gameinfos = array(
// Game designer (or game designers, separated by commas)
'designer' => 'Bruno Faidutti, Alan R. Moon',
// Game artist (or game artists, separated by commas)
'artist' => 'Matthias Catrein, Paul Mafayon',
// Year of FIRST publication of this game. Can be negative.
'year' => 2006,
// Game publis... |
# -*- coding: utf-8 -*-
# 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 ... |
Docker Development Environment
===========================
I've seen a lot of things on the Internet about "How to launch *x* in Docker," but
I've never seen anything that actually makes *use* of the things that are being launched.
In an effort to change that, I've captured my development environment requirements into
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsf: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
<?php
namespace Anax\Comments;
/**
* A controller for comments and such events.
*/
class CommentsController implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectable;
/**
* Initialize the controller.
*
* @return void
*/
public function initialize()
{
$this->comments = ... |
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../css/main.css" type="text/css">
</head>
<style>
body {
background: green;
}
</style>
<body>
<article id="boveda" title="BOVEDA">
<div class="dialogContent">
<div class="styledDiv">
<div class="horizontal_c... |
package joshie.progression.api.gui;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/** Implement this on rewards, triggers, filters, conditions,
* if you wish to draw something special on them, other than default fields. */
public interface <API key> {
@SideOnly(... |
from utils.face import Face
import pygame
from utils.message import Message
from utils.alarm import Alarm
class Button(pygame.sprite.Sprite):
def __init__(self, rect, color=(0,0,255), action=None):
pygame.sprite.Sprite.__init__(self)
self.color = color
self.action = action
self.rect ... |
# @turf/helpers
# feature
Wraps a GeoJSON [Geometry](http://geojson.org/geojson-spec.html
**Parameters**
- `geometry` **[Geometry](http://geojson.org/geojson-spec.html#geometry)** input geometry
- `properties` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** prop... |
const td = require('testdouble');
const expect = require('../../../../helpers/expect');
const RSVP = require('rsvp');
const Promise = RSVP.Promise;
const adbPath = 'adbPath';
const deviceUUID = 'uuid';
const apkPath = 'apk-path';
const spawnArgs = [adb... |
package edu.gatech.nutrack;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.NavUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class Home extends Activity {
@Override
protected void onCreate(Bundl... |
<?php
/**
* Smarty Internal Plugin Template
* This file contains the Smarty template engine
*
* @package Smarty
* @subpackage Template
* @author Uwe Tews
*/
/**
* Main class with template data structures and methods
*
* @package Smarty
* @subpackage Template
*
* @property <API key>|<API key> $sou... |
using System;
using System.Data;
using ZyGames.Framework.Common;
using ZyGames.Framework.Game.Service;
using ZyGames.Tianjiexing.Lang;
using ZyGames.Tianjiexing.Model;
using ZyGames.Tianjiexing.BLL.Combat;
using ZyGames.Tianjiexing.BLL.Base;
using ZyGames.Tianjiexing.Model.Config;
namespace ZyGames.Tianjiexing.BLL.Acti... |
app.config(function ($routeProvider, $locationProvider) {
"use strict";
$routeProvider.when('/',
{
controller: 'HomeController',
templateUrl: '/static/apps/main/views/home.html',
resolve: {
tasks: function (TaskService) {
return Tas... |
#ifndef DEF_DOMAIN
#define DEF_DOMAIN
#include <iostream>
#include <list>
#include <set>
using namespace std;
class Domain
{
public:
Domain();
Domain(int newn);
void afficher();
bool isEmpty();
int smallestDom();
list<int> * getLDomain();
void setLDomain(list<int> s, int i);
list<int... |
import React from 'react';
import { getCategoryGroups } from '../selectors/categoryGroups';
import { <API key> } from '../selectors/categories';
import { <API key>, <API key> } from '../selectors/budgetItems';
import { <API key>, <API key> } from '../selectors/transactions';
import {connect} from 'react-redux';
import ... |
class RemoveModels < ActiveRecord::Migration[4.2]
def change
drop_table :roles
drop_table :role_names
drop_table :people
end
end |
# <API key>.<API key>
## Properties
Name | Type | Description | Notes
**name** | [**btp_name.BTPName**](BTPName.md) | | [optional]
**short_descriptor** | **str** | | [optional]
**atomic** | **bool** | | [optional]
**<API key>** | **int** | | [optional]
**end_source_location** | **int** | | [optional]
**documentati... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cfgv: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
'use strict';
module.exports = {
db: 'mongodb://localhost/equinix-test',
port: 3001,
app: {
title: 'Equinix - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: 'http:... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PotatoSelections extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
\Schema::create('potato_selections', function (Blueprint $table) {
... |
import { injectReducer } from '../../../../store/reducers'
export default (store) => ({
path: 'admin/positions/add',
/* Async getComponent is only invoked when route matches */
getComponent (nextState, cb) {
/* Webpack - use 'require.ensure' to create a split point
and embed an async module loader (j... |
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.forms import <API key>
from djangosige.apps.financeiro.models import PlanoContasGrupo, PlanoContasSubgrupo
class <API key>(forms.ModelForm):
class Meta:
model = PlanoContasGrupo
field... |
using Monitor.Core.Utilities;
using System.IO;
namespace JunctionManager {
class JunctionManager {
public static void MoveWithJunction(string origin, string target) {
//Copy folder and delete the original folder (essentially a move"
Program.CopyFolder(origin, target);
Dir... |
package main
var (
// Debug var to switch mode from outside
debug string
// CommitHash exported to assign it from main.go
commitHash string
)
// Most easiest way to configure
// an application is define config as
// yaml string and then parse it into
// map.
// How it works see here:
var confString = `
... |
package com.dgex.offspring.nxtCore.service;
import java.util.List;
import nxt.Account;
import nxt.Alias;
import nxt.Block;
import nxt.Transaction;
import com.dgex.offspring.nxtCore.core.TransactionHelper.IteratorAsList;
public interface IAccount {
public Account getNative();
public Long getId();
public String get... |
'use strict';
var fetchUrl = require('fetch').fetchUrl;
var packageInfo = require('../package.json');
var httpStatusCodes = require('./http.json');
var urllib = require('url');
var mime = require('mime');
// Expose to the world
module.exports.resolve = resolve;
module.exports.removeParams = removeParams;
/**
* Resolve... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Clarity.Rpa.Instructions
{
public enum <API key>
{
Equal,
NotEqual,
LessThan,
GreaterThan,
LessOrEqual,
GreaterOrEqual,
NumHighCompareTypes,
}
} |
require 'tempfile'
require 'fileutils'
require 'config'
require 'open-uri'
require 'data_repository'
class CI
def initialize(opts=Conf.config)
@url = opts.fetch(:url, "http://ci/api/json?tree=jobs[name,builds[timestamp,result,building]]")
@ignored_projects = opts[:ignored_projects] || []
end
def broken_pr... |
"use strict"
var o = require("ospec")
var m = require("../../render/hyperscript")
o.spec("hyperscript", function() {
o.spec("selector", function() {
o("throws on null selector", function(done) {
try {m(null)} catch(e) {done()}
})
o("throws on non-string selector w/o a view proper... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<title>TestTopicMerge</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../assets/jsunittest.js"></script>
<script type="text/javascript" src="..... |
# LD27
**Theme**: 10 Seconds
## Compiling
Requires Haxe 3 and openfl.
bash
haxelib install HaxePunk
haxelib install HaxePunkTmx
Then simply:
bash
openfl test flash
Or remplace flash with neko to have a desktop build.
Copyright (c) 2013 Valentin Lemiere
Permission is hereby granted, free of charge, to any person obtaini... |
(function <API key>(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["choose_file"] = factory();
else
... |
function move(Restangular, $uibModal, $q, notification, $state,$http) {
'use strict';
return {
restrict: 'E',
scope: {
selection: '=',
type: '@',
ngConfirmMessage: '@',
ngConfirm: '&'
},
link: function(scope, element, attrs) {
... |
## Digital Ocean Droplet Notifications for HipChat
Fetches information on droplets from Digital Ocean and notifies a HipChat room when something has changed.
Copy config.yml.sample to config.yml and add your Digital Ocean and HipChat API keys.
## How to use
heroku create```
git push heroku master```
heroku ps:scale web... |
let mongoose = require('mongoose');
let URL = process.env.MONGO_URL || 'localhost';
let USER = process.env.MONGO_USR || '';
let PASSWORD = process.env.MONGO_PWD || '';
mongoose.connect(`mongodb://${USER}:${PASSWORD}@${URL}`); //TODO doens't work for localhost
console.log(`Connecting to ${URL}...`);
let db = mongoose.co... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/shared.css">
<link rel="stylesheet" href="css/theme-dark.css">
<link rel="stylesheet" href="css/user-block.css">
<link rel="stylesheet" href="chat.css">
</head>
<body tabindex="-1">
<header>
<div id... |
You must specify a file that contains the private constants <API key> and ST_DISCORD_SETTINGS.
You can either have one file for each "database.php" and "discord.php" or you can store both in a file called "00_privateConstants.php". |
<?php
require_once('./config/accesscontrol.php');
require_once('./utilities.php');
// Set up/check session and get database password etc.
require_once('./config/MySQL.php');
session_start();
sessionAuthenticate();
$mysql = mysql_connect($mysql_host, $mysql_user, $mysql_password);
if (!mysql_select_db($mysql_database))
... |
define([], function() {
return Backbone.View.extend({
tagName: "a",
className: "projectlink",
attributes: {
href: "
},
template: _.template("<%- name %>"),
events: {
"click": "toggleSelection"
},
initialize: function() {
... |
'use strict';
(function() {
describe('HomeController', function() {
//Initialize global variables
var scope,
HomeController,
myFactory;
// Load the main application module
beforeEach(module(<API key>.<API key>));
beforeEach(inject(function($controller,... |
<?php
namespace Droath\ConsoleForm\Field;
/**
* Define field interface.
*/
interface FieldInterface
{
/**
* The data type the field holds.
*
* @return string
*/
public function dataType();
/**
* Field question class name.
*
* @return string
* The question class th... |
using System;
using System.Linq;
namespace GestorONG.Models
{
interface <API key><T> where T:class
{
<summary>
Get data paginated.
</summary>
<param name="filter">Filter applied by user.</param>
<param name="initialPage">Initial page.</param>
<param name="pageSize... |
package com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.enums;
public enum BalanceType {
AVAILABLE("AVAILABLE"),
BOOK("BOOK");
private final String code;
BalanceType(String code) {
this.code = code;
}
public String getCode() { return this.code ; }
public static BalanceType ge... |
// DZResponse.h
// DZNetworking
#import <Foundation/Foundation.h>
@interface DZResponse : NSObject
@property (nonatomic, copy, readonly) id responseObject;
@property (nonatomic, copy, readonly) NSHTTPURLResponse *response;
@property (nonatomic, copy, readonly) NSURLSessionTask *task;
- (instancetype)initWithData:(id)... |
<?php namespace TagProNews\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler {
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
'Symfony\Compo... |
// TLConversationCell.h
// TLChat
#import <UIKit/UIKit.h>
#import "TLConversation.h"
#define <API key> 64.0f
typedef NS_ENUM(NSInteger, <API key>) {
<API key>,
<API key>,
};
@interface TLConversationCell : UITableViewCell <<API key>>
Model
@property (nonatomic, strong) TLConversation *conversation;... |
# lurl
little url app
There are lots of public URL shortners. This is my own.
# Functionality
This app has no mechanism (from the web) to add URLs. This is intentional, as
it prevents the need to write a login or authentication system.
# Configuration
This is run as a resident nodejs app.
Two optional environent variab... |
/** @file This file contains the functions to adjust an existing polygon. */
/**
* Creates the adjusting event
* @constructor
* @param {string} dom_attach - The html element where the polygon lives
* @param {array} x - The x coordinates for the polygon points
* @param {array} y - The y coordinates for the polygon ... |
#import <iWorkImport/<API key>.h>
// Not exported
@interface <API key> : <API key>
{
}
+ (id)allocWithZone:(struct _NSZone *)arg1;
+ (id)setup;
+ (id)_singletonAlloc;
- (void)setupPipeline:(id)arg1 fromCamera:(id)arg2;
- (id)copyWithZone:(struct _NSZone *)arg1;
- (id)autorelease;
- (oneway void)release;
- (unsigned lon... |
#include <algorithm>
#include <map>
#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#ifndef HUGE_JOB_MODE
#include <fj_tool/fapp.h>
#include <fjcoll.h>
#endif
using namespace std;
#include "pearson-3d.h"
bool EXTEND_MISSION=false;
int T_MAX;
int T_MONITO... |
# -*- coding: utf-8 -*-
# Simple script to test sending UTF8 text with the GrowlNotifier class
import logging
logging.basicConfig(level=logging.DEBUG)
from gntp.notifier import GrowlNotifier
import platform
growl = GrowlNotifier(notifications=['Testing'],password='password',hostname='ayu')
growl.subscribe(platform.node... |
author: slowe
categories: Musing
comments: true
date: 2012-06-26T09:02:46Z
slug: <API key>
tags:
- Networking
- Virtualization
- VXLAN
- MPLS
- ToL
title: 'Thinking Out Loud: Why Not MPLS-in-IP?'
url: /2012/06/26/<API key>/
wordpress_id: 2648
As I was reviewing my list of actions in OmniFocus this morning, I saw an act... |
{
"date": "2017-12-26",
"type": "post",
"title": "Report for Tuesday 26th of December 2017",
"slug": "2017\/12\/26",
"categories": [
"Daily report"
],
"images": [],
"health": {
"weight": 78.6,
"height": 173,
"age": 13523
},
"nutrition": {
"... |
package dis
func Rearrange(s string, k int) string {
hm := make([]int, 26)
valid := make([]int, 26)
var id, maxF, numOfMaxF int
for _, c := range s {
id = int(c - 'a')
hm[id]++
if hm[id] > maxF {
maxF, numOfMaxF = hm[id], 1
} else if hm[id] == maxF {
... |
require 'test_helper'
class <API key> < ActionController::TestCase
setup do
@keysall = keysalls(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:keysalls)
end
test "should get new" do
get :new
assert_response :success
end
test "should... |
<!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... |
<!doctype html>
<html>
<head>
<title>You are offline!</title>
<meta charset="utf-8">
<meta name="theme-color" content="#532814">
<link rel="manifest" href="/static/starwarspwa/manifest.json">
<link rel="stylesheet" href="/static/starwarspwa/stylesheets/starwars.css">
</he... |
'use strict';
module.exports = {
images: {
files: [
{
cwd : 'src/assets/img/',
src : '**/*',
dest : '.build/img/',
flatten : false,
expand : true
}
]
},
config: {
files... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>client</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html> |
// Write a program that extracts from a given text all palindromes, e.g. "ABBA", "lamal", "exe".
function findPalindromes(input) {
var words = input.replace(/\W+/g, ' ').replace(/\s+/, ' ').trim().split(' '),
palindromes = [],
length = words.length,
currentWord,
i;
for (i = 0; i ... |
package org.shenit.tutorial.android;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class HelloWorldActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.<... |
package com.sinovoice.pathfinder.hcicloud.hwr;
import android.content.Context;
import android.util.Log;
import com.sinovoice.hcicloudsdk.api.hwr.HciCloudHwr;
import com.sinovoice.hcicloudsdk.common.hwr.HwrInitParam;
import com.sinovoice.pathfinder.hcicloud.sys.SysConfig;
public class HciCloudHwrHelper {
private sta... |
<?php
namespace FdjBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* JoueursTennis
*
* @ORM\Table(name="joueurs_tennis")
* @ORM\Entity(repositoryClass="FdjBundle\Repository\<API key>")
*/
class JoueursTennis
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @O... |
namespace sharp.Serene.Administration {
@Serenity.Decorators.registerClass()
export class LanguageDialog extends Serenity.EntityDialog<LanguageRow, any> {
protected getFormKey() { return LanguageForm.formKey; }
protected getIdProperty() { return LanguageRow.idProperty; }
protected getLoc... |
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>105 brendan oconnor <API key> support visualization</title>
</head>
<body>
<p><a title="brendan_oconnor_ai" href="../<API key>.html">brendan_oconnor_ai</a> <a title="<API key>" href="../home/<API key>.html"><API key></a> <a title="<API key>" href="#"><API key></... |
// 19. Write a JavaScript function that returns array elements larger than a number.
//two agrs - an array and a number to be larger than
function isGreater(arr, num) {
//set up an array to contain the results
var resultArray = [];
//iterate through based on length of the arr
for(var i = 0; i < arr.length; i++)... |
from django.conf.urls.defaults import *
urlpatterns = patterns('member.views',
url(r'^$', 'login', name='passport_index'),
url(r'^register/$', 'register', name='passport_register'),
url(r'^login/$', 'login', name='passport_login'),
url(r'^logout/$', 'logout', name='passport_logout'),
url(r'^active/$... |
{
"posts": [
{
"url": "/sport/baseball/2018/01/02/BaseballM.1514906011.A.C20.html",
"title": " ",
"image": "http://i.imgur.com/rRjk960.jpg",
"push": "109",
"boo": "8",
"date": "2018-01-02 23:13:28 +0800",
"boardName": "",... |
## using TrainerRed
TrainerRed is mostly self-evident in use, with a few exceptions; however, it'll still be spelled out below for proper reference.
contents
* installation
* configuration
* database population
* running a scan
* investigating a user
* investigating a domain
# installation
Installation of TrainerRed re... |
# -*- coding: utf-8 -*-
"""
The following examples are used to demonstrate how to get/record
analytics
The method signatures are:
Pushbots.get_analytics()
and
Pushbots.record_analytics(platform=None, data=None)
In which you must specify either platform or data.
"""
from pushbots import Pushbots
def <API key>():
"""... |
## Request Tokens
Now that you have an Authorization Code, you must exchange it for tokens. Using the extracted Authorization Code (`code`) from the previous step, you will need to `POST` to the [token URL](/api/authentication#authorization-code).
Example POST to token URL
har
{
"method": "POST",
"url": "https://${... |
<?php
namespace SimpleMon\Utility;
use Twig_Error_Loader;
/**
* Class TwigTryFileLoader
*
* Allows cascading loading of templates, first checking the given path
* in the loader, and then auto-checking with prepended namespaces until the
* template is found.
*
* @author Casey McLaughlin <caseyamcl@gmail.com>
*/
... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import httpretty
import json
import sure
from pyeqs import QuerySet, Filter
from pyeqs.dsl import Term, Sort, ScriptScore
from tests.helpers import homogeneous
@httpretty.activate
def <API key>():
"""
Create a queryset with a host given as a string... |
namespace DotNetGroup.Services.Rss
{
using DotNetGroup.Services.Generic;
public class UrlConfigProvider : BaseConfigProvider
{
protected override string Prefix
{
get { return "rss."; }
}
}
} |
module app.domain {
export interface IProduct{
productId: number;
productName: string;
productCode: string;
releaseDate: Date;
price: number;
description: string;
imageUrl: string;
//calculateDiscount(percent:number):number;
}
export class Prod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.