answer stringlengths 15 1.25M |
|---|
from matplotlib import pyplot as plt
from matplotlib import cm
from os import path
import numpy as np
import cv2
import pandas as pd
from math import exp, pi, sqrt
import mahotas as mh
from numbapro import vectorize
def show_images(images,titles=None, scale=1.3):
"""Display a list of images"""
n_ims = len(image... |
import { moduleForComponent, test } from 'ember-qunit'
import hbs from '<API key>'
moduleForComponent('bs-table-pagination/table-body', 'Integration | Component | bs table pagination/table body', {
integration: true
})
test('it renders', function (assert) {
// Set any properties with this.set('myProperty', 'value')... |
import moment from 'moment'
import Users from '~/server/services/users'
import Pages from '~/server/services/pages'
const users = new Users()
const pages = new Pages()
export default {
RootQuery: {
pages(root, args, ctx) {
return []
},
page(root, { slug }, ctx) {
retu... |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Lib
( someFunc
) where
import Reflex.Dom
import Data.JSString ()
import GHCJS.Types
import GUI.ChannelDrawer
import GUI.Player
import Data.Monoid
someFunc :: IO ()
someFunc = mainWidget mai... |
"""
Test for single criteria EI example.
"""
import logging
import os.path
import random
import unittest
from numpy import pi
from openmdao.examples.<API key>.single_objective_ei import Analysis
from openmdao.main.api import set_as_top
from pyevolve import Selectors
class <API key>(unittest.TestCase):
"""Test to ma... |
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<button id="clickage">Click me!</button>
<ul id="listage">
</ul>
<script type="text/javascript">
var button = document.getElementById('clickage'),
list = document.getElementById('listage');
button.addEventListener('clic... |
import {Loadable} from "./loadable";
import Game from "./game";
declare let game: Game;
export class RoomExit extends Loadable {
static EXIT = -999;
static EXIT_SILENT = -998; // same as regular exit, but without the "ride off into the sunset" message
public direction: string;
public room_to: number;
public ... |
# -*- coding: utf-8 -*-
from stash.tests.stashtest import StashTestCase
class CowsayTests(StashTestCase):
"""tests for cowsay"""
def test_help(self):
"""test help output"""
output = self.run_command("cowsay --help", exitcode=0)
self.assertIn("cowsay", output)
self.assertIn("--hel... |
#import <Foundation/Foundation.h>
static inline NSString* documentsDirectory() {
return [<API key>(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
}
static inline NSString* cachesDirectory() {
return [<API key>(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
}
static inline NSString* tempDirecto... |
TOOL.Category = "Construction"
TOOL.Name = "#tool.balloon.name"
TOOL.ClientConVar[ "ropelength" ] = "64"
TOOL.ClientConVar[ "force" ] = "500"
TOOL.ClientConVar[ "r" ] = "255"
TOOL.ClientConVar[ "g" ] = "255"
TOOL.ClientConVar[ "b" ] = "0"
TOOL.ClientConVar[ "... |
// file: bwipp/code11.js
// This code was automatically generated from:
// Barcode Writer in Pure PostScript - Version 2015-08-10
// BEGIN code11
if (!BWIPJS.bwipp["raiseerror"] && BWIPJS.increfs("code11", "raiseerror")) {
BWIPJS.load("bwipp/raiseerror.js");
}
if (!BWIPJS.bwipp["renlinear"] && BWIPJS.increfs("code1... |
#ifndef <API key>
#define <API key>
static const char *grammars =
"
"# Meta settings\n"
"
":desc ::= 'Strict JSON Grammar'\n"
":default ::= action => ::shift fallback-encoding => UTF-8 discard-is-fallback => 1\n"
"\n"
"
"# Discard unsignificant whitespaces, Perl comment C++ commen... |
__history = [{"date":"Mon, 06 Jul 2015 01:38:05 GMT","sloc":91,"lloc":51,"functions":6,"deliveredBugs":0.5510202611869238,"maintainability":65.8369760038691,"lintErrors":[],"difficulty":12.727272727272727}] |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Twilio Contact Center: Administration</title>
<link rel="stylesheet" href="/styles/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/styles/default.css" type="text/css" />
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css... |
## (Skill and salary levels)
* ,Webapp
* , ,
* , , ,
*
* ,
* , HTML/css/javascript
* Angular, Bootstrap, Jquery, Vue.js
* ,
* ,
* , ,
* ,,
* ,
* Node.Js, Fis3/Gulp/Grunt
* web,
* Github,
level and salary
level|name|salary
|
|T1||4-6k/|
|T2||7-10k/|
|T3||11-20k/|
|T4||20-50k/|
|T5||
* Github,
* , github star100
* webap... |
import React from 'react';
import ReactDOM from 'react-dom';
import <API key> from '<API key>';
import Recommendation from './components/Recommendation.jsx';
import '../../../scss/index.scss';
// Needed for onTouchTap
<API key>();
ReactDOM.render(<Recommendation />, document.getElementById('recommendation')); |
Meteor.publish('<API key>', function (namespace) {
check(namespace, String);
return BrewCount.find({
namespace: namespace
});
});
Meteor.publish('<API key>', function (namespaces) {
check(namespaces, [String]);
return BrewCount.find({
namespace: {
$in: namespaces
... |
<?php
namespace Spatie\Varnish\Middleware;
use Closure;
class CacheWithVarnish
{
public function handle($request, Closure $next, int $cacheTimeInMinutes = null)
{
$response = $next($request);
return $response->withHeaders([
config('varnish.<API key>') => '1',
'Cache-Contr... |
#import "UIViewController.h"
@class <API key>, NSString, UIPopoverController, _UIAsyncInvocation;
@interface <API key> : UIViewController
{
_UIAsyncInvocation *_cancelRequest;
id _modalContext;
<API key> *<API key>;
_Bool <API key>;
_Bool _showsCloudItems;
UIPopoverController *_containingPopover... |
exports = module.exports = function(db, settings, logger) {
return function connection(done) {
var config = settings.get('opentsdb') || {};
if (!config.host) { throw new Error('Invalid configuration of OpenTSDB: missing host'); }
config.port = config.port || 4242;
db.on('connect', function() {
l... |
<!DOCTYPE html>
<HTML><head><TITLE>Manpage of IPC</TITLE>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
<header class="site-header">
<div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div>
<div class="site-description">{"... |
from toee import *
import tpactions
def GetActionName():
return "Divine Spell Power"
def <API key>():
return D20ADF_None
def <API key>():
return D20TC_Target0
def GetActionCostType():
return D20ACT_NULL
def AddToSequence(d20action, action_seq, tb_status):
action_seq.add_action(d20action)
return ... |
"use strict"
const messages = require("..").messages
const ruleName = require("..").ruleName
const rules = require("../../../rules")
const rule = rules[ruleName]
testRule(rule, {
ruleName,
config: ["always"],
accept: [ {
code: "@media ( max-width: 300px ) {}",
}, {
code: "@mEdIa ( max-width: 300px ) {}"... |
module ApplicationHelper
def dat_markdown(text)
options = {
:autolink => true,
:space_after_headers => true,
:no_intra_emphasis => true
}
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, options)
markdown.render(text).html_safe
end
end |
require 'resourceful'
require 'redis'
require 'json'
require 'digest/md5'
require 'hitimes'
require 'uuidtools'
module Resourceful
class RedisCacheManager
attr_reader :db
def initialize(options)
@logger = options[:logger]
@db = Redis.new(options)
end
def lookup(request)
response = ni... |
<?php
namespace Exen\Konfig\Exception;
class Exception extends \Exception
{
// Nothing to put here!
}
// END OF ./src/Exception/Exception.php FILE |
package com.shapps.mintubeapp.service;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface SuggestionService {
@GET("search")
Call<String> getSuggestions (@Query("client") String client,
@Query("client") String clientType,
... |
<p>This is a paragraph of text.</p>
<div>
This is a block
of raw html.
</div>
<p>This is the last paragraph.</p> |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
export default class NavLoggedInMobile extends Component {
constructor(props){
super(props);
this.handleClick = this.handleClick.bind(this);
this.state = {
isOpen: false
}
}
handleClick(e){
e.stopPropagati... |
// SF API version v50.0
// Custom fields included: False
// Relationship objects included: True
using System;
using NetCoreForce.Client.Models;
using NetCoreForce.Client.Attributes;
using Newtonsoft.Json;
namespace NetCoreForce.Models
{
<summary>
User Record Access
<para>SObject Name: UserRecordAccess</para... |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Web::Mgmt::V2020_09_01
module Models
# Application logs to file system configuration.
class <API key>
include MsRestAzure
... |
'use strict';
var app = angular.module('myApp.users.controller', []);
app.controller('UsersShowController', ['$rootScope', '$window', '$scope', '$routeParams', 'User', '$location', 'Auth', 'STRIPE_KEY', '$route', 'locationHelper', 'AUTH_URL', 'menu', '$cookies', 'gettextCatalog',
function($rootScope, $window, $scope,... |
<?php
namespace Icicle\Loop\Structures;
use SplObjectStorage;
/**
* Extends SplObjectStorage to allow some objects in the storage to be unreferenced, that is, not count toward the total
* number of objects in the storage.
*/
class ObjectStorage extends SplObjectStorage
{
/**
* @var \SplObjectStorage
*/... |
package edu.uh.findtheroot;
import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import org.w3c.dom.Text;
import java.lang.reflect.Array;
import ja... |
package server
import (
"encoding/json"
"fmt"
"net/http"
"github.com/ehazlett/steamwire/types"
"github.com/sirupsen/logrus"
)
const (
baseURL = "http://api.steampowered.com/ISteamNews/GetNewsForApp/v0002/?appid=%s&count=%d&maxlength=%d&format=json"
)
func buildURL(appID string, count int, maxLen... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr const ll MOD = 1e9 + 7;
void tarjan(vector<unordered_set<int>> &graph, vector<int> &order,
vector<int> &ancestor, stack<int> &subtree,
vector<bool> &in_subtree, vector<int> &scc, const int node) {
static int accumula... |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Struct Children<T>
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Struct Children<T>
">
... |
package com.ibm.wala.ipa.callgraph.propagation;
import com.ibm.wala.ipa.callgraph.CGNode;
/**
* A pointer key which provides a unique set for each local in each call graph node.
*/
public class LocalPointerKey extends <API key> {
private final CGNode node;
private final int valueNumber;
public LocalPointerKey(C... |
define([
'app/canvas',
'app/geom',
'app/colors',
'lib/gl-matrix',
'lib/lodash',
],
function (canvas, geom, colors, matrix, _) {
var render = {};
render.axes = {x: 150, y: 150, z: 0, sx: 100, sy: 100, sz: 100, r: 0, rx: 0, ry: 0, rz: 0, q: quat4.identity()};
render.rots = [];
render.l... |
import { createSelector } from 'reselect';
function sortByOrder(a,b) {
return a.order > b.order ? 1 : (a.order < b.order ? -1 : 0);
}
const getMessages = (state) => state.app.messages;
const sortMessages = messages => messages.sort(sortByOrder);
export const <API key> = () => {
return createSelector(
[ getMess... |
<API key>=function(){
this.list=[];
this.register=function(fnc){
if (typeof fnc !== "function")
throw new ilModelException("<API key>.register","fnc is not a function",{theFnc:fnc});
this.list.push(fnc);
};
this.send=function(event){
var newList=[];
for (var x... |
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [sip.js](./sip.js.md) > [<API key>](./sip.js.<API key>.md) > [progress](./sip.js.<API key>.progress.md)
## <API key>.progress() method
13.3.1.1 Progress If the UAS is not able to answer the invitation immediat... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace SampleMvc1.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
var model = new PageCommon () { Title = "Test Title", Message = "Test... |
use std::collections::HashMap;
use std::net::SocketAddr;
use mioco;
use mioco::udp::UdpSocket;
use mioco::sync::mpsc::{channel, Receiver, Sender};
use sodiumoxide::crypto::secretbox as crypto_secretbox;
use ::Result;
use identity::{Identity, Extension};
use packet::*;
use keys::*;
use boxes::*;
use nonces::*;
use super... |
// Select list of users, starting by pattern (or exact match)
'use strict';
function escapeRegexp(source) {
return String(source).replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
}
// - nick - first letters of nick
// - strict - exact match when true
module.exports = function (N, apiPath) {
N.validate(apiPath, {
nick... |
from lxml import etree
from healthvaultlib.utils.xmlutils import XmlUtils
from healthvaultlib.itemtypes.healthrecorditem import HealthRecordItem
class Medication(HealthRecordItem):
def __init__(self, thing_xml=None):
super(Medication, self).__init__()
self.type_id = '<API key>'
if thing_xml ... |
import { connect } from 'react-redux'
import { enumSubFolders, enumItems } from '../actions/index'
import { Folder, AppState } from '../RendererTypes'
import { Explorer, StateByProps, DispatchByProps } from '../components/Explorer'
const mapStateToProps = (state: AppState): StateByProps => ({
folders: state.folders,
... |
package CIM.IEC61968.PaymentMetering;
import org.eclipse.emf.common.util.EList;
public interface VendorShift extends Shift {
/**
* Returns the value of the '<em><b>Receipts</b></em>' reference list.
* The list contents are of type {@link CIM.IEC61968.PaymentMetering.Receipt}.
* It is bidirectional an... |
# XPath/XQuery Course Catalog Extra Exercises Answers
This is the seemingly correct answers to the XPath/XQuery Course Catalog Extra
exercises from [Prof. J. Widom][2] (infamous :) db class.
The `XML` data is located [here][1].
Return the course number of the course that is cross-listed as `LING180`.
xquery
let $cat_re... |
<!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 Academic 4.4.0">
<meta name="author" content="Lorena Pantano">
<meta name... |
#!/bin/sh
# CYBERWATCH SAS - 2017
# Security fix for RHSA-2016:0617
# Operating System: Red Hat 6
# Architecture: x86_64
# - kernel.x86_64:2.6.32-504.46.1.el6
# - kernel-debug.x86_64:2.6.32-504.46.1.el6
# - <API key>.i686:2.6.32-504.46.1.el6
# - <API key>.x86_64:2.6.32-504.46.1.el6
# - kernel-debug-devel.i686... |
package com.breadwallet.crypto;
import com.google.common.base.Optional;
import com.google.common.primitives.UnsignedLong;
import java.util.Date;
import java.util.concurrent.TimeUnit;
public final class <API key> {
private final UnsignedLong blockNumber;
private final UnsignedLong transactionIndex;
private f... |
# bluetooth-keyboard
This PXT package allows the micro:bit to act as a Keyboard peripheral.
## Usage
Place a ``||bluetooth start keyboard service||`` block in your program to enable Bluetooth LE Keyboard.
With this block, the `micro:bit` starts advertise BLE packets as a Keyboard peripheral.
blocks
bluetooth.<API key>(... |
namespace OzekiDemoSoftphone.PM.Data
{
<summary>
TODO
</summary>
public class DSPInfo
{
}
} |
$(function () {
var kitty = new ComputeModel({
name: 'ToobSox',
weight: 12,
sassLevel: 'notSassy',
isFatAndSassy: function (weight, sassLevel) {
return weight > 14 && ['quiteSassy', 'ludicrouslySassy'].indexOf(sassLevel) >= 0;
}.computed('weight', 'sassLevel'),
description: function (nam... |
require 'thor'
module Pug
module Worker
class CLI < Thor
desc 'start', 'Starts worker application'
method_option :pool_size, type: :numeric
method_option :pid_path, type: :string
method_option :daemonize, type: :boolean
def start
configure
run
end
private... |
<!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.9.10: v8::RetainedObjectInfo Class Reference</title>... |
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- three.js library -->
<script src='vendor/three.js/build/three.js'></script>
<script src="vendor/three.js/examples/js/libs/stats.min.js"></script>
<!-- jsartookit -->
<script src="../vendor/js... |
require 'require_relative'
require 'ripper'
require_relative '/../classes/s_exp'
class MethodTrails
module Parser
# Parses +text+. Returns a +SExp+.
def <API key>(text)
r = Ripper.sexp(text)
r.to_s_exp(true) # disable capturing atoms
end
end
end |
require 'rails_helper'
describe 'Instructor users', type: :feature, js: true do
before do
include Devise::TestHelpers, type: :feature
Capybara.current_driver = :selenium
page.current_window.resize_to(1920, 1080)
end
before :each do
instructor = create(:user,
id: 100,
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Storedetails_model extends MY_Model
{
protected $_table="<API key>";
protected $primary_key="seller_store_id";
protected $soft_delete = FALSE;
public $before_create = array( 'created_at', 'updated_at' );
public $before_... |
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system",
]
},
paths: { |
namespace 'cuketagger' do
desc 'Check documentation with YARD'
task :check_documentation do
puts Rainbow('Checking inline code documentation...').cyan
output = `yard stats --list-undoc`
puts output
# YARD does not do exit codes, so we have to check the output ourselves.
raise Rainbow('Parts of t... |
//Remit Collection object for use on nodejs scripts
var Collection = require('./src/collection');
module.exports = Collection; |
{% load i18n %}
<p>
{% trans "Click on the primary key value to access the individual Author's page." %}
</p>
<table class='table table-bordered table-striped'>
<thead>
<tr>
<th>
id
</th>
<th>
created_at
</th>
<th>
updated_at
</th>
</tr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace <API key>
{
class Program
{
static void Main(string[] args)
{
var consoledate = Console.ReadLine();
var format = "dd-MM-yyyy";
var re... |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (12.0.1) on Sun May 24 23:39:58 EDT 2020 -->
<title>Uses of Class com.ensoftcorp.open.android.essentials.subsystems.advertisements.<API key></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.creat... |
id: 742
title: ' – monit'
date: 2016-11-06T21:54:52+00:00
layout: post
permalink: /2016/11/06/monit/
description:
Monit
categories:
-
tags:
-
-
Monit
{% include <API key>.html %}
WebPC
Web
<img class="alignnone size-full wp-image-749" src="https://i0.wp.com/simple-it-life.com/wp-content/uploads/2016/11/ho... |
describe("Game.resources", function() {
var gr = Game.resources;
var gb = Game.buildings;
describe("update", function() {
var b;
beforeEach(function() {
b = {
"name": "test",
}
Game.data.buildings.push(b);
spyOn(gb, "can_consume");
... |
jQuery(document).ready(function ($) {
var <API key> = [
//Fade in L
{$Duration: 1200, x: 0.3, $During: { $Left: [0.3, 0.7] }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $Opacity: 2 }
//Fade out R
, { $Duration: 1200, x: -0.3, $SlideOut: true,... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.06.29 at 10:15:17 AM BST
package org.w3._1999.xhtml;
import java.util.ArrayList;
impor... |
<!DOCTYPE html>
<html lang="ja" ng-app="psMaze">
<head>
<meta charset="utf-8">
<meta name="x-ua-compatible" content="IE=Edge">
<meta name="viewport" content="width=960">
<title>Prosemaze</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="tex... |
package com.fionapet.business.service;
import com.fionapet.business.entity.PetSmallRace;
import org.dubbo.x.repository.DaoBase;
import org.dubbo.x.service.CURDServiceBase;
import com.fionapet.business.repository.PetSmallRaceDao;
import org.springframework.beans.factory.annotation.Autowired;
public class <API key> exten... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Algorithms.RobertSedgewick.Fundamentals.DataStructures;
using Xunit;
namespace UnitTests.RobertSedgewick.DataStructures
{
public sealed class <API key>
{
[Fact]
public void PathTo()
{
Graph graph = Cr... |
layout: post
title: Some wonderful javascript tutorials
Tutorial format: description on the left, explaining the code on the right.
## example.js
> A brief high-level description
npm - download the library for use
tutorial - explaining how the code works.
github repository - in case you want to contribute!
## kmeans.j... |
package redempt.inputscripter.gui.indicator;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.border.LineBorder;
public class Indicator extends JDialog {
private static List<Indicator> indicators = new ArrayList<>();
... |
a, a * { cursor:pointer; }
html { margin:0; overflow-x:auto; }
body {
overflow-x:hidden;
min-width:1030px;
margin:0;
font: 13pt Helvetica,Arial,sans-serif;
background:#152534 url("/images/bg.png") no-repeat fixed center top; }
pre { color: #F5F5F5;}
pre, pre * { cursor:text; }
pre .Comment { color:#... |
// This file is automatically generated.
package adila.db;
/*
* Alcatel ONE TOUCH 922
*
* DEVICE: one_touch_922_gsm
* MODEL: ALCATEL ONE TOUCH 922
*/
final class <API key> {
public static final String DATA = "Alcatel|ONE TOUCH 922|";
} |
#include "CCAtlasNode.h"
#include "CCTextureAtlas.h"
#include "CCTextureCache.h"
#include "CCDirector.h"
#include "CCGLProgram.h"
#include "CCShaderCache.h"
#include "ccGLStateCache.h"
#include "CCDirector.h"
#include "TransformUtils.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCQuadCommand.h"
// external
#i... |
<?php
class <API key> extends CI_Model
{
function __construct()
{
parent::__construct();
$this->sess_id = $this->session->userdata('userid');
}
function load_xls($type,$excelreader,$filename) {
//read-file
$objReader = $excelreader->createReader($type);
$objPHPExc... |
package freenet.support.CPUInformation;
/**
* An interface for classes that provide lowlevel information about CPU's
*
* @author Iakin
*/
public interface CPUInfo
{
/**
* @return A string indicating the vendor of the CPU.
*/
public String getVendor();
/**
* @return A string detailing what... |
package desenvolvimento.com.garfo.Model;
import android.view.Menu;
import java.util.HashMap;
import java.util.List;
public class MenuItem {
private String name;
private String description;
private String price;
private String preparationTime;
private HashMap<String, String> ingredients;
public M... |
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Rheinpark Spielplatz</title>
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<header>
<h1>Rheinpark Spielplatz</h1>
<p>Sachsenbergstrasse 1<br>
50679 Köln</p>
<ul>
<li><a hre... |
'use strict'
const Bcrypt = require('bcrypt')
const Boom = require('@hapi/boom')
const Config = require('getconfig')
const JWT = require('jsonwebtoken')
const Joi = require('@hapi/joi')
module.exports = {
description: 'Sign up',
tags: ['api', 'user'],
handler: async function (request, h) {
const invite = awai... |
layout: post
title: "Jekyll + DigitalOcean: That's how I roll"
date: 2015-09-01
categories: blog
tags: workflow dicas
language: en
featured: false
image: /assets/images/posts/2015_jekyll_do.png
comments: true
permalink: thats-how-i-roll
est-read-time: 6
excerpt: A quick guide about a simple stack that will help you to ... |
from . import views
def register_in(router):
router.register(r'openstack', views.<API key>, base_name='openstack')
router.register(r'openstack-images', views.ImageViewSet, base_name='openstack-image')
router.register(r'openstack-flavors', views.FlavorViewSet, base_name='openstack-flavor')
router.registe... |
#!/usr/bin/env python
# grab audio from bag
import rosbag, rospy, numpy as np
import struct
import sys, os, cv2, glob
from itertools import izip, repeat
from subprocess import call
import subprocess
import argparse
depth_to_string = {16 : 'int16', 32: 'int32', None: 'int32'}
if __name__ == '__main__':
parser = argp... |
**NOTE**
This repository is not maintained. Please use [binch-go](https://github.com/tunz/binch-go) instead. I just rewrote this in Go since python is slow and keystone python library is not maintained well.
# a light BINary patCH tool
A light ELF binary patch tool in python urwid. It helps to patch a ELF binary in a f... |
package gnu.kawa.lispexpr;
import gnu.expr.*;
import gnu.mapping.*;
import gnu.lists.*;
import gnu.bytecode.*;
import gnu.mapping.EnvironmentKey;
import gnu.kawa.io.InPort;
import gnu.kawa.io.TtyInPort;
import gnu.kawa.reflect.StaticFieldLocation;
import gnu.text.Lexer;
import gnu.text.SourceMessages;
import java.util.... |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.loadTasks('grunt');
grunt.registerTask('default', ['eslint']);
}; |
# Get it started.
In this chapter we are going to talk about the most common task: purchase of a product using [Klarna Checkout](https://developers.klarna.com/en/klarna-checkout).
Unfortunately, You cannot use Payum's order to purchase stuff. Only klarna specific format is supported.
## Installation
The preferred way t... |
using System;
using System.Linq;
using log4net;
using PostSharp.Aspects;
namespace FP.Spartakiade2015.<API key>.DAL
{
[Serializable]
[AttributeUsage(AttributeTargets.Assembly| AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, Inherited = true)]
public class <API key> : OnExceptio... |
<?php
/**
* @file
* @author Lightly Salted Software Ltd
* @date 6 March 2015
*/
namespace LSS\Schema;
use LSS\Schema\Table\Column\StringColumn;
use LSS\Schema\Table\Index;
class TableTest extends \PHPUnit\Framework\TestCase
{
public function testConstructor()
{
$subject = new Table($name = 'abc'... |
namespace TraktApiSharp.Objects.Get.Syncs.Activities.Json.Writer
{
using Extensions;
using Newtonsoft.Json;
using Objects.Json;
using System;
using System.Threading;
using System.Threading.Tasks;
internal class <API key> : AObjectJsonWriter<<API key>>
{
public override async Task... |
<?php
use GameOfLife\Board;
use Output\JPEGOutput;
use PHPUnit\Framework\TestCase;
require_once __DIR__ . "/../Outputs/BaseOutput.php";
require_once __DIR__ . "/../utilities/ImageCreator.php";
require_once __DIR__ . "/../Outputs/JPEGOutput.php";
require_once __DIR__ . "/../Board.php";
require_once "GetOptMock.php";
/**... |
// ProgDlg.h : header file
// CG: This file was added by the Progress Dialog component
// CProgressDlg dialog
#ifndef __PROGDLG_H__
#define __PROGDLG_H__
#include "Resource.h"
class CProgressDlg : public CDialog
{
// Construction / Destruction
public:
CProgressDlg(UINT nCaptionID = 0); // standard constructor
... |
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const morgan = require('morgan');
const errorHandler = require('./utils/error-handler');
const auth = require('./routes/auth');
const experiences = require('./routes/experiences');
const agg = require('./routes/agg');
... |
// FGViewPool.h
// exibitour
#import <Foundation/Foundation.h>
#import "FGTypes.h"
typedef id<FGWithReuseId> (^<API key>) (id<FGWithReuseId> reuseItem);
@interface FGReuseItemPool : NSObject
- (instancetype)initWithArray:(NSArray *) array;
@property (nonatomic, strong, readonly) NSArray * items;
- (void) prepareUpdat... |
#region Usings
using System;
using System.Globalization;
using JetBrains.Annotations;
#endregion
namespace Extend
{
public static partial class StringEx
{
<summary>
Tries to create a new <see cref="CultureInfo" /> with the given name.
</summary>
<param name="name">The name of the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.