code
stringlengths
4
1.01M
language
stringclasses
2 values
export * from './about'; export * from './no-content'; export * from './home';
Java
<!--conf <sample> <product version="2.6" edition="std"/> <modifications> <modified date="100609"/> </modifications> </sample> --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/...
Java
version https://git-lfs.github.com/spec/v1 oid sha256:d5b913ad3304fa791ac6c6064dcecf37b157290bb0e8292e76aee05bee6dc425 size 3752
Java
--- layout: player radio: gardarica date: 2017-04-06T05:06:27Z ---
Java
/** * Filtering sensitive information */ const _ = require('lodash'); /** * reset option * @param {string|object|array} opt filter option * @param {array} filterKeys filter keys * @param {string|function} replaceChat replace chat or function * @param {boolean} recursion whether recursive , true of false */ c...
Java
from slm_lab.env.vec_env import make_gym_venv import numpy as np import pytest @pytest.mark.parametrize('name,state_shape,reward_scale', [ ('PongNoFrameskip-v4', (1, 84, 84), 'sign'), ('LunarLander-v2', (8,), None), ('CartPole-v0', (4,), None), ]) @pytest.mark.parametrize('num_envs', (1, 4)) def test_make...
Java
package com.github.pineasaurusrex.inference_engine; import java.util.HashMap; /** * Partially or fully assigned model * A model represents a possible representation of the propositional symbol states in the KB */ public class Model { private HashMap<PropositionalSymbol, Boolean> symbolValues = new HashMap<>();...
Java
describe("The ot object has a forEach method, which allows you: ", function () { it("To iterate over an array", function () { var array = [1, 2, 4, 8, 16]; var sum = 0; var sumIndex = 0; ot.forEach(array, function (value, index) { sum += value; sumIndex += i...
Java
#ifndef LWEXML_H #define LWEXML_H #include <LWCore/LWText.h> #include <functional> #include "LWETypes.h" #define LWEXMLMAXNAMELEN 32 #define LWEXMLMAXVALUELEN 256 #define LWEXMLMAXTEXTLEN 1024 struct LWXMLAttribute { char m_Name[LWEXMLMAXNAMELEN]; char m_Value[LWEXMLMAXVALUELEN]; }; struct LWEXMLNod...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CycleCycleCycle.Services { public interface IRideService { bool Create(int accountId, int routeId, DateTime dateRidden, int? hours, int? minutes, int? seconds); } }
Java
<?php /** * [PHPFOX_HEADER] */ defined('PHPFOX') or exit('NO DICE!'); /** * * * @copyright [PHPFOX_COPYRIGHT] * @author Raymond Benc * @package Module_Mail * @version $Id: index.class.php 4378 2012-06-27 08:44:47Z Raymond_Benc $ */ class Mail_Component_Controller_Index extends Phpfox_Component { /*...
Java
<?php namespace Vin\FrontOfficeBundle\Entity; use Doctrine\ORM\EntityRepository; /** * MessageRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class MessageRepository extends EntityRepository { public function countMessages() { $quer...
Java
<!DOCTYPE html><html><head><title>https://cgmonline.co/tags/2ns/</title><link rel="canonical" href="https://cgmonline.co/tags/2ns/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://cgmonline.co/tags/2ns/" /></head></html>
Java
"""Classification-based test and kernel two-sample test. Author: Sandro Vega-Pons, Emanuele Olivetti. """ import os import numpy as np from sklearn.metrics import pairwise_distances, confusion_matrix from sklearn.metrics import pairwise_kernels from sklearn.svm import SVC from sklearn.cross_validation import Stratifi...
Java
#export pid=`ps aux | grep python | grep hello_gevent.py | awk 'NR==1{print $2}' | cut -d' ' -f1`;kill -9 $pid for KILLPID in `ps aux | grep 'python' | grep 'server01' | awk ' { print $2;}'`; do kill -9 $KILLPID; done #ps aux | grep python | grep -v grep | awk '{print $2}' | xargs kill -9
Java
<?php class kml_Overlay extends kml_Feature { protected $tagName = 'Overlay'; var $color; var $drawOrder; var $Icon; /* Constructor */ function kml_Overlay() { parent::kml_Feature(); } /* Assignments */ function set_color($color) { $this->color = $color; } function...
Java
###Simple CMS written in python3 bottle framework by default, project is configured to work on openshift cloud: https://openshift.redhat.com. You only need to add mongodb cartridge and restart app. If you want to deploy app on your own server, you have to configure ```DB_CREDENTIALS``` variable in ```config/__init__...
Java
require "importeer_plan/version" require 'importeer_plan/configuration' module ImporteerPlan class Importeer attr_accessor :path, :name, :dir, :size_batch, :sep, :initial, :options #call importeer("filename") to import the file in batches of 1000, optional importeer("filename", size_) def initialize(n...
Java
from collections import namedtuple Resolution = namedtuple('Resolution', ['x', 'y']) class Resolutions(object): resolutions = [ (1920, 1200), (1920, 1080), (1680, 1050), (1440, 900), (1360, 768), (1280, 800), (1024, 640) ] @classmethod ...
Java
namespace Dapper.SimpleSave.Tests.Dto { [Table("dbo.OneToManySpecialChild")] [ReferenceData(true)] public class OneToManySpecialChildDto : BaseOneToManyChildDto { } }
Java
using System.Diagnostics; namespace AdventOfCode.Day07.SignalProviders { [DebuggerDisplay("{DebuggerDisplay}")] public class Wire : SignalProvider { #region | Properties & fields private readonly Circut _parentCircut; private readonly string _rawProvider; public string ID...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./c9030aaf9d04a204bbcb52ab81f7d32203b0d25fa13ca8835e8e8174018d7f33.html">Teleport</a> <hr> ...
Java
// // SLWordViewController.h // 百思不得姐 // // Created by Anthony on 17/3/30. // Copyright © 2017年 SLZeng. All rights reserved. // #import "SLTopicViewController.h" @interface SLWordViewController : SLTopicViewController @end
Java
# Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| # Wrappers are used by the form builder to generate a # complete input. You can remove any component from the # wrapper, change the order or even add your own to the # stack. The options given below are used to...
Java
<?php namespace Craft\UserBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class CraftUserBundle extends Bundle { }
Java
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class TestModel extends CI_Model { public function popular_merchants(){ //include total reviews, sum of reviews, mp_id, unit, building, street, city name, region name, merchant name, merchant image, date and time of application approval, sub cat...
Java
/* * Copyright (c) 2013 Triforce - in association with the University of Pretoria and Epi-Use <Advance/> * * 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...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Documentation Module: DBConnector</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 type="text/css" ...
Java
import * as types from '../actions/types'; const search = (state = [], action) => { switch(action.type) { case types.SEARCH_INPUT_SUCCESS: return action.data; case types.SEARCH_INPUT_FAILED: return action.error.message; default: return state; } }; ex...
Java
using System; using System.Collections.Generic; using System.Text; namespace Light.Data.Mysql.Test { class BaseFieldSelectModelNull { #region "Data Property" private int id; /// <summary> /// Id /// </summary> /// <value></value> public int Id { ...
Java
// // YWPayViewController.h // YuWa // // Created by 黄佳峰 on 16/10/10. // Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger,PayCategory){ PayCategoryQRCodePay=0, //二维码支付 PayCategoryWritePay //手写支付 }; @int...
Java
.ui.video{position:relative;max-width:100%}.ui.video .placeholder{background-color:#333;display:block;width:100%;height:100%}.ui.video .embed,.ui.video.active .placeholder,.ui.video.active .play{display:none}.ui.video .play{cursor:pointer;position:absolute;top:0;left:0;z-index:10;width:100%;height:100%;-ms-filter:"prog...
Java
<?php use PHPUnit\Framework\TestCase; use voku\helper\HtmlDomHelper; use voku\helper\HtmlDomParser; /** * @internal */ final class SimpleHtmlHelperTest extends TestCase { public function testMergeHtmlAttributes() { $result = HtmlDomHelper::mergeHtmlAttributes( '<div class="foo" id="bar"...
Java
<?php namespace Youshido\CommentsBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; use Youshido\CommentsBundle\DependencyInjection\CompilerPass\CommentsCompilerPass; /** * Class CommentsBundle */ class CommentsBundle extends Bundle { /** * ...
Java
<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="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>...
Java
#include <stdio.h> #include <set> #include <utility> #include <vector> using namespace std; const int MAXN = 1e+2; int n, x0, y0; typedef pair<int, int> point; set<point> s; int cross(int x0, int y0, const point &a, const point &b) { return (a.first - x0) * (b.second - y0) - (a.second - y0) * (b.first - x0); ...
Java
// 1000. 连通性问题 #include <iostream> using namespace std; int unionFind[100001]; int find(int val) { if (val == unionFind[val]) return val; unionFind[val] = find(unionFind[val]); return unionFind[val]; } int main() { int a, b; for (int i = 0; i < 100001; i++) { unionFind[i] = i; } while (cin >> a >> ...
Java
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.pw/status_available # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser import parse a...
Java
<?php class ProvinceModel extends CI_Model { function __construct() { parent::__construct(); } /** * 插入数据 * @param $insertRows * @return mixed */ function insert_entry($insertRows) { foreach ($insertRows as $key => $val) { $this->$key = $v...
Java
.sidenav { height: 100%; width: 0; position: fixed; z-index: 1; top: 0; left: 0; background-color: #111; overflow-x: hidden; transition: 0.5s; padding-top: 60px; } .sidenav a { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 25px; color: #818181; ...
Java
#!/bin/sh sqlite3 -echo db/test.db < db/schema_context_a.sql
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About KCz</source> <translation>در مورد KCz</translation> </message> ...
Java
# Anchor
Java
<?php namespace APP\AppBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use APP\AppBundle\Entity\Cliente; use APP\AppBundle\Form\ClienteType; /** * Cliente controller. * */ class ClienteController extends Controller { /** * Lists ...
Java
WebsiteOne::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the we...
Java
# sails.config.models Your default project-wide **model settings**, conventionally specified in the [config/models.js](http://sailsjs.com/documentation/anatomy/myApp/config/models-js) configuration file. Most of the settings below can also be overridden on a per-model basis-- just edit the appropriate model definitio...
Java
require "presigner/version" require 'aws-sdk-v1' class Presigner DEFAULT_DURATION = 60 * 30 def initialize(options) @bucket = options[:bucket] @key = options[:key] @duration = options[:duration] || DEFAULT_DURATION @region = options[:region] || "us-east-1" @base = Time.now.to_i end attr...
Java
# frozen_string_literal: true require "administrate/base_dashboard" module Eve class StationDashboard < Administrate::BaseDashboard ATTRIBUTE_TYPES = { id: Field::Number, station_id: Field::Number, name: Field::String, system: Field::BelongsTo.with_options(class_name: "Eve::System"), ...
Java
declare namespace jdk { namespace nashorn { namespace api { namespace tree { interface ModuleTree extends jdk.nashorn.api.tree.Tree { getImportEntries(): java.util.List<jdk.nashorn.api.tree.ImportEntryTree> getLocalExportEntries(): java.util.List<jdk.nashorn.api.tree.ExportEntry...
Java
<?php namespace GL\ProtocolloBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class GLProtocolloBundle extends Bundle { }
Java
/** * Created by lee on 10/13/17. */ import React, { Component } from 'react'; export default class PlacesItem extends Component { constructor(props) { super(props); this.config = this.config.bind(this); this.rateStars = this.rateStars.bind(this); this.startBounce = this.startB...
Java
The MIT License (MIT) Copyright (c) 2015 Jaro Marval 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, publ...
Java
class Solution(object): def missingNumber(self, nums): """ :type nums: List[int] :rtype: int """ xor = len(nums) for i, n in enumerate(nums): xor ^= n xor ^= i return xor inputs = [ [0], [1], [3,0,1], [9,6,4,2,3,5,7,0...
Java
/**************************************************************************** * * Copyright (c) 2005 - 2012 by Vivante Corp. All rights reserved. * * The material in this file is confidential and contains trade secrets * of Vivante Corporation. This is proprietary information owned by * Vivante Corporation...
Java
<?php namespace spec\Genesis\API\Constants\Transaction; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class StatesSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType('Genesis\API\Constants\Transaction\States'); } }
Java
# Injections Injections are simply other classes that are included in our component tree. In our example we have `Store` and `Router` injections. Take a look at our `Store`. ```ruby class Store include Inesita::Injection attr_accessor :counter def init @counter = 0 end def increase @counter += 1...
Java
<div class="row-fluid">{namespace ehrm=Beech\Ehrm\ViewHelpers} <div class="span1"> <f:render partial="Forms/Buttons/Icon" arguments="{_all}"/> </div> <div class="span3"><strong><f:translate id="electronicAddress.electronicAddressType.{electronicAddress.electronicAddressType}">{electronicAddress.electronicAddressTy...
Java
// ----------------------------------------------------------------------- // <copyright file="ViewModel.cs" company="Screenmedia"> // Copyright (c) Screenmedia 2018. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace VanillaSample.Core.View...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0-beta2) on Mon Mar 19 19:33:09 CST 2007 --> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <TITLE> 软件包 org.w3c.dom.bootstrap 的使用 ...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc --> <title>DoNotInstrument</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href=".....
Java
@import Foundation; #import "FDObjectTransformerAdapter.h" @interface FDURLComponentsTransformerAdapter : NSObject < FDObjectTransformerAdapter > @end
Java
module Goaltender end require "goaltender/version" require "goaltender/base_module" require 'goaltender/value_parser' require 'goaltender/input' require 'goaltender/base'
Java
package com.sms4blood.emergencyhealthservices.util; import android.content.Intent; import android.location.Location; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.widget.Toast; import com.sms4blood.emergencyhealthservices.Sms; import com.sms4blood.emergencyhealthservi...
Java
<?php namespace App\FrontModule; use App\AppModule\ErrorPresenter as Presenter; class ErrorPresenter extends Presenter { }
Java
# Description: Photography References ### Online References * [None](#): None ### Write Here - None ### Notes - None ### TODOs - None
Java
<html> <head> <title> ABC 트레킹 3 : 시누와 :: 이한결 블로그 </title> <style> /* https://github.com/markdowncss/modest/blob/master/css/modest.css */ @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; ...
Java
module Perus::Pinger class Upload < Command description 'Uploads a file from the client to the server. Valid values for "path" are contained in the pinger config file.' option :path, restricted: true def run @file = File.new(options.path) end ...
Java
package miwax.java_conf.gr.jp.frugalitycalc.view; import android.app.AlertDialog; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import miwax.java_conf.gr.jp.frugalitycalc.R; import miwax.java_conf.gr.jp.frugalitycalc.databinding.ActivityMainBind...
Java
<?php namespace Manialib\Maniacode\Elements; class ViewReplay extends UrlDownload { protected $nodeName = 'view_replay'; }
Java
import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs ): super(MinexponentValidator, self).__init__( plotly_name=plotly_name, ...
Java
<HTML><HEAD> <TITLE>Review for Timecode (2000)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0220100">Timecode (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Frankie+Paiva">Franki...
Java
// // YSCMacros.h // YSCKit // // Created by Builder on 16/6/29. // Copyright © 2016年 Builder. All rights reserved. // #import <sys/time.h> //============================================================================== // // @Description: // 该文件定义了基础库YSCKit中常用的宏定义 // //====================================...
Java
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import path from 'path'; import webpack from 'webpack'; import CopyWebpackPlugin from 'copy-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; export default { context: __dirname, entry: './index.jsx', output:...
Java
namespace VoiceWall.Web.ViewModels.Search { using System.ComponentModel.DataAnnotations; public class SearchViewModel { [Required] [MinLength(2, ErrorMessage="Search text must be at least 2 characters")] [DataType(DataType.Text)] public string SearchText { get; set; } }...
Java
using SharpDX; using SharpDX.Direct3D11; using System; using System.Runtime.InteropServices; using System.Windows; using System.Xml; using System.IO; using System.Reflection; namespace Profiler.DirectX { public class TextManager : IDisposable { [StructLayout(LayoutKind.Sequential)] ...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_101) on Fri Oct 21 14:35:23 CEST 2016 --> <title>Uses of Class core.Task</title> <meta name="date" content="2016-10-21"> <link rel="stylesheet"...
Java
#include <iostream> #include <string> using namespace std; int main(){ int n; string experiment; for(cin>>n; n>0; n--){ cin >> experiment; if (experiment.size() < 3) cout << '+' << endl; else{ string s = experiment.substr(experiment.size()-2, 2); string saux; if(s == "35") cout << '...
Java
import urllib import urllib2 from bs4 import BeautifulSoup textToSearch = 'gorillaz' query = urllib.quote(textToSearch) url = "https://www.youtube.com/results?search_query=" + query response = urllib2.urlopen(url) html = response.read() soup = BeautifulSoup(html) for vid in soup.findAll(attrs={'class':'yt-uix-tile-lin...
Java
"use strict" var o = require("../../ospec/ospec") var callAsync = require("../../test-utils/callAsync") var browserMock = require("../../test-utils/browserMock") var m = require("../../render/hyperscript") var callAsync = require("../../test-utils/callAsync") var coreRenderer = require("../../render/render") var apiR...
Java
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > Math.sqrt, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm es5id: 15.8.2.17_A6 description: > Check...
Java
/////////////////////////////////////////////////////////////// // This is generated code. ////////////////////////////////////////////////////////////// // Code is generated using LLBLGen Pro version: 4.2 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates...
Java
/* * 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, Version 2.0 * (the "License"); you may ...
Java
\textbf{Входные параметры:} Отсутствуют. В переопределяемой функции также есть параметр: Type --- обозначение тестовой функции, которую вызываем. Смотреть виды в переменных перечисляемого типа в начале HarrixMathLibrary.h файла: TestFunction\_Ackley, TestFunction\_ParaboloidOfRevolution, TestFunction\_Rastrigin и ...
Java
'use strict'; export interface IPrint extends ng.resource.IResource<IPrint> { printOptions: any; } export interface IPrintResource extends ng.resource.IResourceClass<IPrint> {} export class PrintResource { /* @ngInject */ public static Print($resource: ng.resource.IResourceService): IPrintResource { var ...
Java
--- layout: page title: Tough Dark Company Dinner date: 2016-05-24 author: Charles Terrell tags: weekly links, java status: published summary: Aliquam non vehicula metus. Curabitur at est. banner: images/banner/leisure-01.jpg booking: startDate: 04/03/2017 endDate: 04/08/2017 ctyhocn: PHXSRHX groupCode: TDCD pu...
Java
--- layout: page title: Diamond Forest Entertainment Show date: 2016-05-24 author: Nicholas Palmer tags: weekly links, java status: published summary: Pellentesque a dolor dictum, congue arcu. banner: images/banner/meeting-01.jpg booking: startDate: 09/27/2018 endDate: 09/30/2018 ctyhocn: MQBILHX groupCode: DFE...
Java
<?php // :default:index.html.twig return array ( 'fe7793f' => array ( 0 => array ( 0 => '@bootstrap_css', 1 => '@fontawesome_css_be', 2 => '@YallaWebsiteBackendBundle/Resources/public/css/jquery-ui.css', 3 => '@YallaWebsiteBackendBundle/Resources/public/css/select2.min.css', ...
Java
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include "search.h" #include "marcov.h" #define ORDER 2 int main(int argc, char **argv) { int limit = 128; if(argc > 1) { limit = atoi(argv[1]); } void *strings = NULL; struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); srand...
Java
/** * JRakLibPlus is not affiliated with Jenkins Software LLC or RakNet. * This software is an enhanced port of RakLib https://github.com/PocketMine/RakLib. * This file is part of JRakLibPlus. * * JRakLibPlus is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General P...
Java
# Simple.LocalDb Simple.LocalDb is a simple managed wrapper around the LocalDB API. This framework has no features. It does not have error checking. It does not do anything smart. It doesn't try to help you in any way. There are no unit tests. There are no integration tests. There are no interfaces, inheritance, coup...
Java
#if UNITY_EDITOR using UnityEngine; using UnityEditor; using System.IO; public class CreateAssetbundle : MonoBehaviour { [MenuItem("Fineness/Build AssetBundle From Select Resource")] static void SelectResourceAndBuildAB() { UnityEngine.Object[] selecteds = Selection.GetFiltered(typeof(UnityEngin...
Java
import http from "http"; import express from "express"; import cors from "cors"; import morgan from "morgan"; import bodyParser from "body-parser"; import initializeDb from "./db"; import middleware from "./middleware"; import api from "./api"; import config from "config"; //we load the db location from the JSON files...
Java
##Generators <div class="code-extra es6"> ```js // Define generators with '*' function *foo() { } // halt and output at 'yield' function *fibonacci() { let pre = 0, cur = 1; while(true) { [ pre, cur ] = [ cur, pre + cur ]; yield cur; } } let fibGen = fibonacci(); fibGen.next(); // { value: 1, done: false } fi...
Java
# Advanced 进阶 <p class="description">本节包含了 @material-ui/core/styles 的一些更多的进阶用法。</p> ## Theming 主题 若您想将主题传递到 React 组件树,请将添加 `ThemeProvider` 包装到应用程序的顶层。 然后,您可以在样式函数中访问主题对象。 > 此示例为自定义组件创建了一个主题对象(theme object)。 If you intend to use some of the Material-UI's components you need to provide a richer theme structure using ...
Java
'use strict'; var gulp = require('gulp'); var autoprefixer = require('jstransformer')(require('jstransformer-stylus')); var autoprefixer = require('autoprefixer-stylus'); var browserSync = require('browser-sync').create(); var changed = require('gulp-changed'); var concat = require('gulp-concat'); var cssbeautify = re...
Java
<?php namespace Lib\Router\Exception; class NotFoundException extends \Exception{}
Java
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin developers // Copyright (c) 2015-2020 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_POLICY_POL...
Java
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Lab2A.Models.AccountViewModels { public class LoginViewModel { [Required] [EmailAddress] public string Email { get; set; } [R...
Java
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum DatastoreSummaryMaintenanceModeState = Enum( 'enteringMaintenance', 'inMaintenance', 'normal', )
Java
import Ember from 'ember'; import PaginatedScrollViewMixin from 'kowa/mixins/paginated-scroll-view'; var PaginatedScrollBox = Ember.View.extend(PaginatedScrollViewMixin); export default PaginatedScrollBox;
Java