answer stringlengths 15 1.25M |
|---|
//needed for testing
#define CATCH_CONFIG_RUNNER
#include <catch.hpp>
//other stuff needed
#define GLM_FORCE_RADIANS
#include <glm/vec3.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <cmath>
#include <iostream>
//include classes for testing
//Shapes
#include "shape.hpp"
#include "sphere.hpp"
#include "box.hpp"
#... |
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.timestamps
end
end
end |
const gulp = require('gulp')
const config = require('../utils/config.service').config
const browserSync = require('browser-sync')
const path = require('path')
module.exports = () => {
const bs = browserSync.get('SIM')
gulp.watch([
path.join(config.scss, '**/*.scss')
], gulp.series('build:scss'))
gulp.watch(... |
import { Component, OnInit } from '@angular/core';
import { <API key>, SignInData } from 'angular2-token';
@Component({
selector: 'sign-in',
templateUrl: 'sign-in.component.html'
})
export class SignInComponent {
signInData: SignInData = <SignInData>{};
output: any;
constructor(private _tokenService... |
class <API key> < ActiveRecord::Migration[5.1]
def change
<API key>(:rotations, :description, "")
end
end |
package com.pmc.UserInfo.action;
import com.mongodb.WriteResult;
import com.pmc.UserInfo.service.<API key>;
import com.pmc.utils.PMCJSONUtils;
import org.apache.struts2.<API key>;
import org.json.JSONException;
import org.json.JSONObject;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpSession;
imp... |
#include "../Engine/stdafx.h"
class WindowObject;
#pragma once
class Application
{
public:
// :: Type Definitions ::
struct Pixel{ unsigned char r, g, b; };
// :: Constructors ::
Application();
virtual ~Application();
// :: Variables ::
WindowObject *Window;
// :: Methods ::
virtual ... |
/**
* GameActions
*
* In charge of playing the game.
*/
import { AbstractActions, alt } from "../alt";
interface IGameActions {
fetchGameText(): void;
startGame(stats?: any): void;
endGame(): void;
sayCurrentWord(): void;
spellCurrentWord(): void;
spellInput(): void;
disableButtons(): void;
enableBu... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Headfirst.Csharp.Leftover3
{
<summary>
A guy with a name, age and a wallet full of bucks
</summary>
public class Guy
{
/*
* Notice how Name and Age are prope... |
# Features flags API
All methods require administrator authorization.
Notice that currently the API only supports boolean and percentage-of-time gate
values.
## List all features
Get a list of all persisted features, with its gate values.
GET /features
bash
curl --header "PRIVATE-TOKEN: <your_access_token>" https://git... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http:
<html>
<head>
<title></title>
</head>
<body>
<script src="../analytic.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.7.2.js"></script>
<script src="../../download/matrix.debug.js"></script>
<script type=... |
package de.mwg.web.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.datetime.standard.<API key>;
import org.springframework.web.servlet.config.annotation.<API key>;
@Configuration
public class <API key> extends <A... |
# <API key>: true
Rails.application.routes.draw do
resources :model_mocks
mount Alerter::Engine => '/alerts'
end |
Package.describe({
name: "nova:newsletter",
summary: "Telescope email newsletter package",
version: "0.26.0-nova",
git: "https://github.com/TelescopeJS/<API key>.git"
});
Npm.depends({
"html-to-text": "1.3.1"
});
Package.onUse(function (api) {
api.versionsFrom("METEOR@1.0");
api.use([
'nova:core@0.26.... |
<?php
namespace App\Http\Controllers;
use Laravel\Lumen\Routing\Controller as BaseController;
class Controller extends BaseController
{
} |
using Newtonsoft.Json;
namespace JSend.WebApi.Tests.TestTypes
{
public class Model
{
[JsonProperty("name")]
public string Name { get; set; }
}
} |
require 'sinatra'
require 'twitter'
helpers do
def twitter
@twitter ||= Twitter::REST::Client.new do |config|
config.consumer_key = ENV.fetch("<TwitterConsumerkey>")
config.consumer_secret = ENV.fetch("<TwitterConsumerkey>")
end
end
end
get "/tweets.css" do
content_type "text/css"
tweets ... |
package com.crescentflare.appconfig.view;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatEditText;
import android.text.InputType;
import android.text.TextWatcher;
import android.text.method.DigitsKeyListener;
import android.util.AttributeSet;
import... |
const path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('<API key>')
const resourcesRule = {
test: /\.(jpeg|png|svg|ico|cur)$/,
use: {
loader: 'url-loader',
options: {
limit: 1000,
name: '[name].[hash:6].[ext]'
}
}
};
const fontRule = {
test: /\.(... |
package org.zalando.intellij.swagger.completion.field.completion.swagger.json;
import com.intellij.openapi.vfs.VirtualFile;
import org.zalando.intellij.swagger.<API key>;
import org.zalando.intellij.swagger.assertion.AssertableList;
public class <API key> extends <API key> {
private static final String PARTIAL_FILES_... |
<?php
class NotificationFactory {
/*
Helper class to generate notifications
*/
const UNREAD = 0;
const READ = 1;
public static $<API key> = array(
'JoinDiscussion' => 1,
'ApproveJoinRequest' => 2,
'JoinBadmintonDate' => 3,
'<API key>' => 4,
'LeaveBadminto... |
#!/usr/bin/env python
import errno
import os
import platform
import sys
BASE_URL = os.getenv('<API key>') or \
'https://s3.amazonaws.com/<API key>/libchromiumcontent'
<API key> = os.getenv('<API key>') or \
'<SHA1-like>'
PLATFORM = {
'cygwin': 'win32',
'darwin': 'darwin',
'linux2': 'linux',
'win32': 'wi... |
namespace HotelSystem.Web.Areas.Administration.ViewModels.Hotels
{
using System;
using System.ComponentModel.DataAnnotations;
using AutoMapper;
using HotelSystem.Common;
using HotelSystem.Data.Models;
using HotelSystem.Web.Infrastructure.Mapping;
public class HotelInputModel : IMapTo<Hotel>
... |
function OnSpellStart(keys)
local caster = keys.caster
local ability = keys.ability
local point = keys.target_points[1]
local level = ability:GetLevel() - 1
local radius = math.min(ability:<API key>("base_radius", level) + (caster:GetIntellect() * (ability:<API key>("int_to_radius_pct", level) * 0.0... |
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Twig_Extensions_' => array($vendorDir . '/twig/extensions/lib'),
'Twig_' => array($vendorDir . '/twig/twig/lib'),
'Symfony\\Component\\Icu\\' => array($vendorDir . ... |
// skybox.cpp
// mint3d-tests
#include "skybox.h"
#include "supports/utils.h"
#include "application/res_manager.h"
#include "application/scene_manager.h"
#include "components/mesh_renderer.h"
#include "render/material.h"
#include "supports/default_shaders.h"
<API key>
Component::Type Skybox::TYPE = TYPE_SKYBOX;
Skybo... |
<div class="commune_descr limited">
<p>
Monterrein est
un village
localisé dans le département de Morbihan en Bretagne. Elle comptait 352 habitants en 2008.</p>
<p>Le nombre de logements, à Monterrein, était réparti en 2011 en treize appartements et 181 maisons soit
un marché plutôt équilibré.</p>
<p>À... |
#![allow(dead_code)]
mod gbm;
#[macro_use]
pub mod formats;
pub use self::gbm::*;
#[cfg(test)]
mod tests {
#[test]
fn macro_test() {
assert!(__gbm_fourcc_code!('X', 'R', '2', '4') == 0x34325258);
assert!(__gbm_fourcc_code!('\0', '\0', '\0', '\0') == 0);
assert!(__gbm_fourcc_code!(0xFF, 0... |
<?php
namespace ForkCMS\Modules\MediaLibrary\Domain\MediaItem;
use ForkCMS\Modules\MediaLibrary\Domain\Manager\FileManager;
use ForkCMS\Modules\MediaLibrary\Domain\MediaItem\MediaItem;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Events;
use Liip\ImagineBundle\Imagine... |
Rails329::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.<API key> = false
config.action_controller.perform... |
import $ from 'jquery';
export default function () {
let jews = {};
['Top', 'Left'].forEach(function (v) {
Object.defineProperty(document.body, 'scroll' + v, {writable: false, value: 0});
});
['By', 'To'].forEach(function (v) {
window['scroll' + v] = function () {};
});
var _filt... |
<?php
namespace Baazaar\BaazaarBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Baazaar\BaazaarBundle\Form\DataTransformer\<API key>;
use Doc... |
<?php
if(!defined('SMVC_SQL_NONE'))
/**
* @name SMVC_SQL_NONE ,resource.
*/
define('SMVC_SQL_NONE', 0);
if(!defined('SMVC_SQL_INIT'))
/**
* @name SMVC_SQL_INIT fetch.
*/
define('SMVC_SQL_INIT', 1);
if(!defined('SMVC_SQL_ALL'))
/**
* @name SMVC_SQL_ALL fetchAll.
*/
d... |
package com.mycompany.app;
import org.junit.Ignore;
import org.junit.Test;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import static junit.framework.Assert.... |
/* line 1, C:/Users/ionutr/PhpstormProjects/httpi--sf2-lexmar/src/Httpi/Maritime/Bundle/SiteBundle/Resources/public/css/modules/_layout.sass */
#wrapper {
width: 1200px;
margin: 0 auto; }
/* line 5, C:/Users/ionutr/PhpstormProjects/httpi--sf2-lexmar/src/Httpi/Maritime/Bundle/SiteBundle/Resources/public/css/module... |
<!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.css"... |
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#ifndef NH_FILESYSTEM_H
#define NH_FILESYSTEM_H
namespace filesystem {
enum class Mode {
text,
binary
};
class BaseFilesystem {
public:
virtual uint8_t* get_file_contents(const char* filename, Mode mode = Mode::binary, int* out_length = ... |
#pragma once
#include <type_traits>
#include <stack>
#include <unordered_map>
#include "../Base/String.hpp"
#include "../Json/JsonDocument.hpp"
#include "Common.hpp"
#include "ArchiveStore.hpp"
namespace ln {
class Serializer; // LuminoEngine
#define <API key>(type, version) \
namespace ln { namespace detail { \
... |
class Strom : Entita
{
public Strom(Pozice p, char znak) : base(p, znak, TypEntity.Strom)
{
// strom nic nedela
}
} |
#ifndef BSCCOIN_LEVELDB_H
#define BSCCOIN_LEVELDB_H
#include "serialize.h"
#include <leveldb/db.h>
#include <leveldb/write_batch.h>
#include <boost/filesystem/path.hpp>
class leveldb_error : public std::runtime_error
{
public:
leveldb_error(const std::string &msg) : std::runtime_error(msg) {}
};
void HandleError(co... |
package iso20022
// Choice of format for the statement type.
type <API key> struct {
// Statement type expressed as an ISO 20022 code.
Code *<API key> `xml:"Cd"`
Proprietary *<API key> `xml:"Prtry"`
}
func (s *<API key>) SetCode(value string) {
s.Code = (*<API key>)(&value)
}
func (s *<API key>) AddProp... |
-- Put functions in this file to use them in several other scripts.
-- To get access to the functions, you need to put:
-- require "my_directory.my_file"
-- in any script using the functions.
Returns true if the location defined by point is
inside the rectangle defined by the position and size values
function i... |
<?php
namespace IgraalOSL\StatsTable;
use IgraalOSL\StatsTable\Aggregation\<API key>;
use IgraalOSL\StatsTable\Aggregation\StaticAggregation;
use IgraalOSL\StatsTable\Dumper\Format;
use IgraalOSL\StatsTable\DynamicColumn\<API key>;
class StatsTableBuilder
{
/** @var StatsColumnBuilder[] The raw values passed to set... |
println("Edad de la persona adscrita a jubilarse")
val Edad=readInt()
println("Antiguedad en su empleo de la persona adscrita a jubilarse")
val Antiguedad=readInt()
if (Edad>= 60 && Antiguedad < 25){
println("El adscrito se jubilara por edad")
}
else if(Edad < 60 && Antiguedad >= 25){
println("El adscrito ... |
<?php
namespace PHPExiftool\Driver\Tag\DICOM;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class <API key> extends AbstractTag
{
protected $Id = '0018,9301';
protected $Name = '<API key>';
protected $FullName = 'DICOM::Main';
prote... |
(function () {
'use strict';
angular
.module('porttare.config')
.config(function () {
moment.locale('es');
});
})(); |
<?php
namespace SitemapGenerator\Tests\Provider;
use SitemapGenerator\Entity\Url;
use SitemapGenerator\Tests\Fixtures\News;
abstract class <API key> extends \<API key>
{
protected function getRouter(array $results)
{
$router = $this->getMock('\SitemapGenerator\UrlGenerator');
$valueMap = array_m... |
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
header = require('gulp-header'),
uglify = require('gulp-uglify'),
plumber = require('gulp-plumber'),
clean = require('gulp-clean'),
rename = require('gulp-rename'),
package = requir... |
#include "../Common.h"
#ifndef <API key>
#define <API key>
class EXPORT Mutex {
public:
//friend class Condition;
/** Initializes a mutex class, with <API key> / pthread_mutex_init
*/
Mutex();
/** Deletes the associated critical section / mutex
*/
virtual ~Mutex();
/** Attempts to acquir... |
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<canvas id="canvas" height="200" width="200"></canvas>
<input type="text" id="sentence" value="" placeholder="your text here" />
<script>
var canvas = document.getElementById('canv... |
// <API key>.h
// ToDoApp
#import <Foundation/Foundation.h>
@class <API key>;
@interface <API key> : NSObject
+ (<API key> *)loadToDoData;
+ (void)saveToDoData:(<API key> *)<API key>;
@end |
#!/usr/bin/env python
import jinja2
import os
import re
import shlex
import sys
import mkdocs.build
from mkdocs.build import build
from mkdocs.config import load_config
from urllib2 import urlopen
import subprocess
def line_containing(lines, text):
for i in range(len(lines)):
if text.lower() in lines[i].lower():
... |
#!/usr/bin/python3
# Small script to validate a given IP address
import socket
import sys
def validate_ip(ip):
try:
socket.inet_pton(socket.AF_INET, ip)
return (True,"IPv4")
except socket.error:
try:
socket.inet_pton(socket.AF_INET6, ip)
return(True,"IPv6")
... |
module Pvcglue
class Packages
class MaintenanceMode < Pvcglue::Packages
def installed?
false
end
def install!
if options[:maintenance_mode] == 'on'
connection.run!(user_name, '', "touch #{Pvcglue.cloud.<API key>}")
elsif options[:maintenance_mode] == 'off'
... |
 1
To use the PCMag Product and News Assistant skill, try saying...
* *Alexa, ask PCMag which printer should I buy.*
* *Alexa, ask... |
/*
* CONTAINER
* TableTools container element and styles applying to all components
*/
div.DTTT_container {
position: relative;
float: right;
margin-bottom: 1em;
}
@media screen and (max-width: 640px) {
div.DTTT_container {
float: none !important;
text-align: center;
}
div.DTT... |
var meroboto = require('../lib');
var sensor = new meroboto.Sensor({
timeInterval: 1000,
fn: function() {
return Math.floor((Math.random() * 10) + 1);
}
});
var sensor_2 = new meroboto.Sensor({
timeInterval: 1000,
fn: function() {
return Math.floor((Math.random() * 20) + 1);
}
});
var action = new m... |
// keepViewController.h
// postcardApp
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
@interface keepViewController : UIViewController <UITextFieldDelegate, UITextViewDelegate, <API key>, <API key>, <API key>>
@property (weak, nonatomic) IBOutlet UIImageView *mainImageView;
@property (nonatomic, strong) UIIm... |
"""cairo_museum.py"""
from lib.stage import Stage
class CairoMuseum(Stage):
"""Cairo Museum stage"""
def desc(self):
"""Describe action"""
action = """
After getting the first replicant, you call some old friends and some of them
mentions something about a hippie woman that likes no jokes. You g... |
$(document).ready(function(){
var struktur = {};
$(".submit").addClass("disableWindow");
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
$("#inputKalFra").val(today.toISOString().substring(0, 10));
$("#inputKalTil").val(tomorrow.toISOString().substri... |
import * as React from 'react';
import {SvgIconProps} from '../../SvgIcon';
export default function AccountBalance(props: SvgIconProps): React.ReactElement<SvgIconProps>; |
var DataTypes = require('../../../lib/db/dataTypes.js');
describe('DataTypes tests', function() {
it('get the enum name', function() {
var name = DataTypes.name(0);
name.should.be.equal('BOOLEAN');
name = DataTypes.name(1);
name.should.be.equal('TINYINT');
name = DataTypes.name(2);
name.should... |
<html><body>
<h4>Windows 10 x64 (18362.388)</h4><br>
<h2>_MSUBSECTION</h2>
<font face="arial"> +0x000 Core : <a href="./_SUBSECTION.html">_SUBSECTION</a><br>
+0x038 SubsectionNode : <a href="./_RTL_BALANCED_NODE.html">_RTL_BALANCED_NODE</a><br>
+0x050 DereferenceList : <a href="./_LIST_ENTRY.html... |
import Control.Monad
main = print . msum $ do
x <- [ 1 .. 1000 ]
y <- [x + 1 .. div (1000 - x) 2 ]
let z = 1000 - x - y
return $ if x^2 + y^2 == z^2 && x + y + z == 1000
then Just $ x * y * z
else Nothing |
# encoding=utf8
import utils
import pickle
import zipfile
import os
from tqdm import tqdm
from pprint import pprint
# Globals
#[Special, Heavy, Primary]
bucketHashes = [2465295065,953998645,1498876634]
# Load in Manifest
print 'Loading Manifest...'
with open('manifest.pickle','rb') as f:
data = pickle.loads(f.read()... |
namespace BullsAndCows.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Notification
{
pub... |
import webapp2, logging
from database import <API key>, store_feed_source, \
<API key>, <API key>
class AddHandler(webapp2.RequestHandler):
def post(self):
from database import FeedSource
name = self.request.get('name')
url = self.request.get('url')
frequency_ms = self.request.get('frequency_ms')
should_upd... |
<API key> = function (containerId) {
var <API key> = [
//Rotate Overlap
{ $Duration: 1200, $Zoom: 11, $Rotate: -1, $Easing: { $Zoom: $JssorEasing$.$EaseInQuad, $Opacity: $JssorEasing$.$EaseLinear, $Rotate: $JssorEasing$.$EaseInQuad }, $Opacity: 2, $Round: { $Rotate: 0.5 }, $Brother: { $Duration: 1200, $Zoom: ... |
from rest_framework import serializers
import models
class PluginSerializer(serializers.<API key>):
class Meta:
model = models.Plugin
fields = ('id', 'name', )
class <API key>(serializers.<API key>):
class Meta:
model = models.ScoredService
fields = ('id', 'name', 'plugin', 'chec... |
package com.github.mgoeminne.sitar.parser.acm
import com.github.mgoeminne.sitar.parser.{Citation}
import org.scalatest.{FlatSpec, Matchers}
class ACMthesisTest extends FlatSpec with Matchers
{
val p = parser.thesisParser
"Single author phd thesis citation" should "be correctly parsed" in {
val citation = "v... |
<?php
namespace Dmitrynaum\SAM;
use <API key>;
use <API key>;
use Dmitrynaum\SAM\Component\Manifest;
class AssetBuilder
{
protected $needFreeze;
protected $needCompress;
/**
* Manifest
* @var Manifest
*/
protected $manifest;
protected $manifestFilePath;
public function __construct... |
package fr.upem.journal.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import a... |
using HitboxUnofficialApp.Common;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls... |
exports.category = [
{
name: 'clothes',
created_at: new Date,
updated_at: new Date
},
{
name: 'shoes',
created_at: new Date,
updated_at: new Date
},
{
name: 'food',
created_at: new Date,
updated_at: new Date
},
{
name: 'electronics',
created_at: new Date,
up... |
package com.imos.pi.utils;
/**
*
* @author Alok
*/
//@Stateless
//public class SentMailEvent {
// private final SMTPMailService mailService;
// public SentMailEvent() {
// this.mailService = new SMTPMailService();
// public void sendMail() {
// mailService.<API key>("./"); |
<?php
namespace DannySuryadi\Http\Controllers\Admin;
use DannySuryadi\Http\Controllers\Controller;
class HomeController extends Controller
{
public function getIndex()
{
return view('admin.index');
}
} |
<!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="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.6.6: deps/v8/include Directory Reference</title>
<li... |
// 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 to the following conditions:
// all copies or substanti... |
#!/usr/bin/env ruby
$:.push File.expand_path("../lib", __FILE__)
require 'readline-ng'
reader = ReadlineNG::Reader.new
loop do
line = reader.get_line
reader.puts_above("Got #{line}")
end |
# PyWal-Spotify-Theme
[`python-pywal`](https: |
const url = require('url');
const path = require('path');
const electron = require('electron');
const <API key> = require('./windows/main/config');
const <API key> = require('./windows/settings/config');
const {BrowserWindow} = electron;
const <API key> = {
center: false,
darkTheme: true,
defaultFontFamily: '"Ubu... |
#ifndef GUIUTIL_H
#define GUIUTIL_H
#include <QString>
#include <QObject>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
class QFont;
class QLineEdit;
class QWidget;
class QDateTime;
class QUrl;
class QAbstractItemView;
QT_END_NAMESPACE
class SendCoinsRecipient;
/** Utility functions used by the PokerCoin-qt UI.
*/
namespa... |
#include "stdafx.h"
#include "SplashScene.h"
SplashScene::SplashScene(E_GAME_STATE* State)
{
SyncGameState(State);
LoadImageResources();
Setup();
}
SplashScene::~SplashScene()
{
}
void SplashScene::Update()
{
}
void SplashScene::Render(HDC hdc)
{
if (m_startTime + 5.0f > g_pTimerManager->GetWorldTime())... |
require_relative '../../../spec_helper'
describe :numeric_rect, shared: true do
before :each do
@numbers = [
20, # Integer
398.72, # Float
Rational(3, 4), # Rational
99999999**99, # Bignum
infinity_value,
nan_value
]
end
it "returns an Array" do
... |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8' />
<title>Cloud Code Demo - 1 - Hello World</title>
</head>
<body>
</body>
<script src='https:
<script>
Parse.initialize("<API key>",
"<API key>");
Parse.Cloud.run('hello', {}, {
success: function(result) {
ale... |
import React, { Component } from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail'
export default class App extends Component {
render() {
return (
<div>
<BookList />
<BookDetail />
</div>
);
}
} |
'use strict';
/**
* Main module of the application.
*/
angular.module('test.app', [
'ngAnimate',
'ngMessages',
'ngTouch',
'pascalprecht.translate',
'ui.router',
'test.config',
'test.login',
'test.main',
'test.model',
'test.photos',
'test.translation',
'test.util'
])
... |
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
Bug Fixes
* **accessibility:** fixes visibility manager not being notified if reduced motion is enabled ([95d9164](https://github.com/element-motion/elemen... |
package com.selenium.drivers;
import java.net.<API key>;
import org.openqa.selenium.WebDriver;
/**
* Creates SeleniumDriver
*
* @author balnave
*/
public class DriverFactory {
public WebDriver getDriver(Object... args) throws <API key> {
String type = ((String) args[0]).toLowerCase();
if (args.l... |
import {default as process, processAST} from '../../src'
import fs from 'fs'
const inFile = __dirname + '/input.js'
const inSource = fs.readFileSync(inFile).toString()
const options = {
sourceFileName: inFile,
sourceMapName: `${inFile}.map`,
values: {}
}
options.values.PRODUCTION = true
const outProduction ... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SQLite;
namespace wiquotes
{
public partial class PreferencesForm : Form
{
... |
// LuaReader.cpp
// Grapedit
#include "./LuaReader.h"
using namespace lua;
bool lua::readColor(const Value& colorRef, QColor& color) {
if (colorRef.is<Table>()) {
if (colorRef[1].is<Number>())
if (colorRef[2].is<Number>())
if (colorRef[3].is<Number>())
color.setRgbF(colorRef[1]... |
<!DOCTYPE html>
<html>
<head>
<title>Clocker</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="robots" content="index,follow"/>
<meta name="googlebot" content="index,follow"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="... |
<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="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... |
use futures::channel::mpsc::{self, UnboundedReceiver, UnboundedSender};
use futures::executor;
use futures::future;
use futures::prelude::*;
use notify::*;
use future_ext::{Breaker, FutureWrapExt};
use module::{audio_io::Frame, flow, Module};
use std::path::{Path, PathBuf};
use std::process;
use std::sync::{Arc, Mutex}... |
require 'set'
module Trailblazer
class RouteTable
attr_reader :table, :vpc, :gateway
def initialize(config)
@logger = Logging.logger['TABLE']
raise "No route table declared in configuration! See `trailblazer -h`" unless config.route_table?
@ec2 = AWS::EC2.new
logger.debug "Retrieving r... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>src\utils\Common.ts - Kiwi.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" h... |
# <API key>
This project was created to streamline tasks test by using Microsoft Test Manager, the idea was taken from a discontinued project (thanks to Dipak Sarma for sharing your code) of some aspects were improved but lack of time I I have given him the right track . I hope you find it useful.
To use this tool need... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mod.hrs.view;
import erp.mod.SModConsts;
import java.util.ArrayList;
import sa.lib.SLibConsts;
import sa.lib.db.SDbConsts;
import sa.lib.grid.SGridColumnView;
import sa.lib.grid.SGridConsts;
import sa.lib.gri... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, shrink-to-fit=no, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Documentation - ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.