text stringlengths 3 1.05M |
|---|
layout: page
title: Purple Group Award Ceremony
date: 2016-05-24
author: Jeffrey Orr
tags: weekly links, java
status: published
summary: Donec sed magna lectus. Maecenas.
banner: images/banner/wedding.jpg
booking:
startDate: 07/26/2018
endDate: 07/30/2018
ctyhocn: MTLGAHX
groupCode: PGAC
published: true
---
Sus... |
'''A capitalization action for the Manipulate plugin for Coda'''
import cp_actions as cp
from titlecase import titlecase
from sentencecase import sentencecase
def act(controller, bundle, options):
'''
Required action method
Set desired capitalization with 'to_case' option
'''
context = c... |
require_relative '../../test_helper'
require 'landrush/action/common'
require 'landrush/action/setup'
module Landrush
module Action
describe Setup do
let(:env) { fake_environment }
let(:app) { proc {} }
before do
env[:machine].config.landrush.host_redirect_dns = false
end
i... |
using DotNetRanges.Experimental;
using Xunit;
namespace DotNetRanges.Tests.Experimental
{
public class ClosedRangeTests
{
[Fact]
public void IdenticalClosedRangesAreEqual()
{
var a = Range<int>.Closed(1, 5);
var b = Range<int>.Closed(1, 5);
Assert.T... |
package kr.simula.formula.expr.builder;
import kr.simula.formula.core.Block;
import kr.simula.formula.core.builder.AbstractFormulaHandler;
import kr.simula.formula.core.builder.BuildException;
import kr.simula.formula.core.builder.RootBuildContext;
import kr.simula.formula.core.builder.helper.ArrayHelper;
import kr.s... |
"use strict";
require("./style.css");
let View = function (controller, svg, module) {
window.model = module.env;
// Update svg to refer to the d3 element
svg = d3.select(svg);
console.log(model.vars.get('clients'));
// Create a group for each piece of data
window.clients = svg.selectA... |
This package, `nmoptim` implements a variant of the Nelder-Mead downhill simplex optimization heuristic. The idea is that we have a function we want to optimize and a simplex in a search space. The algorithm iteratively changes the simplex through contractions, expansions and reflections until the simplex is extremely ... |
layout: page
title: A-Z
permalink: /az/
tags: az
---
### a-z
Artificial Intelligence
Biomedical Engineering Bachelor
Chinese
Data science
[Eric Kandel In Search of Memory](https://digital.csic.es/bitstream/10261/61022/1/Eric%20R.%20Kandel%2C%20In%20Search%20of%20Memory.pdf)
[Elizabeth Bishop & Lota de Macedo Soa... |
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
using Rhovlyn.Engine.Graphics;
using Microsoft.Xna.Framework;
using System.Reflection;
using Rhovlyn.Engine.IO.JSON;
using Newtonsoft.Json.Schema;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Rhovly... |
The style-guide folder describes how our css work.
Everything related to css (fonts, colors, icons etc...) goes directly here. |
using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VersionrWeb.Modules
{
public class VersionModule : NancyModule
{
public VersionModule()
{
Get["/version/{version}"] = ctx => { return CreateView(Guid.Parse(c... |
#ifndef __glext_h_
#define __glext_h_
#include <GLES/glextplatform.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* This document is licensed under the SGI Free Software B License Version
* 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
*/
#ifndef GL_APIENTRYP
# define GL_APIENTRYP GL_APIENTRY*
#endi... |
package com.saarang.samples.apps.iosched.nearby;
import android.app.Activity;
import android.os.Handler;
import android.text.Html;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
impor... |
#include "LimitAdjuster.h"
#include "utility/StaticArrayAdjuster.hpp"
using namespace injector;
/*
EntitiesPerIplBase
Base for the entities per ipl pointers rellocation
@pCallLoadObjectInstance is the address of the 'call CFileLoader::LoadObjectInstance' used to parse IPLs.
@pDefaultArray ... |
"""
.. dialect:: sybase
:name: Sybase
.. note::
The Sybase dialect functions on current SQLAlchemy versions
but is not regularly tested, and may have many issues and
caveats not currently handled.
"""
import operator
import re
from sqlalchemy.sql import compiler, expression, text, bindparam
from sq... |
using System.Windows.Controls;
namespace BudgetAnalyser.ReportsCatalog.BurnDownGraphs
{
/// <summary>
/// Interaction logic for BucketBurnDownLineChart.xaml
/// </summary>
public partial class BucketBurnDownLineChart : UserControl
{
public BucketBurnDownLineChart()
{
... |
class Admin::AllowedSourcesController < Admin::Base
def index
@allowed_sources = AllowedSource.order(:octet1, :octet2, :octet3, :octet4)
@new_allowed_source = AllowedSource.new
end
def create
@new_allowed_source = AllowedSource.new(allowed_source_params)
@new_allowed_source.namespace = 'staff'
... |
@interface Single2Scence : CCLayer{
Plate * _plate;
PourLayer * _pourLayer;
JoySticker * _joySticker;
Character * _character;
ItemLayer * _itemLayer;
TigerLayer * _tigerLayer;
ScoreLayer * _scoreLayer;
CoinLayer * _coinLayer;
RateLayer * _rateLayer;
HelpLayer * _helpLayer;
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2015 Red Hat, Inc. and/or its affiliates.
~
~ Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc... |
from translate.convert import dtd2po
from translate.convert import test_convert
from translate.misc import wStringIO
from translate.storage import po
from translate.storage import dtd
class TestDTD2PO:
def dtd2po(self, dtdsource, dtdtemplate=None):
"""helper that converts dtd source to po source without re... |
package com.maxplus1.hd_client.hbase.funciton;
import com.maxplus1.hd_client.hbase.operations.PageInfo;
import org.apache.hadoop.hbase.filter.Filter;
import java.util.List;
/**
* 基于byte[]的读操作接口
* Created by qxloo on 2017/5/28.
*/
public interface BytesReadable {
<T> T find(byte[] rowKey, Class<T> type) ;
... |
import {JSONSchema6Type} from "json-schema";
import {decoratorSchemaFactory} from "../utils/decoratorSchemaFactory";
/**
* The enum keyword is used to restrict a value to a fixed set of values.
* It must be an array with at least one element, where each element is unique.
*
* Elements in the array might be of any ... |
package org.pentaho.di.trans.steps.sequoiadbinput;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.widgets.Shell;
import org.pentaho.di.core.annotations.Step;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho... |
using System.Net;
namespace Ds3.Runtime
{
internal class Ds3WebRequest : IWebRequest
{
private readonly HttpWebRequest _httpWebRequest;
public Ds3WebRequest(HttpWebRequest httpWebRequest)
{
this._httpWebRequest = httpWebRequest;
}
public IWebResponse Get... |
export CYAN='\033[1;36m'
export GREEN='\033[1;32m'
export NC='\033[0m' # No Color
SCRIPT_DIR=$(dirname $(readlink -f $0 2>/dev/null) 2>/dev/null || echo "${PWD}/$(dirname $0)")
source ${VARS_FILE}
export ADMIN_USER=$(gcloud config get-value account)
# Create a logs folder and file and send stdout and stderr to conso... |
package com.betomaluje.miband.bluetooth;
import com.betomaluje.miband.ActionCallback;
import java.util.UUID;
/**
* Created by Lewis on 10/01/15.
*/
public class WriteAction implements BLEAction {
private UUID service;
private final UUID characteristic;
private final byte[] payload;
private Actio... |
require 'httparty'
require 'json'
require 'toml'
require 'parallel'
class Pagerduty
def initialize
@config = TOML.load_file('config.toml')['pagerduty']
raise 'Could not load credentials file at config.toml' if @config.nil? || @config.empty?
@config['auth_token'] = "Token token=#{@config['auth_token']}" u... |
package org.lockss.plugin.pensoft.oai;
import java.io.InputStream;
import org.htmlparser.NodeFilter;
import org.htmlparser.filters.OrFilter;
import org.lockss.daemon.PluginException;
import org.lockss.filter.html.*;
import org.lockss.plugin.*;
public class PensoftOaiHtmlCrawlFilterFactory implements FilterFactory... |
#ifndef _RTAB_H_
#define _RTAB_H_
#include "config.h"
#include "srpc/srpc.h"
/* Rtab Status flags */
#define RTAB_MSG_SUCCESS 0
#define RTAB_MSG_ERROR 1
#define RTAB_MSG_CREATE_FAILED 2
#define RTAB_MSG_INSERT_FAILED 3
#define RTAB_MSG_SAVE_SELECT_FAILED 4
#define RTAB_MSG_SUBSCRIBE_FAILED 5
#define RTAB_MSG_UNSUBS... |
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(... |
package net.minidev.ovh.api.price.dedicatedcloud._2016v4.rbx2b.infrastructure.host;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Enum of Monthlys
*/
public enum OvhMonthlyEnum {
L("L"),
@JsonProperty("L+")
LPlus("L+"),
M("M"),
XL("XL"),
@JsonProperty("XL+")
XLPlus("XL+");
final String value;... |
package org.apache.onami.lifecycle.guava;
import com.google.inject.*;
import org.junit.Test;
import org.junit.Assert;
import com.google.common.util.concurrent.Service;
import static com.google.inject.Guice.createInjector;
public final class GuavaServiceObjectTestCase
{
public static class TestModule
e... |
namespace engine {
namespace drivers {
namespace list_tests {
/// Abstract definition of the hooks for this driver.
class base_hooks {
public:
virtual ~base_hooks(void) = 0;
/// Called when a test case is identified in a test suite.
///
/// \param test_case The data describing the test case.
virt... |
local Space = Class()
-- create new space, pass in component data to use.
function Space:_init( entity_templates, component_templates, systems, system_prefix )
-- create signal handler and timer instances.
self.signal = Signal.new()
self.timer = Timer.new()
self.entity_manager = EntityManager:new( entity_tem... |
/*global QUnit */
sap.ui.define("sap.m.qunit.UploadCollectionToolbar", [
"sap/m/UploadCollection",
"sap/m/UploadCollectionToolbarPlaceholder",
"sap/m/Title",
"sap/m/ToolbarSpacer",
"sap/ui/unified/FileUploader",
"sap/m/Button",
"sap/m/OverflowToolbar",
"sap/m/ToggleButton",
"sap/base/Log",
"sap/ui/core/Core"... |
<?php
/**
* @namespace
*/
namespace ZendTest\CodeGenerator\Php;
use Zend\CodeGenerator\Php;
/**
* @category Zend
* @package Zend_CodeGenerator
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new... |
<div class="container-fluid">
<div class="row">
<div class="col-md-2">
Search: <input ng-model="query">
Sort by:
<select ng-model="orderProp">
<option value="name">Alphabetical</option>
<option value="age">Newest</option>
</sele... |
// Actors/PerformanceCounterActor.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using Akka.Actor;
namespace ChartApp.Actors
{
/// <summary>
/// Actor responsible for monitoring a specific <see cref="PerformanceCounter"/>
/// </summary>
... |
namespace ChoiceNet
{
namespace Eco
{
class NondominatedsortAlgo : public ParetoAlgo
{
public:
virtual int computeFrontier(std::vector<Datapoint*>& );
};
} /// End Eco namespace
} /// End ChoiceNet namespace
#endif // PARETO_NONDOMINATEDSORT_ALGO_H_
|
FOUNDATION_EXPORT double StoneVersionNumber;
//! Project version string for Stone tvOS.
FOUNDATION_EXPORT const unsigned char StoneVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <Stone_tvOS/PublicHeader.h>
|
#ifndef _WIN_QEXTSERIALPORT_H_
#define _WIN_QEXTSERIALPORT_H_
#include "qextserialbase.h"
#include <windows.h>
#include <QThread>
/*if all warning messages are turned off, flag portability warnings to be turned off as well*/
#ifdef _TTY_NOWARN_
#define _TTY_NOWARN_PORT_
#endif
class QReadWriteLock;
cl... |
/*************************
* Precompiled Header *
**************************/
#include "precomp_physics.h"
/**********************
* System Includes *
***********************/
/*************************
* 3rd Party Includes *
**************************/
/***************************
* Game Engine Incl... |
package org.apache.beam.sdk.coders;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException;
import java.util.BitSet;
import java.util.... |
package hudson.plugins.ec2;
import hudson.Extension;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
import org.apache.commons.lang.StringUtils;
import org.kohsuke.stapler.DataBoundConstructor;
public class UnixData extends AMITypeData {
private final String rootCommandPrefix;
private final Stri... |
require "rspec/core/shared_context"
module RSpec
module Kit
# Adds temp directory support to specs enabled with the :temp_dir metadata key.
module TempDirContext
extend RSpec::Core::SharedContext
let(:temp_dir) { File.expand_path "../../../../tmp/rspec", __FILE__ }
end
end
end
RSpec.config... |
CKEDITOR.plugins.setLang( 'stylescombo', 'de', {
label: 'Stil',
panelTitle: 'Formatierungsstile',
panelTitle1: 'Blockstile',
panelTitle2: 'Inline Stilart',
panelTitle3: 'Objektstile'
} );
|
<div class="container">
<div ng-if="!participate.sports || participate.sports.length ===0 && participate.currentUser.role==='user' && participate.initialized">
<alert type="danger" close="closeAlert=1" ng-hide="closeAlert">Contact your Corporate Challenge administrators
to setup events
... |
/**
* KeywordCategory.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.microsoft.bingads.v9.datacontracts;
public class KeywordCategory implements java.io.Serializable {
private java.lang.String category;
private java... |
package org.sana.android;
/**
* Defaults and constants including keys for looking up user preference values.
*
* @author Sana Dev Team
*/
public class Constants {
/* *************************************************************************
* Transport layer constants
*********************************... |
<!DOCTYPE html>
<html>
<head>
<title>eetables.js</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" ... |
use slp_lang_cst::fragments::Fragment;
use slp_shared::BindMap;
use std::collections::HashMap;
use std::collections::HashSet;
pub type Identifier = String;
pub use slp_lang_cst::AccessModifier;
pub use slp_lang_cst::NumericDimension;
pub use slp_lang_cst::Scalar;
pub use slp_lang_cst::VectorDimension;
#[derive(Parti... |
{% extends "layout_dwp.html" %}
{% block page_title %}
DWP Elements guide
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="grid-row">
<div class="column-two-thirds">
<div class="breadcrumbs">
<ol>
<li><a href="/">DWP Elements</a></li>
... |
using System.Runtime.Serialization;
namespace Carbon.Json.Tests
{
public class Media
{
[DataMember(EmitDefaultValue = false)]
public string Format { get; set; }
[DataMember(EmitDefaultValue = false)]
public byte[] Checksum { get; set; }
}
} |
The following guide will show you how to build and run a self-contained Go app using
rkt, the reference implementation of the [App Container Specification](https://github.com/appc/spec).
## Create a hello go application
```
package main
import (
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.R... |
module ActionController
class Base
def respond_with(*resources, &block)
raise "In order to use respond_with, first you need to declare the formats your " <<
"controller responds to in the class level" if self.class.mimes_for_respond_to.empty?
if collector = retrieve_collector_from_mimes(&... |
package main.java.module5;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.marker.SimplePointMarker;
import processing.core.PGraphics;
/** Implements a common marker for cities and earthquakes on an earthquake map
*
* @author UC San Diego Intermediate Software Development MOOC team
* @au... |
-- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... |
layout: no-sidenav
title: Your draft has been saved
section: Apply
featuremap: ~~DraftSaved:Fragment~~
---
You can return to work on your draft whenever you are ready by selecting it from your <a href="{{ url_for("publisher.index") }}">Publisher's dashboard</a>.
|
function test() {
let cw;
let createGroupItem = function () {
let bounds = new cw.Rect(20, 20, 400, 200);
let groupItem = new cw.GroupItem([], {bounds: bounds, immediately: true});
let groupItemId = groupItem.id;
registerCleanupFunction(function() {
let groupItem = cw.GroupItems.groupItem(... |
using System;
using OTFontFile;
namespace OTFontFileVal
{
interface ITableValidate
{
bool Validate(Validator v, OTFontVal fontOwner);
}
}
|
'use strict';
const helper = require('../helper');
/**
* Default arguments for the `--ignore` option.
* @type {string[]}
*/
const DEFAULT_IGNORE = ['node_modules'];
/**
* Schema for the `upload-sourcemaps` command.
* @type {OptionsSchema}
*/
const SOURCEMAPS_SCHEMA = require('./options/uploadSourcemaps');
/**... |
package java.lang;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* Represents one external process. Each instance of this cl... |
namespace ui {
namespace test {
class TestEventProcessor : public EventProcessor {
public:
TestEventProcessor();
TestEventProcessor(const TestEventProcessor&) = delete;
TestEventProcessor& operator=(const TestEventProcessor&) = delete;
~TestEventProcessor() override;
int num_times_processing_started() co... |
package com.google.gdata.data.docs;
import com.google.gdata.data.BaseEntry;
import com.google.gdata.data.Category;
import com.google.gdata.data.Kind;
/**
* An entry representing a single presentation within a
* {@link DocumentListFeed}.
*
*
*/
@Kind.Term(PresentationEntry.KIND)
public class PresentationEntr... |
require 'test/unit'
require 'set'
require 'rubygems'
require 'active_record'
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
gem 'thoughtbot-shoulda'
require 'shoulda'
gem 'mocha'
require 'mocha'
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require "#{File.dirname(__FILE__)}/.... |
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import cookieParser from 'cookie-parser';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from '../app/routes/routes';
import Html from '../app/components/Html/Html';
import bodyParser from 'body-pa... |
package org.broadinstitute.dsde.vault.services.uBAM
import akka.actor.{Props, Actor, ActorRef}
import akka.event.Logging
import org.broadinstitute.dsde.vault.DmClientService.DMUBamResolved
import org.broadinstitute.dsde.vault.model._
import org.broadinstitute.dsde.vault.services.ClientFailure
import org.broadinstitute... |
/**
* DayPart.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201311;
/**
* {@code DayPart} represents a time-period within a day of the week
* which is
* targeted by a {@link LineItem}.
*/... |
package com.google.gerrit.server.documentation;
import static com.vladsch.flexmark.profiles.pegdown.Extensions.ALL;
import static com.vladsch.flexmark.profiles.pegdown.Extensions.HARDWRAPS;
import static com.vladsch.flexmark.profiles.pegdown.Extensions.SUPPRESS_ALL_HTML;
import static java.nio.charset.StandardCharsets... |
package org.apache.camel.component.sql;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.regex.Matcher;
import java.u... |
import sys
from inspect import isclass
from sqlalchemy.schema import CreateTable, MetaData
from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.session import Session, object_session
from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound
from... |
package com.facebook.buck.artifact_cache;
import com.facebook.buck.artifact_cache.ArtifactCacheEvent.StoreType;
import com.facebook.buck.core.model.BuildTarget;
import com.facebook.buck.core.model.TargetConfigurationSerializer;
import com.facebook.buck.core.model.UnconfiguredBuildTarget;
import com.facebook.buck.cor... |
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the right... |
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests.js");
var t = async_test("fillRect is affected by transforms");
var t_pass = t.done.bind(t);
var t_fail = t.step_func(function(reason) {
throw reason;
});
t.step(function() {
var canvas = new OffscreenCanvas(100, 50);
v... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appservice.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appservice.models.ConfigRefe... |
set -e
curl -S -o test/resources/nginx.authreq.conf --retry 5 http://127.0.0.1:$(($PORT-100))/config
cat <<EOF >test/resources/nginx.conf
worker_processes 1;
error_log stderr info;
daemon off;
events {
worker_connections 32;
accept_mutex off;
use kqueue;
}
http {
default_type application/octet-stream;
acc... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Si... |
'use strict';
import React from 'react';
import ReactDom from 'react-dom';
import tweenState from 'kw-react-tween-state';
import decorators from './decorators';
import assign from 'object-assign';
import ExecutionEnvironment from 'exenv';
const addEvent = function(elem, type, eventHandle) {
if (elem === null || typ... |
// Original author: Tels <http://bloodgate.com>, released as public domain
#ifndef __EllipsoidEmitter_H__
#define __EllipsoidEmitter_H__
#include "OgreParticleFXPrerequisites.h"
#include "OgreAreaEmitter.h"
namespace Ogre {
/** Particle emitter which emits particles randomly from points inside an ellipsoid.
... |
package org.odata4j.expression;
public interface DayMethodCallExpression extends MethodCallExpression {
CommonExpression getTarget();
}
|
import unittest
import mock
import httmock
import cumulus
import json
import re
import os
from cumulus.starcluster.tasks import job
from celery.app import task
class MockMaster:
execute_stack = []
def __init__(self):
self.ssh = mock.MagicMock()
self.ssh.execute.side_effect = MockMaster.execut... |
"""
Core module widgets
"""
#WIDGETS = {'widget_release': {'title': 'Time To Release', 'size': 300}}
WIDGETS = {'widget_welcome': {'title': 'Quick Start', 'size': "95%"}}
def get_widgets(request):
"Returns a set of all available widgets"
return WIDGETS
|
class PublishingNavigationProviderType:
def __init__(self):
pass
InvalidSiteMapProvider = 0
PortalSiteMapProvider = 1
TaxonomySiteMapProvider = 2
|
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { ForgotInfoComponent } from './forgot-info.component';
import { ForgotPasswordComponent... |
#region Usings
using System;
using FluentAssertions;
using Xunit;
#endregion
namespace Extend.Testing
{
public partial class Int64ExTest
{
[Fact]
public void IsMultipleFactorOf0Test()
{
const Int64 value = 10;
const Int64 factor = 0;
// ReSharper ... |
NormalizedPatchModel::NormalizedPatchModel():
_normalizedWidth(20),
_normalizedHeight(20)
{
}
void NormalizedPatchModel::imgToVector(const cv::Mat& img, patchVector& v)
{
v.clear();
for (int row = 0; row < img.rows; ++row)
for (int col = 0; col < img.cols; ++col)
{
v.push_back( static_cast<float>... |
package ru.job4j.collectionexample;
import java.util.ArrayList;
import java.util.List;
public class CollEx {
public static void main(String[] args) {
List<Integer> list = new ArrayList<Integer>();
list.add(425);
Integer value = list.get(0);
//System.out.println(value);
list... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Layout for weather forecast list item for future day (not today) -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:mi... |
No Droids here. Stray away...
|
using System;
using UIKit;
using Foundation;
namespace CloudKitAtlas
{
public partial class MainNavigationItem : UINavigationItem
{
public MainNavigationItem (IntPtr handle)
: base (handle)
{
}
[Export ("initWithCoder:")]
public MainNavigationItem (NSCoder coder)
: base (coder)
{
TitleView = n... |
using System;
using Microsoft.AspNetCore.Hosting;
using OpenTracing.Contrib.AspNetCore;
using OpenTracing.Contrib.AspNetCore.Interceptors.Mvc;
using OpenTracing.Contrib.AspNetCore.Interceptors.RequestIn;
using OpenTracing.Contrib.Core;
namespace Microsoft.Extensions.DependencyInjection
{
public static class OpenT... |
using kmd.Core.Explorer.Commands.Configuration;
using kmd.Core.Explorer.Contracts;
using kmd.Core.Services.Contracts;
using kmd.Storage.Contracts;
using System;
using System.Collections.ObjectModel;
using Windows.Storage;
namespace kmd.Core.Explorer.Commands
{
[ExplorerCommand]
public class NavigateCommand : ... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.02.... |
<?php
namespace Widop\Tests\Twitter\Rest\Lists;
use Widop\Twitter\Rest\Lists\ListsUpdateRequest;
/**
* Lists update request test.
*
* @author Geoffrey Brier <geoffrey.brier@gmail.com>
*/
class ListsUpdateRequestTest extends \PHPUnit_Framework_TestCase
{
/** @var \Widop\Twitter\Rest\Lists\ListsUpdateRequest... |
package org.wildfly.extras.creaper.core.online.operations;
import org.jboss.dmr.ModelNode;
import org.wildfly.extras.creaper.core.online.Constants;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* <p>An address in the management tree. It is a sequence of string pairs ({@code ke... |
The files in this directory allow you to build a docker image. The soql-server-pg assembly must be
copied to `soql-server-pg-assembly.jar` in this directory before building.
## Required Runtime Variables
* `PG_SECONDARY_DB_HOST` - Data Coordinator DB hostname
* `PG_SECONDARY_DB_PASSWORD_LINE` - Full line of config f... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "village".
*
* @property integer $id
* @property integer $provinve_id
* @property integer $district_id
* @property integer $sector_id
* @property integer $cell_id
* @property string $village_name
*/
class Village extends \yii\db... |
package org.cc.dexlib2.iface.instruction.formats;
import org.cc.dexlib2.iface.instruction.RegisterRangeInstruction;
import org.cc.dexlib2.iface.instruction.VtableIndexInstruction;
public interface Instruction3rms extends RegisterRangeInstruction, VtableIndexInstruction {
}
|
set -e
currdir=$(pwd)
pkgname=anirem
pkgver=${1:?Invalid commands. Syntax: arch.sh <version> <outdir>}
outdir=$(readlink -f ${2:?Invalid commands. Syntax: arch.sh <version> <outdir>})
pkgdir=$(mktemp -d)
echo 'CONFIG += no_mobile no_updater' >> .qmake.conf
./qpminit.sh
pushd $(mktemp -d)
qmake -r "$currdir"
make
ma... |
from django import template
from django.conf import settings
from django.template import Template
from django.template.loader import render_to_string
from django.template.defaultfilters import truncatewords_html
from django.template import Library
from django.utils.safestring import mark_safe
from hydeengine.file_syste... |