text stringlengths 3 1.05M |
|---|
/****
*
* VertexBuffer maintains a vertex data array with locations, normals,
* colors and texcoords.
*
****/
#include "gl_vertex_buffer.h"
#include "gl_index_buffer.h"
#include "gl_shader.h"
#define VERBOSE_LOGGING 0
#include "util/gvr_log.h"
namespace gvr {
GLVertexBuffer::GLVertexBuffer(const char* layout... |
import functools
from typing import Callable, Generator, Iterable, Iterator, Optional, Tuple
from pip._vendor.rich.progress import (
BarColumn,
DownloadColumn,
FileSizeColumn,
Progress,
ProgressColumn,
SpinnerColumn,
TextColumn,
TimeElapsedColumn,
TimeRemainingColumn,
TransferSp... |
using System;
using XposeCraft.Game;
using XposeCraft.Game.Actors.Buildings;
using XposeCraft.Game.Actors.Units;
using XposeCraft.Game.Control;
using XposeCraft.Game.Control.GameActions;
using XposeCraft.Game.Enums;
using XposeCraft.Game.Helpers;
namespace XposeCraft.GameInternal.TestExamples
{
/// <summary>
/... |
package org.apereo.portal.layout.dlm;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XP... |
<?php
namespace yii\filters;
/**
* RateLimitInterface is the interface that may be implemented by an identity object to enforce rate limiting.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
interface RateLimitInterface
{
/**
* Returns the maximum number of allowed requests and the window s... |
#ifndef LARGE_OBJECT_H
#define LARGE_OBJECT_H
#include "utils/tqual.h"
/*----------
* Data about a currently-open large object.
*
* id is the logical OID of the large object
* snapshot is the snapshot to use for read/write operations
* subid is the subtransaction that opened the desc (or currently owns it)
* ... |
class ApplicationProcessOptionsHandler < ApplicationRecord
end
|
ul#css3menu1,ul#css3menu1 ul{
margin:0;list-style:none;padding:0;border-width:0;border-style:solid;border-color:;}
ul#css3menu1 ul{
display:none;position:absolute;right:0;top:100%;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=090)";opacity:0.9;filter:alpha(opacity=090);padding:0;background-color:#0d0d0d... |
class RemoveAndAddForeignKeyToProjectSettings < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
CONSTRAINT_NAME = 'fk_project_settings_push_rule_id'
disable_ddl_transaction!
def up
add_concurrent_foreign_key :project_settings, :push_rules, column: :push_rule_id, ... |
using Orleans.Serialization.Cloning;
using Orleans.Serialization.GeneratedCodeHelpers;
using Orleans.Serialization.Serializers;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Orleans.Serialization.Codecs
{
/// <summary>
/// Serializer for <see cref="ImmutableList{T}"/>.
///... |
from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth.provider import OAuthProvider
class DropboxAccount(ProviderAccount):
pass
class DropboxProvider(OAuthProvider):
id = 'dropbox'
name = 'Dropbox'
pack... |
require "formula"
class Pdfcrack < Formula
homepage "http://pdfcrack.sourceforge.net/"
url "https://downloads.sourceforge.net/project/pdfcrack/pdfcrack/pdfcrack-0.14/pdfcrack-0.14.tar.gz"
sha1 "15d74431a06430b910c8e9ad2b1f5b8635c94181"
def install
system "make all"
bin.install "pdfcrack"
end
end
|
<!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License,... |
import { BuildContext, TaskInfo } from './util/interfaces';
export declare function babili(context: BuildContext, configFile?: string): Promise<void | Error>;
export declare function babiliWorker(context: BuildContext, configFile: string): Promise<{}>;
export declare function runBabili(context: BuildContext): Promise<{... |
class CBaseGrenadeConcussion : public CBaseGrenade
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( CBaseGrenadeConcussion, CBaseGrenade );
void Spawn( void );
void Precache( void );
void FallThink(void);
void ExplodeConcussion( CBaseEntity *pOther );
protected:
static int m_nTrailSprite;
};
int CBaseGrenadeConc... |
<!--
The MIT License (MIT)
Copyright (c) 2014, 2015 IBM 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 restriction, including without limitation the rights
to use, copy, modif... |
#ifndef _CUSTODYTIMER_H_
#define _CUSTODYTIMER_H_
#include <oasys/serialize/Serialize.h>
#include <oasys/thread/Timer.h>
#include <oasys/util/Time.h>
#include "bundling/BundleRef.h"
#include "contacts/Link.h"
namespace dtn {
class Bundle;
/**
* Utility class to abstract out various parameters that can be used
*... |
@extends('coanda::admin.layout.main')
@section('page_title', 'View form ' . $form->name)
@section('content')
<div class="row">
<div class="breadcrumb-nav">
<ul class="breadcrumb">
<li><a href="{{ Coanda::adminUrl('forms') }}">Forms</a></li>
<li>{{ $form->name }}</li>
</ul>
</div>
</div>
<div class="row... |
package org.pentaho.big.data.kettle.plugins.hbase.mapping;
import java.io.IOException;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.pentaho.big.data.api.initializer.ClusterInitializationException;
import org.pentaho.big.data.kettle.plugins.hbase.HBaseConnectionException;
import o... |
define("ace/mode/ini_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var escapeRe = "\\\\(?:[\\\\0abtrn;#=:]... |
package org.apache.spark.deploy.history
import java.util.NoSuchElementException
import java.util.zip.ZipOutputStream
import javax.servlet.http.{HttpServlet, HttpServletRequest, HttpServletResponse}
import scala.util.control.NonFatal
import scala.xml.Node
import org.eclipse.jetty.servlet.{ServletContextHandler, Ser... |
package org.apache.jackrabbit.oak.plugins.document.blob.cloud;
import org.apache.jackrabbit.oak.plugins.blob.cloud.CloudBlobStore;
import org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreTest;
import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.T... |
package org.slf4j.dummyExt;
import junit.framework.*;
public class PackageTest extends TestCase {
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(MDCStrLookupTest.class);
suite.addTestSuite(XLoggerTest.class);
suite.addTestSuite(EventLoggerTest.... |
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach,
browserDetection
} from 'angular2/testing_internal';
import {DecimalPipe, PercentPipe, CurrencyPipe} from 'angular2/common';
export function main() {
describe('Number pipes', () => {
// TODO(mlaval): enable tests when I... |
@interface SEWebViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;
@end
@implementation SEWebViewController
- (void)viewDidLoad
{
[super viewDidLoad];
[self.webView loadRequest:[NSURLRequest requestWithURL:self.URL]];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrie... |
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binar... |
"""Support for (EMEA/EU-based) Honeywell evohome systems."""
# Glossary:
# TCS - temperature control system (a.k.a. Controller, Parent), which can
# have up to 13 Children:
# 0-12 Heating zones (a.k.a. Zone), and
# 0-1 DHW controller, (a.k.a. Boiler)
# The TCS & Zones are implemented as Climate devices, Boi... |
/* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for managing all enumerated gnubby devices.
*/
'use strict';
/**
* @typedef {{
* namespace: string,
* device: number... |
(function() {
var DISABLED = 'DISABLED';
var ArduinoHelper = require('../../lib/ArduinoHelper');
var ROVPilot = function ROVPilot(deps) {
console.log('The rovpilot plugin.');
var self = this;
self.SAMPLE_PERIOD = 1000 / deps.config.sample_freq;
this.physics = new ArduinoHelper().physics;
sel... |
<html>
<head>
<link rel="stylesheet" href="image_demo.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<image-demo>
</image-demo>
$SCRIPTS$
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudf... |
<?php
namespace MultiShip;
/**
* MultiShip config object
*
* @author fraserreed
*/
class Configuration
{
/**
* @var string
*/
protected $accessKey;
/**
* @var string
*/
protected $userId;
/**
* @var string
*/
protected $password;
/**
* @var stri... |
// Package rest has generic implementations of resources used for
// REST responses
package rest // import "k8s.io/kubernetes/pkg/registry/generic/rest"
|
namespace ui {
namespace {
// Minimum ratio between initial X and Y motion to allow snapping.
const float kMinSnapRatio = 1.25f;
// Size of the snap rail relative to the initial snap bound threshold.
const float kSnapBoundToChannelMultiplier = 1.5f;
float CalculateChannelDistance(float snap_bound,
... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>extract.pp</title>
<link rel="stylesheet" href="http://jashkenas.github.com/docco/resources/docco.css">
</head>
<body>
<div id='container'>
<div id="background"></div>
<div id="jump_to">
Jump To &hellip... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Assets.Helpers
{
public static class GM
{
private const int TileSize = 256;
private const int EarthRadius = 6378137;
private const double InitialResolution = 2... |
var cacheName = 'v1:magnum/p-b',
cacheFiles = [
'/',
'/images/pink-sprite.png',
'/images/black-sprite.png',
'/css/pink-black.min.css',
'/js/init.js',
'/js/sprite.js',
'/js/pink-black.js',
... |
@interface ASAlbumCustomCell : UITableViewCell
@property (strong, nonatomic) UIImage *placeholderImage;
@property (strong, nonatomic) NSArray *thumbImages;
//@property (strong, nonatomic) NSString *localIdentifier;
@property (nonatomic) BOOL showsThumbImage;
@end
|
<resources>
<!--
For more on layout aliases, see:
http://developer.android.com/training/multiscreen/screensizes.html#TaskUseAliasFilters
-->
<!-- Replace fragment detail view with layout that takes advantage of more available width.-->
<item type="layout" name="fragment_detail">@layout/fragment... |
<!doctype html>
<!--[if lt IE 7 ]><html lang="en" class="no-js ie6"><![endif]-->
<!--[if IE 7 ]><html lang="en" class="no-js ie7"><![endif]-->
<!--[if IE 8 ]><html lang="en" class="no-js ie8"><![endif]-->
<!--[if IE 9 ]><html lang="en" class="no-js ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en" class="... |
package org.apache.james.mailbox;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import java.io.ByteArrayInputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
... |
'use strict';
describe('jstd-adapter', function() {
var fakeJSTD = { pluginRegistrar: { register: function() {} } },
originalNavigateTo = angular.scenario.Application.prototype.navigateTo;
/**
* Reverts hack on angular.scenario.Application.navigateTo
* We should revert this hack after any single call ... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Roslyn.Utilities;
namespace Microso... |
package versioned
import (
"bytes"
"crypto/x509"
"fmt"
"io"
"net"
"net/url"
"reflect"
"sort"
"strconv"
"strings"
"text/tabwriter"
"time"
"unicode"
"github.com/fatih/camelcase"
appsv1 "k8s.io/api/apps/v1"
autoscalingv1 "k8s.io/api/autoscaling/v1"
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
... |
<!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): So... |
(function (factory) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory(require('ractive'));
} else if (typeof define === 'function' && define.amd) {
define([ 'ractive' ], factory);
} else {
factory(window.Ractive);
}
})(function (Ractive) {
/**
* Route
*
* @param {strin... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.ExtractM... |
<?php
namespace Acme\BlogBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.c... |
using Microsoft.CodeAnalysis.Editor.Tagging;
using Microsoft.CodeAnalysis.Text;
using Microsoft.VisualStudio.Text;
namespace Microsoft.CodeAnalysis.Editor.Shared.Tagging
{
internal partial class TaggerEventSources
{
private class DocumentActiveContextChangedEventSource : AbstractWorkspaceTrackingTagger... |
class DictionaryValue;
namespace net {
class ClientSocket;
class ClientSocketHandle;
class ClientSocketPoolHistograms;
// A ClientSocketPool is used to restrict the number of sockets open at a time.
// It also maintains a list of idle persistent sockets.
//
class ClientSocketPool {
public:
// Requests a connected... |
opsworks-sidekiq
================
Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys
## Installation instructions
1) Make sure you have Redis installed. This cookbook seems decent: https://github.com/brianbianco/redisio
2) Add this cookbook to your list of Custom Cookbooks
3) Add the depl... |
(function( window, undefined ) {
"use strict";
var
// A central reference to the root jQuery(document)
rootjQuery,
// The deferred used on DOM ready
readyList,
// Use the correct document accordingly with window argument (sandbox)
document = window.document,
location = window.location,
// Map ... |
module Spree
def self.version
ActiveSupport::Deprecation.warn("Spree.version does not work and will be removed from solidus")
"2.4.6.beta"
end
end
|
package org.python.core.util;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import org.python.core.BaseBytes;
import org.python.core.Py;
import org.python.core.PyBuffer;
/**
* String Utility methods.
*
*/
public class StringUtil {
/**
* Encodes this String into a sequence of ... |
* CHG: !!! We start to rename the plugin to `wookmark` instead of `wookmark-jquery`. Also the repository moved to https://github.com/germanysbestkeptsecret/Wookmark-jQuery.
* CHG: Cleanup of package files, readme, plugin name
* FIX: Correct filename in `main` property in bower.json
* FIX: Error when creating more than ... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
namespace Batcher.Internals
{
internal static class SqlUserDefinedTableTypes<T>
where T : DbContext
{
private static readonly ConcurrentDictionary<string, TableVariableMetadata> TableVariables = new ... |
<?php
namespace ZendPdfTest\InternalType;
use ZendPdf\InternalType;
/**
* \ZendPdf\InternalType\NameObject
*/
/**
* PHPUnit Test Case
*/
/**
* @category Zend
* @package Zend_PDF
* @subpackage UnitTests
* @group Zend_PDF
*/
class NameTest extends \PHPUnit_Framework_TestCase
{
public function... |
angular.module('pascalprecht.translate').factory('$translateCookieStorage', [
'$cookieStore',
function ($cookieStore) {
var $translateCookieStorage = {
get: function (name) {
return $cookieStore.get(name);
},
set: function (name, value) {
$cookieStore.put(name, value... |
package v1
import (
runtime "k8s.io/apimachinery/pkg/runtime"
api_v1 "k8s.io/kubernetes/pkg/api/v1"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(sc... |
@interface LLSimpleCamera () <AVCaptureFileOutputRecordingDelegate>
@property (strong, nonatomic) UIView *preview;
@property (strong, nonatomic) AVCaptureStillImageOutput *stillImageOutput;
@property (strong, nonatomic) AVCaptureSession *session;
@property (strong, nonatomic) AVCaptureDevice *videoCaptureDevice;
@prope... |
@class MaxRecommendTypeModel;
@interface MaxRecommendTypeCell : UITableViewCell
@property (nonatomic, strong) MaxRecommendTypeModel *model;
@end
|
<?php
use Cron\CronBundle\Cron\Manager;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/**
* @author Dries De Peuter <dries@nousefreak.be>
*/
class CommandBuilderTest extends WebTestCase
{
public function testRenderEnvironment()
{
$env = rand();
$builder = new \Cron\CronBundle\Cron\Com... |
package com.microsoft.azure.management.recoveryservices.backup.v2016_12_01.implementation;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.SkipParentValidation;
import com.microsoft.azure.Resource;
/**
* Protectable Container Class.
*/
@SkipParentValidation
public class Protectable... |
package fortran.ofp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.antlr.runtime.Token;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import fortran.ofp.parser.java.IActionEnums;
import fortran.ofp.parser.java.IFortranParser;
... |
package com.mapswithme.maps.bookmarks.data;
import android.annotation.SuppressLint;
import android.os.Parcel;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.mapswithme.maps.Framework;
import com.mapswithme.maps.ads.Banner;
... |
@interface CMHLoginStepViewController ()
@end
@implementation CMHLoginStepViewController
- (void)forgotPasswordButtonTapped
{
UIAlertController *resetAlert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Reset Password", nil)
... |
package guest
import (
"errors"
"flag"
"net/url"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/guest"
"github.com/vmware/govmomi/object"
"golang.org/x/net/context"
)
type GuestFlag struct {
*flags.ClientFlag
*flags.VirtualMachineFlag
*AuthFlag
}
func (flag *GuestFlag) Register(f *f... |
<?php
namespace ZendTest\Filter\File;
use PHPUnit\Framework\TestCase;
use Zend\Filter\Exception;
use Zend\Filter\File\Rename as FileRename;
class RenameTest extends TestCase
{
/**
* Path to test files
*
* @var string
*/
protected $tmpPath;
/**
* Original testfile
*
* ... |
struct S {
void a(); // expected-note {{here}}
~S(); // expected-note {{here}}
void operator delete(void*); // expected-note {{here}}
};
void S::a() noexcept {} // expected-error {{does not match previous}}
S::~S() noexcept {} // expected-warning {{function previously declared with an implicit exception specific... |
using System.Collections.Generic;
using Sce.Atf.Dom;
using Sce.Atf.Rendering;
namespace Sce.Atf.Atgi
{
/// <summary>
/// ATGI animation clip</summary>
public class AnimClip : DomNodeAdapter, IAnimClip
{
/// <summary>
/// Gets and sets the AnimClip name</summary>
public string N... |
package record
import (
"encoding/json"
"fmt"
"strings"
"sync"
"time"
"github.com/golang/groupcache/lru"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/util/clock"
"k8s.io/kubernetes/pkg/util/sets"
"k8s.io/kubernetes/pkg/util/strategicpatch"
)
const (
maxLru... |
set -e
CFG=/opt/redis/redis.conf
HOSTNAME=$(hostname)
DATADIR="/data"
# Port on which redis listens for connections.
PORT=6379
# Ping everyone but ourself to see if there's a master. Only one pet starts at
# a time, so if we don't see a master we can assume the position is ours.
while read -ra LINE; do
if [[ "${L... |
package jenkins.model.item_category;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Exported;
import org.kohsu... |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.particle.android.sdk.cloud">
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Thelia\Model\Base\OrderProduct | </title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css">
</head>... |
namespace StudentSystem.Data
{
using StudentSystem.Data.Repositories;
using StudentSystem.Models;
using System;
using System.Collections.Generic;
public class StudentsSystemData : IStudentSystemData
{
private IStudentSystemDbContext context;
private IDictionary<Type, object> re... |
using namespace std;
typedef set<pair<const CWalletTx*,unsigned int> > CoinSet;
BOOST_AUTO_TEST_SUITE(wallet_tests)
static CWallet wallet;
static vector<COutput> vCoins;
static void add_coin(int64 nValue, int nAge = 6*24, bool fIsFromMe = false, int nInput=0)
{
static int i;
CTransaction* tx = new CTransact... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Documentation tutorialpullRequests.getCommits</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link ty... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using System.Globalization;
using System.Linq;
using Microsoft.WindowsAzure.MobileS... |
#!/usr/bin/env node
var debug = process.env.DEBUG_JSBEAUTIFY || process.env.JSBEAUTIFY_DEBUG ? function() {
console.error.apply(console, arguments);
} : function() {};
var fs = require('fs'),
cc = require('config-chain'),
beautify = require('../index'),
mkdirp = require('mkdirp'),
nopt = require... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TPS.ImageOrganizer
{
public static class Extensions
{
public static IEnumerable<FileInfo> GetFilesByExtensions(this DirectoryInfo dir, params string[] extensio... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
#ifndef TENSORFLOW_GRAPH_EQUAL_GRAPH_DEF_H_
#define TENSORFLOW_GRAPH_EQUAL_GRAPH_DEF_H_
#include "tensorflow/core/framework/graph_def_util.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/types.h"
namespace tensorflow {
class GraphDef;
class NodeDef;
struct EqualGraphDefOptions... |
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:22.f],NSForegroundColorAttributeName:[UICo... |
// Code generated by client-gen. DO NOT EDIT.
package internalversion
import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
autoscaling "k8s.io/kubernetes/pkg/apis/autoscaling"
scheme "k8s.io/kubernetes/pkg/c... |
=pod
=encoding utf8
=head1 NAME
Tinkerforge::BrickletDualButton - Two tactile buttons with built-in blue LEDs
=cut
package Tinkerforge::BrickletDualButton;
use strict;
use warnings;
use Carp;
use threads;
use threads::shared;
use parent 'Tinkerforge::Device';
use Tinkerforge::IPConnection;
use Tinkerforge::Error;... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsNPAPIPluginStreamListe... |
/**
* English spoken in Great Britain
*/
$.FE.LANGUAGE['en_gb'] = {
translation: {
// Place holder
"Type something": "Type something",
// Basic formatting
"Bold": "Bold",
"Italic": "Italic",
"Underline": "Underline",
"Strikethrough": "Strikethrough",
// Main buttons
"Insert"... |
import { createSelector } from 'reselect';
export function isAuthenticated(state) {
return getAuth(state).authenticated;
}
//=====================================
// MEMOIZED SELECTORS
//-------------------------------------
export const getAuth = createSelector(
state => state.auth,
auth => auth.toJS()
);
|
package pflag
import (
"fmt"
"strconv"
)
// -- uint Value
type uintValue uint
func newUintValue(val uint, p *uint) *uintValue {
*p = val
return (*uintValue)(p)
}
func (i *uintValue) Set(s string) error {
v, err := strconv.ParseUint(s, 0, 64)
*i = uintValue(v)
return err
}
func (i *uintValue) Type() string {... |
// Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
import passwordHasher = require('aspnet-identity-pw');
function usageSync() {
var hashedPassword: string = passwordHasher.hashPassword('SomePassword');
var isValid: boolean = passwordHasher.validatePassword('SomePassword', hashedPassword);
}
function usageAsync() {
var hashedPassword: string = null;
v... |
/*!
* Slidebars - A jQuery Framework for Off-Canvas Menus and Sidebars
* Version: 2.0.2
* Url: http://www.adchsm.com/slidebars/
* Author: Adam Charles Smith
* Author url: http://www.adchsm.com/
* License: MIT
* License url: http://www.adchsm.com/slidebars/license/
*/
/**
* Box Model, Html & Body
*/
html, bo... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v5.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var utils_1 = require("../utils");
var gridRow_1 = require("./gridRow");
var GridCell = (function () {
function GridCell(rowIndex, float... |
@class BSBserValues;
@class BSBserWriter;
@interface APServiceExUserInvited : APServiceEx
#pragma mark Public
- (instancetype)init;
- (instancetype)initWithInt:(jint)invitedUid;
- (jint)getHeader;
- (jint)getInvitedUid;
- (void)parseWithBSBserValues:(BSBserValues *)values;
- (void)serializeWithBSBserWriter:(BSB... |
MathJax.Localization.addTranslation("tr","HelpDialog",{version:"2.7.3",isLoaded:true,strings:{}});MathJax.Ajax.loadComplete("[MathJax]/localization/tr/HelpDialog.js");
|
class AddGrantsToUserCredits < ActiveRecord::Migration
def change
execute <<-SQL
revoke select on "1".user_credits from anonymous;
grant select on "1".user_credits to admin;
grant select on "1".user_credits to web_user;
SQL
end
end
|
A module for limiting concurrent asynchronous actions in flight. Forked from [queue](https://github.com/jessetane/queue).
[](http://www.npmjs.org/async-limiter)
[![tests](https://img.shields.io/travis/STRML/async-limiter.svg?style=flat-square&branc... |
package org.gradle.ide.xcode.tasks.internal;
import org.gradle.internal.xml.XmlTransformer;
import org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject;
import java.util.HashMap;
import java.util.Map;
public class XcodeWorkspaceFile extends XmlPersistableConfigurationObject {
public Xcod... |