code
stringlengths
4
1.01M
language
stringclasses
2 values
<?php /* WebProfilerBundle:Profiler:toolbar_js.html.twig */ class __TwigTemplate_5c613b42836f9a825aea4138cba148e6 extends Twig_Template { protected function doGetParent(array $context) { return false; } protected function doDisplay(array $context, array $blocks = array()) { // line...
Java
package utils import ( "io/ioutil" "net/http" "encoding/json" "fmt" "github.com/juju/errors" ) // GetRequestBody reads request and returns bytes func GetRequestBody(r *http.Request) ([]byte, error) { body, err := ioutil.ReadAll(r.Body) if err != nil { return nil, errors.Trace(err) } return body, nil } /...
Java
--- author: jeffatwood comments: true date: 2010-12-17 06:28:45+00:00 layout: post redirect_from: /2010/12/introducing-programmers-stackexchange-com hero: slug: introducing-programmers-stackexchange-com title: Introducing programmers.stackexchange.com wordpress_id: 6383 tags: - company - stackexchange - community --- ...
Java
# hookshot ![](http://i.cloudup.com/i_vGKjtQcY2.png) "You found the *hookshot*! It's a spring-loaded chain that you can cast out to hook things." ## Intro **hookshot** is a tiny library and companion CLI tool for handling [GitHub post-receive hooks](https://help.github.com/articles/post-receive-hooks). ## Examples...
Java
#import <Cocoa/Cocoa.h> #import "SpectacleShortcutRecorderDelegate.h" @class SpectacleShortcutManager; @interface SpectacleShortcutRecorderCell : NSCell @property (nonatomic) SpectacleShortcutRecorder *shortcutRecorder; @property (nonatomic) NSString *shortcutName; @property (nonatomic) SpectacleShortcut *shortcut;...
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>basic_datagram_socket::send (2 of 3 overloads)</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" hre...
Java
// +build linux // +build 386 amd64 arm arm64 package ras import ( "database/sql" "fmt" "os" "strconv" "strings" "time" _ "modernc.org/sqlite" //to register SQLite driver "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugins/inputs" ) // Ras plugin gathers and counts errors provided by ...
Java
using Marten.Testing.Documents; namespace Marten.Testing.Linq.Compatibility.Support { public class DefaultQueryFixture: TargetSchemaFixture { public DefaultQueryFixture() { Store = provisionStore("linq_querying"); DuplicatedFieldStore = provisionStore("duplicate_fields"...
Java
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Linq; using Cake.Core; using Cake.Core.IO; namespace Cake.Common.Tools.Chocolatey { ...
Java
#region Copyright // // DotNetNuke® - http://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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 restric...
Java
<!doctype html> <html> <head> <meta charset="utf-8"/> </head> <body> <select multiple id="s"> <option value="1" id="one" selected>one</option> <option id="two" selected>two</option> </select> <script> alert(document.getElementById('s').value); </script> </body> </html>
Java
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with t...
Java
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information namespace DotNetNuke.Services.Connections { public enum ConnectorCategories { Social = 0, ...
Java
package run_test import ( "fmt" "net/url" "strings" "testing" "time" ) var tests Tests // Load all shared tests func init() { tests = make(map[string]Test) tests["database_commands"] = Test{ queries: []*Query{ &Query{ name: "create database should succeed", command: `CREATE DATABASE db0`, ...
Java
<? header('Location: http://www.diridarek.com'); ?>
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using Azure; using Azure.Core; namespace Azure.Storage.Files.DataLake { internal partial class FileSystemGetPropertiesHeaders { private readonly Respon...
Java
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ console.c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Forrest Yu, 2005 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* 回车键: 把光标移到第一列 换行键: 把光标前进到下一行 */ #include "type.h" #i...
Java
// // NSDataAES.h // // Created by cheng on 15/12/25. // Copyright © 2015年 cheng. All rights reserved. // #import <Foundation/Foundation.h> extern NSString * kCryptorKey; #pragma mark - @interface NSData (AES128) @interface NSData (AES128) + (NSData *)dataFromBase64String:(NSString *)aString; - (NSString *)base...
Java
from io import BytesIO import tempfile import os import time import shutil from contextlib import contextmanager import six import sys from netlib import utils, tcp, http def treader(bytes): """ Construct a tcp.Read object from bytes. """ fp = BytesIO(bytes) return tcp.Reader(fp) @contextma...
Java
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Java
#ifndef __NET_IP_WRAPPER_H #define __NET_IP_WRAPPER_H 1 #include_next <net/ip.h> #include <linux/version.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0) static inline bool ip_is_fragment(const struct iphdr *iph) { return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; } #endif #if LINUX_VERSION_CODE < KERNEL_VE...
Java
# Configure EPEL (Extra Repository for Enterprise Linux) # Note This is the last release that will support anything before Puppet 4. # About This module basically just mimics the epel-release rpm. The same repos are enabled/disabled and the GPG key is imported. In the end you will end up with the EPEL repos configu...
Java
import { rectangle } from 'leaflet'; import boundsType from './types/bounds'; import Path from './Path'; export default class Rectangle extends Path { static propTypes = { bounds: boundsType.isRequired, }; componentWillMount() { super.componentWillMount(); const { bounds, map, ...props } = this.pro...
Java
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #pragma once #ifndef GWEN_CONTROLS_CHECKBOX_H #define GWEN_CONTROLS_CHECKBOX_H #include "Gwen/Controls/Base.h" #include "Gwen/Controls/Button.h" #include "Gwen/Gwen.h" #include "Gwen/Skin.h" #include "Gwen/Controls/Symbol.h" #include "Gwen/Contr...
Java
require 'spec_helper' require Rails.root.join('db', 'post_migrate', '20170921101004_normalize_ldap_extern_uids') describe NormalizeLdapExternUids, :migration, :sidekiq do let!(:identities) { table(:identities) } around do |example| Timecop.freeze { example.run } end before do stub_const("Gitlab::Data...
Java
<?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\Bundle\WebProfilerBundle\Csp; use Symfony\Component\HttpFoundat...
Java
using System; using Ionic.Zlib; using UnityEngine; namespace VoiceChat { public static class VoiceChatUtils { static void ToShortArray(this float[] input, short[] output) { if (output.Length < input.Length) { throw new System.ArgumentException("in: " + i...
Java
/* YUI 3.8.0pr2 (build 154) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("dd-drop-plugin",function(e,t){var n=function(e){e.node=e.host,n.superclass.constructor.apply(this,arguments)};n.NAME="dd-drop-plugin",n.NS="drop",e.extend(n,e.DD.Drop),e...
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- template designed by Marco Von Ballmoos --> <title>Docs for page smarty_internal_compile...
Java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package com.bju.cps450.node; import com.bju.cps450.analysis.*; @SuppressWarnings("nls") public final class TPlus extends Token { public TPlus() { super.setText("+"); } public TPlus(int line, int pos) { super.setT...
Java
# https://github.com/plataformatec/devise#test-helpers RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller end
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>parse_extension_args (OpenID::SReg::Request)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-...
Java
class ChangeOrderAttributes < ActiveRecord::Migration def up change_column_default :orders, :front_end_change, nil rename_column :orders, :front_end_change, :change remove_column :orders, :refunded remove_column :orders, :total_is_locked remove_column :orders, :tax_is_locked remove_column :ord...
Java
# extension imports from _NetworKit import PageRankNibble, GCE
Java
//= require d3/d3 //= require jquery.qtip.min //= require simple_statistics gfw.ui.model.CountriesEmbedOverview = cdb.core.Model.extend({ defaults: { graph: 'total_loss', years: true, class: null } }); gfw.ui.view.CountriesEmbedOverview = cdb.core.View.extend({ el: document.body, events: { '...
Java
/* * @(#)LayouterSample.java * * Copyright (c) 1996-2010 by the original authors of JHotDraw and all its * contributors. All rights reserved. * * You may not use, copy or modify this file, except in compliance with the * license agreement you entered into with the copyright holders. For details * see accompany...
Java
package com.iluwatar.front.controller; /** * * Command for archers. * */ public class ArcherCommand implements Command { @Override public void process() { new ArcherView().display(); } }
Java
declare module 'fast-memoize' { declare type Cache<K, V> = { get: (key: K) => V, set: (key: K, value: V) => void, has: (key: K) => boolean } declare type Options = { cache?: Cache<*, *>; serializer?: (...args: any[]) => any; strategy?: <T>(fn: T, options?: Options) => T; } declare ...
Java
angular.module('ualib.imageCarousel', ['angular-carousel']) .constant('VIEW_IMAGES_URL', '//wwwdev2.lib.ua.edu/erCarousel/api/slides/active') .factory('imageCarouselFactory', ['$http', 'VIEW_IMAGES_URL', function imageCarouselFactory($http, url){ return { getData: function(){ ...
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>basic_socket_streambuf::cancel (1 of 2 overloads)</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" ...
Java
import { ListWrapper } from 'angular2/src/facade/collection'; import { stringify, isBlank } from 'angular2/src/facade/lang'; import { BaseException, WrappedException } from 'angular2/src/facade/exceptions'; function findFirstClosedCycle(keys) { var res = []; for (var i = 0; i < keys.length; ++i) { if (L...
Java
Map Navigation Hash (History) ====================== #### Overview Uses dojo/router to enable zooming to next or previous extent using the browser forward and back buttons. The geographic map center and map zoom level is placed on the url. #### CMV Configuration Include the following code in js/config/viewer.js: ```j...
Java
function SendItemsToOutput { Param ( [parameter()] [PSObject[]]$items, [parameter(Mandatory=$true)] [string[]]$typeName ) foreach ($i in $items) { $i.PSObject.TypeNames.Insert(0, $typeName) Write-Output $i } }
Java
<?php namespace Codeception\Command; use Codeception\Configuration; use Codeception\Lib\Generator\Snapshot as SnapshotGenerator; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\Out...
Java
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ENTER} from '@angular/cdk/keycodes'; import {CommonModule} from '@angular/common'; import {NgModule} from '@a...
Java
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2014 // by DotNetNuke Corporation // // 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 restric...
Java
// Help functions /* * Return a string with all helper functions whose name contains the 'substring'; * if the 'searchDescription' is true, then also search the function description"); */ function getHelp(substring, searchDescription) { return framework.getJavaScriptHelp(".*(?i:" + substring + ").*", searchDesc...
Java
FullCalendar.globalLocales.push(function () { 'use strict'; var it = { code: 'it', week: { dow: 1, // Monday is the first day of the week. doy: 4, // The week that contains Jan 4th is the first week of the year. }, buttonText: { prev: 'Prec', next: 'Succ', today: 'Oggi...
Java
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package get import ( "errors" "internal/testenv" "io/ioutil" "os" "path" "path/filepath" "testing" "cmd/go/internal/web" ) // Test that RepoRootForIm...
Java
{% if site.staticman.repository and site.staticman.branch %} <div class="staticman-comments"> <div class="page__comments"> <!-- Start static comments --> <div class="js-comments"> {% if site.data.comments[page.slug] %} <h3 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_t...
Java
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
Java
<?php namespace Hateoas\Tests\Expression; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\ExpressionLanguage\Node\Node; use Symfony\Component\ExpressionLanguage\ParsedExpression; use Hateoas\Tests\TestCase; use Hateoas\Expression\ExpressionEvaluator; use Hateoas\Expression\Expressio...
Java
<?php /** * Pro customizer section. * * @since 1.0.0 * @access public */ class Epsilon_Section_Pro extends WP_Customize_Section { /** * The type of customize section being rendered. * * @since 1.0.0 * @access public * @var string */ public $type = 'epsilon-section-pro'; /** * Custom pro butt...
Java
/// <summary> /// This class handles user ID, session ID, time stamp, and sends a user message, optionally including system specs, when the game starts /// </summary> using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System; using System.Net; #i...
Java
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software dis...
Java
import {OverlayRef, GlobalPositionStrategy} from '../core'; import {AnimationEvent} from '@angular/animations'; import {DialogPosition} from './dialog-config'; import {Observable} from 'rxjs/Observable'; import {Subject} from 'rxjs/Subject'; import {MdDialogContainer} from './dialog-container'; import 'rxjs/add/operato...
Java
// import java.util.Comparator; abc.sort(Comparator.naturalOrder()); //
Java
module RR module Errors class SpyVerificationError < RRError end end end
Java
/* LUFA Library Copyright (C) Dean Camera, 2015. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purp...
Java
<?php /** * This file is part of PHPWord - A pure PHP library for reading and writing * word processing documents. * * PHPWord is free software distributed under the terms of the GNU Lesser * General Public License version 3 as published by the Free Software Foundation. * * For the full copyright and license inf...
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Test unit filtering</title> <link rel="stylesheet" href="../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../index.html" title="Boost.Test"> <link ...
Java
using OfficeDevPnP.MSGraphAPIDemo.Components; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using OfficeDevPnP.MSGraphAPIDemo.Models; using System.Threading; namespace OfficeDevPnP.MSGraphAPIDemo.Controllers { public ...
Java
/* @flow */ /*eslint-disable no-undef, no-unused-vars, no-console*/ import _, { compose, pipe, curry, filter, find, isNil, repeat, replace, zipWith } from "ramda"; import { describe, it } from 'flow-typed-test'; const ns: Array<number> = [1, 2, 3, 4, 5]; const ss: Array<string> = ["one", "two", "thre...
Java
""" A directive for including a matplotlib plot in a Sphinx document. By default, in HTML output, `plot` will include a .png file with a link to a high-res .png and .pdf. In LaTeX output, it will include a .pdf. The source code for the plot may be included in one of three ways: 1. **A path to a source file** as t...
Java
'use strict'; exports.up = function (knex) { return knex.schema.createTable('migration_test_trx_1', function (t) { t.increments(); t.string('name'); }); }; exports.down = function (knex) { return knex.schema.dropTable('migration_test_trx_1'); };
Java
#include <stdio.h> #include <string.h> int is_prime(char*); int main() { char input[11]; fgets(input, 11, stdin); printf("%d", is_prime(input)); return 0; } int is_prime(char* input) { int i, length, number = 0; length = input[strlen(input) - 1] == '\n' ? strlen(input) - 1 : strlen(input); for (i = 0; i...
Java
/** * @author mrdoob / http://mrdoob.com/ * @author bhouston / http://exocortex.com/ */ ( function ( THREE ) { THREE.Raycaster = function ( origin, direction, near, far ) { this.ray = new THREE.Ray( origin, direction ); // normalized ray.direction required for accurate distance calculations if( this.ray.d...
Java
module Facter::Util::Virtual ## # virt_what is a delegating helper method intended to make it easier to stub # the system call without affecting other calls to # Facter::Util::Resolution.exec def self.virt_what(command = "virt-what") Facter::Util::Resolution.exec command end ## # lspci is a delegat...
Java
'use strict'; require('../../modules/es.weak-set'); require('../../modules/esnext.weak-set.from'); var WeakSet = require('../../internals/path').WeakSet; var weakSetfrom = WeakSet.from; module.exports = function from(source, mapFn, thisArg) { return weakSetfrom.call(typeof this === 'function' ? this : WeakSet, sourc...
Java
/** @babel */ /** @jsx etch.dom **/ import etch from 'etch'; export default class WelcomeView { constructor(props) { this.props = props; etch.initialize(this); this.element.addEventListener('click', event => { const link = event.target.closest('a'); if (link && link.dataset.event) { ...
Java
--- title: Rule no-multi-spaces layout: doc --- <!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. --> # Disallow multiple spaces (no-multi-spaces) (fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problem...
Java
/* * Copyright (c) 2014-2015 Håkan Edling * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * http://github.com/piranhacms/piranha.vnext * */ using System; using System.IO; namespace Piranha.IO { /// <summary> /// ...
Java
<?php namespace PragmaRX\Tracker\Data\Repositories; use PragmaRX\Tracker\Support\RefererParser; class Referer extends Repository { /** * @var RefererParser */ private $refererParser; /** * @var */ private $currentUrl; /** * @var */ private $searchTermModel; /** * Crea...
Java
'use strict'; angular.module('sw.plugin.split', ['sw.plugins']) .factory('split', function ($q) { return { execute: execute }; function execute (url, swagger) { var deferred = $q.defer(); if (swagger && swagger.swagger && !swagger.tags) { ...
Java
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Build.Engine.Incrementals { public sealed class ProcessorStepInfo { /// <summary> /// The name of processor step....
Java
/*----------------------------------------------------------------------------------- /* /* Main JS /* -----------------------------------------------------------------------------------*/ (function($) { /*---------------------------------------------------- */ /* Preloader ----------------------------------...
Java
//****************************************************************************** // // Copyright (c) Microsoft. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WAR...
Java
/** * @license Highcharts Gantt JS v7.2.0 (2019-09-03) * * CurrentDateIndicator * * (c) 2010-2019 Lars A. V. Cabrera * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports...
Java
export DJANGO_SETTINGS_MODULE=froide.settings export DJANGO_CONFIGURATION=Test export PYTHONWARNINGS=ignore test: flake8 --ignore=E501,E123,E124,E126,E127,E128,E402,E731 --exclude=south_migrations froide coverage run --branch --source=froide manage.py test froide coverage report --omit="*/south_migrations/*,*/migra...
Java
/****************************************************************************** * * Module Name: dswscope - Scope stack manipulation * *****************************************************************************/ /****************************************************************************** * * 1. Copyright No...
Java
<?php namespace Illuminate\Support; use stdClass; use Countable; use Exception; use ArrayAccess; use Traversable; use ArrayIterator; use CachingIterator; use JsonSerializable; use IteratorAggregate; use Illuminate\Support\Debug\Dumper; use Illuminate\Support\Traits\Macroable; use Illuminate\Contracts\Support\Jsonable...
Java
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
Java
// FBO.h #pragma once #if defined(_WIN32) #include <windows.h> #endif #ifdef __APPLE__ #include <OpenGL/glu.h> #else #include <GL/glu.h> #endif struct FBO { GLuint id, tex, depth; GLuint w, h; }; void allocateFBO(FBO&, int w, int h); void deallocateFBO(FBO&); void bindFBO(const FBO&, float fboScale=1.0...
Java
export interface StripeCardTokenParams { /** * Card number */ number: string; /** * Expiry month */ expMonth: number; /** * Expiry year */ expYear: number; /** * CVC / CVV */ cvc?: string; /** * Cardholder name */ ...
Java
require 'helper' class TestRepeaterWeek < TestCase def setup @now = Time.local(2006, 8, 16, 14, 0, 0, 0) end def test_next_future weeks = Chronic::RepeaterWeek.new(:week) weeks.start = @now next_week = weeks.next(:future) assert_equal Time.local(2006, 8, 20), next_week.begin assert_equ...
Java
<?php /** * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ namespace OC\User; use OC\Hooks\PublicEmitter; use OCP\IUserManager; /** * Class Manager * * Hooks available in scope \...
Java
var dep = require('./dep'); dep('');
Java
package org.multibit.hd.ui.views.wizards.appearance_settings; import com.google.common.base.Optional; import org.multibit.hd.ui.views.wizards.AbstractWizard; import org.multibit.hd.ui.views.wizards.AbstractWizardPanelView; import java.util.Map; /** * <p>Wizard to provide the following to UI for "appearance" wizard:...
Java
// TODO: This doesn't pass on android 64bit CI... // Figure out why! #![cfg(not(target_os = "android"))] use mio::{Events, Poll, PollOpt, Ready, Token}; use mio::net::UdpSocket; use bytes::{Buf, MutBuf, RingBuf, SliceBuf}; use std::str; use std::net::IpAddr; use localhost; const LISTENER: Token = Token(0); const SEND...
Java
/* The MIT License Copyright (c) 2012 by Jorrit Tyberghein Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
Java
--- layout: center permalink: /404.html --- # 404 Sorry, we can't seem to find this page's pixylls. <div class="mt3"> <a href="{{ site.baseurl }}/" class="button button-blue button-big">Home</a> <a href="{{ site.baseurl }}/about/" class="button button-blue button-big">About</a> </div>
Java
package scorex.network.peer import java.net.InetSocketAddress //todo: add optional nonce case class PeerInfo(lastSeen: Long, nonce: Option[Long] = None, nodeName: Option[String] = None) trait PeerDatabase { def addOrUpdateKnownPeer(peer: InetSocketAddress, peerInfo: PeerInfo): Unit def knownPeers(forSelf: Boole...
Java
/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org...
Java
/******************************************************************************* * Copyright (c) 2006, 2009 David A Carlson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is ava...
Java
/******************************************************************************* * Copyright (c) 2002, 2010 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distributio...
Java
/******************************************************************************* * Copyright (c) 2005-2010 VecTrace (Zingo Andersen) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distrib...
Java
#include "parser.h" #include "test.h" int main(int argc, char *argv[]) { BOOL ret; char *fname, *test; int fd; struct stat st; io_struct ps; if (argc < 3) { printf("usage: vluke <structure> <file>\n"); exit(1); } test = argv[1]; fname = argv[2]; fd = open(fname,O_RDONLY); if (fd == -1) { perror(f...
Java
/******************************************************************************* * This file is part of OpenNMS(R). * * Copyright (C) 2011-2012 The OpenNMS Group, Inc. * OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc. * * OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc. * * OpenNMS(...
Java
#ifndef TABLEDICT_H #define TABLEDICT_H #include <fcitx-utils/utf8.h> #include <fcitx-config/fcitx-config.h> #include <fcitx-config/hotkey.h> #include <fcitx-utils/memory.h> #define MAX_CODE_LENGTH 30 #define PHRASE_MAX_LENGTH 10 #define FH_MAX_LENGTH 10 #define TABLE_AUTO_SAVE_AFTER 1024 #define AUTO_PHRASE_COUNT ...
Java
<?php /** * @package gantry * @subpackage core * @version 3.2.12 October 30, 2011 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only * * Gantry uses the Joomla Framework (http://www....
Java