answer stringlengths 15 1.25M |
|---|
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class REST
{
protected $_ci;
protected $supported_formats = array(
'xml' => 'application/xml',
'json' => 'application/json',
'serialize' => 'application/vnd.php.serialized',
'... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc on Sun May 07 10:20:01 EDT 2006 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
HttpClient 3.0.1 API: API Help
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<... |
from django.test import TestCase
from mock import NonCallableMock
from silk.collector import DataCollector
from silk.middleware import SilkyMiddleware
from .util import delete_all_models
from silk.config import SilkyConfig
from silk.models import Request
def fake_get_response():
def fake_response():
return ... |
<section data-ng-controller="<API key>>
<style type="text/css">
body {
background-color:#000000;
background-image: url("modules/core/img/pics/gator_band.jpg");
background-repeat: no-repeat;
background-position: center top;
... |
/**
* class WysiHat.Selection
**/
WysiHat.Selection = Class.create((function() {
/**
* new WysiHat.Selection(editor)
* - editor (WysiHat.Editor): the editor object that you want to bind to
**/
function initialize(editor) {
this.window = editor.getWindow();
this.document = editor.getDocument();
... |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $title
* @var $el_class
* @var $el_id
* @var $type
* @var $style
* @var $legend
* @var $animation
* @var $tooltips
* @var $stroke_color
* @var $custom_stroke_color
* @var $stroke_width
* @var $values
* @var $css
* ... |
import angular from 'angular';
import template from './gifs.template.html';
angular
.module('single-spa-app')
.component('gifs', {
template,
controllerAs: 'vm',
controller($http) {
const vm = this;
$http
.get('https://api.giphy.com/v1/gifs/search?q=ping+pong&<TwitterConsumerkey>')
.then(response =... |
package com.dubture.symfony.core.model;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.dltk.core.IScriptProject;
import org.eclip... |
<?php
namespace SocialiteProviders\Tumblr;
use League\OAuth1\Client\Credentials\TokenCredentials;
use SocialiteProviders\Manager\OAuth1\Server as BaseServer;
use SocialiteProviders\Manager\OAuth1\User;
class Server extends BaseServer
{
/**
* {@inheritdoc}
*/
public function <API key>()
{
r... |
""" import the necessary modules """
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql import text
# Create a class that will give us an object that we can use to connect to a database
class MySQLConnection(object):
def __init__(self, app, db):
config = {
'host': 'localhost',
... |
/**
Class with static TDS info
*/
exports.TdsConstants = (function() {
var i, key, value, _len, _len2, _ref, _ref2, _ref3, _ref4;
function TdsConstants() {}
/**
* Versions indexed by the TDS protocol version
*/
TdsConstants.versionsByVersion = {
'7.0': 0x70000000,
'7.1': 0x71000000,
'7.1.1': 0x7... |
const jsonSchema = require('../utils/json-schema');
const models = require('../../../../../models');
const {ValidationError} = require('@tryghost/errors');
const tpl = require('@tryghost/tpl');
const messages = {
<API key>: 'Invalid filter in visibility_filter property'
};
const validateVisibility = async function ... |
// ViewController.h
// BFRadialWaveView
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end |
package jenkins.model;
import hudson.ExtensionList;
import hudson.ExtensionPoint;
import hudson.model.Describable;
import hudson.model.Descriptor;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.StaplerRequest;
import edu.umd.cs.findbugs.annotations.NonNull;
/**
* Convenient base class for extensions that co... |
(**Note:** If you get compiler errors that you don't understand, be sure to consult [Google Mock Doctor](<API key>.md#<API key>).)
# What Is Google C++ Mocking Framework? #
When you write a prototype or test, often it's not feasible or wise to rely on real objects entirely. A **mock object** implements the same interfa... |
# Integrations
## Salesforce Fusion IAM
- The **iam-get-user** command will now try to retrieve user details by ID, then by username, then by email.
# Mappers
## User Profile - Salesforce Fusion (Incoming)
- Added mapping to `Username` Cortex XSOAR field from `Name` SalesforceFusion field.
## User Profile - Salesforce ... |
<?php
namespace Mougrim\Logger\Layout\Pattern;
use Mougrim\Logger\Logger;
use Mougrim\Logger\LoggerPolicy;
use Mougrim\Logger\LoggerRender;
class PatternGlobal implements PatternInterface
{
private $path = [];
public function __construct($path)
{
if ($path) {
$this->path = preg_split('/\... |
.area-selection {
background-color: rgba(74, 144, 217, 0.5);
border: 1px solid rgba(74, 144, 217, 1);
} |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:12:"nombre_curso";s:4:"type";s:6:"string";s:6:"length";i:45;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}'); |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - geometry - normals</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Monosp... |
#include "PreProcessor.h"
#define DIMENSION 3
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <algorithm>
#include "FEMTree.h"
#include "MyMiscellany.h"
#include "CmdLineParser.h"
#include "MAT.h"
#include "Geometry.h"
#include "Ply.h"
#include "PointStreamData.h"
MessageWriter messageWriter;
cmdLine... |
/**
* @module ember-paper
*/
import Component from '@ember/component';
import { run } from '@ember/runloop';
import { computed } from '@ember/object';
import { htmlSafe } from '@ember/string';
import layout from '../templates/components/paper-toast-inner';
import TransitionMixin from '<API key>/mixins/transition-mixi... |
define([
"angular",
// all components added in the list below will automatically
// be registered in the app's main module as <API key>
"components/navigation-menu/navigation-menu",
"components/rectangle/rectangle",
// all decorators
"decorators/draggable"
], function ( angular ) {
"use ... |
angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
/**
* A helper, internal data structure that acts as a map but also allows getting / removing
* elements in the LIFO order
*/
.factory('$$stackedMap', function () {
return {
createNew: function () {
var stack = [];
return {... |
#include <<API key>.h>
// <API key>:
#include <<API key>/Include/<API key>.h>
// Local:
#include <AMDTGpuProfiling/gpBaseSessionView.h>
#include <AMDTGpuProfiling/ProfileManager.h>
#include <AMDTGpuProfiling/CodeViewerWindow.h>
#include <AMDTGpuProfiling/<API key>.h>
#include <AMDTGpuProfiling/<API key>.h>
gpBaseSessio... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Pricing\V2\Voice;
use Twilio\Page;
class NumberPage extends Page {
public function __construct($version, $response, $solution) {
parent::__construct($version, $response);
... |
/*
* For simplicity we assume that there are five data types:
* - Number
* - String
* - Boolean
* - Array (containing data of types shown above)
* - Object (everything else)
*
* Object type cannot be converted.
*
* IDL attribute is a Javascript entity, backed by content attribute.
* Content attribute is a pl... |
var UserModule;
(function (UserModule) {
var dataServiceId = "userService";
angular.module("user").service(dataServiceId, ["$http", "$q", "$rootScope", dataService]);
function dataService($http, $q, $rootScope) {
var self = this;
self.getBaseUri = function () {
if ($rootScope.con... |
{% extends "layout.html" %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<div class="error-box" align="center">
<img class="ui medium image error-image" src="{{ url_for('static', filename='img/error.png') }}">
<h1 class="ui header">{{ message }}<h1>
</div>
{% endblock %} |
package org.diorite.utils.reflections;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.diorite.cfg.syst... |
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.Management.Network.Models;
namespace Azure.Management.Network
{
<summary> The NetworkProfiles service client. </summary>
public partial... |
{% load staticfiles %}
{% load main_image %}
{% if offers %}
<table class="table table-striped offer-table">
<tr>
<th></th>
<th>Tytuł</th>
<th>Miejsce</th>
<th>Czas obowiązywania</th>
<th>Status</th>
<th class="text-right"></th>
... |
cordova.define("<API key>.CallNumber", function(require, exports, module) { var CallNumber = function(){};
CallNumber.prototype.callNumber = function(success, failure, number, bypassAppChooser){
cordova.exec(success, failure, "CallNumber", "callNumber", [number, bypassAppChooser]);
};
//Plug in to Cordova
cordova.a... |
<?php
namespace vowserDB\Storage;
abstract class AbstractStorage implements StorageInterface
{
/**
* File extension used for table files.
*
* @var string
*/
public $extension;
/**
* Read a CSV file and remove the first row as it is used for column decleration.
*
* @param s... |
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// der Code erneut generiert wird.
// </auto-generated>
namespace VFS.Application.Properties {
using System;
<summary>
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
</summary>
// Diese... |
<?php
namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;
class PdoSessionHandler extends <API key>
{
/**
* No locking is done. This means sessions are prone to loss of data due to
* race conditions of concurrent requests to the same session. The last session
* write will win in this ... |
package hudson.cli;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
import hudson.model.<API key>;
import jenkins.model.Jenkins;
import org.jenkinsci.Symbol;
import org.kohsuke.accmod... |
# <API key>: true
require "hanami/utils/string"
RSpec.describe "hanami generate", type: :integration do
describe "model" do
context "with model name" do
it_behaves_like "a new model" do
let(:input) { "user" }
end
end
context "with underscored name" do
it_behaves_like "a new model... |
#pragma once
#include <bond/core/config.h>
namespace bond
{
template <typename Protocols, typename X, typename Key, typename T>
typename boost::enable_if<is_map_key_matching<Key, X> >::type
inline <API key>(X& var, const Key& key, const T& element, uint32_t size);
template <typename Protocols, typename X, typename Key,... |
using System.Collections.Generic;
using Spect.Net.Assembler.SyntaxTree;
namespace Spect.Net.Assembler.Assembler
{
<summary>
Represents the definition of an IF section to process
</summary>
public class IfDefinition
{
<summary>
The entire IF section
</summary>
public D... |
<?php
namespace TwigIntegratorKit;
class TwigIntegratorKit
{
const VERSION = '0.1.5';
} |
<?php
namespace JasonRoman\NbaApi\Request\Data\Cms\Schedule;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\TeamSlugParam;
use JasonRoman\NbaApi\Request\Data\Cms\<API key>;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get a team's summer league schedule.
*/
class <API key... |
<!DOCTYPE html>
<html>
<head>
<body style="background-color:#E52826;">
<text style="color:#00EADC;">
<style>
h1{ text-align: center;}
p{ text-align: center;}
h2{ text-align: center;}
h3{ text-align: center;}
a{ text-align: center;}
ol{ text-align: center;}
img {
display: block;
margin: auto;
width: 40%;
}
b... |
#include "converter/smr2rdox/pch.h"
#include "converter/smr2rdox/rdoparser_rdo.h"
#include "converter/smr2rdox/rdoparser_lexer.h"
#include "converter/smr2rdox/rdoparser.h"
#include "converter/smr2rdox/rdosmr.h"
#include "converter/smr2rdox/rdorss.h"
#include "converter/smr2rdox/rdortp.h"
#include "converter/smr2rdox/rd... |
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if IE 9]> <html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>ProUI - Responsive Bootstrap Admin Template</title>
... |
export const getActiveLoan = (loans, activeLoanId) => {
return loans.filter(loan => loan.id == activeLoanId)[0];
}
export const getUpdatedLoans = (loans, updatedLoan) => {
return loans.map(loan => loan.id == updatedLoan.id ? updatedLoan : loan)
} |
using System.Threading;
namespace System.Globalization
{
public partial class CultureInfo : IFormatProvider
{
private static CultureInfo <API key>()
{
return null; // ICU doesn't provide a user override
}
internal static CultureInfo <API key>()
{
C... |
import { IHttpPromise ,IHttpService } from 'angular';
import { SentenceModel } from './sentence.model';
import { Injectable } from '<API key>';
@Injectable()
export class <API key> {
private resource_url = 'https://api.icndb.com/jokes/random';
static $inject = [ '$log', '$http' ];
constructor(
priva... |
<!doctype html>
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset=... |
'use strict';
angular.module('<%=angularAppName%>')
.controller('AuditsController', function ($scope, $filter, AuditsService) {
$scope.onChangeDate = function () {
var dateFormat = 'yyyy-MM-dd';
var fromDate = $filter('date')($scope.fromDate, dateFormat);
var toDate = $fi... |
import primitiveSet from 'osg/primitiveSet';
/**
* DrawElements manage rendering of indexed primitives
* @class DrawElements
*/
var DrawElements = function(mode, indices) {
this.mode = primitiveSet.POINTS;
if (mode !== undefined) {
if (typeof mode === 'string') {
mode = primitiveSet[mode]... |
import React from 'react'
import Icon from 'react-icon-base'
const TiCogOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.7 8.3l1.4 5.7 5.6-1.6 2.5 4.3-4.2 4.1 4.2 4.1-2.5 4.3-5.6-1.6-1.4 5.7h-5l-1.5-5.7-5.6 1.6-2.5-4.3 4.2-4.1-4.2-4.1 2.5-4.3 5.6 1.6 1.5-5.7h5z m0-3.3h-5c-1.6 0-2.9... |
// RUN: %check -e %s
f(int *);
g(float);
main()
{
int *pt = (void *)0;
float fp = 0;
f(fp); // CHECK: /error: mismatching types/
f(pt); // CHECK: !/error/
g(fp); // CHECK: !/error/
g(pt); // CHECK: /error: mismatching types/
} |
module Web::Controllers::Tasks
class Create
include Web::Action
include Import['tasks.interactors.create']
expose :task
params do
required(:task).schema do
required(:title).filled(:str?)
required(:md_body).filled(:str?)
required(:lang).filled(:str?)
required(:comp... |
package org.sidoh.song_recognition.signature;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.sidoh.collections.TreeMapOfSets;
import org.sidoh.io.ProgressNotifier;
import org.sidoh.io.ProgressNotifier.Builder;
import org.sidoh.... |
#include "wallet/wallet.h"
#include "base58.h"
#include "checkpoints.h"
#include "chain.h"
#include "coincontrol.h"
#include "consensus/consensus.h"
#include "consensus/validation.h"
#include "key.h"
#include "keystore.h"
#include "main.h"
#include "net.h"
#include "policy/policy.h"
#include "primitives/block.h"
#inclu... |
<!DOCTYPE html PUBLIC "-
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading... |
<?php
declare(strict_types=1);
require __DIR__.'/../vendor/autoload.php';
use SkeletonDancer\Cli\<API key>;
\Symfony\Component\Debug\ErrorHandler::register();
\Symfony\Component\Debug\DebugClassLoader::enable();
$cli = new \Webmozart\Console\ConsoleApplication(new <API key>());
$cli->run(); |
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Metadata;
namespace AlexanderTsema.Storage.Concretes.Migrations
{
public partial class FullModel : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Api\V2010\Account\Usage\Record;
use Twilio\ListResource;
use Twilio\Options;
use Twilio\Serialize;
use Twilio\Stream;
use Twilio\Values;
use Twilio\Version;
class AllTimeList extends ... |
package com.bbn.bue.common.evaluation;
import com.bbn.bue.common.symbols.Symbol;
/**
* Convenience constants for using in evaluation code.
* When building confusion matrices for binary decisions, we use these conventional constants as
* the labels.
*/
public final class EvaluationConstants {
public static final S... |
layout: default
title: Devin McGloin
excerpt: I make products that help people to understand the world around them, and think of new solutions to difficult problems.
{% include index/lead.html %}
{% include index/currently.html %}
{% include index/projects.html %}
{% include forms/newsletter.html %}
{% include index/ex... |
// ServiceMock.h
// GKCommerce
#import <Foundation/Foundation.h>
@interface GKServiceMock : NSObject
- (NSDictionary *)loadJSON:(NSString *)jsonName;
@end |
package com.microsoft.azure.management.mediaservices.v2019_05_01_preview.implementation;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.mediaservices.v2019_05_01_preview.ContentKeyPolicies;
import rx.Completable;
import rx.Observable;
import rx.functions.Func1;
im... |
import { prepareEmpty } from '@pnpm/prepare'
import { <API key>, install } from '@pnpm/core'
import {
addDistTag,
testDefaults,
} from './utils'
test('should fail to update when requests are cached', async () => {
const project = prepareEmpty()
const opts = await testDefaults()
await addDistTag('<API key>', '... |
import Ember from 'ember';
import GMapsCirclesMixin from 'ember-cli-g-maps/mixins/g-maps/circles';
import { module, test } from 'qunit';
import sinon from 'sinon';
let subject;
module('Unit | Mixin | g maps/circles', {
beforeEach: function() {
const GMapsCirclesObject = Ember.Object.exten... |
extern crate jade;
#[test]
fn test_basic_template() {
} |
app.controller('<API key>', ['$scope', function($scope){
}]) |
body,
#content-container {
background-color: #f2f6f8;
color: #595e62;
}
/* Boxed Layout */
@media (min-width: 1200px) {
#container.boxed-layout,
#container.boxed-layout.navbar-fixed #navbar {
background-color: #3f5662;
}
}
a {
color: #595e62;
}
a:hover,
a:focus {
color: #4d5155;
}
::selection {
back... |
// navbar
angular.module('thatjs', [])
.service('data', function () {
this.navItems = {
};
})
.controller('headerNavCtrl', function ($scope) {
window.headerNav = $scope;
$scope.headerNav = [
{'name': 'About'},
{'name': 'Run'},
{'name': 'Doc... |
console.assert();
console.count();
console.debug();
console.dir();
console.error();
console.exception();
console.group();
console.groupCollapsed();
console.groupEnd();
console.info();
console.log();
console.profile();
console.profileEnd();
console.time();
console.timeEnd();
console.trace();
console.warn(); |
using ServiceStack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using <API key>.Model;
namespace <API key>.Response{
public class NameResponse : CommonResponse
{
public TraderName Name {get; set; }
}
} |
#include <lua_interop.hpp>
#include <entity.hpp>
#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
#include <iostream>
int main(int, char*[]) {
std::cout << "=== customization: vec3 as table ==="
<< std::endl;
sol::state lua;
lua.open_libraries(sol::lib::base);
std::cout << "registering... |
public class CodeConverterTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
CodeConverter c = new CodeConverter (5);
System.out.println(c.toBars());
CodeConverter c2 = new CodeConverter ("|''|'");
System.out.println(c2.toInt());
}
} |
<?php
namespace PHPExiftool\Driver\Tag\Leaf;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class PreviewImage extends AbstractTag
{
protected $Id = 'JPEG_preview_data';
protected $Name = 'PreviewImage';
protected $FullName = 'Leaf::Main... |
var Reflux = require("reflux");
var InterestActions = Reflux.createActions([
"get",
"create",
"delete"
]);
module.exports = InterestActions; |
using Entitas;
public class <API key> : IComponent {
} |
// Observer.h
// Platform
#ifndef Platform_Observer_h
#define Platform_Observer_h
#include <string>
namespace MuddledManaged
{
namespace Platform
{
template <typename Sender, typename Event, typename... Args>
class Observer
{
public:
virtual ~Observer ()
... |
using Abp.Dependency;
using Abp.Runtime.Caching.Configuration;
namespace Abp.Runtime.Caching.Redis
{
<summary>
Used to create <see cref="<API key>"/> instances.
</summary>
public class <API key> : CacheManagerBase<ICache>, <API key>
{
private readonly IIocManager _iocManager;
<summar... |
[;
var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
module.exports = {
entry: {
vendor1: ["./vendor1"],
vendor2: ["./vendor2"],
pageA: "./pageA",
pageB: "./pageB",
pageC: "./pageC"
},
ou... |
package com.dmdirc.addons.nowplaying;
/**
* The state of a media source.
*/
public enum MediaSourceState {
/** Media Source is closed. */
CLOSED("Closed"),
/** Media Source is stopped. */
STOPPED("Stopped"),
/** Media Source is paused. */
PAUSED("Paused"),
/** Media Source is playing. */
... |
CS125 Honors
======
Finally I mady it possible!
http://mikuflk.github.io/cs125/
Filename explanation:
[branch: master]
tweet.php ==> back-end (include output format)
(Since I need to manually upload it to my server, no change in source code will effect immediately)
[branch: gh-pages]
main.js ==> fetch and location part... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Stamplay JS SDK tests">
<meta name="author" content="Stamplay developers">
<link href="../bower_components/mocha/mocha.css" rel="s... |
require 'spec_helper'
describe GSA do
include Fixtures
before(:each) do
GSA.base_uri = gsa_base_uri
end
describe "#feed" do
context "add" do
context "many records" do
it "successfully adds the records to the gsa index" do
VCR.use_cassette("many_records") do
results = ... |
(function($) {
$.event.special.mousewheel = {
setup: function() {
var handler = $.event.special.mousewheel.handler;
// Fix pageX, pageY, clientX and clientY for mozilla
if ( $.browser.mozilla )
$(this).bind('mousemove.mousewheel', function(event) {
$.data(this, 'm... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Description of Assembly
*
* @author Nick
*/
// A page for robot assembly, providing different parts to mix and match.
class Assembly extends Application
{
function __construct()
{
parent::__construct();
$this->load->... |
<div class="container">
<h1 class="text-block">About</h1>
<div class="text-block">
<p>Sounder Radio is a radio web app powered by the <a href="//soundcloud.com" target="_blank">SOUNDCLOUD</a> HTTP and widget APIs. It is built using <a href="//angular.io" target="_blank">Angular</a>. Sounder Radio is a work in p... |
#include "hb-private.hh"
#include "hb-shaper-private.hh"
#include "hb-atomic-private.hh"
static const hb_shaper_pair_t all_shapers[] = {
#define HB_SHAPER_IMPLEMENT(name) {#name, _hb_##name##_shape},
#include "hb-shaper-list.hh"
#undef HB_SHAPER_IMPLEMENT
};
/* Thread-safe, lock-free, shapers */
static const hb_shaper_... |
var components = {
"core": {
"meta": {
"path": "components/prism-core.js",
"option": "mandatory"
},
"core": "Core"
},
"themes": {
"meta": {
"path": "themes/{id}.css",
"link": "index.html?theme={id}",
"exclusive": tru... |
# == Schema Information
# Table name: <API key>
# id :integer not null, primary key
# <API key> :integer
# signup_enabled :boolean
# signin_enabled :boolean
# gravatar_enabled :boolean
# sign_in_text :text
# created_... |
/**
@module @ember/object
*/
import { FACTORY_FOR } from '@ember/-internals/container';
import { assign, _WeakSet as WeakSet } from '@ember/polyfills';
import {
guidFor,
getName,
setName,
makeArray,
HAS_NATIVE_PROXY,
isInternalSymbol,
} from '@ember/-internals/utils';
import { schedule } from '@ember/runl... |
package com.raizlabs.android.dbflow.sql.migration;
import com.raizlabs.android.dbflow.structure.database.DatabaseWrapper;
/**
* Description: Provides the base implementation of {@link com.raizlabs.android.dbflow.sql.migration.Migration} with
* only {@link Migration#migrate(DatabaseWrapper)} needing to be implemented.... |
require File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. spec_helper]))
describe '/hosts/show' do
before :each do
assigns[:host] = @host = Host.generate!(:description => 'Test Host')
end
def do_render
render '/hosts/show'
end
it 'should display the name of the host' do
do_render
re... |
"""
The controller base class
"""
from .routes import Route
from .view import View
class Controller(object):
def __init__(self, entity, env):
"""Instantiate a controller with the name of the entity and the
environment dict.
"""
self.entity = entity.strip('/^$')
if not self.en... |
'use strict';
module.exports = function(grunt) {
// HELPERS
// Get a config property. Most useful as a directive like <config:foo.bar>.
grunt.registerHelper('config', grunt.config);
// Get a config property and process it as a template.
grunt.registerHelper('config_process', grunt.config.process);
// Read a... |
using System;
using System.Reflection;
using Abp.Dependency;
using Abp.Domain.Entities;
using Abp.Domain.Repositories;
using Abp.Orm;
using Abp.Reflection.Extensions;
namespace Abp.EntityFramework
{
public abstract class <API key> : <API key>
{
private readonly <API key> <API key>;
private reado... |
jui.defineUI("ui.progress", [ "jquery", "util.base" ], function($, _) {
/**
* @class ui.slider
* @extends core
* @alias Slider
* @requires jquery
* @requires util.base
*/
var UI = function() {
var self, $root, $area, $bar;
function min() {
return self.op... |
require 'spec_helper'
describe Dandelion::Config do
let(:yaml) do
<<-YAML
foo: bar
baz: <%= ENV['BAZ'] %>
YAML
end
before(:each) do
ENV['BAZ'] = 'qux'
expect(IO).to receive(:read).with('foo').and_return(yaml)
end
let(:config) { Dandelion::Config.new(path: 'foo') }
it 'parses YAML... |
# Generic module deployment.
# ASSUMPTIONS:
# * folder structure either like:
# - RepoFolder
# - This PSDeploy file
# - ModuleName
# - ModuleName.psd1
# OR the less preferable:
# - RepoFolder
# - RepoFolder.psd1
# * Nuget key in $ENV:NugetApiKey
# * <API key> from BuildHelpers module has populat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.