text stringlengths 3 1.05M |
|---|
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AllReady.Configuration;
using AllReady.Constants;
using AllReady.Controllers;
using AllReady.Extensions;
using AllReady.Features.Admin;
using AllReady.Features.Manage;
using AllReady.Models;
using AllReady.UnitTest.Extensions;
usin... |
$(function() {
// when hovering over arrow, add highlight (only if inactive)
$("h3.methodToggle").hover(function () {
if (!$("h3.methodToggle").hasClass('active'))
$(this).addClass("methodToggleHover");
},
function () {
$(this).removeClass("methodToggleHover");
}
);
// after exp... |
/*global Ghost, Backbone, $ */
(function () {
'use strict';
Ghost.Models.uploadModal = Backbone.Model.extend({
options: {
close: true,
type: 'action',
style: ["wide"],
animation: 'fade',
afterRender: function () {
var filestora... |
(function() {
if(!mocha) {
throw new Exception("mocha library does not exist in global namespace!");
}
/*
* Mocha Events:
*
* - `start` execution started
* - `end` execution complete
* - `suite` (suite) test suite execution started
* - `suite ... |
import { Component } from '@angular/core';
import { startOfDay } from 'date-fns';
@Component({
selector: 'my-app',
template: `
<mwl-calendar-month-view
[viewDate]="viewDate"
[events]="events">
</mwl-calendar-month-view>
`
})
export class AppComponent {
viewDate: Date = new Date();
events ... |
FactoryBot.define do
sequence :gp_code do |n|
"G#{n.to_s.rjust(7, '0')}"
end
factory :primary_care_physician, class: "Renalware::Patients::PrimaryCarePhysician" do
name { "GOOD PJ" }
telephone { "0203593082" }
code { generate(:gp_code) }
practitioner_type { "GP" }
# ensures addressable_t... |
namespace content {
class BrowserContext;
class WebContents;
}
namespace ui {
class WebDialogDelegate;
}
namespace ui {
class FilePickerUI : public WebDialogUI {
public:
explicit FilePickerUI(content::WebUI* web_ui);
~FilePickerUI() override;
private:
DISALLOW_COPY_AND_ASSIGN(FilePickerUI);
};
} // namesp... |
// Copyright 2005, 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
package org.elasticsearch.common.util;
import com.carrotsearch.hppc.ObjectArrayList;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.BytesRefArray;
import org.apache.lucene.util.BytesRefBuilder;
import org.apache.lucene.util.InPlaceMergeSorter;
import org.apache.lucene.util.IntroSorter;
import ... |
<?php
namespace ZendTest\Validator;
use Zend\I18n\Validator\Alnum as AlnumValidator;
/**
* @category Zend
* @package Zend_Validator
* @subpackage UnitTests
* @group Zend_Validator
*/
class AlnumTest extends \PHPUnit_Framework_TestCase
{
/**
* @var AlnumValidator
*/
... |
#include "ui/UILoadingBar.h"
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
#include "2d/CCSprite.h"
NS_CC_BEGIN
namespace ui {
static const int BAR_RENDERER_Z = (-1);
IMPLEMENT_CLASS_GUI_INFO(LoadingBar)
LoadingBar::LoadingBar():
_direction(Direction::LEFT),
_percent(100.0),
_totalLen... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.e... |
'use strict';
var path = require('path');
var glob = require('glob');
var commandLine;
var cmdName = path.basename(process.argv[1]);
try {
commandLine = new (require('commander').Command)(cmdName);
} catch (ex) {
console.error('Commander.js is required for this to work. To install it ' +
'run:\n\n ... |
- the `java.io` API uses byte streams to interact with file data
- The `NIO` API introduced the concepts of **buffers** and **channels** in place of `java.io` streams
- The basic idea is that you load the data from a file channel into a temporary buffer that, unlike byte streams, can be read forward and backward witho... |
package com.intellij.openapi.diff.impl;
import com.intellij.openapi.diff.impl.highlighting.DiffPanelState;
import com.intellij.openapi.diff.impl.splitter.DiffDividerPaint;
import com.intellij.openapi.editor.event.VisibleAreaEvent;
import com.intellij.openapi.editor.event.VisibleAreaListener;
import com.intellij.opena... |
#include "tensorflow/lite/testing/tokenize.h"
#include <istream>
#include <string>
#include "tensorflow/lite/string_type.h"
namespace tflite {
namespace testing {
void Tokenize(std::istream* input, TokenProcessor* processor) {
enum State { kBuildQuotedToken, kBuildToken, kIdle };
std::string current_token;
... |
{% load wagtailcore_tags %}
<body>{% include_block test_block with classname="IMPORTANT"|lower %}</body>
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
Fungal Diversity 11: 152 (2002)
#### Original name
Didymella melaleucae Sivan. & R.G. Shivas
### Remarks
null |
module Zip
class Deflater < Compressor #:nodoc:all
def initialize(output_stream, level = ::Zlib::DEFAULT_COMPRESSION)
super()
@output_stream = output_stream
@zlib_deflater = ::Zlib::Deflate.new(level, -::Zlib::MAX_WBITS)
@size = 0
@crc = ::Zlib.crc32
end
... |
import os
import shutil
import glob
import re
from stat import S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IXOTH, S_ISGID
from nbgrader.exchange.abc import ExchangeReleaseFeedback as ABCExchangeReleaseFeedback
from .exchange import Exchange
from nbgrader.utils import notebook_hash, make_unique_key
class ... |
//
// NSArray+LINQ_Generation.h
// LINQ4Obj-C
//
// Copyright (c) 2013 Michal Konturek
//
// 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 limit... |
/**
* oclazyload - Load modules on demand (lazy load) with angularJS
* @version v1.0.1
* @link https://github.com/ocombe/ocLazyLoad
* @license MIT
* @author Olivier Combe <olivier.combe@gmail.com>
*/
(function (angular, window) {
'use strict';
var regModules = ['ng', 'oc.lazyLoad'],
re... |
local function apply(list, f)
local t = {}
for k,v in ipairs(list) do t[k] = f(v) end
return t
end
-- Gets the max value of a list
local function max(list)
local m = list[1]
for i = 2,#list do
if list[i] > m then m = list[i] end
end
return m
end
-- Makes an array of n buckets
local function make_buckets(n)
... |
var semver = require('semver');
var which = require('which');
var fs = require('../util/fs');
var path = require('path');
var Q = require('q');
var execFile = require('child_process').execFile;
var Project = require('../core/Project');
var defaultConfig = require('../config');
var createError = require('../util/createE... |
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Projects on Thai Tran</title>
<link>https://bubuzzz.github.io/tags/projects/</link>
<description>Recent content in Projects on Thai Tran</description>
<generator>Hugo ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang=en>
<head>
<title>CSS 2D Transforms Module Level 3</title>
<link href=default.css rel=stylesheet type="text/css">
<style type="text/css">
.rhs { white-space: pre-wrap; }
code { font-size: inherit; }
... |
'use strict';
var React = require('React');
var ReactDOM = require('ReactDOM');
var ReactTestUtils = require('ReactTestUtils');
describe('findDOMNode', function() {
it('findDOMNode should return null if passed null', function() {
expect(ReactDOM.findDOMNode(null)).toBe(null);
});
it('findDOMNode should f... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
#include <vector>
#include <string>
#include <osquery/core.h>
#include <osquery/config.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include "osquery/events/darwin/fsevents.h"
#include "osquery/tables/events/event_utils.h"
namespace osquery {
extern const std::set<std::string> kCommonFileColumns;
/... |
<?php
namespace PhpParser;
use PhpParser\Parser\Tokens;
class Lexer
{
protected $code;
protected $tokens;
protected $pos;
protected $line;
protected $filePos;
protected $tokenMap;
protected $dropTokens;
protected $usedAttributes;
/**
* Creates a Lexer.
*
* @param... |
/**
* @module ol/format/WFS
*/
import GML2 from './GML2.js';
import GML3 from './GML3.js';
import GML32 from './GML32.js';
import GMLBase, {GMLNS} from './GMLBase.js';
import XMLFeature from './XMLFeature.js';
import {
XML_SCHEMA_INSTANCE_URI,
createElementNS,
isDocument,
makeArrayPusher,
makeChildAppender,... |
<?php
namespace Zend\Mail\Transport;
use Zend\Mail\Message;
/**
* InMemory transport
*
* This transport will just store the message in memory. It is helpful
* when unit testing, or to prevent sending email when in development or
* testing.
*/
class InMemory implements TransportInterface
{
/**
* @var... |
package com.google.api.gax.httpjson;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.BatchingCallSettings;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.P... |
using System;
using System.Collections.Generic;
using System.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Editor.Host;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host... |
package ipv6
import (
"net"
"os"
"unsafe"
)
var freebsd32o64 bool
func setsockoptGroupReq(fd int, opt *sockOpt, ifi *net.Interface, grp net.IP) error {
var gr sysGroupReq
if ifi != nil {
gr.Interface = uint32(ifi.Index)
}
gr.setGroup(grp)
var p unsafe.Pointer
var l uint32
if freebsd32o64 {
var d [sysSi... |
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CONF_CLOCK_H_INCLUDED
#define CONF_CLOCK_H_INCLUDED
// ===== System Clock (MCK) Source Options
//#define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_SLCK_RC
//#define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_SLCK_XTA... |
<!-- Blend a background image and a background color specifying background-clip: padding-box -->
<!DOCTYPE HTML>
<html>
<head>
<style>
div {
padding: 8.5px;
margin: 0 0 9px;
background: url('resources/white_square.svg'), #777777;
background-clip: padding-box;
width: 200px;
height: 200px;
margin: 10px;
backgr... |
package emr
import (
"fmt"
"testing"
)
func TestModifyExecutePlan(t *testing.T) {
var req ModifyExecutePlanRequest
req.Init()
req.SetFormat("JSON")
req.SetRegionId("cn-shenzhen")
var accessId = "Ie65kUInu5GeAsma"
var accessSecret = "8cCqoxdYU9zKUihwXFXiN1HEACBDwB"
resp, err := ModifyExecutePlan(&req, accessI... |
package wich.semantics;
import org.antlr.symtab.Symbol;
import org.antlr.symtab.TypedSymbol;
import wich.errors.WichErrorHandler;
import wich.parser.WichParser;
import wich.semantics.symbols.WVariableSymbol;
import static wich.errors.ErrorType.SYMBOL_NOT_FOUND;
/*Assign types to variable initializations wherever po... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - performance [static]</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background:#fff;
padding:0;
margin:0;
font-weight: bo... |
using PcapDotNet.Base;
using PcapDotNet.Packets.IpV4;
namespace PcapDotNet.Packets.IpV6
{
/// <summary>
/// RFC 2460.
/// <pre>
/// +-----+-------------+-------------------------+--------------+---------------+
/// | Bit | 0-7 | 8-15 | 16-23 | 24-31 ... |
To use a file-uploader component, you must include CSS and JavaScript files.
Main bundling files can download from a `dist` folder in the repository.
And this component has `jQuery` and `CodeSnippet` dependencies.
#### CSS File
```html
<link rel="stylesheet" href="tui-file-uploader.css">
```
#### JS Files
```html
... |
<?php
namespace Zend\Db\Adapter\Driver\Pdo\Feature;
use Zend\Db\Adapter\Driver\Feature\AbstractFeature;
use Zend\Db\Adapter\Driver\Pdo;
/**
* SqliteRowCounter
*/
class SqliteRowCounter extends AbstractFeature
{
/**
* @return string
*/
public function getName()
{
return 'SqliteRowCou... |
/**
* @file
* Markdown insert plugin for Linkit.
*
* Notes: Markdown dont support any attributes exept "title".
* [An example](http://example.com/ "Title")
*/
(function ($) {
Drupal.linkit.registerInsertPlugin('markdown', {
insert : function(data) {
var pattern = '[!text](!url!title)',
args = {
... |
package org.apache.hive.hplsql;
import org.antlr.v4.runtime.ParserRuleContext;
public class TypeException extends HplValidationException {
public TypeException(ParserRuleContext ctx, Var.Type expectedType, Var.Type actualType, Object value) {
super(ctx, "cannot convert '" + value + "' with type " + actualType... |
package editor;
import game.graphics.GameFrame;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import... |
CKEDITOR.plugins.setLang( 'smiley', 'no', {
options: 'Alternativer for smil',
title: 'Sett inn smil',
toolbar: 'Smil'
});
|
import com.intellij.codeInspection.InspectionProfileEntry;
public class MyRegisteredCorrectlyInspection extends InspectionProfileEntry {
} |
'use strict';
var BrowserSupportCore = require('BrowserSupportCore');
var getVendorPrefixedName = require('getVendorPrefixedName');
var TRANSFORM = getVendorPrefixedName('transform');
var BACKFACE_VISIBILITY = getVendorPrefixedName('backfaceVisibility');
var translateDOMPositionXY = (function() {
if (BrowserSup... |
package org.apache.camel.component.jms.discovery;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* @version
*/
public class MyService {
private String name;
public MyService(String name) {
this.name = name;
}
public Map<String, Object> status() {
Map<S... |
/*
* This file was semi-automatically converted from the public-domain USGS PROJ source.
*/
/**
* Added isEqualArea by Bernhard Jenny, May 19 2010.
*/
package com.jhlabs.map.proj;
public class QuarticAuthalicProjection extends STSProjection {
public QuarticAuthalicProjection() {
super(2., 2., false)... |
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. 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 co... |
import operator
from ..util import decorator
from . import config
from .. import util
import inspect
import contextlib
from sqlalchemy.util.compat import inspect_getargspec
def skip_if(predicate, reason=None):
rule = compound()
pred = _as_predicate(predicate, reason)
rule.skips.add(pred)
return rule
... |
@implementation NavButtonBarExampleViewController
{
BOOL _isReload;
}
- (void)viewDidLoad {
[super viewDidLoad];
self.isProgressiveIndicator = YES;
// Do any additional setup after loading the view.
[self.buttonBarView setBackgroundColor:[UIColor clearColor]];
[self.buttonBarView.selectedB... |
Rails.application.configure do
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
con... |
package org.apache.nifi.record.sink.lookup;
import org.apache.nifi.reporting.InitializationException;
import org.apache.nifi.serialization.SimpleRecordSchema;
import org.apache.nifi.serialization.WriteResult;
import org.apache.nifi.serialization.record.MapRecord;
import org.apache.nifi.serialization.record.Record;
i... |
package org.apache.ignite.spi.collision.jobstealing;
import org.apache.ignite.testframework.junits.spi.GridSpiAbstractConfigTest;
import org.apache.ignite.testframework.junits.spi.GridSpiTest;
import org.junit.Test;
/**
* Job stealing collision SPI config test.
*/
@GridSpiTest(spi = JobStealingCollisionSpi.class,... |
/* 7zDecode.c */
#include <memory.h>
#include "7zDecode.h"
#ifdef _SZ_ONE_DIRECTORY
#include "LzmaDecode.h"
#else
#include "../../Compress/Lzma/LzmaDecode.h"
#include "../../Compress/Branch/BranchX86.h"
#include "../../Compress/Branch/BranchX86_2.h"
#endif
#define k_Copy 0
#define k_LZMA 0x30101
#define k_BCJ 0x0303... |
/**
* @fileoverview Rule to flag non-matching identifiers
* @author Matthieu Larcher
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = {
meta: {
... |
"""Generic thread tests.
Meant to be used by dummy_thread and thread. To allow for different modules
to be used, test_main() can be called with the module to use as the thread
implementation as its sole argument.
"""
import dummy_thread as _thread
import time
import Queue
import random
import unittest
from test impo... |
using Xunit;
namespace System.IO.Tests
{
public class DirectoryInfo_CreateSubDirectory : FileSystemTest
{
#region UniversalTests
[Fact]
public void NullAsPath_ThrowsArgumentNullException()
{
Assert.Throws<ArgumentNullException>(() => new DirectoryInfo(TestDirectory)... |
require 'benchmark'
class << Benchmark
def ms
1000 * realtime { yield }
end
end
|
**DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.**
Action View Overview
====================
After reading this guide, you will know:
* What Action View is and how to use it with Rails.
* How best to use templates, partials, and layouts.
* What helpers are provided by Action... |
/**
* Module dependencies.
*/
var connect = require('../');
// $ curl http://localhost:3000/favicon.ico
connect.createServer(
connect.logger()
, connect.favicon()
).listen(3000);
|
$(document).ready(function(){
// Jumping to page section
$('.smooth-scroll').bind('click',function(event){
var $anchor = $(this);
var $navbar_position = $('.navbar').css('top');
var $navbar_height = parseInt($('.navbar').css('height'));
var $offset = 0;
// Takes care of changing navbar size/posi... |
<!DOCTYPE html>
<html>
<!-- removed for now, causes problems in Firefox: manifest="svg-editor.manifest" -->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta ... |
from struct import *
from zlib import *
import stat
import sys
import os
def getNormalizedPNG(filename):
pngheader = "\x89PNG\r\n\x1a\n"
file = open(filename, "rb")
oldPNG = file.read()
file.close()
if oldPNG[:8] != pngheader:
return None
newPNG = oldPNG[:8]
chunkPo... |
/*************************************************************************/
/* scene_main_loop.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
import ftplib
import re
from socket import gaierror
from urlparse import urlparse
def get_ftp_page(url):
"""
Retrieves a page from an ftp server.
Returns the page's contents as a list of its lines.
"""
try:
u = urlparse(url)
ftp = ftplib.FTP(host=u.netloc, timeout=10)
ftp... |
//----------------------------------------------------
// The following code was generated by CUP v0.11a beta 20060608
// Tue May 17 15:48:39 EDT 2016
//----------------------------------------------------
package com;
/** CUP generated interface containing symbol constants. */
public interface Symbols {
/* termin... |
package com.vaadin.tests;
import java.util.LinkedList;
import java.util.Random;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.v7.data.Property.ValueChangeEvent;
import com.vaa... |
namespace tesseract {
// Center of randomizing operations.
const int kRandomizingCenter = 128;
// Randomizing factors.
const int TrainingSample::kYShiftValues[kSampleYShiftSize] = {6, 3, -3, -6, 0};
const double TrainingSample::kScaleValues[kSampleScaleSize] = {1.0625, 0.9375, 1.0};
TrainingSample::~TrainingSample()... |
package org.jetbrains.plugins.groovy.codeInspection.assignment;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.codeInspection.ui.MultipleCheckboxOptionsPanel;
import com.intellij.openapi.project.Project;
import com.intellij.psi.JavaTokenType;
import com.intellij.psi.PsiElement;
import com.i... |
ENTITIES = %w(Account Campaign Contact Lead Opportunity).freeze
|
module FactoryGirlStepHelpers
def convert_association_string_to_instance(factory_name, assignment)
attribute, value = assignment.split(':', 2)
attributes = convert_human_hash_to_attribute_hash(attribute => value.strip)
factory = Factory.factory_by_name(factory_name)
model_class = factory.build_class
... |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Parent pom.xml</name>
<description>Parent POM for the artifacts for TensorFlow for Java</description... |
<?php
// WebProfilerBundle:Collector:memory.html.twig
return array (
);
|
public class Main {
public static void main(String[] args) {
Special special = new Special();
special.callInner();
System.out.println("done");
}
public static class Special {
Blort mBlort = null;
Special() {
System.out.println("new Special()");
}... |
#ifdef USE_TI_UISCROLLABLEVIEW
#import "TiUIScrollableView.h"
#import "TiUIScrollableViewProxy.h"
#import "TiUtils.h"
#import "TiViewProxy.h"
@interface TiUIScrollableView(redefiningProxy)
@property(nonatomic,readonly) TiUIScrollableViewProxy * proxy;
@end
@implementation TiUIScrollableView
#pragma mark Internal
... |
/*globals define, jQuery */
/*jslint vars:true */
/**
* @license angular-bootstrap-datetimepicker version: 0.3.11
* (c) 2013-2014 Knight Rider Consulting, Inc. http://www.knightrider.com
* License: MIT
*/
/**
*
* @author Dale "Ducky" Lotts
* @since 2013-Jul-8
*/
(function (factory) {
'... |
using Lucene.Net.Util;
using System;
using System.IO;
using System.Text;
using Console = Lucene.Net.Util.SystemConsole;
namespace Lucene.Net.Search.Suggest.Fst
{
/// <summary>
/// Try to build a suggester from a large data set. The input is a simple text
/// file, newline-delimited.
/// </summar... |
package com.particles.android.programs;
import static android.opengl.GLES20.glGetAttribLocation;
import static android.opengl.GLES20.glGetUniformLocation;
import static android.opengl.GLES20.glUniformMatrix4fv;
import android.content.Context;
import com.particles.android.R;
public class HeightmapShaderProgram exten... |
<?php
namespace Grav\Console\Gpm;
use Grav\Common\Grav;
use Grav\Common\Filesystem\Folder;
use Grav\Common\GPM\GPM;
use Grav\Common\GPM\Installer;
use Grav\Common\GPM\Response;
use Grav\Console\ConsoleCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Question\ConfirmationQuest... |
<ion-content class="has-tabs" mm-state-class>
<ion-refresher pulling-text="{{ 'mm.core.pulltorefresh' | translate }}" ng-if="loaded" on-refresh="refresh()"></ion-refresher>
<mm-loading hide-until="loaded">
<ul class="list">
<li>
<a class="item item-avatar" ng-repeat="disc in ... |
Given a number, find the sum of all the unique multiples of particular numbers up to
but not including that number.
If we list all the natural numbers below 20 that are multiples of 3 or 5,
we get 3, 5, 6, 9, 10, 12, 15, and 18.
The sum of these multiples is 78.
|
<!-- HTML header for doxygen 1.8.9.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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" 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 Lic... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.7.0
*/
goog.provide('ng.material.components.subheader');
goog.require('ng.material.components.sticky');
goog.require('ng.material.core');
(function() {
'use strict';
/**
* @ngdoc module
* @name material.components.subheader
... |
@REM This batch file has been generated by the IAR Embedded Workbench
@REM C-SPY Debugger, as an aid to preparing a command line for running
@REM the cspybat command line utility using the appropriate settings.
@REM
@REM Note that this file is generated every time a new debug session
@REM is initialized, so you ma... |
(function(root, factory) {
if(typeof exports === 'object') {
module.exports = factory(require, exports, module);
}
else if(typeof define === 'function' && define.amd) {
define(['require', 'exports', 'module'], factory);
}
else {
var req = function(id) {return root[id];},
... |
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.2.xsd">
... |
@implementation FKFlickrPhotosGeoPhotosForLocation
- (BOOL) needsLogin {
return YES;
}
- (BOOL) needsSigning {
return YES;
}
- (FKPermission) requiredPerms {
return 0;
}
- (NSString *) name {
return @"flickr.photos.geo.photosForLocation";
}
- (BOOL) isValid:(NSError **)error {
BOOL valid = YE... |
namespace base {
class MessageLoop;
class Thread;
}
class UrlmonUrlRequest;
class UrlmonUrlRequestManager
: public PluginUrlRequestManager,
public PluginUrlRequestDelegate {
public:
// Contains the privacy information for all requests issued by this instance.
struct PrivacyInfo {
public:
struct ... |
module Jekyll
module Tags
class CalloutTag < Liquid::Block
def initialize(tag_name, type, tokens)
super
type.strip!
if %w(info danger warning).include?(type)
@type = type
else
puts "#{type} callout not supported. Defaulting to info"
@type = "inf... |
require('xyz');
|
"""
This script demonstrates querying the adressen register gateway while
maintaining a cache.
In total this script should execute 3 rest calls:
Retrieve gemeenten, retrieve straten, retrieve adressen.
"""
from crabpy.client import AdressenRegisterClient
from crabpy.gateway.adressenregister import Gateway
cache_setti... |
package org.elasticsearch.action.admin.cluster.node.tasks.get;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.commo... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>value::if_uint64 (2 of 2 overloads)</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../..... |
SelfAdjointEigenSolver<Matrix4f> es;
Matrix4f X = Matrix4f::Random(4,4);
Matrix4f A = X + X.transpose();
es.compute(A);
cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl;
es.compute(A + Matrix4f::Identity(4,4)); // re-use es to compute eigenvalues of A+I
cout << "The eigenvalues of A+I are: "... |
/**
* The Browser History Manager provides the ability to use the back/forward
* navigation buttons in a DHTML application. It also allows a DHTML
* application to be bookmarked in a specific state.
*
* This library requires the following static markup:
*
* <iframe id="yui-history-iframe" src="path-to-real-a... |