code
stringlengths
4
1.01M
from django.conf.urls import url, include from rest_framework.routers import DefaultRouter from rest_framework_swagger.views import get_swagger_view from . import views, views_api # Django REST framework router = DefaultRouter() router.register(r'election', views_api.ElectionInterface) router.register(r'district', vi...
<div class="container login-form"> <div class="row"> <div class="col-sm-12 text-center"> <img src="<?php echo base_url('img/logo.png'); ?>"> </div> </div> <br /> <div class="row"> <div class="col-sm-4 col-sm-offset-4"> <?php echo $validation_errors; ?> <div class="well"> <?php echo fo...
/* * CocosBuilder: http://www.CocosBuilder.com * * Copyright (c) 2012 Zynga Inc. * * 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...
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin dragonfly freebsd netbsd openbsd rumprun package syscall import ( "runtime" "unsafe" ) var ( freebsdConfArch string // "machine $ar...
namespace myplayer { partial class PlayerForm { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源...
@test iscyclic(permcycs((1,2,3))) @test iscyclic(permcycs((42,100,3))) @test !iscyclic(permcycs((1,2), (3,4)))
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace DNK.PriceListImport.MetroClubLoader { public class DateRange { private DateTime? _start; private DateTime? _end; public DateTime? Start { get { return _start; } ...
// -------------------------------------------------------------------- // © Copyright 2013 Hewlett-Packard Development Company, L.P. //-------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSharpCode.Core; nam...
@extends('layouts.main') @section('title') {{lang('Add New Language')}} @stop @section('content') <div class="row"> <div class="col-sm-4 col-sm-offset-4"> {!! Form::open(['url' => 'admin/language/']) !!} <strong>{{lang('Name')}}</strong> <input type="text" class="fo...
/* * Copyright 2008-2011 Don Brown * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_131) on Tue Apr 30 13:34:40 PDT 2019 --> <title>TriplestoreIndexer</title> <meta name="date" content="2019-04-30"> <link rel="stylesheet" type=...
<!DOCTYPE html> <html> <head> <title>React | Search</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.7.0/ol.css" type="text/css"> <link rel="stylesheet" href="h...
/** * token.h * * Define all token types. */ #ifndef TOKEN_H #define TOKEN_H /* The following enum contains all token names with the names 'TOK_*' */ enum { #define X(x) x, # include "token.include" #undef X __token_dummy__ /* Dummy element for trailing comma */ }; /* These names can be indexed via the above ...
class AlertList def initialize(zipcode) @response = HTTParty.get("http://api.wunderground.com/api/#{ENV["WUNDERGROUND_KEY"]}/alerts/q/#{zipcode}.json") end def all_alerts @response["alerts"].map {|a| Alert.new(a)} end end class Alert def initialize(json) @alert = json end def alert_type ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ChoPGP4Win { public sealed class PGPDecryptFileOptions : INotifyPropertyChanged { private string inputFilePa...
Base.bits(b::Ubound) = string("$(bits(b.lower)) -> $(bits(b.upper))") function Base.show{ESS,FSS}(io::IO, x::Ubound{ESS,FSS}) @typenames print(io, "$bname($(x.lower), $(x.upper))") end
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef CANNABISDARKCOIN_ALLOCATORS_H #define CANNABISDARKCOIN_ALLOCATORS_H #inclu...
require "test_helper" require "helpers/network_helper" describe "Fog::OpenStack::Network | vpn_service" do describe "success" do before do @instance = network.vpn_services.create( :subnet_id => 'foo', :router_id => 'bar', :name => 'test', :description ...
HorseRanch ========== This is a game made by my 8 year old daughter using Construct 2. It is a work in progress. There is nothing to play yet, only the scene composition can be viewed. Star the repo to stay up to date on the progress. [Play it in a browser](https://dl.dropboxusercontent.com/u/33122639/HorseRanch/ind...
export { default } from 'ember-fhir/models/parameters';
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="fmt0table"><tr><th class="zt1"><...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors'), Book = mongoose.model('Book'), _ = require('lodash'); // , // googleapi = require('node-google-api')('AIzaSyAffzxPYpgZ14gieEE04_u4U-5Y26UQ8_0'); // exports.gbooks = function(req, res) { // goog...
# NewRelic Plugins Hive [![Build Status](https://api.travis-ci.org/elad-maimon/newrelic_plugins_hive.png?branch=master,develop)](https://api.travis-ci.org/elad-maimon/newrelic_plugins_hive.png?branch=master,develop) [![Coverage Status](https://coveralls.io/repos/elad-maimon/newrelic_plugins_hive/badge.png?branch=master...
#include "kk_dictionary.h" namespace penciloid { namespace kakuro { Dictionary::Dictionary() : data_(nullptr) { } Dictionary::~Dictionary() { if (data_ != nullptr) delete[] data_; } void Dictionary::CreateDefault() { Release(); data_ = new unsigned int[kDictionarySize]; for (int n_cells = 0; n...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Ducats</source> <translation>Apie Ducats</translation> </message...
# Requests for new Features Edit this document for any suggestions on features you would like added. Feel free to open an issue as well, but this helps us consolidate new features and details. It also can act as a TODO list. #### The basic template (loose): Detail Explanations: detail Please fill out as much informat...
.polygon { display: flex; justify-content: center; align-items: center; color: gray; font-size: .9rem; }
import { Mongo } from 'meteor/mongo' export const Saved = new Mongo.Collection('saved'); if (Meteor.isClient) { Meteor.subscribe('saved') } if (Meteor.isServer) { Meteor.publish('saved', function savedPublication() { return Saved.find() }) }
'use babel'; import moment from 'moment'; import openUrl from 'opn'; const addError = ({ project, branch, build, endDate, commit }) => { const relativeTime = moment(endDate).fromNow(); atom.notifications.addError(`Build #${build.id} has failed`, { buttons: [ { onDidClick() { openUrl(`...
<?php namespace Symfony\Tests\Component\Form; require_once __DIR__ . '/DateTimeTestCase.php'; use Symfony\Component\Form\DateField; use Symfony\Component\Form\FormConfiguration; class DateFieldTest extends DateTimeTestCase { protected function setUp() { FormConfiguration::setDefaultLocale('de_AT'); ...
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
#!/usr/local/bin/perl -w =head1 NAME load_clones_from_fpc.pl - Populates a core Ensembl DB with FPC clone data =head1 SYNOPSIS perl load_clones_from_fpc.pl [options] fpc_file Options: -h --help -m --man -r --registry_file -s --species -f --fasta_file -c --cb_to_bp -n --no_insert =head1 OPTIONS Reads the B...
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>hilary_mason_data 2009 knowledge graph</title> </head> <body> <p><a title="hilary_mason_data" href="../hilary_mason_data_home.html">hilary_mason_data</a> <a title="hilary_mason_data-2009" href="#">hilary_mason_data-2009</a> knowledge-graph by maker-knowledge-mi...
require File.expand_path('../authorization_helper', __FILE__) describe '02: authorization.rb with platform overrides' do before do set_environment load_platform_configs(file: __FILE__, file_ext: '02_*') register_framework_and_platform register_engine @auth = @env.authorization end it '02: ...
''' Created on Jan 15, 2014 @author: Jose Borreguero ''' from setuptools import setup setup( name = 'dsfinterp', packages = ['dsfinterp','dsfinterp/test' ], version = '0.1', description = 'Cubic Spline Interpolation of Dynamics Structure Factors', long_description = open('README.md').read(), author = 'J...
using System; using ExpenseManager.Entity.Enums; namespace ExpenseManager.BusinessLogic.TransactionServices.Models { public class TransactionServiceModel { /// <summary> /// Unique id of transaction /// </summary> public Guid Id { get; set; } /// <summary> ...
<?php namespace DMS\Filter\Rules; /** * RegExp Rule * * Filter using preg_replace and unicode or non-unicode patterns * * @package DMS * @subpackage Filter * * @Annotation */ class RegExp extends Rule { /** * Unicode version of Pattern * * @var string */ public $unicodePattern; ...
class ErrorFactory { getError(errorName: string, status: number): any { class NestedError extends Error { errorMessages: any; status: number; constructor(msg: any) { super(`${errorName}: ${msg.toString()}`); if (!(msg instanceof String) &&...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0) on Sun Feb 09 15:21:29 PST 2014 --> <title>javax.lang.model.type</title> <meta name="date" content="2014-02-09"> <link rel="stylesheet" type="...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {IMinimatch, Minimatch} from 'minimatch'; /** Map that holds patterns and their corresponding Minimatch glob...
using System.Threading.Tasks; using JetBrains.Annotations; namespace System { public static class DelegateExtensions { public static async Task InvokeAsync([NotNull] this Action action) { if (action == null) throw new ArgumentNullException(nameof(action)); awa...
<script type="text/javascript"> $(document).ready(function(){ $(".contentbox fieldset").each(function(){ $('.jqTransformInputWrapper', $(this)).width('100%'); if(!$(".sf_admin_form_row", $(this)).length) { $('a[href=#' + $(this).attr('id') + ']').parent().remove(); } }); $(".sf_a...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #in...
/* Copyright (c) 2012, 2013 Kajetan Swierk <k0zmo@outlook.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 ...
<fieldset> <legend class=" {{#if isLegendHidden}} visuallyhidden {{else}} form-title heading-large {{/if}}" id="{{legendId}}">{{{legend}}}</legend> {{#EL_ROW}} {{#EL_2FA}} <div class="two-fa"> <img src="{{@root.assetPa...
<html><body> <h4>Windows 10 x64 (19042.572) 20H2</h4><br> <h2>_CM_INTENT_LOCK</h2> <font face="arial"> +0x000 OwnerCount : Uint4B<br> +0x008 OwnerTable : Ptr64 Ptr64 <a href="./_CM_KCB_UOW.html">_CM_KCB_UOW</a><br> </font></body></html>
import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { AngularFireModule } from 'angularfire2'; import { AngularFireDatabaseModu...
using System; namespace NullValuesArithmetic { class NullValuesArithmetic //Problem 12. Null Values Arithmetic //Create a program that assigns null values to an integer and to a double variable. //Try to print these variables at the console. //Try to add some n...
package WorldCup::Command::teams; # ABSTRACT: Returns the teams in the World Cup. use strict; use warnings; use WorldCup -command; use JSON; use LWP::UserAgent; use File::Basename; use Term::ANSIColor; use List::Util qw(max); sub opt_spec { return ( [ "outfile|o=s", "A file to place a listing of the teams" ...
package org.achacha.webcardgame.game.logic; public enum EventType { Start, CardStart, CardHealth, CardAttack, CardAttackCrit, CardAttackAbsorb, CardAttackCritAbsorb, CardDeath, PlayerWin, PlayerDraw, PlayerLose, StickerHeal, StickerDamage }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xam...
require 'markdown_section_numbering/version' class MarkdownSectionNumbering class << self def config(max_level) @max_level = max_level end def convert(input) @section_index = [-1] + [0] * max_level input.lines.map do |line| convert_line(line) end.join("\n") + "\n" end...
import React from 'react'; import { FieldProps } from 'formik'; import { Text, BorderBox, FilterList } from '@primer/components'; import { iconThemes } from '@renderer/icons'; const IconPicker: React.FC<FieldProps> = ({ field, form }): JSX.Element => { const currentIconTheme = iconThemes.find( (iconTheme) => ic...
<section class="usernameprofile"> <div class="widgets"> <p-growl [value]="msgs"></p-growl> <div class="row"> <div class="col-md-10"> <ba-card title="USER PROFILE" baCardClass="with-scroll"> <form class="form-horizontal"> <div *ngFor="let fields of fieldLists"> <...
module StreetEasy class Client BASE_URI = "http://www.streeteasy.com/nyc/api/" def self.api_key @api_key end def self.api_key=(key) @api_key = key end def self.construct_url(query) uri = URI( "#{BASE_URI}" + "#{query[:property_type]}/" + "search?cri...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./aaf8fbd5bfee65db931ed137bca246ebf79d18e27112f8ae4cbc825b8b462281.html">Teleport</a> <hr> ...
<?php declare(strict_types=1); namespace WsdlToPhp\PackageGenerator\Tests\Container\PhpElement; use InvalidArgumentException; use WsdlToPhp\PackageGenerator\Container\PhpElement\Constant; use WsdlToPhp\PackageGenerator\Tests\AbstractTestCase; use WsdlToPhp\PhpGenerator\Element\PhpConstant; use WsdlToPhp\PhpGenerator...
<?php require_once __DIR__."/../note/note_core.php"; function nodeComplete_GetById( $ids ) { $multi = is_array($ids); if ( !$multi ) $ids = [$ids]; $nodes = node_GetById($ids); if ( !$nodes ) return null; $metas = nodeMeta_ParseByNode($ids); $links = nodeLink_ParseByNode($ids); $loves = nodeLove_GetByN...
var userData = [ {'fName':'Justin', 'lName' : 'Gil', 'age': 70, 'gender': 'M', 'phone': '949-111-1111', 'profilePic': '../pix/justin.jpeg', 'city' : 'San Diego', 'add' : '55 Serenity' , 'Bio': 'I like soccer and long walks on the beach.', 'userIndex' : 1, 'username': 'justin', 'password': 'lol', 'state' : 'CA',...
# StHtmlTagClipFlavor The class inherits `StClipFlavor`. ## Method create public Description... ### Parameters layer initCallback ### Return value This method does not return.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace Monocle { public class Tween : Component { public enum TweenMode { Persist, Oneshot, Looping, YoyoOneshot, YoyoLooping }; public Action<Tween> OnUpdate; ...
/*! \file rk_int.c * \brief Function definitions for numerical integration routines. */ #include<math.h> #include<stdio.h> #include<stdlib.h> #include<gsl/gsl_sf_gamma.h> #include"rk_int.h" #include"routines.h" /******************************************************** * * Numerical Integration Subroutines. * ***...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dpdgraph: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
"use strict"; /** * Additional Interfaces */ import ILocalStorage from "./ILocalStorage"; /** * The Window interface */ interface IWindow { atob: any; btoa: any; escape: any; unescape: any; location: any; Promise: any; document: Document; addEventListener: Function; removeEventListener: Function; ...
import FormComponent from '../../form-component'; export class TextArea extends FormComponent { constructor(context, options) { super( context, context.querySelector('.text-area__input'), context.querySelector('.text-area__error'), 'Text Area', options ); super.init(); t...
<?php namespace Kubus\BackendBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class LessonType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $opti...
# -*- coding: utf-8 -*- from django.core.mail import EmailMultiAlternatives from django.template import Context, Template from django.template.loader import get_template from helpers import ClientRouter, MailAssetsHelper, strip_accents class UserMail: """ This class is responsible for firing emails for User...
/** * @aside guide tabs * @aside video tabs-toolbars * @aside example tabs * @aside example tabs-bottom * * Tab Panels are a great way to allow the user to switch between several pages that are all full screen. Each * Component in the Tab Panel gets its own Tab, which shows the Component when tapped on. Tabs can...
class JudgeTask @queue = :judge def self.perform(id) submission = Submission.find(id) code = submission.code log = Logger.new 'log/resque.log' compile_output = `gcc #{submission.source_path} -o #{submission.exec_path} #{Settings.compiler_options} 2>&1` if $?.success? problem = submission...
package bhgomes.jaql.logging; import java.util.logging.StreamHandler; /** * Singleton object for System.out as a StreamHandler * * @author Brandon Gomes (bhgomes) */ public final class STDOUT extends StreamHandler { /** * Singleton instance */ private static final STDOUT instance = new STDOUT()...
package com.venky.core.security; import com.venky.core.util.ObjectUtil; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Option; import org.apache.commons.c...
local conf = require "conf" local github_issues_comments = require "includes.github_issues_comments" local exports = {} local function html_post(metadata, content) local github_comments_html = "" if metadata.issueid ~= nil then github_comments_html = github_issues_comments.html_github_issues_comments(metadata...
SwaggerYard::Rails::Engine.routes.draw do get '/doc', to: 'swagger#doc' scope default: {format: 'json'} do get '/swagger', to: 'swagger#index' get '/openapi', to: 'swagger#openapi' get '/api', to: 'swagger#index' end end
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
// // DDAreaPickerView.h // AreaPicker // // Created by SuperDanny on 15/11/10. // Copyright © 2015年 SuperDanny. All rights reserved. // #import <UIKit/UIKit.h> #import "DDLocation.h" typedef enum { DDAreaPickerWithStateAndCity, DDAreaPickerWithStateAndCityAndDistrict } DDAreaPickerStyle; @class DDAreaPi...
window.PerfHelpers = window.PerfHelpers || {}; ;(function(PerfHelpers) { var timers = {}; PerfHelpers = window.performance || {}; PerfHelpers.now = PerfHelpers.now || function () {}; if ((!console) || (!console.time)) { console.time = function() {}; console.timeEnd = function() {}; } var consoleTi...
<!doctype html> <html class="no-js" ng-app="ngMailCreator"> <head> <meta charset="utf-8"> <title>frontend</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <!-- build:css s...
# frozen_string_literal: true class Awarding < ApplicationRecord belongs_to :award belongs_to :recipient belongs_to :group validates :award, presence: true validates :recipient, presence: true # group should be present if there is no default group validates :group, presence: true, if: proc { |a| a.award...
# suite2
<?php /* * This file is part of Hifone. * * (c) Hifone.com <hifone@hifone.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Hifone\Http\Controllers\Auth; use AltThree\Validator\ValidationException; use Hifone\Comman...
using Hanafuda.OpenApi.Entities; using Hanafuda.OpenApi.Enums; using Hanafuda.OpenApi.Expressions; using System; using System.Collections.Generic; using System.Linq; namespace Hanafuda.OpenApi.Extensions { /// <summary> /// Extensions for Enumerable /// </summary> public static class EnumerableExtensi...
function preloadimages(n,o){function r(){++a>=e&&o(i)}var a=0,e=0,i=n instanceof Array?[]:{};for(var c in n)e++,i[c]=new Image,i[c].src=n[c],i[c].onload=r,i[c].onerror=r,i[c].onabort=r}
import { NgModule } from '@angular/core'; import { RouterModule, Routes, PreloadAllModules } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { I18nComponent } from './i18n/i18n.component'; import { ValidationComponent } from './validation/validation.component'; const routes: Rout...
package com.github.bogdanlivadariu.jenkins.reporting.testng; import hudson.FilePath; import hudson.model.Action; import hudson.model.DirectoryBrowserSupport; import java.io.File; import java.io.IOException; import javax.servlet.ServletException; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler....
package com.bitdecay.game.ui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.Group; import com.badlogic.gdx.scenes.scene2d.actions.Actions; import com.badlogic.gdx.scenes.scene2d.actions.MoveToAction; import com.bitdecay.game.util.Quest; import org.apache.logg...
module.exports = function(locker) { /* locker.add(function(callback) { //Return content in format: callback({ name: "Vehicle Speed", type: "metric", content: { x: 0, y: 0, ...
package app; import java.util.ResourceBundle; import control.MainController; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.stage.Stage; /** * Main class for Logoquiz app. */ public class LogoquizMainApp extends Applic...
{ it("returns a key", () => { var nativeEvent = new KeyboardEvent("keypress", { key: "f" }); expect(getEventKey(nativeEvent)).toBe("f"); }); }
<?php /* @WebProfiler/Icon/close.svg */ class __TwigTemplate_6bdd9e9862db24b9d9ca3b9811419338c5925f8e0c5dd2898e11b045839a13fd extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( )...
/** * A 32-bit unsigned bitfield that describes an entity's classification(s) * @typedef {number} EntityClass */ /** * Enumerate entity classes */ const ENTITY = { NULL: 0x00, // Base celestial classes ASTEROID: 0x01, // floating rock in space, orbits star COMET: 0x02, // an asteroid ...
# -*- coding: utf-8 -*- """ flask.ext.babelex ~~~~~~~~~~~~~~~~~ Implements i18n/l10n support for Flask applications based on Babel. :copyright: (c) 2013 by Serge S. Koval, Armin Ronacher and contributors. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import impor...
<?php Class Contact_model extends MY_Model { var $table = 'contact'; function get_list_contact() { $query = $this->db->get($this->table); if ($query->result()) { return $query->result(); } else { return FALSE; } } }
var _; //globals /* This section uses a functional extension known as Underscore.js - http://documentcloud.github.com/underscore/ "Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extend...
<?php $error_id = uniqid('error', true); ?> <!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="robots" content="noindex"> <title><?= esc($title) ?></title> <style type="text/css"> <?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?> </style> <s...
try: from tornado.websocket import WebSocketHandler import tornado.ioloop tornadoAvailable = True except ImportError: class WebSocketHandler(object): pass tornadoAvailable = False from json import loads as fromJS, dumps as toJS from threading import Thread from Log import console import Settings from utils impor...
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("Wc...
<?php namespace Illuminate\Database\Query; use Closure; use BadMethodCallException; use Illuminate\Support\Arr; use Illuminate\Support\Str; use InvalidArgumentException; use Illuminate\Pagination\Paginator; use Illuminate\Support\Traits\Macroable; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Co...
# Swagger\Client\KintoApi All URIs are relative to *https://kinto.dev.mozaws.net/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**batch**](KintoApi.md#batch) | **POST** /batch | [**contribute**](KintoApi.md#contribute) | **GET** /contribute.json | [**createBucket**](KintoApi....
<html><body> <h4>Windows 10 x64 (18362.449)</h4><br> <h2>_PPM_VETO_ACCOUNTING</h2> <font face="arial"> +0x000 VetoPresent : Int4B<br> +0x008 VetoListHead : <a href="./_LIST_ENTRY.html">_LIST_ENTRY</a><br> +0x018 CsAccountingBlocks : UChar<br> +0x019 BlocksDrips : UChar<br> +0x01c Prea...
const autoAdjustOverflow = { adjustX: 1, adjustY: 1 } const targetOffset = [0, 0] export const placements = { left: { points: ['cr', 'cl'], overflow: autoAdjustOverflow, offset: [-3, 0], targetOffset }, right: { points: ['cl', 'cr'], overflow: autoAdjustOverflow, offset: [3, 0], ...