answer
stringlengths
15
1.25M
(function ($) { if (!$.zenpen) { return; } var api = $.zenpen.api; $.zenpen.actions.url = { validNode: function (node) { return !!node.closest('a').length; }, create: function (options) { var btn = api.createButtonFactory('url useicons', ''...
-- aka combobox in java/win32 -- also menubar : multiple dropdown
const mockMark = jest.fn(); const mockUnmark = jest.fn(); jest.mock('mark.js', () => () => ({ mark: mockMark, unmark: mockUnmark, })); import { MarkerService } from '../MarkerService'; describe('Marker service', () => { let marker: MarkerService; const element = document.createElement('span'); beforeEach(() =...
# a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # included in ...
'use strict'; var assert = require('assert'); var fs = require('fs'); var path = require('path'); describe('<API key>', function() { describe('icon-sprite', function() { function compare(expected, tmp, done) { var baseExpected = __dirname + '/expected/icon-sprite', baseTmp = __di...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-odd-order: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap...
ifeq ($(CC),cc) CC = clang endif ifeq ($(CC),gcc) CC = clang endif CC ?= clang ifeq ($(V),1) Q = else Q = @ endif MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) SDN_SENSOR_BASE ?= $(shell dirname $(MAKEFILE_DIR)) RTE_SDK ?= $(SDN_SENSOR_BASE)/external/dpdk RTE_TARGET ?= <A...
require "test_helper" class Admin::BidsControllerTest < ActionController::TestCase setup :<API key> def test_index opts = {:controller => "admin/bids", :action => "index"} assert_routing("/admin/bids", opts) get(:index) assert_response(:success) assert_template("admin/bids/index") assert_not...
package goginjsonrpc import ( "fmt" "encoding/json" "io/ioutil" "net/http" "reflect" "github.com/gin-gonic/gin" ) func jsonrpcError(c *gin.Context, code int, message string, data string, id string) { c.JSON(http.StatusOK, map[string]interface{}{ "result": nil, "jsonrpc": "2....
package com.ftchinese.jobs.common import org.eclipse.jetty.server.handler.gzip.GzipHandler import org.eclipse.jetty.server.handler.{ContextHandler, <API key>} import org.eclipse.jetty.server.{Server, ServerConnector} import scala.collection.mutable.ArrayBuffer class HttpServer(conf: JobsConfig) extends Logging { pr...
include_directories(${GIT_ROOT}/aws-sdk-cpp/<API key>/include)
<!DOCTYPE html> <html> <head></head> <body style="font:12px Consolas; margin:0;"> <div id="p1" style="background:gold; width:50px; height:50px; min-width:100px; min-height:100px; padding:10px;"> <div id="c1" style="width:100%; height:100%; background:plum;"></div> </div> <br> <div id="p2" styl...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>subst: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
//~ name a744 alert(a744); //~ component a745.js
// BlackHoleDemo.h // Drawing #ifndef <API key> #define <API key> #include "PhysicsDemo.h" #include "ForceGenerator.h" class BlackHoleDemo : public PhysicsDemo { public: BlackHoleDemo(); ~BlackHoleDemo(); //void update(); void mouseMoved(int x, int y); void mouseEvent(int button, int state, int x,...
'use strict'; var Q = require('q') , _ = require('underscore'); exports.defaults = function () { return { storage: {} }; }; exports.mixin = { /** * Converts `arguments` to a key to be stored. */ toKey: function () { return _.toArray(arguments); }, contains: function () { return this.containsKey(...
<?php namespace Baghayi\Skyroom\Factory; use Baghayi\Skyroom\Room as RoomItself; use Baghayi\Skyroom\User; use Baghayi\Skyroom\Collection\Users; use Baghayi\Skyroom\Exception\AlreadyExists; use Baghayi\Skyroom\Request; use Baghayi\Skyroom\Exception\DuplicateRoom; final class Room { private $request; public func...
capstone.controller("RegisterCtrl", function($scope,$http,AuthFactory,$location,user1){ // $(".button-collapse").sideNav(); $http.get(`states.json`) .then((data)=>{ $scope.stateName = data.data console.log($scope.stateName) $('input.autocomplete').autocomplete({ data: $scope.stateName, limit: 10 // The max...
<?php if(time() > 1346310303){return null;} return array ( 2 => array ( 4 => array ( 0 => array ( 'id' => 3, 'type' => 'document', 'contentType' => 'text/html', 'pagetitle' => 'Гастроэнтерология', 'longtitle' => '', 'description' => 'Гастроэнтероло...
<!DOCTYPE html> <html> <head> <title>movies of the 80's</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<API key>+PmSTsz/K68vbdEjh4u" crossorigin="...
// # Ghost Configuration // Setup your Ghost install for various environments var path = require('path'), config; config = { // ### Production // When running Ghost in the wild, use the production environment // Configure your URL and mail settings here production: { url: 'http://my-ghost-bl...
<?php namespace AppBundle\Service\Crud\Strategy; /** * @author Alexandr Sibov<cyberdelia1987@gmail.com> */ trait ResolverAwareTrait { /** * @var ResolverInterface */ private $resolver; public function setStrategyResolver(ResolverInterface $resolver) { $this->resolver = $resolver; ...
(function(){ angular .module('users') .controller('UserController', [ 'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q', UserController ]); /** * Main Controller for the Angular Material Starter App * @param $scope * @param $mdSidenav * @param avatarsSe...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-pcuic: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
# ConfigBot Welcome to config_bot gem! This is a ruby command-line bot which will guide you to create a config file which can be later used by any environment. ## Installation Add this line to your application's Gemfile: ruby gem 'config_bot' And then execute: $ bundle Or install it yourself as: $ gem install c...
import Router = require('koa-router'); import * as schema from './schema'; import * as routes from './routes'; import validator from '../../utils/validator'; const router = new Router({ prefix: '/toolkit' }); router.get('/example', routes.example); router.post('/upload', validator(schema.upload), routes.upload); export...
package io.mattw.youtube.commentsuite.util; import java.awt.*; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.<API key>; import java.io.IOException; import java.util.List; import java.util.stream.Collectors; pub...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materi...
package com.aol.cyclops.guava; import com.aol.simple.react.stream.traits.FutureStream; import com.google.common.collect.FluentIterable; public class FromSimpleReact { public static <T> FluentIterable<T> fromSimpleReact( FutureStream<T> s) { return FluentIterable.from(s); } }
<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>...
#import <Flutter/Flutter.h> @interface AdbflibPlugin : NSObject<FlutterPlugin> @end
layout: post title: "" date: 2016-3-21 9:11:11 categories: published: false 22 iPhone iPad CareKit [][1] ![]({{ site.url }}/assets/img/apple-energy.png) [1]: http:
<?php namespace Nijens\FailureHandling; use Nijens\Utilities\<API key>; /** * FailureCatcher * * @author Niels Nijens <nijens.niels@gmail.com> * @package Nijens\Failurehandling **/ class FailureCatcher { /** * The failure handler instance implementing <API key> * * @access protected * @var...
namespace Farmhand.Installers.Patcher.Injection.Components.Modifiers { // ReSharper disable StyleCop.SA1600 using System; using System.ComponentModel.Composition; using Farmhand.Installers.Patcher.Cecil; using Farmhand.Installers.Patcher.Injection.Components.Hooks; using Farmhand.Installers.Patc...
<!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.8"/> <title>Apprecie: library/Model/ApprecieModelBase.php Source File</title> <link href="tabs.css" rel=...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>elpi: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
<?php namespace Superjobs\HomeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Superjobs\HomeBundle\Entity\CVtheque; use Superjobs\HomeBundle\Form\CVthequeType; use Superjobs\HomeBundle\Entity\Category; use Superjobs\HomeBundle\Form\CategoryT...
local module = {} function module.ctor(env,loader) env.loader = loader end return module
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
<?php namespace BjyAuthorize\Service; use BjyAuthorize\View\<API key>; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\<API key>; /** * Factory responsible of instantiating {@see \BjyAuthorize\View\<API key>} * * @author Marco Pivetta <ocramius@gmail.com> ...
require 'spec_helper' describe Micropost do let(:user) { FactoryGirl.create(:user) } before { @micropost = user.microposts.build(content: "Lorem ipsum") } subject { @micropost } it { should respond_to(:content) } it { should respond_to(:user_id) } it { should respond_to(:user) } its(:user) { should eq use...
// ViewController.h // DSCrashDemo #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
<?php namespace PHPExiftool\Driver\Tag\FujiFilm; use JMS\Serializer\Annotation\ExclusionPolicy; use PHPExiftool\Driver\AbstractTag; /** * @ExclusionPolicy("all") */ class Face7Name extends AbstractTag { protected $Id = 'Face7Name'; protected $Name = 'Face7Name'; protected $FullName = 'FujiFilm::FaceRecInf...
var gulp = require('gulp'), concat = require('gulp-concat'), compass = require('gulp-compass'), notify = require('gulp-notify'); function swallowError(error) { this.emit('end'); } function reportError(error) { notify.onError().apply(this, arguments); this.emit('end'); } // combin...
import { <API key>, VirtualAudioNode } from "../types"; export default abstract class <API key> { public readonly node!: string | <API key>; public cannotUpdateInPlace(newVirtualAudioNode: VirtualAudioNode): boolean { return newVirtualAudioNode.node !== this.node; } }
#!/usr/bin/python # -*- coding: utf-8 -*- # pylint: disable=invalid-name from __future__ import absolute_import from math import acos, cos, pi, radians, sin, sqrt import auttitude as at import numpy as np def normalized_cross(a, b): """ Returns the normalized cross product between vectors. Uses numpy.cross(...
#!/usr/bin/env bash set -e function hr { printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - } while getopts ":u" opt; do case $opt in u) docker pull blengerich/genamap || { echo "failed to pull the image" >&2; exit 1; } hr echo 'Pulled the GenAMap docker image' ...
c c c Gaussian wake model applied to offshore wind farms (WindFarm object) c by Juan P. Murcia <jumu@dtu.dk> c c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for c wind-turbine wakes. Renewable Energy, 70, 116-123. c c c c get_RW(x,D,CT,ks) c c Computes the wake radius at a location c c Inputs c c x...
{% extends path+"/_layout-case-action.html" %} {% block citizen_content %} {{ data.nuggets | log }} <p class="no-kdBar"><a href="javascript: history.go(-1)" class="link-back">Back</a></p> <h1 class="heading-large mt10 "> <span class="heading-secondary">Mental state examination</span> Insight</h1> <div class...
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}> {% for column in widget.columns %} <span class="icon-admin {{ column }}"></span> {% endfor %} <br/> {% include "django/forms/widgets/input.html" %} {{ widget.label }}</label>
# <API key>: true require 'spec_helper' module Pathway describe Result do describe ".success" do let(:result) { Result.success("VALUE") } it "returns a Success object with passed value", :aggregate_failures do expect(result).to be_a(Result::Success) expect(result.value).to eq("VALUE") ...
package dao; import java.util.List; import org.apache.ibatis.session.SqlSession; import factory.FactoryService; import vo.Bbs_CommmVo; import vo.Board2Vo; public class BoardDao2 { private static BoardDao2 dao; public static synchronized BoardDao2 getDao(){ if ( dao == null ) dao = new BoardDao2(); ...
package com.freteplanejado.entity; /** * * @author 43596980895 */ public class Frete { private int id; private String origem; private String destino; private float altura; private float largura; private float profundidade; private float peso; private String observacoes; public Fre...
module.exports = require( "./src/LRUCache" );
Kloj le Grand ========== Clojure bot for [vindinium](http://vindinium.org) ## Usage $ lein repl clojure > ; (re)load the code > (require 'vindinium.core :reload) > ; run a training game with 80 turns > (vindinium.core/-main "training" secretkey 80) > ; run 50 arena games > (vindinium.core/-main "arena" secretkey 50)
<html> <head> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> ...
package com.martijndashorst.euler; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.junit.Test; /** * The sequence of triangle numbers is generated by adding the natural numbers. * So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first * ten ter...
'use strict'; angular.module('sportzCast') .controller('FooterCtrl', function ($scope) { $('#footer').hide(); $(function () { $(window).scroll(function () { // set distance user needs to scroll before we start fadeIn if ($(this).scrollTop() > 500) { $('...
# Changelog ## Unreleased - Removed `kp get` and `kp set` commands, basically we removed the global config. Config can only be done via `kanpai.json` or the `kanpai` field in `package.json`. ## 0.10.1 - Support `HTTPS` git URL. ## 0.10.0 - Move `npm publish` and `kp gh-release` to a standalone command: `kp release`, no...
package ru.otus.l51.tests; @SuppressWarnings("unused") public class TestClass { private int a = 0; private String s = ""; public TestClass() { } public TestClass(Integer a) { this.a = a; } public TestClass(Integer a, String s) { this.a = a; this.s = s; } int g...
{% extends "adventure/views/templates/layout.html" %} {% block content %} <div class="post"> <div class="post_inner"> <div class="the_post format-text"> <ul> {% for adventure in adventures %} <li> <a href="/adventure/{{ adventure.id }}">{{ adventure.title }}</a> <div class="<API key>...
<?php namespace Blogger\BlogBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\<API key>\Configuration\Route; use Sensio\Bundle\<API key>\Configuration\Method; //\Blogger\BlogBundle\Entity\Client class ClientController extends Controller{ /** * Show one client. ...
<?php namespace mle86\Value; interface Value { public function __construct($rawValue); public function value(); }
package main import ( "fmt" "log" "net" "os" "github.com/kennylevinsen/g9p" "github.com/kennylevinsen/g9ptools/fileserver" "github.com/kennylevinsen/g9ptools/ramfs/ramtree" ) func main() { if len(os.Args) < 5 { fmt.Printf("Too few arguments\n") fmt.Printf("%s service UID ...
'use strict'; var connection = require('../test'); var Usuario = require('../../src/controllers/UsuarioController'); var sinon = require('sinon'); var assert = require('assert'); var request = require('request'); var response = { content: null, statusCode: 0, json: function(content){ this.content =...
#!/usr/bin/env ts-node import * as Path from 'path' import * as Fs from 'fs' import Ajv, { ErrorObject } from 'ajv' function handleError(error: string) { console.error(error) process.exit(-1) } function formatErrors(errors: ErrorObject[]): string { return errors .map(error => { const { dataPath, message...
<?php namespace TheScienceTour\DocumentBundle\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique as MongoDBUnique; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; use TheScienceTour\MediaBundle\V...
define([ ], function () { 'use strict'; return function (req, res, next) { function filterParams(req, action) { var paramsWhitelist = action.params, whitelistParam, paramValue, type, filteredParams = {}; // check all...
use std::env; use std::process; use minigrep::Config; fn main() { let args: Vec<String> = env::args().collect(); let config = Config::new(&args).unwrap_or_else(|err| { eprintln!("Problem parsing arguments: {}", err); process::exit(1); }); if let Err(e) = minigrep::run(config) { e...
#ifndef <API key> #define <API key> #include "gin/converter.h" #include "gin/function_template.h" namespace gin_util { template <typename T> bool SetMethod(v8::Local<v8::Object> recv, const base::StringPiece& key, const T& callback) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); a...
{% extends "images/base.html" %} {% block content %} <h2>{{ resource }}</h2> <p><strong>Tags: </strong> {% for tag in resource.tags.all %} <a href={% url 'tag' tag %}>{{ tag }}</a> {% endfor %} <p><strong>Similar Images: </strong> {% for resource in resource.tags.similar_objects %} <a href="{% url 'resource' resource.i...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - DoCoMo/2.0 P90liS(c100;TB;W20H10)</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Mate...
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SourceSchemaParser.DOTA2; using System; using System.Collections.Generic; using System.Reflection; namespace SourceSchemaParser.JsonConverters { internal class <API key> : JsonConverter { public override void WriteJson(JsonWriter writer, object va...
<!doctype html> <html lang="en-gb"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="robots" content="noindex, nofollow"> <!--[if lt IE 9]> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js">...
Express ES6 boilerplate ==================== [![Code Climate](https: Just simple express server with ES6 syntax
<?php namespace Gossamer\Tehuti\Routing; /** * ServerContext * * @author Dave Meikle */ class ServerContext extends Context { }
require 'test_helper' class ActsAsSurveyTest < ActiveSupport::TestCase # Called before every test method runs. Can be used # to set up fixture information. def setup # Do nothing end # Called after every test method runs. Can be used to tear # down fixture information. def teardown # Do nothing ...
<?php //PHP //Contains two functions that dynamically creates javascript functions // that returns the data for each calculation as an array //If the calculation is not run the created function returns nil Header("content-type: application/x-javascript"); include_once "PEATSA/Database/InterfaceK...
from django.contrib import admin # Register your models here. from rcps.models import * class <API key>(admin.TabularInline): model = Ingredient.recipes.through verbose_name = 'Ингредиент' verbose_name_plural = 'Ингредиенты' class EquipmentInline(admin.TabularInline): model = Equipment.equipment_recipes...
var gulp = require('gulp'), webserver = require('gulp-webserver'), htmlreplace = require('gulp-html-replace'); //gulp.task('default', function() { // gulp.run('watcher', 'webserver'); gulp.task('webserver', function() { gulp.src('build') .pipe(webserver({ livereload: true }));...
# Stop and remove swift containers and image if any docker stop SWIFT_AIO docker rm SWIFT_AIO docker rm SWIFT_DATA #docker rmi swift-aio
<!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.6"/> <title>FTGL: FTOutlineGlyph.cpp Source File</title> <link href="tabs.css" rel="stylesheet" type="te...
# 2017-11-08 - Release 0.1.7 - Add passing in agent user id and group id # 2017-10-09 - Release 0.1.6 - Change resource name for group to avoid collisions - Add ulimit settings to init template # 2017-05-17 - Release 0.1.2 - merge PR from [Jess Reynolds](https://github.com/knuedge/bamboo_agent/pull/1) - add ability to ...
<reference types="chai" /> declare module "chai-bytes" { function chaiBytes(chai: any, utils: any): void; export = chaiBytes; } declare namespace Chai { // For BDD API interface Assertion extends LanguageChains, NumericComparison, TypeComparison { equalBytes(expected: string | Array<number> | Ar...
<?php namespace TemperatureBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Equipement * * @ORM\Table(name="equipement") * @ORM\Entity(repositoryClass="TemperatureBundle\Repository\<API key>") */ class Equipement { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id ...
<?php namespace AppBundle\Admin; use Sonata\UserBundle\Admin\Entity\UserAdmin as BaseUserAdmin; class UserAdmin extends BaseUserAdmin { /** * {@inheritdoc} */ protected $datagridValues = array( '_page' => 1, // display the first page (default = 1) '_sort_order' => 'ASC', // ...
using System; using System.IO; using Aspose.Pdf; using Aspose.Pdf.Facades; namespace Aspose.Pdf.Examples.CSharp.AsposePDF.Images { public class CGMImageToPDF { public static void Run() { // ExStart:CGMImageToPDF // The path to the documents directory. string d...
<head> <meta charset="utf-8"> <title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme.title }}</title> <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme.description }}{% endif %}"> <meta name="view...
#!/usr/bin/perl package GrabzItPDFOptions; use GrabzIt::GrabzItBaseOptions; @ISA = qw(GrabzItBaseOptions); sub new { my $class = shift; my $self = GrabzItBaseOptions->new(@_); $self->{"browserWidth"} = 0; $self->{"includeBackground"} = 1; $self->{"pagesize"} = "A4"; $self->{"orientation"} = "Por...
#include "HelloWorldScene.h" #include ".\Scene\LevelScene.h" #include ".\Entity\Umbrella.h" #include "SimpleAudioEngine.h" #include ".\Scene\SceneManager.h" USING_NS_CC; Scene* HelloWorld::createScene() { // 'scene' is an autorelease object auto scene = Scene::create(); // 'layer' is an autorelease object ...
module Lesson08 where -- Now let's have some real fun: a two player, online five card stud game, -- with a full betting system. The betting system is actually the biggest -- addition versus what we've done previously, so most of our attention -- will be focused on that. Most of the other code will be very similar -- to...
var React = require('react'); var Contact = require('./contact/app-catalog'); var Cart = require('./cart/app-cart'); var Router = require('<API key>'); var CatalogDetail = require('./product/app-catalogdetail'); var Template = require('./app-template.js'); var Locations = Router.Locations; var Location = Router.Locati...
package com.project.library.utils; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import org.springframework.stereotype.Component; @Component public class MyDateUtil { public Date calculateDate(String currentDate, in...
<?php namespace SimpleREST\Legacy\Database; /* Security check */ if(!defined('REST_PHP')) { die("Direct access not permitted\n"); } /** Database interface */ interface iDatabaseTable { public function __construct (iDatabase $db, $name); public function setDatabase (iDatabase $db); public function setNam...
<?php namespace HiddeCo\HttpAdapter\Adapters; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\<API key> as SymfonyDispatcher; use Symfony\Component\EventDispatcher\<API key>; /** * This adapter provides a Laravel integration for applications * using the Symfony <API key>. * * It p...
class UsersController < <API key> <API key> def index end def update if params[:admins].present? @new_admins = User.not_admins.where(:id => params[:admins]) @new_admins.map {|user| user.admin = true} @no_longer_admins = User.admins.where('id NOT IN (?)', params[:admins]) @no_longer_a...
"use strict"; var gulp = require('gulp'); var clean = require('gulp-clean'); var cleanTask = function() { return gulp.src('dist', { read: false }) .pipe(clean()); }; gulp.task('clean', cleanTask); module.exports = cleanTask;
import os class Config(object): DEBUG = False TESTING = False CSRF_ENABLED = True SECRET_KEY = "super_secret_key" <API key> = os.environ['DATABASE_URL'] class ProductionConfig(Config): DEBUG = False SECRET_KEY = os.environ['SECRET_KEY'] class DevelopmentConfig(Config): DEVELOPMENT = True...
<div id="about"> <header class="twelve columns"> <h1>My background</h1> <p class="opening">I'm a programmer, entrepreneur, speaker, designer, and trail runner among other things. As an engineer I've worked across the stack in backend, web, and mobile. I live and work in Los Angeles and studied at UC...
var scroller = angular.module("scroller", ["ngTouch", "angular-websql"]);