code
stringlengths
4
1.01M
Template.postSubmit.onCreated(function() { Session.set('postSubmitErrors', {}); }); Template.postSubmit.helpers({ errorMessage: function(field) { return Session.get('postSubmitErrors')[field]; }, errorClass: function (field) { return !!Session.get('postSubmitErrors')[field] ? 'has-error' : ''; } }); ...
<?php // Text $_['text_sizechart'] = 'Größentabelle';
package ru.mephi.interpreter; import org.antlr.v4.runtime.tree.ParseTree; import java.math.BigInteger; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author Anton_Chkadua */ public class Scope { static Scope GLOBAL = new Scope(null); private Scope parent; private Map<Big...
# ServiceInfo.TryExcludeTag method Attempts to exclude a tag from service. ```csharp public bool TryExcludeTag(string tagName, out ServiceInfo service, out IReadOnlyList<ServiceDefinitionError> errors) ``` ## See Also * class [ServiceDefinitionError](../ServiceDefinitionError.md) * class [ServiceInfo](../Servi...
<?php return array ( 'id' => 'sec_e900_ver1_sub10', 'fallback' => 'sec_e900_ver1', 'capabilities' => array ( 'accept_third_party_cookie' => 'false', 'j2me_max_jar_size' => '700000', 'ajax_support_getelementbyid' => 'true', 'ajax_support_events' => 'true', ), );
<?php return array ( 'id' => 'dell_streak_7_ver1_suban32', 'fallback' => 'dell_streak_7_ver1', 'capabilities' => array ( 'device_os_version' => '3.2', ), );
<!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, initial-scale=1"> <meta name="author" content="Open Knowledge"> <meta name="description" content="The Global Open Data Index assesse...
#include <cstring> #include <iostream> #include <algorithm> #include "matcher.h" #include "edit.h" #include "char.h" #include "instrumentation.h" #define INIT_POS -1 #define __DEBUG__ false // the node represented by a given point #define node(p) (distances[(p)->j][(p)->i]) // the edit distance at a given point, from...
/*! * # Semantic UI 2.1.6 - Message * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Message *******************************/ .ui.message { position: relat...
<?php /* * This file is part of the Beloop package. * * Copyright (c) 2016 AHDO Studio B.V. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Arkaitz Garro <arkaitz.garr...
6650 #include "types.h" 6651 #include "x86.h" 6652 6653 void* 6654 memset(void *dst, int c, uint n) 6655 { 6656 if ((int)dst%4 == 0 && n%4 == 0){ 6657 c &= 0xFF; 6658 stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 6659 } else 6660 stosb(dst, c, n); 6661 return dst; 6662 } 6663 6664 int 6665 memcmp(const...
import { IQuotation } from '../../model/QuotationService/IQuotation'; export interface IQuoteDisplayProps { quote: IQuotation; }
# Laravel 5.1 Generators Some generators for Laravel 5.1 ## Install Require the package: ```sh composer require bvw/laravel-generators dev-master ``` Add the service provider to **config/app.php** in Providers section: ```sh BVW\Providers\GeneratorServiceProvider::class, ``` Run the generators: ```sh php artisa...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Payload class -- --==========================================================================-- require( "engine.shared.typelenvalues" ) class "payload" ( "typelenvalues" ) payload._handlers = payload._handlers or {} -- Ge...
version https://git-lfs.github.com/spec/v1 oid sha256:c4d5490597798effaf63d11e546f0b200f196f28e17c69d39ce236de0c6683f0 size 64139
### 2019-03-10 diff between today and yesterday #### python * [pirate/ArchiveBox](https://github.com/pirate/ArchiveBox): The open source self-hosted web archive. Takes browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more... * [0xAX/linux-insides](https://github.com/0xAX/linux-insides)...
import { Component, DebugElement } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By, DOCUMENT } from '@angular/platform-browser'; import { TocComponent } from './toc.component'; import { TocItem, TocService } from 'app/shared/toc.service'; describe('TocCompon...
<style> body { padding: 0; margin: 0; } #viewer { background-color: #000; color: #fff; margin: 0px; padding: 0; overflow: hidden; } </style> <div id="viewer"></div>
/* omega - node.js server http://code.google.com/p/theomega/ Copyright 2011, Jonathon Fillmore Licensed under the MIT license. See LICENSE file. http://www.opensource.org/licenses/mit-license.php */ var http=require("http");var om=require("./omlib"); var Omega={Request:function(req){var req;req={api:nul...
module Souschef # Loads Souschef configuration YAML class Config # Public - Reads the configuration file # # Returns Hash def self.read verify_file YAML.load_file(File.expand_path('~/.souschef.yml')) end # Private - Checks if we have a configuraiton file # # Returns nil ...
package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "net/url" "os" "os/user" "path/filepath" "strings" "crypto/tls" "net/http" ) type configCommand struct { config *ClientConfig } // skipVerifyHTTPClient returns an *http.Client with InsecureSkipVerify set // to true for its TLS config....
module PlazrStore VERSION = "0.0.1" end
# This is needed to render the menu properly, according to user's actions. # The first menu option has an index of 0. The lower option is, the higher index it has. selectable-update-current-index() { # In case Arrow Down was pressed. if [ "$1" == $SELECTABLE_ARROW_DOWN ]; then # If there are n...
/* * TestProxy.cpp * * Created on: Sep 6, 2013 * Author: penrique */ #include "InvocationManager.h" #include <bb/system/CardDoneMessage> #include <bb/system/InvokeRequest> // to send number data while invoking phone application #include <bb/PpsObject> // Map #include <bb/platform/LocationMapInvoker> #inc...
<?php namespace Lonquan\TaobaoSDK\Top\Request; use Lonquan\TaobaoSDK\Top\RequestCheckUtil; use Lonquan\TaobaoSDK\Top\RequestInterface; /** * TOP API: taobao.product.img.delete request * * @author auto create * @since 1.0, 2016.03.05 */ class ProductImgDeleteRequest implements RequestInterface { ...
require "point/version" module Point autoload :Point, 'point/point' def self.sum(*args) x = y = 0 args.each do |point| x += point.x y += point.y end self::Point.new(x, y) end end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (1.8.0_121) on Sat Apr 01 23:01:20 CEST 2017 --> <title>Uses of Class algorithms.InitStrategy</title> <meta name="date" content="2017-04-01"> <link re...
<?php namespace MvMidia\Factory; use MvMidia\Service\AudioService; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class AudioServiceFactory implements FactoryInterface { public function createService(ServiceLocatorInterface $serviceLocator) { $entityManager = $ser...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.CatalanNumbers { class Program { static void Main(string[] args) { // 10. Write a program to calculate the Nth Catalan number by given N. ...
<?php /* TwigBundle:Exception:traces.txt.twig */ class __TwigTemplate_c3e3230b69c4964c8a557e1f2f357b5c8020737511aeeb0ff45cb50924b53015 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
<section *ngIf="blogItems"> <div class="background"></div> <div class="wrapper" *ngFor="let item of blogItems"> <div class="text" [innerHtml]="texts[blogItems.indexOf(item)]"></div> <div class="item"> <aae-blog-item [blogItem]="item" [alias]="alias"></aae-blog-item> </div> </div> </section...
(function() { var $, expect, fruits; $ = require('../'); expect = require('expect.js'); /* Examples */ fruits = '<ul id = "fruits">\n <li class = "apple">Apple</li>\n <li class = "orange">Orange</li>\n <li class = "pear">Pear</li>\n</ul>'.replace(/(\n|\s{2})/g, ''); /* Tests */ descri...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; use Symfony\Component\Form\Exception\InvalidArg...
<!DOCTYPE html> <html lang = "en"> <head> <title> Cultural Blog</title> <link href='http://fonts.googleapis.com/css?family=Italianno' rel='stylesheet' type='text/css'> </head> <style type="text/css"> h1 { text-align: center; margin-top: 3% } p { } body { background: url("http://www.hdwallpapers.in/walls...
# nepali-wordlist Nepali wordlist for wpa2 cracking. Includes password with length of 8 character or more and mostly contains nepali words including other common words. ## Files * __nepali-name-suffix-8+.txt.gz:__ `Nepali names passwords with numbered suffix. Contains 80,00,000 words with up to 3 number suffixa. L...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: diplomacy_tensorflow/core/example/feature.proto #include "diplomacy_tensorflow/core/example/feature.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/io/coded_st...
require 'spec_helper' require 'gitnesse/cli' module Gitnesse describe Cli, type: :cli do let(:help) do <<-EOS USAGE: gitnesse push Pushes local features to remote git-based wiki Pushes the local features files to the remote git-based wiki, creating/updating wiki pages as necessary. Examples: gitnesse ...
// // This file is auto-generated. Please don't modify it! // package org.opencv.objdetect; import org.opencv.core.Mat; import org.opencv.core.MatOfDouble; import org.opencv.core.MatOfInt; import org.opencv.core.MatOfRect; import org.opencv.core.Size; // C++: class CascadeClassifier //javadoc: CascadeClassifier publi...
package GlidersGrid; import java.util.Iterator; import repast.simphony.context.Context; import repast.simphony.engine.schedule.ScheduledMethod; import repast.simphony.query.space.grid.MooreQuery; import repast.simphony.space.grid.Grid; import repast.simphony.space.grid.GridPoint; import repast.simphony.util.ContextUt...
#ifndef LM75_H_ #define LM75_H_ /******************************************************************************/ /** \file Lm75.h ******************************************************************************* * * \brief This module allows to read the temperature of an attached lm75 * devic...
#region Copyright (c) 2009 S. van Deursen /* The CuttingEdge.Conditions library enables developers to validate pre- and postconditions in a fluent * manner. * * To contact me, please visit my blog at http://www.cuttingedge.it/blogs/steven/ * * Copyright (c) 2009 S. van Deursen * * Permission is hereby grant...
(function(){ 'use strict'; function ListService($http){ this.getList = function(list_id){ return $http.get('/lists/' + list_id + ".json") } } ListService.$inject = ['$http'] angular .module('app') .service('ListService', ListService) }())
angular.module('movieApp') .directive('movieResult', function () { var directive = { restrict: 'E', replace: true, scope: { result: '=result' }, template: [ '<div class="row">', '<div class="col-sm-4">', '<img ng-src="{{result.Poster}}" alt="{{result.Title}}" width="220px">', '</div>', ...
<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>...
#include<stdio.h> #include<math.h> #include<conio.h> #include<ctype.h> int i,j,cash=100; void wheel(); void game(int r); void game_over(); int suit_bet(); int cash_bet(); int roll_wheel(); int roll_dice(); void wheel_count(int c,int h,int s); void dice_count(int d,int h); int w[9][9]={ {32,32,32,32,2,32,32,32,32...
/* eslint-env mocha */ const { expect } = chai; import React from './React'; import TestUtils from './TestUtils'; describe('React components', () => { it('should find valid xpath in react component', () => { const component = TestUtils.renderIntoDocument(<blink>hi</blink>); expect(component).to.have.xpath('/...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Sandsound</title> <link rel="stylesheet" href="/css/reset.css"> <link rel="stylesheet" href="/css/style.css"> </head> <body> <canvas id="canvas" class="background"></canvas> <!-- Ne s'affiche que si sur mobile :) --> <div class="mobile"> ...
require 'lapine/test/exchange' module Lapine module Test module RSpecHelper def self.setup(_example = nil) RSpec::Mocks::AllowanceTarget.new(Lapine::Exchange).to( RSpec::Mocks::Matchers::Receive.new(:new, ->(name, properties) { Lapine::Test::Exchange.new(name, properties) ...
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
using Brandbank.Xml.Logging; using System; namespace Brandbank.Api.Clients { public sealed class FeedbackClientLogger : IFeedbackClient { private readonly ILogger<IFeedbackClient> _logger; private readonly IFeedbackClient _feedbackClient; public FeedbackClientLogger(ILogger<IFeedbackC...
<?php namespace Zodream\Infrastructure\Http\Input; /** * Created by PhpStorm. * User: zx648 * Date: 2016/4/3 * Time: 9:23 */ use Zodream\Infrastructure\Base\MagicObject; abstract class BaseInput extends MagicObject { /** * 格式化 * @param array|string $data * @return array|string */ prote...
--- home: true heroImage: /sofa128.png actionText: Get Started → features: - title: Schema definition details: Strict modeling based on schema with automatic and custom type validation. - title: Database operations details: Insert, upsert and remove documents. - title: Middleware details: Support for pre and post...
<?php /* * This file is part of the Grosona. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Grosona; use Grosona\PhpProcess\Utils\Logger; use Grosona\PhpProcess\TrobuleHandler; /** * Read configurati...
class DashboardController < ApplicationController def index end end # vim: fo=tcq
-- 创建T_Good表 CREATE TABLE IF NOT EXISTS T_Good ( goodId INTEGER PRIMARY KEY NOT NULL, good TEXT, "createAt" TEXT DEFAULT (datetime('now', 'localtime')) );
const getAllMatchers = require("./getAllMatchers"); describe("unit: getAllMatchers", () => { let handler; let matcherStore; beforeEach(() => { matcherStore = [{}, {}, {}]; handler = getAllMatchers(matcherStore); }); test("it should return all matchers", () => { expect(handler()).toHaveProperty...
table { font-family: Consolas, Monaco, monospace; font-size: 1em; line-height: 1.44em; } table th, table td { padding: 0.4em 0.8em; }
--- layout: post title: "Welcome to Jekyll!" tags: [web, jekyll] --- Vestibulum vulputate ac sem dapibus sagittis. Phasellus vestibulum ligula quam, vitae porta risus posuere sit amet. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam lobortis nisl ut semper suscipit. Aenean eget sem nisl. Sed gr...
# [parser](https://github.com/yanhaijing/template.js/blob/master/packages/parser) [![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base) [template.js](https://github.com/yanhaijing/template.js)的模板编译器 ## 兼容性 单元测试保证支持如下环境: | IE | CH | FF | SF | O...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
Unicode.sublime-package ======================= Disclaimer ---------- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Installation ------------ Install package to: * __OSX:__ `~/Lib...
<?php namespace Koalamon\IntegrationBundle\Integration; class Integration { private $name; private $image; private $description; private $url; private $activeElements; private $totalElements; /** * Integration constructor. * * @param $name * @param $image * @param...
--- layout: page title: Roger Mercado's 91st Birthday date: 2016-05-24 author: Juan Rodgers tags: weekly links, java status: published summary: In molestie nec mauris a pretium. Pellentesque massa. banner: images/banner/meeting-01.jpg booking: startDate: 06/25/2016 endDate: 06/27/2016 ctyhocn: SCOINHX groupCode...
import redis import logging import simplejson as json import sys from msgpack import Unpacker from flask import Flask, request, render_template from daemon import runner from os.path import dirname, abspath # add the shared settings file to namespace sys.path.insert(0, dirname(dirname(abspath(__file__)))) import setti...
/******************************************************************************* * * * Author : Angus Johnson * * Version : 6.4.2 ...
module AttrValidator # Copied from here https://github.com/rails/rails/blob/master/activesupport/lib/active_support/concern.rb # # A typical module looks like this: # # module M # def self.included(base) # base.extend ClassMethods # base.class_eval do # scope :disabled, -> { ...
package ca.codybanman.AstroidEscape; import org.robovm.apple.foundation.NSAutoreleasePool; import org.robovm.apple.uikit.UIApplication; import com.badlogic.gdx.backends.iosrobovm.IOSApplication; import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration; import ca.codybanman.AstroidEscape.AEGame; public ...
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.Xml; using System.Xml.Serialization; using System.IO; namespace TimeOut { ...
#include "V3DResourceMemory.h" #include "V3DDevice.h" #include "V3DBuffer.h" #include "V3DImage.h" #include "V3DAdapter.h" /******************************/ /* public - V3DResourceMemory */ /******************************/ V3DResourceMemory* V3DResourceMemory::Create() { return V3D_NEW_T(V3DResourceMemory...
<?php namespace Peridot\Leo\Interfaces; use Peridot\Leo\Assertion; use Peridot\Leo\Interfaces\Assert\CollectionAssertTrait; use Peridot\Leo\Interfaces\Assert\ObjectAssertTrait; use Peridot\Leo\Interfaces\Assert\TypeAssertTrait; use Peridot\Leo\Leo; /** * Assert is a non-chainable, object oriented interface * on to...
<?php declare(strict_types=1); namespace Gitilicious\GitClient\Test\Unit\Cli\Output; use Gitilicious\GitClient\Cli\Output\Output; class OutputTest extends \PHPUnit_Framework_TestCase { public function testGetNumberOfLines() { $output = new Output('foo' . PHP_EOL . 'bar'); $this->assertSame(2...
black = '#202427'; red = '#EB6A58'; // red green = '#49A61D'; // green yellow = '#959721'; // yellow blue = '#798FB7'; // blue magenta = '#CD7B7E'; // pink cyan = '#4FA090'; // cyan white = '#909294'; // light gray lightBlack = '#292B35'; // medium gray lightRed = '#...
import cuid from "cuid"; import Result, { isError } from "../../common/Result"; import assert from "assert"; import { di, singleton, diKey } from "../../common/di"; import { ILocalFiles, ILocalFilesKey } from "../../common/LocalFiles"; import { IStoreDB, IStoreDBKey, MergeEntity } from "../../common/db/StoreDB"; import...
<html> <head> <title>Julian Fellows's panel show appearances</title> <script type="text/javascript" src="../common.js"></script> <link rel="stylesheet" media="all" href="../style.css" type="text/css"/> <script type="text/javascript" src="../people.js"></script> <!--#include virtual="head.txt" --> </head> <body> <!-...
var createSubmit = function(name, primus, keyDict) { return function(event) { var message = $('#message').val(); if (message.length === 0) { event.preventDefault(); return; } $('#message').val(''); $('#message').focus(); var BigInteger = for...
<?php namespace action\sub; use net\shawn_huang\pretty\Action; class Index extends Action { protected function run() { $this->put([ 'holy' => 'shit' ]); } }
<?php namespace keeko\account\action; use keeko\framework\foundation\AbstractAction; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use keeko\framework\domain\payload\Success; /** * User Widget * * This code is automatically created. Modifications will probably be over...
// Copyright (c) 2015-2017 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 <zmq/zmqabstractnotifier.h> #include <util.h> CZMQAbstractNotifier::~CZMQAbstractNotifier() { assert(!psocket)...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
import builder = require('botbuilder'); export module Helpers { export class API { public static async DownloadJson(url:string, post:boolean=false, options:any=undefined): Promise<string>{ return new Promise<string>(resolve => { var XMLHttpRequest = require("xmlhttprequest")....
using System; using System.Collections.Generic; using System.Linq; using System.Web; using WingtipToys.Models; namespace WingtipToys.Logic { public class AddProducts { public bool AddProduct(string ProductName, string ProductDesc, string ProductPrice, string ProductCategory, string ProductImagePath) ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.security.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.c...
<?php namespace Seahinet\Catalog\Indexer; use Seahinet\Catalog\Model\Collection\Product; use Seahinet\Catalog\Model\Product as ProductModel; use Seahinet\Catalog\Model\Collection\Category; use Seahinet\Lib\Db\Sql\Ddl\Column\UnsignedInteger; use Seahinet\Lib\Indexer\Handler\AbstractHandler; use Seahinet\Lib\I...
package org.superboot.service; import com.querydsl.core.types.Predicate; import org.springframework.data.domain.Pageable; import org.superboot.base.BaseException; import org.superboot.base.BaseResponse; /** * <b> 错误日志服务接口 </b> * <p> * 功能描述: * </p> */ public interface ErrorLogService { /** * 按照微服务模块进行分组...
UNIX BUILD NOTES ================ Build Instructions: Ubuntu & Debian Build requirements: ------------------- ```bash sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils ``` BOOST ----- ```bash sudo apt-get install libboost-all-dev ``` BDB --- For Ubun...
$(function () { var $container = $('#container'); var certificatesInfo = $container.data('certinfo'); var runDate = $container.data('rundate'); $('#created_date').html(runDate); var sorted_certificates = Object.keys(certificatesInfo) .sort(function( a, b ) { return certificatesInfo[a].info.days_le...
--- title: "Configuring the Terminal on a New Macbook" date: 2016-06-01 21:12:00 category: post tags: [efficiency, osx, shell, sublime] --- I bought a new Macbook Pro Retina today for personal use, and spent most of the day re-configuring the terminal and development environment to match my old machine. This post i...
from PIL import Image import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np img1 = Image.open('multipage.tif') # The following approach seems to be having issue with the # current TIFF format data print('The size of each frame is:') print(img1.size) # Plots first frame print('Frame 1'...
FROM nginx MAINTAINER Konstantin Volodin, volodin.konstantin@gmail.com COPY nginx.conf /etc/nginx EXPOSE 80 EXPOSE 5500 ENTRYPOINT nginx -g "daemon off;"
FROM golang:alpine as build WORKDIR /go/src COPY main.go . RUN go build -o /go/bin/memhogger . FROM alpine LABEL maintainer="Michael Gasch <embano1@live.com>" COPY --from=build /go/bin/memhogger /bin/memhogger ENTRYPOINT ["memhogger"]
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 11, 2014 at 07:52 AM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
package com.InfinityRaider.AgriCraft.utility; import com.InfinityRaider.AgriCraft.items.ItemAgricraft; import com.InfinityRaider.AgriCraft.items.ItemNugget; import com.InfinityRaider.AgriCraft.reference.Data; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import ...
'use strict'; //Setting up route angular.module('socketio-area').config(['$stateProvider', function($stateProvider) { // Socketio area state routing $stateProvider. state('socketio-area', { url: '/socketio', templateUrl: 'modules/socketio-area/views/socketio-area.client.view.html' }); } ]);
#include "utlua.h" #ifdef __linux__ #include <limits.h> #include <linux/netfilter_ipv4.h> #endif #include <net/if.h> #define LUA_TCPD_CONNECTION_TYPE "<tcpd.connect>" #define LUA_TCPD_SERVER_TYPE "<tcpd.bind %s %d>" #define LUA_TCPD_ACCEPT_TYPE "<tcpd.accept %s %d>" #if FAN_HAS_OPENSSL typedef struct { SSL_CTX *s...
/** * configuration for grunt tasks * @module Gruntfile */ module.exports = function(grunt) { /** load tasks */ require('load-grunt-tasks')(grunt); /** config for build paths */ var config = { dist: { dir: 'dist/', StoreFactory: 'dist/StoreFactory.js', ngStoreFactory: 'dist/ngStore.js...
#requires -Modules InvokeBuild [CmdletBinding()] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingWriteHost', '')] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingEmptyCatchBlock', '')] param( [String[]]$Tag, [String[]]$ExcludeTag = @("Integration"), [String]$PSGalleryAPIKey, ...
/** * Module dependencies. */ var express = require('express'); var path = require('path'); var api = require('./lib/api'); var seo = require('./lib/seo'); var app = module.exports = express(); app.set('port', process.env.PORT || 3000); app.set('views', __dirname + '/views'); app.use(expre...
# KnockGame This sketch is responsible for the **Handshake** and **Knock** interfaces. # External Libraries ## SerialCommand https://github.com/kroimon/Arduino-SerialCommand
#include <iostream> #include <string> #include <forward_list> using namespace std; void insert(forward_list<string>& fst, const string& to_find, const string& to_add); int main() { forward_list<string> fst{ "pen", "pineapple", "apple", "pen" }; insert(fst, "pen", "and"); for (auto& i : fst) cout << ...
/* * MIT License * * Copyright (c) 2017 Alessandro Arcangeli <alessandroarcangeli.rm@gmail.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...