answer stringlengths 15 1.25M |
|---|
from django.conf.urls import url
from ..views import collections as views
urlpatterns = [
url('^create/$', views.Create.as_view(), name='create'),
url('^c:(?P<slug>[-\w]+)/$', views.Detail.as_view(), name='detail'),
url('^$', views.List.as_view(), name='list'),
] |
package net.fortuna.ical4j.model.property;
import net.fortuna.ical4j.model.ParameterList;
import net.fortuna.ical4j.model.Property;
import net.fortuna.ical4j.model.PropertyFactoryImpl;
import net.fortuna.ical4j.model.UtcOffset;
import net.fortuna.ical4j.model.ValidationException;
/**
* $Id$
*
* Created: [Apr 6, 2004... |
#pragma once
#include <ABI38_0_0React/components/view/ViewShadowNode.h>
#include <ABI38_0_0React/core/<API key>.h>
namespace ABI38_0_0facebook {
namespace ABI38_0_0React {
using <API key> = <API key><ViewShadowNode>;
} // namespace ABI38_0_0React
} // namespace ABI38_0_0facebook |
id: view-style-props
title: View Style Props
Example
js
import React from "react";
import { View, StyleSheet } from "react-native";
const ViewStyleProps = () => {
return (
<View style={styles.container}>
<View style={styles.top} />
<View style={styles.middle} />
<View style={styles.bottom} />
... |
<!DOCTYPE html PUBLIC "-
window.onload = function () {pageLoad();};
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption"><API key>.1.2.0: A class for types with a default value</p></di... |
<?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yi... |
{-|
Module : <API key>
Description : Bottom-up typed numeric expressions
Copyright : (c) Michal Konecny, Pieter Collins
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
@<API key>@ provides a version of @Prelude@ where
... |
#!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osgwidgetprogress"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import osgDB
from osgpypp import osgWidget
# Translated from file 'osgwidgetprogress.cpp'
# -*-c++-*- osgWidget ... |
title: Hello World (again)
kind: article
created_at: 2011-08-10
tags: ['general']
Welcome to my new homepage where I will blog a lot more than I did on
my old page, I promise.
My blog posts will be about computers, programming, software, computer
graphics and to some extent life in general :)
My first tip is the softwa... |
package org.basex.gui.text;
import static org.basex.gui.GUIConstants.*;
import java.awt.*;
import org.basex.data.*;
public final class SyntaxXML extends Syntax {
/** Last quote. */
private int quote;
/** Element name flag. */
private boolean name;
/** Flag for printing element name. */
private boolean elem;... |
#include "<API key>.h"
#include "PathOpsTestCommon.h"
#include "SkIntersections.h"
#include "SkPathOpsRect.h"
#include "SkReduceOrder.h"
#include "Test.h"
const int <API key> = 9;
static void standardTestCases(skiatest::Reporter* reporter) {
for (size_t index = <API key>; index < tests_count; ++index) {
int... |
#include <errno.h>
#include <inttypes.h>
#include <pthread.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
#include <sys/time.h>
#include <ck_pr.h>
#include <ck_barrier.h>
#include "../../common.h"
#ifndef ITERATE
#define ITERATE 5000000
#endif
#i... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\MOffice;
use app\models\MStaff;
$this->title = $model->isNewRecord ? '' : ''.'';
$this->params['breadcrumbs'][] = ['label' => '', 'url' => ['officelist']];
$this->params['breadcrumbs'][] = $model->isNewRecord ? '' : '';
?>
<div class="muser-update">... |
-- Variable arguments
local function p(...)
print(...)
end
local function values(...)
return ...
end
local function add(...)
local a, b = ...
return a+b
end
p(values(1, 2))
p("sum=", add(values(1, 2))) |
#pragma once
// ensure the MCU series is correct
#ifndef STM32PLUS_F0
#error This class can only be used with the STM32F0 series
#endif
/*
* Forward declare the IRQ handler name. There is a single IRQ handler for ADC 1 on the F0
*/
extern "C" void <API key>();
namespace stm32plus {
/**
* Feature class to allow a... |
<footer class="footer">
<div class="content content--footer">
<small class="small">© {{ site.time | date: '%Y' }} — {{ site.title }}</small>
</div>
</footer> |
require_relative 'group_presenter'
module Carto
module Api
class UserPresenter
include AccountTypeHelper
def initialize(user,
fetch_groups: false,
current_viewer: nil,
fetch_db_size: true,
fetch_basemaps: false,
... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\GuruSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="guru-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->fie... |
<?php
namespace RcmUser\Controller;
class <API key> extends <API key>
{
/**
* indexAction - list
*
* @return array
*/
public function indexAction()
{
// ACCESS CHECK
if (!$this->isAllowed(
<API key>::RESOURCE_ID_USER,
'read'
)
) {
... |
layout: organization
category: local
title: Mountain Bible Church
impact_area: Human Rights
keywords:
location_services:
location_offices:
website: http://fundly.com/<API key>
description:
mission: |
We were once again tragically reminded of the frailty of our existence as Hurricane Sandy shattered lives and devastat... |
#include <string.h>
#include <openssl/aead.h>
#include <openssl/aes.h>
#include <openssl/cipher.h>
#include <openssl/cpu.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/modes.h>
#include <openssl/obj.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
#include "internal.h"
#include "../internal... |
#!/bin/bash
#bandwidth allocation experiments
coefficients from guard relays on 1/1/13, cf network_analysis.py
a = 299.45192815560563
b = 1104612.6683457776
r_squared = 0.74124917207592156
coefficients from exit relays 1/13-3/13, cf network_analysis.py
a = 215.85762129136413
b = 1010231.1684564484
r_squared = 0.6860087... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\SaleorderlineSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="<API key>">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<di... |
from nagm.engine.attack import Attack
from .types import *
from .defs import precision, stat, heal, offensive, faux_chage_effect
prec = precision(prec=0.9)
mimi_queue = Attack(name='Mimi-queue', type=normal, effects=(prec, stat(stat='dfse', value=-1),))
charge = Attack(name='Charge', type=normal, effects=(prec, offensi... |
package org.sirix.gui.view.model.interfaces;
import java.beans.<API key>;
import java.util.Iterator;
import java.util.List;
import org.checkerframework.checker.index.qual.NonNegative;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.brackit.xquery.update.Insert;
import org.sirix.gui.ReadDB;
import ... |
<?php
namespace app\modules\task\models;
//use Yii;
use app\models\CActiveRecord;
use app\modules\user\models\Company;
use app\modules\user\models\User;
/**
* This is the model class for table "task_execute_info".
*
* @property integer $id
* @property integer $company_id
* @property integer $task_id
* @property i... |
from __future__ import unicode_literals
from prompt_toolkit.completion import Completer, Completion
from prompt_toolkit.completion import WordCompleter, PathCompleter
from prompt_toolkit.contrib.completers.system import SystemCompleter
from prompt_toolkit.contrib.regular_languages.completion import GrammarCompleter
fro... |
package main
import (
"flag"
"fmt"
"github.com/keybase/client/go/kbfs/env"
"github.com/keybase/client/go/kbfs/fsrpc"
"github.com/keybase/client/go/kbfs/libgit"
"github.com/keybase/client/go/kbfs/libkbfs"
"github.com/keybase/client/go/protocol/keybase1"
"golang.org/x/net/context"
)
const ... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_65) on Thu Mar 26 14:24:31 EDT 2015 -->
<TITLE>
Overview List (HIPI - Hadoop Image Processing Interface)
</TITLE>
<META NAME="date" CONTENT="2015-03-26">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">... |
import json
from functools import wraps
from django.http import <API key>
from django.shortcuts import render
from django.utils import translation
from django.views.decorators.cache import never_cache
from django.views.decorators.csrf import csrf_exempt, csrf_protect
from django.views.decorators.http import require_POS... |
<?php
namespace Dive\Relation;
use Dive\Collection\RecordCollection;
use Dive\Record;
use Dive\RecordManager;
class Relation
{
const ONE_TO_ONE = '1-1';
const ONE_TO_MANY = '1-m';
/**
* @var string
*/
protected $owningField = '';
/**
* @var string
*/
protected $owningTable = ... |
# Ebets
Ebets is a decentralized betting platform, built using Ethereum, where you
can create and join bets.
Ebets focuses on sports and e-sports matches. You can access it in a convenient way
at: [ebets.ch](https://ebets.ch) or at ipfs:
## Running
You're right! To be fully decentralized you should be able to run it yo... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Griffin.Networking.Http.Specification;
namespace Griffin.Networking.Http.Implementation
{
public class <API key><T> : <API key><T> where T : IHttpCookie
{
List<T> _items = new List<T>();... |
Spree::Core::Engine.routes.draw do
devise_for :spree_user,
:class_name => Spree::User,
:skip => [:unlocks, :sessions, :registrations, :passwords],
:controllers => { :omniauth_callbacks => "spree/omniauth_callbacks" },
:path => Spree::SocialConfig[:path_prefix]
res... |
<?php
namespace Core\Validator;
require_once 'PHPUnit/Framework.php';
require_once __DIR__ . '/../../../bootstrap.php';
use \Mockery as m;
/**
* Test class for Params Validator.
*/
class ParamsTest extends \CMSTestCase
{
protected function tearDown()
{
m::close();
}
public function testValidat... |
<?php
namespace app\modules\admin\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/site.css','css/<API key>.flags.css',
];
publi... |
#pragma once
#include <string>
#include <Poco/SharedPtr.h>
namespace BeeeOn {
class QueryLoader {
public:
typedef Poco::SharedPtr<QueryLoader> Ptr;
QueryLoader();
virtual ~QueryLoader();
virtual std::string find(const std::string &key) const = 0;
};
} |
layout: post
title: Building GitTrophy
date: 2017-08-11 07:38:51
tags: aws lambda react dataviz github javascript python s3 web
I've been working on a site for the past month that generates 3D models from Github's contribution graphs.
After a month of work, it's complete! So, I'm happy to announce ... |
#include "inmost_mesh.h"
#if defined(USE_MESH)
#define _m0(x) (x & 0x7FF)
#define _m1(x) (x >> 11 & 0x7FF)
#define _m2(x) (x >> 22 )
namespace INMOST
{
inline static void crossproduct(const Storage::real vecin1[3],const Storage::real vecin2[3], Storage::real vecout[3])
{
vecout[0] = vecin1[1]*v... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package frc.circuitrunners;
/**
*
* @author James
*/
public class R {
public static int BALL_COUNT = 0;
public static boolean AUTO_AIM = false;
public static int STAGE = 0;
public static class stage {
... |
<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>Phing API Documentation » \<API key></title>
<meta name="author" content="M... |
#pragma once
#include <folly/io/IOBuf.h>
#include <ostream>
#include <string>
namespace proxygen {
class IOBufPrinter {
public:
enum class Format : uint8_t {
HEX_FOLLY = 0,
HEX_16 = 1,
CHAIN_INFO = 2,
BIN = 3,
};
static std::string printChain(const folly::IOBuf* buf,
... |
jaxon.cmd.style = {
/*
Function: jaxon.cmd.style.add
Add a LINK reference to the specified .css file if it does not already exist in the HEAD of the current document.
Parameters:
filename - (string): The URI of the .css file to reference.
media - (string): The media type of the css file (print... |
<?php
namespace Phalcon\Forms\Element;
use \Phalcon\Tag;
use \Phalcon\Forms\Element;
use \Phalcon\Forms\ElementInterface;
use \Phalcon\Forms\Exception;
class File extends Element implements ElementInterface
{
/**
* Renders the element widget returning html
*
* @param array|null $attributes
* @re... |
package lrstorm;
import java.util.ArrayList;
import java.util.HashMap;
public class <API key> {
// state for one segment with information about accidents...
private boolean hasAccident;
private boolean isNewAccident;
private boolean isCleared;
private long timeNew;
private long timeCleared;
... |
#include "content/shell/app/shell_main_delegate.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "cc/base/switches.h"
#include "content/public/browser/browser_main_runner.h"
#include "content/public/common/content_switches.h"
#include ... |
<?php
// use Yii;
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\TagsCloudWidgets;
use frontend\components\RctReplayWidget;
use common\models\Post;
/* @var $this yii\web\View */
/* @var $searchModel common\models\PostSearch */
/* @var $dataProvider yii\data\ActiveDataProv... |
import { Metadata } from '../rpc_types';
export const singleDemoEntry: Metadata = {
revision: {
url: 'example.com',
hash: '123',
},
demos: ['demo0'],
};
export const twoDemoEntries: Metadata = {
revision: {
url: 'example.com',
hash: '123',
},
demos: ['demo0', 'demo1'],
}; |
#ifndef <API key>
#define <API key>
// INCLUDES
#include "<API key>.h"
#include <scShared/Plugins/abstractalgorithm.h>
#include <utils/generics/circularbuffer.h>
#include <connectivity/<API key>.h>
#include <connectivity/network/network.h>
// QT INCLUDES
#include <QMutex>
#include <QElapsedTimer>
#include <QPointer>
//... |
// modification, are permitted provided that the following conditions are met:
// and/or other materials provided with the distribution.
// * Neither the name of BuildAMation nor the names of its
// contributors may be used to endorse or promote products derived from
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUD... |
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.IO;
<summary>
Constants for Sponsored Links BlogEngine.NET WidgetControl
</summary>
public static class <API key>
{
public static string CurrentIndex = "CurrentIndex";
public static string AdCollectionKey = "adsCollecti... |
package clean
import (
"flag"
"os"
"github.com/tueftler/doget/command"
"github.com/tueftler/doget/config"
"github.com/tueftler/doget/dockerfile"
)
// CleanCommand allows to remove the vendor directory and all of its contents
type CleanCommand struct {
command.Command
flags *flag.FlagSet
}
//... |
#ifndef <API key>
#define <API key>
#if (defined(_MSC_VER) && (_MSC_VER > 1000))
#pragma once
#endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)) */
#include "mmcore/api/MegaMolCore.std.h"
#include "mmcore/factories/CallAutoDescription.h"
#include "mmcore/view/CallRender3D.h"
#include <glowl/FramebufferObject.hpp>
names... |
<!DOCTYPE html>
<!
Copyright (c) 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
<link rel="import" href="/tracing/extras/importer/jszip.html">
<link rel="import" href="/tracing/model/model.html">
<link rel="import" href="... |
# Android-<TwitterConsumerkey>
Xamarin bindings for the twitter android sdk
## Xamarin bindings for twitter android sdk core
In this document we document how we got very rough but working [Xamarin bindings](http:
Installation with visual studio
Do not use these bindings directly. They are really quick and really dirty.... |
feature 'Reviews', :js do
given!(:someone) { create(:user, email: 'ryan@spree.com') }
given!(:review) { create(:review, :approved, user: someone) }
background do
Spree::Reviews::Config.<API key> = false
end
context 'product with no review' do
given!(:product_no_reviews) { create(:product) }
scenar... |
package com.cra.figaro.algorithm.factored.factors.factory
import com.cra.figaro.language._
import com.cra.figaro.algorithm.factored.factors._
import com.cra.figaro.algorithm.lazyfactored.Star
import com.cra.figaro.algorithm.structured.ComponentCollection
/**
* A Sub-Factory to make Star Factors from arbitrary elements... |
<div id="footer">
Copyright © 2010 Deoxxa Development and the Mineserver Project. All rights reserved.
</div> |
#!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osglight"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import osg
from osgpypp import osgDB
from osgpypp import osgUtil
from osgpypp import osgViewer
# Translated from file 'os... |
<?php
namespace SilverStripe\GraphQL\Tests\Middleware;
use GraphQL\Type\Schema;
use SilverStripe\GraphQL\Middleware\QueryMiddleware;
class <API key> implements QueryMiddleware
{
public function process(Schema $schema, $query, $context, $params, callable $next)
{
return ['result' => "It was me, {$params[... |
<?php
namespace Admin;
// module/Admin/cong/module.config.php:
return array(
'controllers' => array( //add module controllers
'invokables' => array(
'Admin\Controller\Index' => 'Admin\Controller\IndexController',
'Admin\Controller\Auth' => 'Admin\Controller\AuthController',
... |
// rw.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
#include "rw.h"
#include "nbtheory.h"
#include "asn.h"
NAMESPACE_BEGIN(CryptoPP)
template<> const byte <API key><SHA>::decoration = 0x33;
template<> const byte <API key><RIPEMD160>::decoration = 0x31;
void EMSA2Pad::Pad(<API key> &, const b... |
<div id="doc">
<div id="head" class="clearfix">
<h1><a href="/">Shaker Demo</a></h1>
<div id="nav">
{{{buttons}}}
</div>
</div>
<div id="main" class="clearfix">
{{{primary}}}
{{{secondary}}}
</div>
</div> |
import React from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import Books from "./pages/Books";
import Detail from "./pages/Detail";
import NoMatch from "./pages/NoMatch";
import Nav from "./components/Nav";
const App = () => (
<Router>
<div>
<Nav />
<Switch>
... |
<?php
namespace app\controllers;
use Yii;
class <API key> extends \app\extentions\BaseController
{
public function actionIndex()
{
return $this->render('index');
}
public function actionEquipment($pId = null)
{
Yii::$app->calculator->initComponent();
return $this->render('equ... |
package net.dougqh.jak.jvm.assembler.macros.api;
import static net.dougqh.jak.Jak.*;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import net.dougqh.jak.jvm.assembler.JvmClassWriter;
import net.dougqh.jak.jvm.assembler.JvmWriter;
import net.dougqh.jak.jvm.assembler.macros.stmt;
import org... |
using System;
using System.Data;
namespace MyMeta.MySql5
{
#if ENTERPRISE
using System.Runtime.InteropServices;
[ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual), ComDefaultInterface(typeof(IProcedure))]
#endif
public class MySql5Procedure : Procedure
{
public MySql5Procedure()
... |
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
/* @var $this yii\web\View */
$this->title = 'Отблагодарить';
?>
<h1 class="page-header"><?= Html::encode($this->title) ?></h1>
<p>Деньги пойдут на развитие проекта и развитие планетарной инфраструктуры объединения человечества на основе... |
package org.basex.query.expr.gflwor;
import org.basex.query.*;
import org.basex.query.expr.*;
import org.basex.query.util.*;
import org.basex.query.value.type.*;
import org.basex.query.var.*;
import org.basex.util.*;
import org.basex.util.hash.*;
public abstract class Clause extends ParseExpr {
/** All variables decl... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Mar 31 17:30:31 CST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title></title>
<meta name="date" content="2014-03-31">
<link rel="stylesheet" type="text/css" href="sty... |
import numpy as np
from .kern import CombinationKernel
from paramz.caching import Cache_this
import itertools
from functools import reduce
def <API key>(func):
"""
A decorator that allows catching numpy invalid operations
as exceptions (the default behaviour is raising warnings).
"""
def func_wrappe... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web;
using ServiceStack.Common;
using ServiceStack.Html;
using ServiceStack.Logging;
using ServiceStack.Markdown;
using ServiceStack.Text;
namespace Serv... |
<?php
namespace System\Form\User;
use Home\Form\FormBase;
use Home\Model\DateBase;
use Zend\Form\Element\Text;
use Zend\Form\Element\Hidden;
use Zend\Form\Element\Textarea;
use Zend\Form\Element\Select;
use Zend\Form\Element\Date;
use ZendX\Form\Element\DisplayGroup;
use Zend\Validator\StringLength;
use Zend\Uri\UriFac... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.label.xml
Template File: sources-sinks-22a.tmpl.c
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: fscanf Read data from the console using fscanf()
* GoodSource: Small number greater than zero
* Si... |
<!DOCTYPE html>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="<API key>+<API key>" crossorigin="anonymous">
<html lang="pt-br">
<head>
<title>Editar Modelo</title>
<meta charset="UTF-8">
</head>
<body>
<h2>Novo Modelo</... |
#ifndef <API key>
#ifdef __cplusplus
#define <API key> extern "C"
#else
#define <API key>
#endif
#ifdef _WIN32
#ifdef <API key>
#define <API key> <API key> __declspec(dllexport)
#else
#define <API key> <API key> __declspec(dllimport)
#endif
#else
#define <API key> <API key>
#endif
#endif |
<?php
?>
<style type="text/css">
.form-control{
width: 30%;
}
</style>
<link href="css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="all" href="css/daterangepicker-bs3.css"/>
<div class="row wrapper border-bottom white-bg page-heading title">
<div class="col-l... |
package edu.wpi.first.wpilibj.templates.commands;
/**
*
* @author bradmiller
*/
public class TelopDriveCommand extends CommandBase {
public TelopDriveCommand() {
requires(DriveSubsystem);
}
// Called just before this Command runs the first time
protected void initialize() {
DriveSubsys... |
package rogue.creature;
import java.util.Collection;
import jade.fov.RayCaster;
import jade.fov.ViewField;
import jade.ui.Camera;
import jade.ui.Terminal;
import jade.util.datatype.ColoredChar;
import jade.util.datatype.Coordinate;
import jade.util.datatype.Direction;
public class Player extends Creature implements Cam... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of the project nor the
// names of its contributors may be used to endorse or promote products
// ANY EXPRESS OR IMPLIED WARRANTIES... |
package com.groupon.lex.metrics.timeseries;
import com.groupon.lex.metrics.GroupName;
import com.groupon.lex.metrics.Histogram;
import com.groupon.lex.metrics.Histogram.RangeWithCount;
import com.groupon.lex.metrics.MetricName;
import com.groupon.lex.metrics.MetricValue;
import com.groupon.lex.metrics.SimpleGroupPath;
... |
package gov.hhs.fha.nhinc.redactionengine.adapter;
import gov.hhs.fha.nhinc.common.nhinccommonadapter.<API key>;
import gov.hhs.fha.nhinc.policyengine.adapter.pip.CDAConstants;
import gov.hhs.fha.nhinc.util.HomeCommunityMap;
import gov.hhs.fha.nhinc.util.format.PatientIdFormatUtil;
import java.math.BigInteger;
import j... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 22 14:18:58 CET 2012 -->
<TITLE>
Uses of Class soot.PatchingChain (Soot API)
</TITLE>
<META NAME="date" CONTENT="2012-01-22">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
<SCRIP... |
package edu.duke.cabig.c3pr.webservice.iso21090;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DSET_SC complex type.
*
* <p>The following schema fra... |
module Signal.Wavelet.Eval2Bench where
import Signal.Wavelet.Eval2
{-# INLINE benchDwt #-}
benchDwt :: ([Double], [Double]) -> [Double]
benchDwt (ls, sig) = dwt ls sig
{-# INLINE benchIdwt #-}
benchIdwt :: ([Double], [Double]) -> [Double]
benchIdwt (ls, sig) = idwt ls sig |
namespace Cuyahoga.Web.Manager.Model.ViewModels
{
public class AjaxMessageViewData
{
public string Message
{
get; set;
}
public string Error
{
get; set;
}
}
} |
#include "<API key>.h"
#include "<API key>.h"
#include "<API key>.h"
#include "<API key>.h"
#include "berryPlatform.h"
#include <QFileDialog>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QGridLayout>
#include <QMessageBox>
#include <QApplication>
#include <QMap>
#include "ctkXnatSession.h"
#i... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__1 = 1;
/* Subroutine */ int zpbcon_(char *uplo, integer *n, integer *kd,
doublecomplex *ab, integer *ldab, doublereal *anorm, doublereal *
rcond, doublecomplex *work, doublereal *rwork, integer *info)
{
/* System generat... |
#include "webkit/compositor_bindings/<API key>.h"
#include "base/debug/trace_event.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop_proxy.h"
#include "cc/thread_impl.h"
#include "webkit/compositor_bindings/web_animation_impl.h"
#include "webkit/compositor_bindings/<API key>.h"
#include "webkit/composi... |
package za.org.grassroot.core.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import za.org.grassroot.core.domain.task.EventRequest;
public interface <API key> extends JpaRepository<EventRequest, Long> {
EventRequest findOneByUid(String uid);
} |
<?php
namespace common\library;
class BEncoderException extends \Exception
{
}
/**
* Class for Bencoding encode/decode
* Bencoding is a way to specify and organize data in a terse format.
* It supports the following types: byte strings, integers,
* lists, and dictionaries.
*/
class BEncoder
{
/**
* Decode... |
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
#include <complex.h>
#include <stdio.h>
#include "num/flpmath.h"
#include "num/init.h"
#include "misc/mmio.h"
#include "misc/misc.h"
#ifndef DIMS
#define DIMS 16
#endif
static const char usage_str[] = "<input> <output>";
static const char help_str[] = "Comput... |
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "gcc.h"
/* Filter argc and argv before processing by the gcc driver proper. */
void
<API key> (int *in_argc ATTRIBUTE_UNUSED,
const char *const **in_argv ATTRIBUTE_UNUSED,
int *in_added_l... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\JsExpression;
use kartik\widgets\Select2;
use kartik\popover\PopoverX;
use yii\bootstrap\Modal;
?>
<div class="<API key>">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model3, 'placas')->textInput(['maxlength' => 145]) ?>
... |
C+ cal_fact_type2
C
subroutine cal_fact_type2( sf_lun, num_vis, vis_list, vis,
* mod_vis, merge_type, gains, s )
C
C Sets up gain corrections for the given sample file.
C
C Given:
C Logical unit number of sample file
integer sf_lun
C Number of visibilities in vi... |
#include "libraryinfo.h"
#include <QStandardPaths>
static QString storageLocation(QStandardPaths::StandardLocation type)
{
QString location = QStandardPaths::writableLocation(type);
return location.isEmpty() ? QString("/tmp") : location;
}
QString LibraryInfo::dataPath()
{
return storageLocation(QStandardPa... |
// Use of this source code is governed by a BSD-style
// Package filepath implements utility routines for manipulating filename paths
// in a way compatible with the target operating system-defined file paths.
// The filepath package uses either forward slashes or backslashes,
// depending on the operating system. To p... |
package edu.cornell.mannlib.vitro.webapp.rdfservice.adapters;
import org.apache.jena.graph.Graph;
import org.apache.jena.graph.compose.MultiUnion;
import java.util.List;
final public class GraphUtils {
public static Graph unwrapUnionGraphs(Graph graph) {
if (graph != null && graph instanceof MultiUnion) {
... |
<?php
namespace Phalcon\Flash {
/**
* Phalcon\Flash\Direct
*
* This is a variant of the Phalcon\Flash that inmediately outputs any message passed to it
*/
class Direct extends \Phalcon\Flash implements \Phalcon\FlashInterface {
/**
* Outputs a message
*
* @... |
package apps.mtdesktop.messages;
import java.util.List;
import synergynetframework.appsystem.services.net.localpresence.TableIdentity;
import synergynetframework.appsystem.services.net.objectmessaging.messages.UDPMessage;
import synergynetframework.appsystem.services.net.tablecomms.messages.application.<API key>;
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.