answer stringlengths 15 1.25M |
|---|
package com.crumbpicker.client.css;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.TextResource;
public interface AppBundle extends ClientBundle {
//This is a very nasty workaround because GWT CssResource does not support @media cor... |
<!DOCTYPE html>
<html>
<head>
<title>API documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link type='text/css' rel='stylesheet' href='../../apidoc/stylesheets/bundled/bootstrap.min.css'/>
<link type='text/css' rel='stylesheet' href='../../apidoc/stylesheets/bundled/prett... |
using System;
using SpeedSlidingTrainer.Application.Infrastructure;
namespace SpeedSlidingTrainer.Desktop.Infrastructure
{
public sealed class WpfDispatcher : IDispatcher
{
public void BeginInvoke(Action action)
{
App.Current.Dispatcher.BeginInvoke(action);
}
}
} |
## Thu Feb 7 17:03:52 CST 2019
Had a go at using the Prolific Evaluator to allow for using JavaScript functions
in properties. This would make it simpler to specify functions to children that
are complete except for a little bit of customization. The selector function to
Inlet UDP and Inlet TCP are what got this start... |
#include "<API key>.h"
#ifdef __APPLE__
#include <mach/mach.h>
#include <mach/task.h>
#include <mach/mach_init.h>
#include <mach/host_info.h>
#include <mach/mach_host.h>
#include <mach/mach_traps.h>
#include <mach/mach_vm.h>
#include <mach/shared_region.h>
#include <sys/sysctl.h>
#include <math.h>
... |
require_relative '../spec_helper'
describe <API key> do
describe 'check action' do
it 'should get performance stats from backend' do
PerformanceStats.any_instance.should_receive(:result)
get :check
end
end
end |
/* global describe it expect beforeEach afterEach */
var $ = window.jQuery
describe('<API key>', function () {
'use strict'
var GOVUK = window.GOVUK
var $stickyElement
var $stickyWrapper
beforeEach(function () {
$stickyElement = $('<div class="<API key>"></div>')
$stickyWrapper = $('<div>').append($st... |
package com.dak.duty.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereot... |
#ifndef <API key>
#define <API key>
#include <assert.h>
#include <cstring>
#include <stdexcept>
#include <stdint.h>
#include <string>
#include <vector>
class uint256;
class uint_error : public std::runtime_error {
public:
explicit uint_error(const std::string& str) : std::runtime_error(str) {}
};
/** Template base ... |
package com.lynx.ui.textarea;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.Gravity;
import com.lynx.base.Style;
import com.lynx.core.impl.RenderObjectImpl;
import com.lynx.ui.input.AndroidInput;
import com.lynx.ui.input.LynxUIInput;
public class LynxUITextArea extends L... |
<div class="logo">
<img id="logo_shapy" src="/img/logo.png"/>
<h1>Welcome to Shapy, the collaborative 3D modelling tool!</h1>
<p>To start with, register an account if you have not already, otherwise login to access your assets folder. Scenes can be exported to the 3D printable STL format or published using ... |
// helper function for Timeslider
function timestamp(str) {
return new Date(str).getTime();
}
// noUiSlider -> for selecting a timespan for displaying chang... |
// <API key>.h
// GeoMap
#import <Cocoa/Cocoa.h>
@class GeoMapDocument;
@interface <API key> : NSTableView
@property (strong) IBOutlet GeoMapDocument * document;
@end |
// there's no real io error on a byte slice
pub type Error = ();
pub type Result<T> = core::result::Result<T, Error>;
pub trait Write {
fn write(&mut self, buf: &[u8]) -> Result<usize>;
}
impl Write for &mut [u8] {
fn write(&mut self, data: &[u8]) -> Result<usize> {
let amt = core::cmp::min(data.len(), ... |
using System;
using OKHOSTING.UI.Controls;
using OKHOSTING.UI.Controls.Layout;
namespace OKHOSTING.UI.Test.Controls
{
<summary>
A multiline textbox
<para xml:lang="es">
Un cuadro de texto de multiples lineas.
</para>
</summary>
public class TextAreaController: Controller
{
//Decl... |
body {
background-image: url("http://chomsky.soc.cornell.edu/~marty/<API key>.jpg");
<API key>: fixed;
}
header {
text-align: right;
}
a {
text-decoration: none;
color: #0099FF;
}
a:hover {
color: #9966FF;
}
a:visited {
color: none;
}
.menu {
text-align: center;
list-style: none;
margin: 0;
paddin... |
// ANObject+Anima.h
// AnimaPainter
#import "ANObject.h"
//////////////////////////////////////////////////////////////// [ ANObject + Anima ]
@interface ANObject (Anima)
-(void)animaRotationSnow;
-(void)<API key>:(CGPoint)pSta endsAt:(CGPoint)pEnd;
// ... From Value, To Value... [NSNumber numberWithFloat:pFrom] ... |
package redis.clients.jedis.exceptions;
import redis.clients.jedis.HostAndPort;
public class <API key> extends <API key> {
private static final long serialVersionUID = <API key>;
public <API key>(Throwable cause, HostAndPort targetHost, int slot) {
super(cause, targetHost, slot);
}
public <API k... |
{-|
Module: Flaw.UI.ScrollBox
Description: Scroll box.
License: MIT
-}
module Flaw.UI.ScrollBox
( ScrollBox(..)
, newScrollBox
, ScrollBar(..)
, newScrollBar
, <API key>
, <API key>
, <API key>
, <API key>
) where
import Control.Concurrent.STM
import Control.Monad
import Data.Maybe
import Flaw.Graphic... |
#import "<API key>.h"
<API key>
@protocol <API key>;
@protocol <API key>;
@class <API key>;
<API key>("This protocol has been deprecated and will no longer be called "
"except for legacy Aviary IAP integrations.")
@protocol <API key> <NSObject>
@optional
/**
Deprecated.
If implemented by the ... |
// Environment setup code
var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function';
var ENVIRONMENT_IS_WEB = typeof window === 'object';
var <API key> = typeof importScripts === 'function';
var <API key> = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !<API key>;
var <API key> = '\\(';
va... |
topic: Windows
desc: "Setting up an environment to do CS56 work on your own Windows machine (not ssh'ing into CSIL)"
For certain kinds of programs, i.e. graphics, and especially sound,
it may be more convenient to work directly on your Window machine rather than
ssh'ing into CSIL.
For audio or sound programs, this is e... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard for /usr/local/bin/phpunit/php-token-stream/Token/Stream</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../../css/bootstrap.min.css" rel="stylesheet">
<link href="../../../css/nv.d3.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ace;
using Pelmanism.Model;
namespace Pelmanism.Ace.UI
{
class CardObject : TextureObject2D
{
public CardObject( CardStatus cardStatus )
{
this.CardStatus = cardStatus;
cardStatus.... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
from pony.orm.core import Entity, SetInstance, Required, Optional
import suapp.orm
__all__ = ["to_json", "dumps"]
def to_json(object_to_serialize):
"""
Adding simple serialization for objects.
If standard json.dumps fails and it is a real object it ... |
namespace EstanciaGanadera.Desktop.Views.Main
{
partial class MainForm
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param nam... |
package com.autelhome.multiroom.playlist;
import com.autelhome.multiroom.song.Song;
import org.bff.javampd.Playlist;
import org.bff.javampd.objects.MPDSong;
import org.junit.Test;
import org.mockito.Mockito;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import static org.assertj.core.api.... |
#region MIT
// Gorgon.
// 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:
// ... |
<!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 v4.5.0 - v4.6.1: v8::Map Class Reference</title>
<link h... |
<?php
function __autoload($class_name) {
$filename = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
$novaPath = 'lib/Nova/'.$filename;
$controllerPath = 'app/controllers/'.$filename;
$modelPath = 'app/models/'.$filename;
if(file_exists($novaPath)) {
require_once($novaPath);
}... |
layout: post
title: '2014-07-07JS: Dart 1st EditionIntern 2.07 Patterns to Refactor'
date: '2014-07-07T21:24:00+09:00'
tags:
- Dart
- JavaScript
- testing
permalink: /post/91041422669/<API key>
<p>JSer.info
<p>DartECMAScript(JavaScript)Ecma
<a href="http:
(ECMAScript <a href="http:
<p>Ecma</p>
<ul><li><a href="http:
<... |
let Marionette = require('backbone.marionette');
let View = Marionette.View.extend({
tagName: 'div',
template: require('../../main/templates/contextmenu.html'),
className: "context establishment-list",
templateContext: function () {
return {
actions: this.getOption('actions'),
... |
using System.Collections;
namespace MEventSystem{
public interface IEventDispatcher {
void AddListener<E>(EventDelegate<E> del) where E:Event;
void RemoveListener<E>(EventDelegate<E> del) where E:Event;
}
} |
require 'spec_helper'
describe 'Clusters Applications', :js do
include GoogleApi::<API key>
let(:project) { create(:project) }
let(:user) { create(:user) }
before do
project.add_maintainer(user)
sign_in(user)
end
describe 'Installing applications' do
before do
visit <API key>(project, clus... |
// Use of this source code is governed by a zlib-style
package service
import (
"bufio"
"fmt"
"io/ioutil"
"os"
"strings"
)
var cgroupFile = "/proc/1/cgroup"
type linuxSystemService struct {
name string
detect func() bool
interactive func() bool
new func(i Interfac... |
.img-flex{
display:block;
width:100%;
}
.product{
background-color:#c7c0ae;
border-radius:8px;
border: 8px #9C3 solid;
padding:1.5em;
}
.product:hover,
.product:focus,
.product:active{
background-color: #9C3;
transition:250ms linear;
} |
package com.swfarm.biz.chain.web;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.collections.CollectionUtils;
import org.apache.... |
App.Views.NotebookShow = Support.CompositeView.extend({
template: JST["notebooks/notebook_show"],
render: function() {
var content = this.template({ notebook: this.model });
this.$el.html(content);
this.addNotes();
return this;
},
addNotes : function() {
this.appendChild(new App.Views.NotesI... |
<?php
/**
* @file
* Contains \FastFrame\Utility\PriorityListTest
*/
namespace FastFrame\Utility;
use PHPUnit\Framework\TestCase;
/**
* Tests of the PriorityList
*
* @package FastFrame\Event
*/
class PriorityListTest
extends TestCase
{
private $sampleCount0 = 2;
private $sampleCount = 4;
private $... |
'use strict';
define(['app'], function (app) {
var AboutController = function ($scope) {
};
AboutController.$inject = ['$scope'];
app.register.controller('AboutController', AboutController);
}); |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Pertemuan 03: Pewarisan
namespace Pewarisan
{
class Program
{
static void Main(string[] args)
{
Square s = new Square { Length = 4 };
Console.WriteLine("... |
namespace Microsoft.Xbox.Services.Leaderboard
{
using Newtonsoft.Json;
public class LeaderboardColumn
{
[JsonProperty("type")]
public LeaderboardStatType StatisticType { get; set; }
[JsonProperty("statName")]
public string StatisticName { get; set; }
}
} |
<?php
namespace Demo\Application;
/**
* Class description
*
* @package Demo\Application
* @author Nigel Greenway <nigel.greenway@prestoclassical.co.uk>
*/
interface <API key>
{
/**
* Handle the query
*
* @param QueryInterface $query
*
* @return mixed
*/
public function handle... |
class <API key> < ActiveJob::Base
queue_as :default
def perform(user)
user.destroy if user.guest
end
end |
using MonoCross.Utilities;
using System;
using System.Collections.Generic;
namespace MonoCross.Navigation
{
<summary>
Extension methods for <see cref="IMXView"/> that add navigation.
</summary>
public static class <API key>
{
<summary>
Initiates a navigation to the specified URL.
... |
namespace System.Management.Instrumentation
{
using System;
using System.Reflection;
using System.Collections;
using System.Text.RegularExpressions;
using System.Management;
using System.Globalization;
<summary>
<para>Specifies that this assembly provides management instrumentation. This... |
/**
* `Polymer.IronMenuBehavior` implements accessible menu behavior.
*
* @demo demo/index.html
* @polymerBehavior Polymer.IronMenuBehavior
*/
Polymer.<API key> = {
properties: {
/**
* Returns the currently focused item.
* @type {?Object}
*/
focusedItem: {
o... |
import {_XPathResult} from './index'
function isWordHtml(html) {
return /(class="?Mso|style=(?:"|')[^"]*?\bmso-|w:WordDocument|<o:\w+>|<\/font>)/.test(
html
)
}
export default (html, doc) => {
if (!isWordHtml(html)) {
return doc
}
// xPaths for elements that will be removed from the document |
title: UVA
date: 2011-04-27 07:17:00 +0800
layout: post
published: true
comments: true
category:
moveForm: baidu_qing
<div> <p><a target="_blank" rel="nofollow" href="http: |
/**
* Class for Sign Dump
*
* @author sanjay nair (sanjaysn@usc.edu)
* @version
* 03/12/2006 - Created
*/
#ifndef __SIGNDUMP_H__
#define __SIGNDUMP_H__
#include "basedump.h"
class SignDump : public BaseDump {
public:
/**
* C'tor.
*
* @param filePath File path
*/
SignDump( co... |
package au.id.cxd.math.model.network.activation
import breeze.linalg.DenseMatrix
class Identity() extends Activation {
/**
* the activation function applies to the input matrix.
*
* @param h
* @return
*/
override def apply(h: DenseMatrix[Double]): DenseMatrix[Double] = h
/**
* derivative o... |
#ifndef nealcoin_NOUI_H
#define nealcoin_NOUI_H
extern void noui_connect();
#endif // nealcoin_NOUI_H |
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Source Themes Academia 4.3.1">
<meta name="generator" content="Hugo 0.74.0" />
<meta na... |
package ru.otus.korneev.hmw04.util;
import com.sun.management.<API key>;
import javax.management.NotificationEmitter;
import javax.management.<API key>;
import javax.management.openmbean.CompositeData;
import java.lang.management.*;
import java.util.HashMap;
import java.util.Map;
public class MemoryUtil {
private s... |
/* global describe, it */
const { PassThrough } = require('stream')
const { strictEqual } = require('assert')
const irc = require('slate-irc')
const twitch = require('../src/twitch')
describe('User colour', function () {
describe('color', () => {
it('sends a .color privmsg to Twitch', done => {
let stream =... |
package com.onemightyroar.campfire.api;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;
import org.json.JSONException;
impor... |
package x7c1.linen.database.mixin
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.annotation.Config
import org.robolectric.{<API key>, RuntimeEnvironment}
import org.scalatest.junit.JUnitSuiteLike
import x7c1.linen.database.control.DatabaseHelper
import ... |
package uk.co.ticklethepanda.genetic_algorithms.binary_functions.n5;
import uk.co.ticklethepanda.genetic_algorithms.genetics.GeneticAlgorithm;
import uk.co.ticklethepanda.genetic_algorithms.genetics.SimulationVariables;
public class <API key> {
public static final int GENERATIONS = 1000;
public static final int... |
(function() {
var http;
http = require("http");
exports.importFeeds = function(options, cb) {
var parse_api;
parse_api = require("./parse-api")(options);
return http.get(options.feed_url, function(res) {
var body;
body = "";
res.on("data", function(chunk) {
body += chunk;
... |
# Subreddit Monitor
This is just a really simple script that I was testing. It will be used in a larger project.
It simply:
1) Gets the RSS feed of multiple subreddits eg [https:
3) Grabs the ID of the newest thread
4) Prints a message and performs an action when a newer thread appears
5) Sleeps 5 seconds
6) Repeats
Th... |
$message = Get-NewResource message
[System.Web.HttpUtility]::UrlEncode($message) |
// reviews reducer
import { combineReducers } from 'redux'
import { <API key>, <API key> } from '../actions/iceCreams'
import { ADD_REVIEW, ADD_REVIEW_SUCCESS, ADD_REVIEW_ERROR } from '../actions/reviews'
import { ADD_COMMENT_SUCCESS } from '../actions/comments'
export function byId(state={}, action) {
switch (action... |
.panel-heading a {
text-decoration: none;
cursor: pointer;
}
.panel-heading a.adf-handle-outer {
cursor: move;
cursor: grab;
cursor: -moz-grab;
cursor: -webkit-grab;
} |
function bubbleSort(arr) {
var len = arr.length;
for(var i=0; i<len-1; i++) {
for(var j=0; j<len-i-1; j++) {
if (arr[j] > arr[j+1]) {
var temp;
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
}
return arr;
}
module.exports = bubbleSort; |
A chain of navigation items represented as links.
## Features
## Usage
The items are made up of a label (`<API key>`) and
divider (`<API key>`). The label can be an anchor element
or a span.
[basic example](/demo/example.html)
## Classes
- `vclBreadcrumbNav`
- `<API key>`
- `<API key>`
## Modifiers
- `vclSelected`: To ... |
using Microsoft.Graphics.Canvas.Effects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Composition;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media;
namespace UWPBank.UI
{
public sealed class BackdropBlurBrush : <API key>
... |
using System;
using Figlotech.Core.I18n;
namespace Figlotech.Core {
public class <API key> : <API key> {
public string <API key> => "Tentativas de login excedidas, aguarde {0} minutos(s).";
public string AUTH_USER_NOT_FOUND => "Usuário e/ou senha incorreto(s)";
public string <API key> => "Us... |
<<<< HEAD
Create a tag [Wordle](http:
**Visit [the web app](http://timc.idv.tw/wordcloud/).**
Copyright 2011, 2013 [Timothy Guan-tin Chien](http://timdream.org/) and other contributors.
Released under [the MIT license](./MIT-LICENSE.txt).
## Libraries used
Understand more on how this web application works by following ... |
<div class="bs-docs-section">
<h1 id="scrollspy" class="page-header">ScrollSpy <small>scrollspy.js</small></h1>
<h2 id="scrollspy-examples">Example in navbar</h2>
<p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class... |
<div class="cp-header-display">
<div class="close-button" ng-click="mainCtrl.closePane()">
<img src="../../../app/icons/arrow-25-16.png" >
</div>
<div uib-dropdown is-open="homeCtrl.dropDownStatus.isopen">
<div class="cp-greeting" type="button" uib-dropdown-toggle ng-disabled="disabled">
Hi, {{homeC... |
#ifndef A4988_H
#define A4988_H
#include <Arduino.h>
#include "BasicStepperDriver.h"
class A4988 : public BasicStepperDriver {
protected:
static const uint8_t ms_table[];
int ms1_pin = PIN_UNCONNECTED;
int ms2_pin = PIN_UNCONNECTED;
int ms3_pin = PIN_UNCONNECTED;
void init(void);
// tA STEP mini... |
FROM osixia/tinc:0.2.3
ARG ETCD_VERSION=3.3.10
# Install multiple process stack from baseimage
RUN apt-get -y update \
&& /container/tool/<API key> \
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --<API key> \
ca-certificates \
curl \
&& /container/tool/<API key> :ssl-tools \
&& ... |
# GUI
# python for tkinter nature
from tkinter import *
class Application(Frame):
def __init__(self,master=None):
Frame.__init__(self,master)
self.pack()
self.createWidgets()
def createWidgets(self):
self.helloLabel=Label(self,text='Hello World')
self.helloLabel.pack()
... |
const requireDir = require('require-dir');
requireDir('./tasks'); |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-algebra: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paco: 2 m 11 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="style... |
package checkpoint.andela.model;
public enum FileDelimeters {
KEY_VALUE_SEPARATOR(" - "),
COMMENT("
END_OF_DATA("
private FileDelimeters(String realName){
this.realName = realName;
}
public String getRealName(){
return realName;
}
private final String realName;
} |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
export const styles = {
/* Styles applied to the root element. */
root: {
margin: 0,
padding: '24px 24px 20px',
flex:... |
describe Haml::Template do
# Simple imitation of Sinatra::Templates#compila_template
def compile_template(engine, data, options = {})
template = Tilt[engine]
template.new(nil, 1, options) { data }
end
specify 'Tilt returns Haml::Template for haml engine' do
assert_equal Haml::Template, Tilt[:haml]
... |
<!DOCTYPE html PUBLIC "-
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_6.js"></script>
<script type="text/javascript" sr... |
import { CoreTypes } from '@nativescript/core';
import * as pageModule from '@nativescript/core/ui/page';
import * as model from './myview';
export function onLoaded(args: { eventName: string; object: any }) {
var page = <pageModule.Page>args.object;
page.bindingContext = new model.ViewModel();
}
export functio... |
<?php
namespace Podlove\Modules\Contributors\Settings\Tab;
use \Podlove\Settings\Settings;
use \Podlove\Settings\Expert\Tab;
class Groups extends Tab {
private $page = NULL;
public function init() {
$this->page_type = 'custom';
add_action( '<API key>', array( $this, 'register_page' ) );
}
... |
module Sluginator
class Generator
def before_validation (record)
record.slug = sanitize(record.name)
end
private
def sanitize(text)
text.to_ascii.downcase.gsub(' ', '-').gsub(/\(|\)/, '')
end
end
end |
#!/usr/bin/python2.4
# pylint: disable-msg=C6310
"""WebRTC Demo
This module demonstrates the WebRTC API by implementing a simple video chat app.
"""
import datetime
import logging
import os
import random
import re
from google.appengine.api import channel
from google.appengine.ext import db
from google.appengine.ext imp... |
{% extends 'CashCity/base.html' %}
{% load staticfiles %}
{% load cropping %}
{% block css_block %}
<link rel="stylesheet" type="text/css" href="{% static 'CashCity/css/bootstrap-select.min.css' %}">
<!-- style embedded in django template for static file usage -->
<style type="text/css">
a > .edit-b... |
from test_base import BaseTestCase
from search_rex.recommendations.data_model.case_based import\
<API key>
from search_rex.recommendations.data_model.case_based import\
<API key>
from search_rex.recommendations.neighbourhood.case_based import\
<API key>
from search_rex.recommendations.similarity.case_based ... |
require 'rails_helper'
require 'cancan/matchers'
RSpec.describe User, type: :model do
let!(:english_traveler) { create(:english_speaker, :eligible, :not_a_veteran, :needs_accommodation) }
let!(:traveler) { create(:user) }
let(:guest) { create(:guest) }
it { should have_many :trips }
it { should <API key> :acc... |
import React from 'react'
import { Sigma, <API key>, RelativeSize, EdgeShapes, ForceAtlas2 } from '../src/index';
class EdgeLabelSample extends React.Component {
render() {
let graph = {
nodes: [
{id: 'a', label: 'A'},
{id: 'b', label: 'B'},
{id: 'c', label: 'C'}
],
edges... |
package org.woofenterprise.dogs.service;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.Collection;
import org.springframework.stereotype.Service;
import org.woofenterprise.dogs.dao.CustomerDAO;
import org.woofenterprise.dogs.entity.Customer;
import javax.crypto.SecretKeyFactory;
impor... |
#!/bin/bash
# test-simple.sh: simple sanity checks
REALPATH=$(cd $(dirname "$0") && pwd)
. "${REALPATH}/lib.sh"
TEST_PORT=8000
tests_use_port $TEST_PORT
begin_test "server binds and accepts through multibinder"
(
setup
launch_service "http" bundle exec env MULTIBINDER_SOCK=${TEMPDIR}/multibinder.sock ruby test/http... |
<?php
use Orm\Model;
class Model_M_Trap extends Model
{
protected static $_properties = array(
'id',
'm_trap_id',
'trap_type',
'effect_rate',
'effect_val',
'created_at',
'updated_at',
);
protected static $_observers = array(
'Orm\Observer_Creat... |
using System;
namespace FilesTree.Presenter.Events
{
internal sealed class <API key> : EventArgs
{
private readonly string _outputFilePath;
private readonly string _targetFolderPath;
public <API key>(string targetFolderPath, string outputFilePath)
{
_targetFolderPath ... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
... |
The MIT License (MIT)
Copyright (c) 2015 Maxim Zalysin <max@zalysin.ru>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, mo... |
## this is a way different change than the other two!
*We were asked by Charlotte to skip the 2nd and 3rd paragraph of Release 4.*
# Release 4 (2nd and 3rd paragraph):
Make a new branch, and make some changes to awesome_page.md.
Show off some of your markdown GitHub flavored markdown (Links to an external site.)
skills... |
layout: page
title: "Heather Adams"
comments: true
description: "blanks"
keywords: "Heather Adams,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=".... |
'use strict';
//Start by defining the main module and adding the module dependencies
angular.module(<API key>.<API key>, <API key>.<API key>);
// Setting HTML5 Location Mode
angular
.module(<API key>.<API key>)
.config(['$locationProvider',
function($locationProvider) {
$location... |
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[osf]{libertine}
\usepackage[scaled=0.8]{beramono}
\usepackage[margin=1.5in]{geometry}
\usepackage{url}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{nicefrac}
\usepackage{microtype}
\usepackage{bm}
\usepackage{sectsty}
\sectionfo... |
var assert = require("assert"),
global = global || require ("../../main/global/global.js").init("Test"),
fs = require("fs"),
Zip = require ("../../main/webServer/zip.js");
/* connect to the 'dataBase' and prepare everything */
before(function(done){
this.timeout(12042);
// write some stuff to the datafi... |
#include "totm_translate.h"
/**
* @brief Translates a given statement or event within a tale
* @param dictionary Dictionary containing words and phrases
* @param statement The statement or event to be translated
* @param text Returned translated text
* @returns zero on success
*/
n_int <API key>(totm_dictionary *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.