answer
stringlengths
15
1.25M
[http: 1. forkgithub 2. `username.github.io` 3. clone`_posts` 4. CNAME 5. `_config.yml` 6. It's done! []http://yansu.org
// This is the main include file for the gcode library // It parses and executes G-code functions // gcode.h #ifndef GCODE_H #define GCODE_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdarg.h> #ifndef NRF51 // G-code debug print unsigned int debug(const char *format, ...);...
import { DOCUMENT } from '@angular/common'; import { ApplicationRef, <API key>, Inject, Injectable, Injector } from '@angular/core'; import { BaseService } from 'ngx-weui/core'; import { ToptipsComponent, ToptipsType } from './toptips.component'; @Injectable({ providedIn: 'root' }) export class ToptipsService extends B...
require 'test_helper' class <API key> < ActiveSupport::TestCase # test "the truth" do # assert true # end end
var loadJsons = require('../lib/loadJsons'); describe("Get a recursive directory load of JSONs", function() { var data; beforeEach(function(done) { if(data) done(); else { loadJsons("./specs")(function(d) { data = d; done(); }); } }); it("Should return right number of jso...
layout: post status: publish published: true title: Moved to Jekyll blog engine date: 2015-10-20 22:31:25.000000000 +05:30 comments: [] I have been using wordpress since the time I started blogging. I decided to make a move to the Jekyll static templating engine after I came to know about its simplicity and ability to ...
using System; using System.Diagnostics; using System.Text; namespace BgeniiusUniversity.Logging { public class Logger : ILogger { public void Information(string message) { Trace.TraceInformation(message); } public void Information(string fmt, params object[] vars) ...
layout: article title: "The Zen of Design Patterns (2nd Edition)" categories: programing tags: [java, reading] toc: false image: teaser: programing/<API key>-(2nd-Edition)/teaser.jpg date: 2017-11-05 * SRPSingle Responsibility Principle * RBACRole-Based Access Control * BOBusiness Object * BizBusiness Logic (SRP) ...
<?php /** * Rule checking that the form field is not empty */ require_once 'HTML/QuickForm2/Rule/Nonempty.php'; /** * Rule for required elements * * The main difference from "nonempty" Rule is that * - elements to which this Rule is attached will be considered required * ({@link <API key>::isRequired()} will r...
class String def split_on_unescaped(str) self.split(/\s*(?<!\\)#{str}\s*/).map{|s| s.gsub(/\\(?=#{str})/, '') } end end
import axios from 'axios'; import { updateRadius } from './radius-reducer'; import { AddBType } from './b-type-reducer'; // import { create as createUser } from './users'; // import history from '../history'; const ADD_B_TYPE = 'ADD_B_TYPE'; const ADD_LNG_LAT = 'ADD_LNG_LAT'; const UPDATE_RADIUS = 'UPDATE_RADIUS'; cons...
<h4>Lists</h4> <h5>Simple List</h5> <mdl-list> <mdl-list-item> <<API key>> Bryan Cranston </<API key>> </mdl-list-item> <mdl-list-item> <<API key>> Aaron Paul </<API key>> </mdl-list-item> <mdl-list-item> <<API key>> Bob Odenkirk </<API key>> </mdl-list-item> </mdl-...
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace RS.TimeLogger { [global::System.Runtime.CompilerServices.<API key>()] [global::System.CodeDom.Compiler.<API ke...
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', 'skatejs'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('skatejs')); } else { var mod = { exports: {} }; ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIButton : MonoBehaviour { [SerializeField] private GameObject targetObject; [SerializeField] private string targetMessage; public Color highlightColor = Color.cyan; public void OnMouseOver() { SpriteRend...
<footer class="main-footer"> <div class="pull-right hidden-xs"> </div> <strong>Orange TV.</strong> All rights reserved. </footer> <!-- Control Sidebar --> <!-- /.control-sidebar --> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar <div class="...
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace Neo.Properties { using System; <summary> A strongly-typed resource class, for looking up localized strings...
# Velocity Library last modified: 5/1/2019 9:00 AM. A reusable library in Velocity for Cascade with examples. This is the code base the Upstate team use to implement our Brisk site. The other part of the Upstate library: https://github.com/drulykg/Cascade-CMS/tree/master/_brisk A note about filenames. All files whose f...
using Newtonsoft.Json; using System.Collections.Generic; namespace EaToGliffy.Gliffy.Model { public class GliffyParentObject : GliffyObject { [JsonProperty(PropertyName = "children")] public List<GliffyObject> Children { get; set; } } }
#include "<API key>.h" #include <cassert> #include <stdexcept> #include "Common/StringTools.h" using Common::JsonValue; using namespace CryptoNote; namespace CryptoNote { std::ostream& operator<<(std::ostream& out, const <API key>& enumerator) { out << enumerator.root; return out; } } namespace { template <typename...
# Be sure to restart your server when you modify this file. Refinery::Application.config.session_store :cookie_store, :key => '_skwarcan_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rake...
function base64Encode(input) { var keyStr = "ABCDEFGHIJKLMNOP" + "QRSTUVWXYZabcdef" + "ghijklmnopqrstuv" + "wxyz0123456789+/" + "="; var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = input[i++]; chr2 = input[i++]; chr3 = i...
<?php namespace ShinyDeploy\Domain\Database; use ShinyDeploy\Core\Crypto\PasswordCrypto; use ShinyDeploy\Core\Helper\StringHelper; use ShinyDeploy\Exceptions\DatabaseException; use ShinyDeploy\Exceptions\<API key>; use ShinyDeploy\Traits\CryptableDomain; class ApiKeys extends DatabaseDomain { use CryptableDomain; ...
require File.dirname(__FILE__) + '/../spec_helper' describe "Standard Tags" do dataset :users_and_pages, :file_not_found, :snippets it '<r:page> should allow access to the current page' do page(:home) page.should render('<r:page:title />').as('Home') page.should render(%{<r:find url="/radius"><r:title /...
class CreateMappableMaps < ActiveRecord::Migration def change create_table :mappable_maps do |t| t.string :subject t.string :attr t.string :from t.string :to t.timestamps end end end
<!DOCTYPE HTML PUBLIC "- <html> <head> <META http-equiv="Content-Type" content="text/html; charset=ASCII"> <link rel="stylesheet" href="style.css" type="text/css"> <title>MXML Only Components - Adobe Flex 2 Language Reference</title> </head> <body class="classFrameContent"> <h3>MXML Only Components</h3> <a href="mxml/b...
LinkLuaModifier("<API key>", "heroes/cleric/cleric_modifiers.lua", <API key>) LinkLuaModifier("<API key>", "heroes/cleric/cleric_modifiers.lua", <API key>) LinkLuaModifier("<API key>", "heroes/cleric/cleric_modifiers.lua", <API key>) LinkLuaModifier("<API key>", "heroes/cleric/cleric_modifiers.lua", <API key>) function...
export function mockGlobalFile() { // @ts-ignore global.File = class MockFile { name: string; size: number; type: string; parts: (string | Blob | ArrayBuffer | ArrayBufferView)[]; properties?: FilePropertyBag; lastModified: number; constructor( ...
package net.talayhan.android.vibeproject.Controller; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.Bundle; import android.provide...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Marionette Components</title> </head> <body> Marionette View Test <script src='../build/view.js'></script> </body> </html>
<?php namespace Oro\Bundle\ApiBundle\Processor\Shared\Rest; use Oro\Bundle\ApiBundle\Metadata\RouteLinkMetadata; use Oro\Bundle\ApiBundle\Processor\Context; use Oro\Bundle\ApiBundle\Provider\ResourcesProvider; use Oro\Bundle\ApiBundle\Request\<API key> as ApiDoc; use Oro\Bundle\ApiBundle\Request\ApiAction; use Oro\Bund...
const path = require('path'), fs = require('fs'), glob = require('glob'), pug = require('pug'), stylus = require('stylus'), nib = require('nib'), autoprefixer = require('autoprefixer-stylus'), {rollup} = require('rollup'), rollupPluginPug = require('rollup-plugin-pug'), rollupPluginResolve = require...
package org.xcolab.client.contest.pojo; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import org.xcolab.client.contest.pojo.tables.pojos.<API key>; @JsonDeserialize(as = <API key>.class) public interface <API key> { Long getId(); void setId(Long id); Long getParent(); void setParent(...
<!DOCTYPE html> <html dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Text Editor</title> <link href="favicon.ico" rel="shortcut icon"> </head> <body spellcheck="false"> <p style=" background: #ffa; border: 1px dashed; margi...
module ActiveWarehouse #:nodoc: # Class that supports prejoining a fact table with dimensions. This is useful if you need # to list facts along with some or all of their detail information. class PrejoinFact # The fact class that this engine instance is connected to attr_accessor :fact_class delegate ...
from array import array import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.tree import <API key> from sklearn.ensemble import AdaBoostClassifier from sklearn.metrics import <API key>, roc_auc_score, roc_curve from sklearn import tree import cPickle data = np.load('/Users/musthe...
layout: default og_type: article <article class="post grid u-pad-both pjax-animate"> <section class="grid__row"> <span class="post__date typography__mono">{{ page.date | date: "%-d %B %Y" }}</span> {{ content }} </section> </article> {% if page.comments != Nil %} {% assign showComments = pag...
package utils; import java.io.*; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java....
import { onUnexpectedError } from 'vs/base/common/errors'; import { IDisposable } from 'vs/base/common/lifecycle'; import { URI, UriComponents } from 'vs/base/common/uri'; import { EditOperation } from 'vs/editor/common/core/editOperation'; import { Range } from 'vs/editor/common/core/range'; import { ITextModel } from...
// This file was generated, please do not edit it directly. using MS.Internal; using MS.Internal.KnownBoxes; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Windows; using System.Windows.Markup; using System.Windows.Media.Anim...
'use strict'; const Hoek = require('hoek'); exports.plugin = { register: async (plugin, options) => { plugin.ext('onPreResponse', (request, h) => { try { var internals = { devEnv: (process.env.NODE_ENV === 'development'), meta: options.meta...
'use strict'; //Customers service used to communicate Customers REST endpoints angular.module('customers') .factory('Customers', ['$resource', function($resource) { return $resource('customers/:customerId', { customerId: '@_id' }, { update: { method: 'PUT' } ...
#pragma once char separator; #ifdef _WIN32 #define DIR_SEPARATOR '\\' #else #define DIR_SEPARATOR '/' #endif #include <string> #include <algorithm> using namespace std; class PathUtil{ public: /*A small function to extract FileName from File Path C:/File.exe -> File.exe */ string static extractFileName...
/* some devices call home before accepting a wifi access point. Spoof those responses. */ var path = require('path'); exports.load = function(server, boatData, settings) { var endpointMap = [ {'route': '/kindle-wifi/wifiredirect.html', 'responseFile': 'kindle.html'} , {'route': '/kindle-wifi/wifist...
# <TwitterConsumerkey> To start the project git clone https://github.com/klosorio10/ExamenFinalWebDev.git cd ExamenFinalWebdev cd ExamenFinal A simple boilerplate for a Meteor 1.4 Twitter streamer application with React. Uses the twitter [npm](https: export <TwitterConsumerkey>="yourCredentialsHere" export <TwitterCons...
USE [VipunenTK] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[<API key>]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[<API key>]( [id] [int] NOT NULL, [alkaa] [date] NOT NULL, [paattyy] [date] NOT NULL, [<API key>] [n...
# <API key> www.<API key>.hu
# Basics Toast is a Rack application that hooks into Ruby on Rails providing a REST interface for ActiveRecord models. For each model a HTTP interface can be configured. Using Toast's configuration DSL one declares which of its attributes are exposed, which are readable and/or writable using white lists. Web S...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using TestProjectFromCsv.ValidationSteps; namespace TestProjectFromCsv { public class Program { public static void Main(string[] args) { ...
class AlbumsController < <API key> respond_to :html, :xml, :json attr_reader :current_album_type, :author_name <API key> def index @albums = Album.by_type params[:album_type] respond_with(@albums) end def show <API key> get_author_name if @current_album_type.name.singularize == 'Picture'...
var koyomi = require('../..').create(); var format = koyomi.format.bind(koyomi); var eq = require('assert').equal; koyomi.startMonth = 1; eq(format(20150101, 'CC'), '1'); eq(format(20150101, 'CC>0'), '1st'); eq(format(20150102, 'CC>0'), '2nd'); eq(format(20150103, 'CC>0'), '3rd'); eq(format(20150104, 'CC>0'),...
# ImageHelper [![Version](https: [![License](https: [![Platform](https: [![Carthage compatible](https: Image Extensions for Swift 3.0 ![Sample Project Screenshot](https://raw.githubusercontent.com/melvitax/AFImageHelper/master/Screenshot.png?raw=true "Sample Project Screenshot") ## Usage To run the example project, clo...
import { apiGet, apiPut, apiDelete } from 'utils/api' import { flashError, flashSuccess } from 'utils/flash' import { takeLatest, takeEvery, call, put, select } from 'redux-saga/effects' import { filter, find, without, omit } from 'lodash' import { filesUrlSelector } from 'ducks/app' import { makeUploadsSelector } from...
using ShiftCaptain.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Security.Principal; using System.Web; using System.Web.Security; namespace ShiftCaptain.Infrastructure { public static class Authentication { public s...
# Angular.js Enterprise Edition Lazy Load Boilerplate > **TODO:** review and update This boilerplate (seed project, starting project) helps you build large scale [Angular.js](https: <!-- toc --> * [Overview](#overview) * [Installation Guide](#installation-guide) * [Prerequisites](#prerequisites) * [Use Guide](#use-gu...
;;; keydown-counter.asm -- Count keydown form P3.2 and outputs in P1 using LED ;; Author: Zeno Zeng <zenoofzeng@gmail.com> ;; Time-stamp: <2014-12-25 21:56:36 Zeno Zeng> ;;; Commentary: ;; Count keydown from P3.2 then ouputs using 8bit P1 (in LED) ;;; Code: ORG 0000H AJMP INIT ORG 0003H AJMP...
var self = module.exports; self = (function(){ self.debug = true; self.prefix = '/kaskade'; self.ssl = false; /*{ key: {PEM}, cert: {PEM} }*/ self.port = 80; self.host = '0.0.0.0'; self.onConnectionClose = new Function(); self.redis = false; /*...
# encoding: utf-8 require_relative "qipowl/version" require_relative "qipowl/constants" require_relative "qipowl/core/mapper" require_relative "qipowl/core/ruler" require_relative "qipowl/core/bowler" require_relative "qipowl/bowlers/html" require_relative "qipowl/bowlers/i_sp_ru" #require_relative "qipowl/bowlers/cmd"...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Retina</title> <link rel="stylesheet" href="http://pic.lvmama.com/min/index.php?f=/styles/v6/header_new.css"> <link rel="stylesheet" href="css/monokai-sublime.css"> <link rel="stylesheet" href="css/docs.css"> <link rel="styles...
// AppDelegate.h // testspinner #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <<API key>> @property (strong, nonatomic) UIWindow *window; @end
<html><body> <h4>Windows 10 x64 (19041.264)</h4><br> <h2>_PPM_IDLE_STATES</h2> <font face="arial"> +0x000 InterfaceVersion : UChar<br> +0x001 IdleOverride : UChar<br> +0x002 <API key> : UChar<br> +0x003 <API key> : UChar<br> +0x004 <API key> : UChar<br> +0x005 <API key> : UChar<br> +0x006 IdleDu...
# coding=utf-8 from setuptools import setup from Cython.Build import cythonize setup( name="cyfib", ext_modules=cythonize('cyfib.pyx', compiler_directives={'embedsignature': True}), )
package org.eggermont.hm.cluster; import cern.colt.matrix.DoubleFactory1D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; public class ClusterFactory { private final DoubleMatrix2D x; private final DoubleMatrix1D blocks; private final DoubleMatrix1D vMin; private final D...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using SharpDeflate; using vtortola.WebSockets; using vtortola.WebSockets.Rfc6455; namespace RohBot { public sealed class WebSocketServer<TClient> : IDisposable where TClient : WebSocketClient, new() ...
/* eslint-disable no-undef */ const cukeBtnSubmit = '//button[@data-cuke="save-item"]'; const cukeInpSize = '//input[@data-cuke="size"]'; const cukeInpTitle = '//input[@data-cuke="title"]'; const cukeInpContent = '//textarea[@data-cuke="content"]'; const cukeSize = '//x-cuke[@id="size"]'; const cukeTitle = '//x-cuke[...
<!DOCTYPE html> <?php include("initial-header.php"); include("config.php"); include('swift/lib/swift_required.php'); $error = ""; if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); ...
package net.spy.digg.parsers; import java.io.IOException; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import net.spy.digg.Story; /** * Parse a stories response. */ public class StoriesParser extends TimePagedItemParser<Story> { @Override protected String getRootE...
require "../test_helper" require "rorschart/data/rorschart_data" module Rorschart class TestPivotSeries < Minitest::Unit::TestCase def test_pivot # Given data = [ {"collector_tstamp"=> Date.parse("2013-11-02"), "series" => "A", "count"=> 1}, {"collector_t...
#define <API key> #include "core/filament.h" #include "locking/fil_lock.h" typedef struct _pyfil_lock { PyObject_HEAD int locked; FilWaiterList waiters; } PyFilLock; typedef struct _pyfil_rlock { PyFilLock lock; /* must remain first. */ uint64_t owner; uint64_t count; } PyFilRLock; static PyFilL...
package de.thomas.dreja.ec.musicquiz.gui.dialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import de.thomas.dreja.ec.musicquiz.R; import de.thomas.dreja.ec.musicquiz.ctrl.Pl...
/* * Panel */ .panel { margin: 5rem auto; max-width: 64rem; background: $white; border: 0.4rem solid $black; box-shadow: 5px 5px 0px $black; &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } .panel-header { padding: 2rem; background: $se...
<API key> ========================== A native Angular multi select tree. No JQuery. ![BrowserStack Status](https: # Demo Page: [Demo] (http: # Features: Very Easy to Use: - Plug and Play component - Tree List - Databind - Filter/NoFilter by search textbox - Checkbox - Select one only or Multiselect - NO JQuery # Design...
// DNTag.h // DNTagView #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> <API key> @interface DNTag : NSObject @property (nonatomic, copy) NSString *text; @property (nonatomic, copy) NSAttributedString *attributedText; @property (nonatomic, strong) UIColor *textColor; @property (nonatomic, strong) UIColor *b...
#pragma once #include "FtInclude.h" #include <string> namespace ft { class Library { public: Library(); ~Library(); FT_Library library = nullptr; Library(const Library&) = delete; Library(Library&&) = delete; Library& operator = (const Library&) = delete; Library& operator=(Library&&) = dele...
package com.github.fhtw.swp.tutorium.guice; import com.github.fhtw.swp.tutorium.composite.Leaf; import com.github.fhtw.swp.tutorium.composite.LeafTypeProvider; import com.github.fhtw.swp.tutorium.reflection.AnnotatedTypeFinder; import org.reflections.Configuration; import javax.inject.Inject; import java.util.Set; publ...
#!/bin/sh tokenizer() { STRNG="${1}" DELIM="${2}" while : do NEW="${STRNG%${DELIM}}" while case "$NEW" in *${DELIM}*);; *)break;; esac do NEW="${NEW%${DELIM}*}" done TOKEN="${NEW%${DELIM}*}"...
// <API key>.h // MH4U Dex #import <UIKit/UIKit.h> @class Region; @interface <API key> : UIViewController @property (nonatomic, strong) Region *region; @end
# cooper document with one key example class RevisionedObject include Cooper::Document revision_field :key, type: String end describe 'Updating documents' do let(:object) do RevisionedObject.new end it 'works like Mongoid::Document' do object.key = 'value0' object.save object.update_attributes...
<?php namespace BackendBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assertContains('Hello World', $client...
# AIT_MAIKON <br> wiki
using System; using System.Net; using Microsoft.Extensions.Logging; namespace CakesNoteProxy { public static class NoteProxyConfigure { public static ILoggerFactory LoggerFactory; public static class NoteApi { public static string SiteFqdn { get; private set; } pu...
module HealthSeven::V2_5 class Rq1 < ::HealthSeven::Segment # Anticipated Price attribute :anticipated_price, St, position: "RQ1.1" # Manufacturer Identifier attribute :<API key>, Ce, position: "RQ1.2" # Manufacturer's Catalog attribute :<API key>, St, position: "RQ1.3" # Vendor ID attribute :vendor_id,...
using System; using Lunt.IO; namespace Lunt { <summary> Represent a dependency to an asset. </summary> public sealed class AssetDependency { private readonly FilePath _path; private readonly long _fileSize; private readonly string _checksum; <summary> Gets the...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "liste.h" #include "atl.h" #include "es.h" #define FILE_ATLETI "atleti.txt" #define FILE_ESERCIZI "esercizi.txt" #define MAX_NOME 25 #define LUNG_CODICE 5 #define non_strutturato ;; #ifdef _WIN32 #define F_CLEAR "cls" #else #...
#include "ofQuickTimeGrabber.h" #include "ofUtils.h" #if !defined(TARGET_LINUX) && !defined(<API key>) #ifdef <API key> static ComponentResult frameIsGrabbedProc(SGChannel sgChan, short nBufferNum, Boolean *pbDone, long lRefCon); static ComponentResult frameIsGrabbedProc(SGChannel sgChan, short nBufferNum, Boolean...
# <API key>: true require 'spec_helper' describe 'logging' do it "should have a logger" do expect(Dummy).to respond_to(:logger) end it "should be able to log debug methods" do expect(Dummy.logger).to respond_to(:debug) end it "should be settable" do expect(Dummy).to respond_to(:logger=) log = ...
// RepeatExpression.h // iLogo #import "ScopedExpression.h" //#import "Expression.h" @interface RepeatExpression : ScopedExpression { Expression *variableExpression; NSMutableArray *commandExpression; } - (void)convert:(NSMutableArray*)commandList; - (NSMutableArray*)evaluate:(TurtleCommand*)lastTurtleCommand...
#include "ofp/tablestatus.h" #include "ofp/writable.h" using namespace ofp; bool TableStatus::validateInput(Validation *context) const { size_t length = context->length(); if (length < sizeof(TableStatus) + sizeof(TableDesc)) { log_debug("TableStatus too small", length); return false; } size_t remaining...
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Post It App</title> <link rel="apple-touch-icon" sizes="57x57" href="/icon2015/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/icon2015/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" hre...
#!/bin/sh # CYBERWATCH SAS - 2017 # Security fix for USN-2950-5 # Operating System: Ubuntu 14.04 LTS # Architecture: x86_64 # - samba:2:4.3.9+dfsg-0ubuntu0.14.04.3 # Last versions recommanded by security team: # - samba:2:4.3.11+dfsg-0ubuntu0.14.04.4 # CVE List: # - CVE-2015-5370 # - CVE-2016-2110 # - CVE-201...
require 'delegate' module Bizflow module BusinessModel class SimpleWrapper < SimpleDelegator def self.wrap(item) new item end def self.wraps(items) res = items.map do |item| new item end res end end end end
class Solution { public int solution(int[] A) { int[] temArray = new int[A.length + 2]; for (int i = 0; i < A.length; i++) { temArray[A[i]] = 1; } for (int i = 1; i < temArray.length + 1; i++) { if(temArray[i] == 0){ ...
function EditMovieCtrl(MovieService,$stateParams) { // ViewModel const edit = this; edit.title = 'Edit Movies' + $stateParams.id; edit.back = function(){ window.history.back() } edit.checker = function(bool){ if(bool=='true') return true; if(bool=='false') return false; } edit.cl...
# CGGameCircle Marmalade Lua Binding for Game Circle
/** * @fileoverview Rule to require or disallow line breaks inside braces. * @author Toru Nagashima */ "use strict"; // Requirements let astUtils = require("../ast-utils"); // Helpers // Schema objects. let OPTION_VALUE = { oneOf: [ { enum: ["always", "never"] }, { ...
import random, math import gimp_be #from gimp_be.utils.quick import qL from gimp_be.image.layer import editLayerMask from effects import mirror import numpy as np import UndrawnTurtle as turtle def brushSize(size=-1): """" Set brush size """ image = gimp_be.gimp.image_list()[0] drawable = gimp_be.pd...
import {Option} from "./option"; export class HelpOption extends Option { constructor() { super(); this.shortName = 'h'; this.longName = 'help'; this.argument = ''; } }
import * as React from 'react'; import { createIcon } from '../Icon'; export const ShieldIcon = createIcon( <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />, 'ShieldIcon' );
"use strict"; var <API key> = Math.pow(2, 53); var util = { uuid: function(){ return Math.ceil(Math.random() * <API key>); } }; module.exports = util;
<?php namespace ToyLang\Core\Lexer; use ToyLang\Core\Lexer\Token\Token; use ToyLang\Core\Lexer\Token\TokenType; interface Lexer { /** * @param TokenType $tokenType * @return $this */ public function addTokenType(TokenType $tokenType); /** * @param TokenType[] $tokenTypes * @return $...