answer stringlengths 15 1.25M |
|---|
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta charset="utf-8"></meta>
<meta name="generator" content="JsDoc Toolkit"></meta>
<title>enchant.gl.State | JsDoc Reference</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"></meta>
<... |
'use strict';
var express = require('express'),
router = express.Router(),
Post = require('../models/post');
module.exports = function (app) {
app.use('/', router);
};
router.get('/', function (req, res, next) {
var posts = [new Post({
"title": "dummy posty"
}), new Post()];
res.render('index', {
ti... |
#include "slib/core/definition.h"
#if defined(SLIB_UI_IS_GTK)
#include "slib/ui/event.h"
#include "slib/ui/core.h"
#include "slib/ui/platform.h"
#include "slib/core/hash_table.h"
#include "slib/core/safe_static.h"
#include "gdk/gdkkeysyms.h"
namespace slib
{
namespace priv
{
namespace ui_event
{... |
package zornco.reploidcraft.network;
import net.minecraft.entity.Entity;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.WorldServer;
import zornco.reploidcraft.ReploidCraft;
import zornco.reploidcraft.entities.EntityRideArmor;
import zornco.reploidcraft.utils.RiderState;
import io.netty.buffer.... |
"use strict";
const express = require('express');
const router = express.Router();
const quoteCtrl = require('../controllers/quote.js');
//returns an array of stocks that potentially match the query string
//no result will return an empty string
router.get('/quote/:quote', quoteCtrl.quote);
module.exports = router; |
<?php
/**
* FOREIGN KEY update
*
* @category Mage
* @package Mage_Rating
* @author Magento Core Team <core@magentocommerce.com>
*/
$installer = $this;
/* @var $installer <API key> */
$installer->startSetup();
$installer->run("
ALTER TABLE {$this->getTable('report_event')}
DROP INDEX `event_type_id`,... |
//! Basic hello world example, drawing
//! to a canvas.
use ggez::event;
use ggez::graphics::{self, Color};
use ggez::{Context, GameResult};
use glam::*;
use std::env;
use std::path;
struct MainState {
text: graphics::Text,
canvas: graphics::Canvas,
frames: usize,
draw_with_canvas: bool,
}
impl MainStat... |
var Blasticator = function() {
var init = function() {
registerSettings();
};
var showDialogue = function() {
new ModalDialogue({
message:'This will destroy EVERYTHING. FOREVER.',
buttons:[{
label:'Keep my data',
role:'secondary',
autoClose:true
},{
label... |
/*
* sfcn_linSendEnergia.c Simple C-MEX S-function for function call.
*
* ABSTRACT:
* The purpose of this sfunction is to call a simple legacy
* function during simulation:
*
* void linSendEnergia(int16 u1, int32 u2, uint8 u3, uint8 u4[], uint8 u5)
*
* Simulink version : 8.2 (R20... |
layout: page-disqus
title: Terraform
permalink: /terraform/
published: true
comments: true
Let's use Terraform to create a bit of new infrastructure.
This doc is a work in progress. Check back for updates. Follow progress via [twitter](https://twitter.com/_markshaw){:target="_blank"}.
* TOC
{:toc}
Purpose
An example ... |
# encoding: utf-8
require File.expand_path('../test_helper', File.dirname(__FILE__))
class FixturesTest < ActiveSupport::TestCase
def <API key>
Cms::Layout.delete_all
assert_difference 'Cms::Layout.count', 2 do
ComfyPress::Fixtures.import_layouts('default-site', 'sample-site')
assert layout = Cms:... |
if [[ ! -o interactive ]]; then
return
fi
compctl -K _atlas atlas
_atlas() {
local word words completions
read -cA words
word="${words[2]}"
if [ "${#words}" -eq 2 ]; then
completions="$(atlas commands)"
else
completions="$(atlas completions "${word}")"
fi
reply=("${(ps:\n:)completions}")
} |
# img
# trigger = attributes[12]
# edit
import os
import requests
import sqlite3
def get_card(browser):
attributes = browser.<API key>('//table[@class="status"]/tbody/tr/td')
image = attributes[0].<API key>('./img').get_attribute('src')
if attributes[1].<API key>('./span[@class="kana"]').text:
card_... |
using JEFF.Dto.Smartables.Request;
using JEFF.Dto.Smartables.Response;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading.Tasks;
namespace JEFF.<API key>
{
<summary>
SmartablesBoard
</summary>
public class SmartablesBoard
{
... |
// Name : GraphGenerator.cpp
// Author : Sindre S. Fjermestad
// Version :
// Description : Generator for graphs of a certain type
#include <iostream>
#include <list>
#include <algorithm>
#include <vector>
#include <stdlib.h>
#include <time.h>
#include <boost/lexical_cast.hpp>
#include "kernelisation/gr... |
(function ()
{
window.AgidoMockups = window.AgidoMockups || {};
AgidoMockups.icons = AgidoMockups.icons || {};
AgidoMockups.icons.underline = new Kinetic.Group({name: "underlineIcon", width: 18, height: 20});
AgidoMockups.icons.underline.add(new Kinetic.Text({text: "U", fill: '#000', fontSize: 20, fontS... |
(function() {
var myPromise = new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition((pos) => {
resolve(pos);
})
});
function parsePosition(pos) {
return {
lat: pos.coords.latitude,
lon: pos.coords.longitude
}
}
... |
//sys_init_policy.hpp chromatic universe 2017-2020 william k. johnson
#include <memory>
#include <string>
//contrib
#include "ace/Log_Msg.h"
#include "ace/Trace.h"
//cci
#include <cci_time_utils.h>
#include <cci_daemonize.h>
using namespace cpp_real_stream;
namespace cci_policy
{
//system init policies
temp... |
package iso20022
// Set of characteristics shared by all individual transactions included in the message.
type GroupHeader41 struct {
// Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.
// Usage: The instructing party ... |
<!DOCTYPE html>
<html>
<head>
<title>onFocus / onBlur</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlxcombo.css"/>
<script src="../../../codebase/d... |
status: publish
published: true
title: I found a real, live BBS!
author:
display_name: admin
login: admin
email: jon@jonsharp.net
url: http://jonsharp.net
author_login: admin
author_email: jon@jonsharp.net
author_url: http://jonsharp.net
wordpress_id: 25
wordpress_url: http://jonsharp.net/archives/2004/07/13/<A... |
import React from "react";
import { <API key> } from "../../../../services";
import { Row, Col } from "../../../layout";
import { Card, DatumGroup, PlanetDiagram } from "../../../ui";
export const WorldOverview = ({ world }: WorldOverviewProps) => {
return (
world && (
<Card
title={<p>World Overview... |
module.exports = function(grunt) {
grunt.initConfig({
// package.json is shared by all examples
pkg: grunt.file.readJSON('../../package.json'),
// Uglify the file at `src/foo.js` and output the result to `dist/foo.min.js`
// It's likely that this task is preceded by a `<API key>` task
// to create... |
'use strict';
angular.module('adsApp').controller('<API key>', ['$scope', '$rootScope', 'catalog', 'config', 'notify',
function ($scope, $rootScope, catalog, config, notify) {
$rootScope.pageTitle = 'Towns';
var usersConfig = config.users;
var townsParams = {
startPage: usersConf... |
{% if site.disqus %}
{% include disqus.html %}
{% endif %} |
# NineMSN CatchUp TV Video API Library
# This code is forked from Network Ten CatchUp TV Video API Library
# 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 pers... |
/**
* acx.h
* System configuration for a basic cooperative executive
* Kernel.
* @designer Edwin Frank Barry
* @author Christopher Waldon
*/
/*
* Define some hard-ware specific constants
*/
#define led12 PB6
#define led11 PB5
/*
* Define some hardware manipulation macros
*/
#define output_low(port, pin) (port... |
package info.bati11.otameshi.dbflute.allcommon;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.dbflute.Entity;
import org.dbflute.hook.<API key>;
/**
* The basic implementation of the auto set-upper of common column.
* @author DBFlute(AutoGenerator)
*/
public class <API key> implements <API key>... |
## 17.11.2015 ##
Code changes:
- `AgarioClient.Ball` added
- Added stability to `spawn()`. By default client will try to spawn 25 times before disconnect
- `on.connected` event is now emited without 2sec delay
- First `spawn()` after connect is now much faster
- Config variable `client.spawn_attempts` added
- Config va... |
#include "transactionview.h"
#include "<API key>.h"
#include "transactionrecord.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "<API key>.h"
#include "bitonunits.h"
#include "csvmodelwriter.h"
#include "<API key>.h"
#include "editaddressdialog.h"
#include "optionsmodel.h"
#include "guiutil.h"
#incl... |
<?php
namespace Umulmrum\Holiday\Test\Calculator;
use Umulmrum\Holiday\HolidayCalculator;
use Umulmrum\Holiday\Model\Holiday;
use Umulmrum\Holiday\Model\HolidayList;
use Umulmrum\Holiday\Provider\Belgium\Belgium;
use Umulmrum\Holiday\Provider\Germany\Berlin;
use Umulmrum\Holiday\Provider\Germany\Brandenburg;
use Umulmr... |
package com.winterwell.depot;
import java.util.Map;
import org.junit.Test;
import com.winterwell.depot.merge.Merger;
import com.winterwell.es.client.ESConfig;
import com.winterwell.es.client.ESHttpClient;
import com.winterwell.gson.FlexiGson;
import com.winterwell.utils.Dep;
import com.winterwell.utils.Utils;
import co... |
/**
* @providesModule Case
*/
const DOM = require('DOM');
var Case = (function () {
/**
* A Case is a test against an element.
*/
function Case (attributes) {
return new Case.fn.init(attributes);
}
// Prototype object of the Case.
Case.fn = Case.prototype = {
constructor: Case,
init: funct... |
USE [ANTERO]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[sa].[<API key>]'))
EXEC dbo.sp_executesql @statement = N'
CREATE VIEW [sa].[<API key>] AS
SELECT distinct
iscfi2013_koodi
,alkaa = case when isnumeric(right(sar_nimi2,4))=0 the... |
import * as ts from 'typescript';
import {<API key>} from '../../metadata';
import {AbsoluteReference, ResolvedReference} from '../../metadata/src/resolver';
import {getDeclaration, makeProgram} from '../../testing/<API key>';
import {<API key>} from '../src/ng_module';
import {<API key>} from '../src/selector_scope';
... |
# <API key>: true
module OrgAdmin
class SectionsController < <API key>
include Versionable
respond_to :html
after_action :verify_authorized
# GET /org_admin/templates/[:template_id]/phases/[:phase_id]/sections
def index
authorize Section.new
phase = Phase.includes(:template, :sections)... |
package it.gvnn.slackcast.search;
import java.util.ArrayList;
public class PodcastDataResponse extends ArrayList<Podcast> {
} |
package com.iyzipay.model.subscription.enumtype;
public enum <API key> {
NOW(1),
NEXT_PERIOD(2);
private final Integer value;
<API key>(Integer value) {
this.value = value;
}
public Integer getValue() {
return value;
}
} |
package bolianeducation.bolianchild.view;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.T... |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title><API key> Constructor</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" ... |
// Load WOW.js on non-touch devices
var isPhoneDevice = "ontouchstart" in document.documentElement;
$(document).ready(function() {
if (isPhoneDevice) {
//mobile
} else {
//desktop
// Initialize WOW.js
wow = new WOW({
offset: 50
})
wow.init();
}
});... |
import pagination from '@admin/store/modules/paginationStore'
import {HTTP} from '@shared/config/api'
const state = {
clientList: []
}
const getters = {
getClientList: state => state.clientList
}
const mutations = {
set(state, {type, value}) {
state[type] = value
},
delete(state, {id}) {
... |
import "cutaway"
import { assert, report } from "tapeless"
import createPlayer from "./main.js"
const { ok, notOk, equal } = assert
try {
createPlayer()
} catch (e) {
ok
.describe("will throw sans video input")
.test(e, e.message)
}
const source = document.createElement("video")
source.src = ""
const { play... |
title: "Fastmail/Dreamhost SPF & DKIM"
date: 2012-03-10 00:00
My boss pointed out that, with my new email provider, GMail is displaying a weird message in the "from" field:
Turns out I needed to add two custom TXT-type DNS records in Dreamhost. One is SPF and th... |
class <API key> {
constructor() {
// Variant Color () {get} {set}
this.Color = undefined;
}
}
module.exports = <API key>; |
package com.devicehive.client.impl.rest.providers;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.devicehive.client.impl.Constants;
import com.devicehive.client.impl.json.GsonFactory;
import com.devicehive.client.impl.uti... |
<?php
namespace Craft;
class <API key> extends <API key>
{
// Properties
// Public Methods
/**
* Save fieldset settings
*
* @param <API key> $fieldset
* @return bool
* @throws Exception
* @throws \Exception
*/
public function saveSettings(<API key> $fieldset)
{
... |
module Arpa
module Repositories
module Resources
class Finder
include Arpa::Repositories::Base
def find(id)
record = repository_class.find(id)
mapper_instance.map_to_entity(record)
end
def all
repository_class.all.collect do |record|
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>area-method: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
package uk.co.edgeorgedev.lumber;
/**
* Root of Logging interface
* @author edgeorge
* @version 1.0
* @since 2014-06-23
*/
public interface Stump {
/** Log a verbose message */
void v(Class<?> clazz, String message);
void v(Class<?> clazz, Throwable th);
//v,d,i,w,e,wtf
} |
<?php
namespace Seahinet\Article\Listeners;
use Seahinet\Article\Exception\OutOfStock;
use Seahinet\Article\Model\Warehouse;
use Seahinet\Lib\Listeners\ListenerInterface;
class Inventory implements ListenerInterface
{
public function check($event)
{
$warehouse = new Warehouse;
$warehouse->load($... |
<?php
namespace Noylecorp\<API key>;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class <API key> extends Bundle
{
} |
<?php
declare(strict_types=1);
namespace StructType;
use <API key>;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetRemindersType StructType
* @package Ews
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class EwsGetRemindersType extends EwsBaseRequestType
{
/*... |
package br.eti.mertz.wkhtmltopdf.wrapper.params;
import java.util.ArrayList;
import java.util.List;
public class Params {
private List<Param> params;
public Params() {
this.params = new ArrayList<Param>();
}
public void add(Param param) {
params.add(param);
}
public void add(Para... |
require 'happymapper'
module RSokoban
attr_accessor :levels
class LevelData
include HappyMapper
tag 'Level'
element :id, String
element :copyright, String
element :width, Integer
element :height, Integer
has_many :lines, String, :tag => 'L'
end
class Level
attr_accessor :walls
... |
<DIV NAME="detail" ID="detail" xmlns="http:
</H3> <TABLE><TR>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='Android'>DRD</SPAN>:<SPAN CLASS='domainMarker' TITLE='DEV Domain'>DEV</SPAN></TD>
</TR></TABLE>
<DIV NAME="list" ID="short_desc"><short_desc xmlns="">
Attempts to perform a Click on... |
/**
* linux terminal progress bar (no thread safe).
* @package progress.h
*/
#ifndef progress_h
#define progress_h
#include <stdio.h>
typedef struct {
char chr; /*tip char*/
char *title; /*tip string*/
int style; /*progress style*/
int max; /*maximum value*/
float offs... |
layout: post
title: Adding a New User in Ubuntu
date: '2011-12-29 18:08:48 -0800'
comments: true
categories:
- Hosting
## Adding User
When setting up a new website manually on an Ubuntu server you need to
establish a user account with a home directory, and Bash shell access to the
server.
shell
useradd -m testuser -s /... |
<!DOCTYPE html>
<html lang="en-us">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-... |
import { Injectable } from '@angular/core';
import {Headers,Http,Response} from '@angular/http';
import {Subject} from 'rxjs/Subject';
import 'rxjs/add/operator/toPromise'
import {User} from './user'
@Injectable()
export class UserService{
private headers=new Headers({'Content-Type':'application/json'});
p... |
from Bio import SeqIO
def get_proteins_for_db(fastafn, fastadelim, genefield):
"""Runs through fasta file and returns proteins accession nrs, sequences
and evidence levels for storage in lookup DB. Duplicate accessions in
fasta are accepted and removed by keeping only the last one.
"""
records = {ac... |
#pragma once
#import <UIKit/UIKit.h>
#import "ofMain.h"
#import "ofxiPhone.h"
#import "ofAppiPhoneWindow.h"
#import "<API key>.h"
#import "EAGLView.h"
#import "ofxiPhoneKeyboard.h"
#import "<API key>.h"
#import "<API key>.h"
#import "ofxiPhoneMapKit.h"
#include <sys/sysctl.h>
enum ofxiPhoneDeviceType {
<API key>,
... |
$Public = @(Get-ChildItem -Recurse -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue)
$Private = @(Get-ChildItem -Recurse -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue)
foreach ($import in @($Public + $Private)) {
try {
. $import.fullname
}
catch {
Write-Error... |
package uk.co.lucelle;
import org.springframework.web.bind.annotation.*;
@RestController
public class Controller {
@RequestMapping("/")
public @ResponseBody String index(@RequestBody String data) {
// echo
return data;
}
} |
Puppet::Parser::Functions::newfunction(:arnold_include, :doc => "Include classes from Arnold") do
classes = <API key>(['classes', ['*****'], ['arnold/nodename/%{fqdn}','arnold/macaddr/%{macaddress}']])
# The version of hiera_array() shipping in Puppet 2.7 won't let you default to nothing
return if classes = ['***... |
[class^="icon-"], [class*=" icon-"] {
font-family: 'basic';
font-style: normal;
font-weight: normal;
/* fix buttons height */
line-height: 1em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
}
.icon-twitter { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.inne... |
import {Exception} from "../core/Exception";
export class Forbidden extends Exception {
static readonly STATUS = 403;
constructor(message: string, origin?: Error | string | any) {
super(Forbidden.STATUS, message, origin);
}
} |
<?php
ClassLoader::requireClassOnce( 'util/Settings' );
ClassLoader::requireClassOnce( 'util/IndexRoutingItem' );
ClassLoader::requireClassOnce( 'actions/AccessImageAction' );
/**
* This class provides utility functions for formatting URLs for this application.
* @author craigb
*/
class UrlFormatter
{
private st... |
FILE(REMOVE_RECURSE
"../msg_gen"
"../srv_gen"
"../src/simple/msg"
"../src/simple/srv"
"../msg_gen"
"../srv_gen"
"CMakeFiles/rospack_gensrv_all"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang)
INCLUDE(CMakeFiles/rospack_gensrv_all.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(la... |
# fis3-hook-npm
[<API key>:(<API key> *)anthologyHeaderView;
- (void)anthologyHeaderView:(<API key> *)anthologyHeaderView mediaBaseId:(NSString *)mediaBaseId;
@end
@interface <API key> : <API key>
+ ... |
// GONMarkupFont.h
// <API key>
// Define a generic markup to configure font
// "size" is used to define font size
// If missing, current font size will be used. If not found is set, default system font size will be used
// "name" define a registered font name or full font name
// - Markup will first try... |
var httpRequester = (function() {
var makeHttpRequest = function(url, type, data) {
var deferred = $.Deferred();
$.ajax({
url: url,
type: type,
contentType: 'application/json',
data: data,
success: function(resultData) {
def... |
{-# LANGUAGE TupleSections #-}
module Y2016.M09.D09.Solution where
import Control.Arrow (first)
import Control.Monad (guard, (>=>))
import Data.Function (on)
import Data.List (sortBy)
import Data.Map (Map)
import qualified Data.Map as Map
-- below import available from 1HaskellADay git repository
import Control.List (t... |
<?php
/**
* Description of SectionType
*
* @author Birko
*/
namespace Jamii\UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class UserType extends AbstractType
{
protected $em;
public function __construct(\Doctrine\ORM\EntityManager $em)
{
$this... |
// <API key>.h
// Pods
#import <Foundation/Foundation.h>
#import "<API key>.h"
@interface <API key> : NSObject
/**
Returns a view controller for the given index that will be presented by the navigation menu controller.
@param <API key> Navigation menu controller object that asks for the view controller
@param inde... |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosCopy extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="144,416 144,400 144,112 112,112 112,448 352,448 352,416 160,416 "></polygon>
<g>
... |
body {
padding-bottom: 20px;
}
a,
a:focus,
a:hover {
color: #fff;
}
.top5 {
margin-top:5px;
}
.top10 {
margin-top:10px;
}
.top15 {
margin-top:15px;
}
.top20 {
margin-top:17px;
}
.top30 {
margin-top:30px !important;
}
/* Configuration de la navbar */
.navbar {
background-color: #2b3e62;
color:white;
}
... |
// Stroustrup - Programming Principles & Practice
// Chapter 21 Exercise 14
// Write a word query program that provides information about the text in a
// document. Use the text cleaner from ex13 to produce input.
#include <iostream>
#include <stdexcept>
#include <string>
#include <map>
#include <vector>
int count_word... |
Before do |test_case|
if settings.skip_test_case?(test_case)
skip_this_scenario "Configured to be skipped"
end
end |
module Captions
class Cue
include Util
# Text Properties supported
ALIGNMENT = "alignment"
COLOR = "color"
POSITION = "position"
# List of Text Properties
TEXT_PROPERTIES = [ALIGNMENT, COLOR, POSITION]
attr_accessor :number, :start_time, :end_time, :duration, :text, :prop... |
<?php
namespace Ekyna\Bundle\SurveyBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Ekyna\Bundle\SurveyBundle\Model\AnswerInterface;
use Ekyna\Bundle\SurveyBundle\Model\QuestionInterface;
use Ekyna\Bundle\SurveyBundle\Model\ResultInterface;
class Answer implements AnswerInterface
{
/**
* @va... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import User from './User';
import Loading from '../../components/Icon/Loading';
import './InterestingPeople.less';
import steemAPI... |
package com.xcode.mobile.smilealarm.alarmpointmanager;
import android.content.Context;
import java.io.IOException;
import java.sql.Date;
import java.sql.Time;
import java.util.Calendar;
import java.util.HashMap;
import com.xcode.mobile.smilealarm.DataHelper;
import com.xcode.mobile.smilealarm.DateTimeHelper;
import com... |
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="row">
<div class='col-md-3'>
<div class="menutext">
<?php echo $content_header; ?>
</div>
</div>
<div class='col-md-2'></div>
<div class='col-md-2'><a type='button' class='btn bg-purple btn-lg' id='<... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hapil.Testing.NUnit;
using NUnit.Framework;
namespace Hapil.UnitTests.Statements
{
[TestFixture]
public class CallStatementTests : <API key>
{
[Test]
public void <API key>()
{
//--... |
package ny2.ats.model.tool;
import java.util.function.BiPredicate;
public enum <API key> {
EQUAL((d1, d2) -> Double.compare(d1, d2) == 0, null, "="),
LESS((d1, d2) -> d1 < d2, null, "<"),
LESS_EQUAL((d1, d2) -> d1 <= d2, null, "<="),
GRATER((d1, d2) -> d1 > d2, null, ">"),
GRATER_EQUAL((d1, d2) -> ... |
Simple mobile frontend for logging of daily reflections
Powered by ionic framework
Created by Dominik Facher, 2014 |
#include <iostream>
#include <vector>
using namespace std;
void <API key>(const vector<int>& arr, vector<int>& odds, vector<int>& evens);
void printVector(const vector<int>& vec);
int main() {
vector<int> arrUnsplit = {1,2,3,4,5,6,7,8,9,10};
vector<int> odds, evens;
cout << "main array is: " << endl;
pr... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LevelEditor.Extensibility.ReadOnlyViewModels;
namespace LevelEditor.ViewModels
{
public class <API key> : RootedViewModel, <API key>
{
public IE... |
// ContrastChannelView.h
// contrast
#import <UIKit/UIKit.h>
#define <API key> [UIColor colorWithRed:(253.0 / 255.0) green:(225.0 / 255.0) blue:(209.0 / 255.0) alpha:1.0]
#define CONTRAST_COLOR_FULL [UIColor colorWithRed:(253.0 / 255.0) green:(225.0 / 255.0) blue:(209.0 / 255.0) alpha:0.75]
#define <API key> [UIC... |
package com.fragmobile;
import org.junit.Test;
import static org.junit.Assert.*;
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
#include "log/logger.h"
#include "log/stdoutlog.h"
//#include <windows.h>
//void SetColor(unsigned short forecolor = 4, unsigned short backgroudcolor = 0)
int main(){
Logger l;
StdoutLogSink cl;
l.Trace("trace .....");
l.Debug("debug --- %d", 11);
l.Info("info --- %d", 11);
l.Warn("warn ..yellow... |
<?php
namespace InfinityGames\InfinityBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\<API key>;
class <API key> extends AbstractType
{
public function buildForm(<API key> $builder, array $options)
{
$builder
/... |
var pagerun = require('pagerun');
// set for debug
// pagerun.modulesRoot = '../';
pagerun.mode = 'test';
// pagerun.loadNpmPlugin('httpresponse');
pagerun.loadNpmPlugin('httpsummary');
pagerun.loadNpmPlugin('httperror');
pagerun.loadNpmPlugin('htmlhint');
pagerun.loadNpmPlugin('jserror');
pagerun.loadNpmPlugin('pagesu... |
using System;
using System.Collections.Generic;
using AssemblyLine.DAL.Entities;
namespace AssemblyLine.Models
{
public class ProjectModel
{
public int Id { get; set; }
public string Name { get; set; }
public ProjectStatus Status { get; set; }
public DateTime Created { get; set; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.