answer stringlengths 15 1.25M |
|---|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.core.management.base import BaseCommand
from optparse import make_option
from py3compat import PY2
from sn... |
# Module marina_ring #
* [Function Index](#index)
* [Function Details](#functions)
<a name="index"></a>
## Function Index ##
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#build-1">build/1</a></td><td></td></tr><tr><td valign="top"><a href="#lookup... |
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# sl-ls.py: get information utility
# Last modified: Apr 16, 2014.
# Require: Python v3
# You should set env variables
# SL_USERNAME = YOUR_USERNAME
# SL_<TwitterConsumerkey>
import logging
import SoftLayer
client = SoftLayer.Client... |
require "aop"
require "contracts"
class BankAccount < Struct.new(:number, :amount)
include Contracts
Contract BankAccount, Num => Num
def transfer(other, amount)
self.amount -= amount
other.amount += amount
end
end
@actual = nil
@expected = "Transfered 100 from 12345 to 98765"
Aop["BankAccount#transfer:... |
from .View import View
class MethuselahView(View):
type = "Methuselah"
trans = {
"stableAfter": {"pick": "l"}
} |
module Downsampler
module TimeExt
def floor(seconds = 60)
Time.at((self.to_f / seconds).floor * seconds)
end
end
end |
<?php
namespace Virgin\ChannelGuideBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Channel
*
* @ORM\Table(name="channel")
* @ORM\Entity(repositoryClass="Virgin\ChannelGuideBundle\Entity\ChannelRepository")
*/
class Channel implements ChannelInterface
{
/**
* @var integer
*
* @ORM\Column(na... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used calculate the
# score of a single roll of the dice.
# A greed roll is scored as follows:
# * A set of three ones is 1000 poin... |
# coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.page im... |
#ifndef _TCompare_H_
#define _TCompare_H_
// Compare Object
class DefaultEquals {
public:
template<class TEqualsValue>
bool operator () (const TEqualsValue& value1, const TEqualsValue& value2)
{
return value1 == value2;
}
};
class DefaultCompare {
public:
template<class TEqualsValue>
boo... |
Imports System.Configuration
Imports System.Data.Common
Imports log4net
Public Class DatabaseTestBase
Inherits TestBase
Private Shared ReadOnly Log As ILog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod.DeclaringType)
Protected Overrides Sub SetUp()
MyBase.SetUp()
Delet... |
require 'uri'
class SuperSearch
def self.url
"http://search.alaska.test/"
end
def self.query_param_for(item_name)
# item_name.gsub(/\s+/, '+')
URI.encode item_name
end
def self.url_for(item_name)
"#{SuperSearch.url}index.php?q=#{SuperSearch.query_param_for(item_name)}... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
/*<![CDATA[*/
body{
width: 1024px;
margin: 0;
padding: 0;
color: white;
background-color: black;
}
h1{
font-size: 12pt;
}
ul{
list-style-type: none;
margin-lef... |
<?php
//common environment attributes including search paths. not specific to Learnosity
include_once '../../env_config.php';
//site scaffolding
include_once 'includes/header.php';
//common Learnosity config elements including API version control vars
include_once '../../lrn_config.php';
use LearnositySdk\Request\Init;... |
namespace Microsoft.ProjectOxford.Video.Contract
{
<summary>
An individual event during FaceDetection action, returned in the <see cref="FaceDetectionResult"/> object.
</summary>
public class FaceEvent
{
<summary>
Gets or sets Id of face.
</summary>
public int Id { ge... |
<!DOCTYPE html>
<html>
<head>
<title>Opularity | Getting Steam</title> <!--Change the title Depending on your tutorial
<link href="Resources/css/bootstrap.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-a... |
package openperipheral.adapter;
public interface IMethodCall {
public IMethodCall setEnv(String name, Object value);
public Object[] call(Object... args) throws Exception;
} |
#pragma once
#include <glkernel/noise.h>
#include <glkernel/glm_compatability.h>
namespace
{
const std::vector<unsigned char> perm =
{
151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225,
140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148,
247, 120, 234... |
using System;
namespace MicrosoftGraph.Model
{
<summary>
Room
</summary>
[Serializable]
public class Room
{
<summary>
Room name
</summary>
public string Name { get; set; }
<summary>
Room email
</summary>
public string Address { get;... |
<HTML>
<HEAD>
<TITLE>3rd Party ROBOTC Drivers</TITLE>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</HEAD>
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000">
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0>
<tr><td>... |
""" Tests barbante.api.<API key>.
"""
import json
import nose.tools
import barbante.api.<API key> as script
import barbante.utils.logging as barbante_logging
import barbante.tests as tests
log = barbante_logging.get_logger(__name__)
def test_script():
""" Tests a call to script barbante.api.<API key>.
"""
r... |
#include "ofxCv/Helpers.h"
#include "ofxCv/Utilities.h"
namespace ofxCv {
using namespace cv;
ofMatrix4x4 makeMatrix(Mat rotation, Mat translation) {
Mat rot3x3;
if(rotation.rows == 3 && rotation.cols == 3) {
rot3x3 = rotation;
} else {
Rodrigues(rotation, rot3x3)... |
#summarySpace {
position: absolute;
top: 50px;
left: 50%;
margin-left: -350px;
}
#summarySpace > div.source {
position: absolute;
width: 124px;
height: 93px;
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
}
#summarySpace > div.sourceLarge {
position: absolute;
... |
<?php
namespace elinoix\shopBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Client
*
* @ORM\Table(name="Client")
* @ORM\Entity
*/
class Client
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private ... |
<?php
namespace User\Form;
class User extends \Zend\Form\Form
{
/**
* @var \User\Model\User
*/
protected $userModel;
/**
*
* @param \User\Model\User $userModel
* @param array $options
*/
public function __construct(\User\Model\User $userModel, array $options = []) {
... |
param = dict(
useAIon=True,
verbose=False,
chargePreXlinkIons=[1, 3],
chargePostXlinkIons=[2, 5],
basepeakint = 100.0,
dynamicrange = 0.001,
missedsites = 2,
minlength = 4,
maxlength = 51,
modRes = '',
modMass = 0.0,
linkermass = 136.10005,
ms1tol = dict(measure='ppm'... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using QrF.Core.Admin.Dto;
using QrF.Core.Admin.Interfaces;
using Microsoft.AspNetCore.Hosting;
namespace QrF.Core.Admin.Controllers
{
<summary>
</summary>
[Route(... |
<!
{
"rows": [
"\tDate\tID\tName\tAmount",
"\t15 April 2013\tPaid in 5 days\t98765\tSuper client\tUSD <b>$29.99</b>",
"\t1 April 2013\tPaid in 72 days\t12345\tA. Conglomerate\tUSD $29.99",
"\t1 January 2013\tPaid in 15 days\t38502\tSuper client\tUSD $29.99"
]
}
<html>
<head>
<title>Col... |
# coding: utf-8
import pprint
import re # noqa: F401
import six
from talon_one.configuration import Configuration
class IntegrationEntity(object):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The k... |
<?php
/**
* This class adds structure of 'pp_faq' table to 'propel' DatabaseMap object.
*
*
* This class was autogenerated by Propel 1.3.0-dev on:
*
* Mon Aug 9 02:03:44 2010
*
*
* These statically-built map classes are used by Propel to do runtime db structure discovery.
* For example, the createSelectSql()... |
import React from 'react';
import Link from 'gatsby-link';
import { BlogPostContent, BlogPostContainer, TagList } from '../utils/styles';
import { arrayReducer } from '../utils/helpers.js';
export default function TagsPage({
data
}) {
const { edges: posts } = data.allMarkdownRemark;
const categoryArray = arrayRed... |
#ifndef COLOUR_VIEW_H
#define COLOUR_VIEW_H
#include <be/interface/Rect.h>
#include <be/interface/View.h>
#include <be/interface/Bitmap.h>
/** About this class: This class is a simple subclassed BView,
that uses a view to draw into a Bitmap, so it's drawing is rendered flicker-free.
*/
class ColourView : public BVi... |
package example.util
import java.sql.Connection
import java.util.TimeZone
import com.gs.fw.common.mithra.bulkloader.BulkLoaderException
import com.gs.fw.common.mithra.connectionmanager.{<API key>, XAConnectionManager}
import com.gs.fw.common.mithra.databasetype.{DatabaseType, MariaDatabaseType}
class <API key> private(... |
# <API key>: true
FactoryBot.define do
sequence(:<API key>) { |n| "Assessment
sequence(:<API key>) { |n| "Awesome description
factory :<API key>, class: Course::Assessment, aliases: [:assessment],
parent: :<API key> do
transient do
question_count { 1 }
end
... |
<?php
namespace Rails\ActiveRecord\Associations;
use Rails\ServiceManager\<API key>;
class Associations
{
use <API key>;
protected static $associationsByClass = [];
/**
* @var Loader
*/
protected static $loader;
/**
* Associations name => options pairs.
*
* @var array
*... |
// MGCMonthPlannerView.h
// Graphical Calendars Library for iOS
// Get the latest version from here:
// 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 ... |
/* -*- javascript -*- */
"use strict";
import {StageComponent} from 'aurelia-testing';
import {bootstrap} from '<API key>';
import {LogManager} from 'aurelia-framework';
import {ConsoleAppender} from '<API key>';
import {customMatchers} from '../helpers';
describe('ui-icon', () => {
let component, logger;
befor... |
from math import radians, cos, sin, asin, sqrt
def haversine(lon1, lat1, lon2, lat2):
"""
Calculate the great circle distance between two points
on the earth (specified in decimal degrees)
"""
# convert decimal degrees to radians
lon1, lat1, lon2, lat2 = map(radians, [lon1, lat1, lon2, lat2])
... |
package com.github.messenger4j.send.message.template.receipt;
import static java.util.Optional.empty;
import java.net.URL;
import java.util.Optional;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
@ToString
@EqualsAndHashCode
public fin... |
package com.halle.facade;
import java.util.List;
import javax.ejb.Local;
import com.halle.exception.<API key>;
import com.halle.model.Friend;
@Local
public interface FriendFacade {
void inviteByPhone(final String token, final String name, final String phoneFriend) throws <API key>;
List<Friend> findAllFriend(fi... |
// Package peering implements the Azure ARM Peering service API version 2020-10-01.
// Peering Client
package peering
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pirate.Ldap;
using Pirate.Ldap.Web;
using Pirate.Util.Logging;
namespace MemberService
{
public partial class ChangePassword : CustomPage
{
protected override string P... |
<html>
<head>
<meta charset="Shift_JIS">
</head>
<body>
±Ì¶Ì¶R[hÍShift_JIS<br>
^^OÍShift_JIS
</body>
</html> |
import * as React from 'react';
import { LangConsumer } from '../LangContext';
import { Schema } from 'jsoninput';
import { infoStyle } from './commonView';
import { css } from 'glamor';
import IconButton from '../Components/IconButton';
interface Translation {
translation: string;
status: string;
}
interface T... |
# -*- coding: utf-8 -*-
# This file is part of Karesansui.
# 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 ... |
import uglify from '<API key>'
import buble from 'rollup-plugin-buble'
export default {
entry: 'js/index.js',
dest: 'public/bundle.js',
format: 'iife',
plugins: [buble(), uglify()],
} |
import { SelectableItem, LoadableItem } from '../core/classes';
import { Company, CompanyDetail } from './contracts';
import { StorageItem } from './storage/models';
export class CompanyItem extends SelectableItem {
private _item : Company;
get item() {
return this._item;
}
set item(i : Company) {
this.... |
permalink: /volcanoes/kelud/
layout: page
subheadline: "Volcano Profile"
title: "Mt. Kelud, East Java"
teaser:
categories:
- volcanoes
tags:
- Indonesia
- volcanoes
image:
thumb:
gallery:
- image_url: /volcanoes/Kelud/kelud.jpg
caption: Source -
- image_url: /volcanoes/Kelud/kelud2.jpg
... |
function filterSinceSync(d) {
var isValid = typeof d === 'number' ||
d instanceof Number ||
d instanceof Date;
if (!isValid) {
throw new Error('expected since option to be a date or a number');
}
return file.stat && file.stat.mtime > d;
};
module.exports = filterSinceSync; |
var expect = require('chai').expect;
var sinon = require('sinon');
var ColumnShifter = require('component/grid/projection/column-shifter');
var Base = require('component/grid/projection/base');
var Response = require('component/grid/model/response');
describe('projection ColumnShifter', function () {
it('update shoul... |
<ion-view view-title="Dailies">
<ion-content>
<ion-list>
<ion-item class="item-remove-animate item-button-right" ng-repeat="goal in goals" type="item-text-wrap" >
<h2>{{goal.title}}</h2>
<button class="button button-positive" ng-click="remove(goal)">
<i class="icon ion-android-done... |
<?php
class <API key> extends <API key> {
protected $_code = 'zipbit';
protected $_isInitializeNeeded = true;
protected $_canUseInternal = true;
protected $<API key> = false;
public function <API key>() {
return Mage::getUrl('zipbit/payment/redirect', array('_secure' => true))... |
package fr.imie;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import fr.imie.Jeu;
public class TennisRuleTest {
private Jeu jeu;
@Before
public void initJeux(){
ISerialiser serialiser = new <API key>();
jeu = new Jeu();
jeu.setSerialiser(serialise... |
# Stack implementation
class Stack (object):
def __init__ (self):
self.stack = []
def push (self, data):
self.stack.append(data)
def peek (self):
if self.isEmpty():
return None
return self.stack[-1]
def pop (self):
if self.isEmpty():
return... |
namespace Toggle.Net
{
<summary>
Main interface at runtime.
</summary>
public interface IToggleChecker
{
<summary>
Returns <code>true</code> if feature with specified toggle name is enabled,
otherwise <code>false</code>.
</summary>
<param name="toggleName">Nam... |
layout: page
title: <API key> [program]
categories: [anvio]
comments: false
redirect_from: /7.1/<API key>
image:
featurerelative: ../../../images/header.png
display: true
You give this program one or more PFAM accession ids, and it generates an anvi'o compatible HMM directory to be used with `anvi-run-hmms`.
... |
package org.foi.androidworkshop.adapters;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import org.foi.androidworkshop.R;
import org.foi.androidworkshop.models.P... |
<form name="nobotform" ng-submit="formArgs.submitAction(nobotform)" role="form">
<div class="row spacer">
<div class="col-md-12">
<label class="control-label">Main Image URL</label>
<input class="form-control" type="textfield" ng-model="formArgs.buildNobot.image" placeholder="http://placekitten.com/60... |
<?php
namespace App\LoginModule\LTI\Tool;
class LTI_Tool_Consumer {
/**
* @var string Local name of tool consumer.
*/
public $name = NULL;
/**
* @var string Shared secret.
*/
public $secret = NULL;
/**
* @var string LTI version (as reported by last tool consumer connection).
*/
public $lti_version = NULL;
/... |
body {
background-color: #333;
}
main {
height: 100vh;
} |
<?php
namespace Budgeit;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
protected $fillable = [
'name', 'status', 'amount', 'type'
];
public function user() {
return $this->belongsTo(User::class);
}
public function categories() {
return $this->hasMa... |
layout: post
title: "Paper published: mlr - Machine Learning in R"
author: jakob
We are happy to announce that we can finally answer the question on how to cite *mlr* properly in publications.
Our paper on *mlr* has been published in the open-access Journal of Machine Learning Research (JMLR) and can be downloaded on t... |
require_relative File.join 'support', 'coverage'
require_relative File.join '..', 'lib', 'arukamo'
subject = Object.new
fail unless subject.aru? === true
fail unless subject.nai? === false |
layout: page
title: "Patricia Ann Mcdonald"
comments: true
description: "blanks"
keywords: "Patricia Ann Mcdonald,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>
<!-... |
#!/usr/bin/env python
import os,sys
folder = "/media/kentir1/Development/Linux_Program/Fundkeep/"
def makinGetYear():
return os.popen("date +'%Y'").read()[:-1]
def makinGetMonth():
return os.popen("date +'%m'").read()[:-1]
def makinGetDay():
return os.popen("date +'%d'").read()[:-1]
def makinGetPrevYear(day... |
module Usb
def self.devices(conditions={})
get_device_list.select { |d| d.match?(conditions) }
end
def get_device_list(context=nil); end # Source code is in rusb.c.
end
class Usb::Device
def initialize
raise NotImplementedError, "To get a Usb::Device object, use Usb::get_device_list"
end
def bus_num... |
package es.um.nosql.streaminginference.NoSQLSchema.impl;
import es.um.nosql.streaminginference.NoSQLSchema.NoSQLSchemaPackage;
import es.um.nosql.streaminginference.NoSQLSchema.PrimitiveType;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotif... |
package com.chariotinstruments.markets;
import java.util.ArrayList;
public class CalcRSI {
private MarketDay marketDay;
private ArrayList<MarketCandle> marketCandles;
private double gainAverage;
private double lossAverage;
public CalcRSI(MarketDay marDay){
this.marketDay = marDay;
ma... |
<!-- HTML header for doxygen 1.8.8-->
<!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="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Doxygen 1... |
'use strict';
let <API key> = function($scope, $controller, $timeout,
NpolarApiSecurity, NpolarTranslate,
npdcAppConfig,
Timeseries, TimeseriesModel, TimeseriesCitation, google, Sparkline) {
'ngInject';
let ctrl = this;
ctrl.authors = (t) => {
return t.authors.map(a => {
return { name: a['@id']};
... |
@media screen and (max-width: 768px) {
:global .hideOnSmall {
display: none;
}
}
@media screen and (min-width: 768px) {
:global .hideOnLarge {
display: none;
}
}
.code {
padding: 2rem;
background: black;
color: white;
width: 80%;
display:block;
margin: 0 auto;
}
.row, .rowFixed {
backgroun... |
<?php
namespace zikmont\ContabilidadBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
class <API key> extends Extension
{
... |
package main.java.meterstanden.domain;
import java.io.IOException;
import java.util.List;
import javax.persistence.Query;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... |
<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" ... |
<!doctype html>
<html ng-app="app">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Materials</title>
<link rel="stylesheet" href="./css/bootstrap.css" media="screen">
</head>
<body>
<div class="container" ng-controller="MaterialsController">
<nav class="navbar navbar-defau... |
import { Box, Col } from '@tlon/indigo-react';
import { arrToString, Association, FlatGraph, FlatGraphNode, Group } from '@urbit/api';
import bigInt from 'big-integer';
import React from 'react';
import { RouteComponentProps, useHistory } from 'react-router';
import { resourceFromPath } from '~/logic/lib/group';
import... |
class CreatePeople < ActiveRecord::Migration
def change
create_table :people do |t|
t.string :name
t.text :books
t.text :cars
t.timestamps
end
end
end |
drop database if exists crm_0_9;
drop database if exists dev_leadclock;
drop database if exists <API key>;
drop database if exists swalters_leadclock;
drop database if exists test_leadclock;
#change path if needed
source /var/www/leadclock/mysql/<API key>.sql;
CREATE DATABASE IF NOT EXISTS `dev_leadclock`;
USE dev_lead... |
var should = require('should');
var npg = require('../core/npg').npg;
var config = require('./_test_config_npg');
var request = ({body: {phrase: "111"}});
describe('NPG w/ config', function () {
it('should using fixed key', function () {
config.useFixedKey.should.be.ok;
});
it('should return correct answer', ... |
int myAtoi(char* str) {
while(1){
if(NULL == str){
return 0;
}
char v = *str;
if(v == ' ' || v == '\t' || v == '\n' || v == '\r'){
str++;
}else{
break;
}
}
int positive = 1;
char* start=NULL;
if((*str) == '+' || (*st... |
# This handy simplification is adapted from SphinxSearch (thanks)
# and originally came from Ultrasphinx
# it saves us a lot of including and bodging to make will_paginate's template calls work in the Page model
module Radiant
module Pagination
class LinkRenderer < WillPaginate::LinkRenderer
def initialize(... |
# -*- coding: utf-8 -*-
from cachy import CacheManager
from cachy.serializers import PickleSerializer
class Cache(CacheManager):
_serializers = {
'pickle': PickleSerializer()
} |
using System;
using Newtonsoft.Json;
namespace VkNet.Model
{
<summary>
API Level object.
</summary>
[Serializable]
public class SecureLevel
{
<summary>
Level
</summary>
[JsonProperty("level")]
public int? LevelCode { get; set; }
<summary>
U... |
/**
* @file wavedrom.hpp
* @author Jeramie Vens
* @date March 7, 2016: Initial version
* @brief This is the main include for the Wavedrom C++ Library
*
*/
#ifndef WAVEDROM_HPP
#define WAVEDROM_HPP
#include "../libwavedrom/group.hpp"
#include "../libwavedrom/signal.hpp"
/**
* @brief The Waved... |
import unittest
import os
import os.path
import json
# The folder holding the test data
data_path = os.path.dirname(__file__)
# Set the temporal config for testing
os.environ['TIMEVIS_CONFIG'] = os.path.join(data_path, 'config.py')
import timevis
class TestExperiment(unittest.TestCase):
def setUp(self):
sel... |
crewhogan
======
Hogan.js for nodejs and expressjs 3.x. Caches compiled templates and auto resolve all partials.
Fully tested. Run ````` mocha --reporter spec ````` in root to execute tests.
New: It's possible to use aliases for (predefined) template paths. This feature only works if
crewhogan is not used "express way"... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Reflection;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using NetOffice;
using Office = NetOffice.OfficeApi;
using Excel = NetOffice.AccessApi;
using NetOffice.AccessApi.... |
package PathFinder_2;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;
import javax.swing.JFrame;
public class Main extends JFrame{
private static final long serialVersionUID = 1L;
private final String TITLE = "ArenaGame";
private MouseEvents mouseEvent = new MouseEvents();
pri... |
// Template Source: BaseEntityRequest.java.tt
package com.microsoft.graph.requests;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.models.<API key>;
import com.microsoft.graph.models.DirectoryObject;
import com.microsoft.graph.models.Extensio... |
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Drawables;
using osu.Game.Graphics... |
# BearFramework\App\Assets\GetURLEventDetails
php
BearFramework\App\Assets\GetURLEventDetails {
/* Properties */
public string $filename
public array $options
public string|null $url
/* Methods */
public __construct ( string $filename , array $options [, string|null $url ] )
}
## Properties
## p... |
using BulletML;
using BulletML.Enums;
using BulletML.Nodes;
using NUnit.Framework;
using Tests.Utils;
namespace Tests.Node
{
[TestFixture]
[Category("NodeTest")]
public class ActionNodeTest
{
[Test]
public void TestOneTop()
{
var filename = TestUtils.GetFilePath(@"Con... |
// Use of this source code is governed by a MIT
package request
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"strings"
"github.com/go-openapi/spec"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/validate"
"github.com/go-yaml/yaml"
... |
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// Template Source: Templates\CSharp\Requests\<API key>.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
using Syste... |
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'andersonvom'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq ... |
package com.dumu.housego.presenter;
import com.dumu.housego.entity.UserInfo;
import com.dumu.housego.model.ILoginUserInfoModel;
import com.dumu.housego.model.IModel.AsycnCallBack;
import com.dumu.housego.model.LoginUserInfoModel;
import com.dumu.housego.view.ILoginUserInfoView;
public class <API key> implements <API ke... |
#ifndef <API key>
#define <API key>
#include "definition.h"
#include "../core/object.h"
#include "../core/string.h"
#include "../core/function.h"
#include "../graphics/bitmap.h"
#include "event.h"
namespace slib
{
class Menu;
class MenuItem : public Object
{
SLIB_DECLARE_OBJECT
protected:
... |
# Bootloader for STM32F407 (with SD card support)
This project is part of [Wakaama_Ethernet][1] project.
## Requirements
Project could be compiled both on Windows and Linux.
Firstly, you need to install:
+ for both Windows and Linux:
+ [GNU ARM Embedded Toolchain][2] ([tutorial][3])
+ only for Windows:
+ [GNU MCU E... |
title: New Raspberry Pi 3 B+ Model
image: https:
excerpt: New Raspberry Pi 3
description: rpi 3 b+
categories: raspbian

## Links
[Raspberry Pi 3 B+ Product Page](https:
[Magpi article](ht... |
<?php
namespace MPM\Bundle\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\<API key>;
/**
* Persona
*
* @ORM\Table(name="personas")
* @ORM\Entity(repositoryClass="MPM\Bundle\AdminBundle\Entity\PersonaRepository")
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.