code
stringlengths
4
1.01M
language
stringclasses
2 values
<?php /* * This file is part of the Black package. * * (c) Alexandre Balmes <albalmes@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Black\Bundle\MenuBundle\Model; /** * Class MenuInterface * * @package ...
Java
{% extends 'base.html' %} {% load staticfiles %} {% block content %} <div class="container"> <div class="row"> <div class="col-lg-9"> <div class="post-header"> <h2>{{page.page_title}}</h2> </div> {% if page.image %} <div class="video-wrapper"> <img cl...
Java
#ifndef LIBFEEDKIT_CONSTANTS_H #define LIBFEEDKIT_CONSTANTS_H #include <String.h> #include <vector> namespace FeedKit { class Channel; class Content; class Enclosure; class Feed; class Item; extern const char *ServerSignature; typedef std::vector<BString> uuid_list_t; typedef std::vector<Content *> conte...
Java
<?php /** * Response Already Send Exception * * @author Tom Valk <tomvalk@lt-box.info> * @copyright 2017 Tom Valk */ namespace Arvici\Exception; class ResponseAlreadySendException extends ArviciException { /** * ResponseAlreadySendException constructor. * @param string $message * @param ...
Java
#include <stdio.h> struct Employee { unsigned int id; char name[256]; char gender; float salary; }; void addEmployee(FILE *f) { struct Employee emp; printf("Adding a new employee, please type his id \n"); int id; scanf("%d", &id); if (id > 0) { while (1) { //search if id already in use struct Employee t...
Java
--- layout: post date: 2016-05-17 title: "WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629" category: WEDDING DRESSES tags: [WEDDING DRESSES] --- ### WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629 Just **$279.99** ### <a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal...
Java
#!/usr/bin/env node // // cli.js // // Copyright (c) 2016-2017 Junpei Kawamoto // // This software is released under the MIT License. // // http://opensource.org/licenses/mit-license.php // const { start, crawl } = require("../lib/crawler"); const argv = require("yargs") .option("lang", { describe...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CollegeFbsRankings.Domain.Games; using CollegeFbsRankings.Domain.Rankings; using CollegeFbsRankings.Domain.Teams; namespace CollegeFbsRankings.Domain.Validations { public class ValidationServ...
Java
/* ---------------------------------------------------------------------------- * Copyright (C) 2013 Arne F. Claassen * geekblog [at] claassen [dot] net * http://github.com/sdether/Calculon * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated d...
Java
<div class="container" > <div class="row page-title"> <div class="col-xs-12 text-center"> <span>Consultation</span> </div> </div> </div> <script type="text/javascript"> /** * Created by Kupletsky Sergey on 05.11.14. * * Material Design Responsive Table * Tested on Win8.1 with browsers: Chrome 37, Fire...
Java
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("De...
Java
const AppError = require('../../../lib/errors/app') const assert = require('assert') function doSomethingBad () { throw new AppError('app error message') } it('Error details', function () { try { doSomethingBad() } catch (err) { assert.strictEqual( err.name, 'AppError', "Name property ...
Java
require 'spec_helper' describe Blogitr::Document do def parse text, filter=:html @doc = Blogitr::Document.new :text => text, :filter => filter end def should_parse_as headers, body, extended=nil @doc.headers.should == headers @doc.body.should == body @doc.extended.should == extended end it ...
Java
<?php namespace Grupo3TallerUNLP\ConfiguracionBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class ConfiguracionControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static...
Java
## iScript 包含项目: > *[L]* *[W]* *[LW]* 分别表示,在linux, windows, linux和windows 下通过测试。 > ***windows用户可在babun (https://github.com/babun/babun) 下运行。*** - *[L]* [xiami.py](#xiami.py) - 下载或播放高品质虾米音乐(xiami.com) - *[L]* [pan.baidu.com.py](#pan.baidu.com.py) - 百度网盘的下载、离线下载、上传、播放、转存、文件操作 - *[L]* [bt.py](#bt.py) - magnet torren...
Java
export default { cache: function (state, payload) { state.apiCache[payload.api_url] = payload.api_response; }, addConfiguredType: function (state, type) { state.configuredTypes.push(type); }, removeConfiguredType: function (state, index) { state.configuredTypes.splice(index, 1); }, update...
Java
FROM gliderlabs/alpine:latest MAINTAINER Carlos León <mail@carlosleon.info> RUN apk-install darkhttpd EXPOSE 80 ENTRYPOINT ["/usr/bin/darkhttpd"] CMD ["/var/www", "--chroot"]
Java
### 实现元素拖拽功能: - EventUtil 封装跨浏览器时间处理对象 - EventTarget 自定义事件对象 - dragdrop 在其中实现元素拖拽 关键点: **被拖拽元素使用 绝对定位absolute 或 相对定位relative**,在mousemove事件中,重新设置left 及 top值 添加mousedown/mouseup事件 修缮拖动:鼠标点击位置与元素顶端位置差异
Java
'-------------------------------------------------------------------------------------------' ' Inicio del codigo '-------------------------------------------------------------------------------------------' ' Importando librerias '--------------------------------------------------------------------------------------...
Java
.PHONY: build clean build: .obj/chilon_sql_to_source clean: rm -rf .obj .obj/%: %.cpp @mkdir -p .obj ${CXX} -std=c++0x $^ -o $@ -I ../.. ifeq ($(wildcard .obj/*),) install: else install: @mkdir -p ${DESTDIR}/${prefix}/bin @strip .obj/* @cp .obj/* ${DESTDIR}/${prefix}/bin endif
Java
package com.korpisystems.SimpleANN import org.scalatest.FunSuite class ANNTest extends FunSuite { test("ANN learns non-linear XOR properly") { val inputs: ExpectedValues = List( List(1, 1) , List(0, 1) , List(1, 0) , List(0, 0) ) val expected_out: ExpectedValues = List( List(0)...
Java
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; declare const ...
Java
/**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /* @author Axel Anceau - 2014 Package api contains general tools */ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ package api import ( "fmt" "github.com/revel/revel" "runtime/debug" ) /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /...
Java
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Tree View</title> <link href="01.tree-view.css" rel="stylesheet" /> </head> <body> <nav> <ul class="first"> <li> <a href="#">List Item</a> <ul> <li> <a href="#">Sublis...
Java
--- layout: post author: nurahill title: "Nura's Clicky turtle excercise" --- Here is my code for option 1: <iframe src="https://trinket.io/embed/python/3c8744a1ac" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe> On option one, as usual, it took me a bit to come u...
Java
<?php namespace SCL\ZF2\Currency\Form\Fieldset; use Zend\Form\Fieldset; class TaxedPrice extends Fieldset { const AMOUNT_LABEL = 'Amount'; const TAX_LABEL = 'Tax'; public function init() { $this->add([ 'name' => 'amount', 'type' => 'text', 'options' => ...
Java
var indexController = require('./controllers/cIndex'); var usuarioController = require('./controllers/cUsuario'); var clientesController = require('./controllers/cCliente'); var adminController = require('./controllers/cAdmin'); var umedController = require('./controllers/cUmed'); var matepController = require('./contr...
Java
<?php /** * Created by PhpStorm. * User: tfg * Date: 25/08/15 * Time: 20:03 */ namespace AppBundle\Behat; use Sylius\Bundle\ResourceBundle\Behat\DefaultContext; class BrowserContext extends DefaultContext { /** * @Given estoy autenticado como :username con :password */ public function iAmAuth...
Java
## Close ### What is the value of the first triangle number to have over five hundred divisors? print max([len(m) for m in map(lambda k: [n for n in range(1,(k+1)) if k%n == 0], [sum(range(n)) for n in range(1,1000)])])
Java
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Aut...
Java
from errors import * from manager import SchemaManager
Java
<?php namespace Syrma\WebContainer; /** * */ interface ServerInterface { /** * Start the server. * * @param ServerContextInterface $context * @param RequestHandlerInterface $requestHandler */ public function start(ServerContextInterface $context, RequestHandlerInterface $requestHan...
Java
# Architecture When you are developing a new feature that requires architectural design, or if you are changing the fundamental design of an existing feature, make sure it is discussed with one of the Frontend Architecture Experts. A Frontend Architect is an expert who makes high-level Frontend design decisions and d...
Java
module Mailchimp class API include HTTParty format :plain default_timeout 30 attr_accessor :api_key, :timeout, :throws_exceptions def initialize(api_key = nil, extra_params = {}) @api_key = api_key || ENV['MAILCHIMP_API_KEY'] || self.class.api_key @default_params = {:apikey => @api_k...
Java
Ti=Ownership sec=All {_Confidential_Information} furnished to {_the_Consultant} by {_the_Client} is the sole and exclusive property of {_the_Client} or its suppliers or customers. =[G/Z/ol/0]
Java
/* Print.cpp - Base class that provides print() and println() Copyright (c) 2008 David A. Mellis. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1...
Java
import { Injectable } from '@angular/core'; /** * Created by AAAA on 3/21/2017. */ //http://stackoverflow.com/questions/9671995/javascript-custom-event-listener //http://www.typescriptlang.org/play/ class MyEvent{ private context:Object; private cbs: Function[] = []; constructor(context: Object){ this.c...
Java
import random from datetime import datetime from multiprocessing import Pool import numpy as np from scipy.optimize import minimize def worker_func(args): self = args[0] m = args[1] k = args[2] r = args[3] return (self.eval_func(m, k, r) - self.eval_func(m, k, self.rt) - ...
Java
RSpec.describe Porch::ProcStepDecorator do describe ".decorates?" do it "returns true if the step is a proc" do expect(described_class).to be_decorates Proc.new {} end it "returns true if the step is a lambda" do expect(described_class).to be_decorates lambda {} end it "returns false...
Java
<?php declare(strict_types=1); namespace Symplify\MultiCodingStandard\Tests\PhpCsFixer\Factory; use PhpCsFixer\Fixer\FixerInterface; use PHPUnit\Framework\TestCase; use Symplify\MultiCodingStandard\PhpCsFixer\Factory\FixerFactory; final class FixerFactoryTest extends TestCase { /** * @var FixerFactory ...
Java
# -*- coding: utf-8 -*- """" ProjectName: pydemi Repo: https://github.com/chrisenytc/pydemi Copyright (c) 2014 Christopher EnyTC Licensed under the MIT license. """ # Dependencies import uuid from api import app from hashlib import sha1 from flask import request from flask import jsonify as JSON from api.models.user ...
Java
'use strict'; const buildType = process.config.target_defaults.default_configuration; const assert = require('assert'); if (process.argv[2] === 'fatal') { const binding = require(process.argv[3]); binding.error.throwFatalError(); return; } test(`./build/${buildType}/binding.node`); test(`./build/${buildType}/bi...
Java
using System.Web; using System.Web.Optimization; namespace WebAPI.Boilerplate.Api { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Ad...
Java
// // YYBaseLib.h // YYBaseLib // // Created by 银羽网络 on 16/7/19. // Copyright © 2016年 银羽网络. All rights reserved. // #import <UIKit/UIKit.h> #import "AppConfig.h" #import "BaseViewController.h" #import "CommonTool.h" #import "DataVerify.h" #import "FSMediaPicker.h" #import "MBProgressHUD+MBProgressHUD_Category.h" ...
Java
<table id="member_table" class="mainTable padTable" style="width:100%;" cellspacing="0" cellpadding="0" border="0"> <thead> <tr> <th style="width:3%;" ><?=$lang_id?></th> <th style="width:22%;"><?=$lang_name?></th> <th style="width:15%;"><?=$lang_total_friends?></th> <th style="width:15%;"><...
Java
package redes3.proyecto.nagiosalert; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.TextView; public class InfoServiceActivity extends Activity { String nom...
Java
--- layout: post title: !binary |- Rm9vbOKAmXMgV29ybGQgTWFw tags: - micrographic --- Hoy me he encontrado en Microsiervos y en Halón disparado una cosa realmente curiosa, una revisión freakie del mapa del mundo! Se trata de un mapa donde los países están colocados donde la gente (yanquis, claro) cree que están. El re...
Java
#include "MultiSelection.h" #include "ofxCogEngine.h" #include "EnumConverter.h" #include "Node.h" namespace Cog { void MultiSelection::Load(Setting& setting) { string group = setting.GetItemVal("selection_group"); if (group.empty()) CogLogError("MultiSelection", "Error while loading MultiSelection behavior: e...
Java
// The MIT License (MIT) // // Copyright (c) 2016 Tim Jones // // 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,...
Java
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class AddTemplatesToEvents extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('events', function (Blueprint $table) { $t...
Java
package plugin_test import ( "path/filepath" "code.cloudfoundry.org/cli/utils/testhelpers/pluginbuilder" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestPlugin(t *testing.T) { RegisterFailHandler(Fail) pluginbuilder.BuildTestBinary(filepath.Join("..", "fixtures", "plugins"), "test_...
Java
var express = require('express'), compression = require('compression'), path = require('path'), favicon = require('serve-favicon'), logger = require('morgan'), cookieParser = require('cookie-parser'), bodyParser = require('body-parser'), session = require('express-session'), session = re...
Java
/** * CircularLinkedList implementation * @author Tyler Smith * @version 1.0 */ public class CircularLinkedList<T> implements LinkedListInterface<T> { private Node<T> head = null, tail = head; private int size = 0; @Override public void addAtIndex(int index, T data) { if (index < 0 || ind...
Java
--- name: Bug上报 about: 提交Bug让框架更加健壮 title: '' labels: bug assignees: '' --- 🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶 😁为了能够更好地复现问题和修复问题, 请提供 Demo 和详细的 bug 重现步骤😭 🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶 > 记得删除以上内容 **描述bug** 清晰简单地描述这个bug是啥 **必现/偶发?** 必现 **怎么样重现这个bug** 1. 显示哪个页面...
Java
import { Component, OnInit } from '@angular/core'; // import { TreeModule, TreeNode } from "primeng/primeng"; import { BlogPostService } from '../shared/blog-post.service'; import { BlogPostDetails } from '../shared/blog-post.model'; @Component({ selector: 'ejc-blog-archive', templateUrl: './blog-archive.compone...
Java
require 'active_record' module ActiveRecord class Migration def migrate_with_multidb(direction) if defined? self.class::DATABASE_NAME ActiveRecord::Base.establish_connection(self.class::DATABASE_NAME.to_sym) migrate_without_multidb(direction) ActiveRecord::Base.establish_connection(...
Java
const os = require("os"); const fs = require("fs"); const config = { } let libs; switch (os.platform()) { case "darwin": { libs = [ "out/Debug_x64/libpvpkcs11.dylib", "out/Debug/libpvpkcs11.dylib", "out/Release_x64/libpvpkcs11.dylib", "out/Release/libpvpkcs11.dylib", ]; break; ...
Java
class RenameMembers < ActiveRecord::Migration[5.1] def change rename_table :members, :memberships end end
Java
using System; using Xunit; using System.Linq; using hihapi.Models; using hihapi.Controllers; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.OData.Results; using hihapi.test.common; namespace hihapi.unittest.Finance { [Collection("HIHAPI_Un...
Java
<?php # MantisBT - a php based bugtracking system # MantisBT is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # MantisBT is distribut...
Java
team_mapping = { "SY": "Sydney", "WB": "Western Bulldogs", "WC": "West Coast", "HW": "Hawthorn", "GE": "Geelong", "FR": "Fremantle", "RI": "Richmond", "CW": "Collingwood", "CA": "Carlton", "GW": "Greater Western Sydney", "AD": "Adelaide", "GC": "Gold Coast", "ES": "Es...
Java
from keras.applications import imagenet_utils from keras.applications import mobilenet def dummyPreprocessInput(image): image -= 127.5 return image def getPreprocessFunction(preprocessType): if preprocessType == "dummy": return dummyPreprocessInput elif preprocessType == "mobilenet": ...
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; namespace TheS.Runtime { internal class CallbackException : FatalException { public...
Java
<?php namespace App\Http\Controllers; use App\Jobs\GetInstance; use App\Models\Build; use App\Models\Commit; use App\Models\Repository; use App\RepositoryProviders\GitHub; use Illuminate\Support\Facades\DB; class DashboardController extends Controller { public function index() { $repositories = Repos...
Java
#pragma once /** * Copyright (c) blueback * Released under the MIT License * https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt * http://bbbproject.sakura.ne.jp/wordpress/mitlicense * @brief OpenGL。 */ /** include */ #pragma warning(push) #pragma warning(disable:4464) #include "../t...
Java
<?php namespace Vich\UploaderBundle\Mapping; use Vich\UploaderBundle\Naming\NamerInterface; /** * PropertyMapping. * * @author Dustin Dobervich <ddobervich@gmail.com> */ class PropertyMapping { /** * @var \ReflectionProperty $property */ protected $property; /** * @var \ReflectionProp...
Java
------------------------------------------------------------------- -- The Long night -- The night gives me black eyes, but I use it to find the light. -- In 2017 -- 公共状态 ------------------------------------------------------------------- L_StatePublic = {} setmetatable(L_StatePublic, {__index = _G}) local _this = L_...
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="./ed6c3fe87a92e6b0939903db98d3209d32dcf2e96bee3586c1c6da3985c58ae4.html">Teleport</a> <hr> ...
Java
personalprojects ================ A bunch of little things I made in my freetime ### PyPong A simple pong game made in Python and Pygame. **Changes Made**: Made the AI a bit (a lot) worse, you can actually win now. ### Maze Runner A maze app that uses Deep Field Search (DFS) to make a perfect maze and then uses the...
Java
// Copyright (c) 2020 The Firo Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef FIRO_ELYSIUM_SIGMAWALLETV0_H #define FIRO_ELYSIUM_SIGMAWALLETV0_H #include "sigmawallet.h" namespace elysium { class Sigma...
Java
# Gears # *Documentation may be outdated or incomplete as some URLs may no longer exist.* *Warning! This codebase is deprecated and will no longer receive support; excluding critical issues.* A PHP class that loads template files, binds variables to a single file or globally without the need for custom placeholders/...
Java
/* * @Author: justinwebb * @Date: 2015-09-24 21:08:23 * @Last Modified by: justinwebb * @Last Modified time: 2015-09-24 22:19:45 */ (function (window) { 'use strict'; window.JWLB = window.JWLB || {}; window.JWLB.View = window.JWLB.View || {}; //------------------------------------------------------------...
Java
module InfinityTest module Core class Base # Specify the Ruby Version Manager to run cattr_accessor :strategy # ==== Options # * :rvm # * :rbenv # * :ruby_normal (Use when don't pass any rubies to run) # * :auto_discover(defaults) self.strategy = :auto_discover ...
Java
<?php session_start(); require_once('../php/conexion.php'); $conect = connect::conn(); $user = $_SESSION['usuario']; if($_SERVER['REQUEST_METHOD'] == 'POST'){ $sql = "insert into cotidiano (dir_origen,dir_destino,semana,hora,usuario,estado) values (?,?,?,?,?,?);"; $favo = sqlsrv_query($conect,$sql,array($_POST['...
Java
holiwish ========
Java
python -m unittest
Java
using System; using NetOffice; using NetOffice.Attributes; namespace NetOffice.MSProjectApi.Enums { /// <summary> /// SupportByVersion MSProject 11, 12, 14 /// </summary> ///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff863548(v=office.14).aspx </remarks> [Support...
Java
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ci...
Java
//#define USE_TOUCH_SCRIPT using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; /* * ドラッグ操作でのカメラの移動コントロールクラス * マウス&タッチ対応 */ namespace GarageKit { [RequireComponent(typeof(Camera))] public class FlyThroughCamera : MonoBehaviour { public static bool...
Java
"use strict"; const readdir = require("../../"); const dir = require("../utils/dir"); const { expect } = require("chai"); const through2 = require("through2"); const fs = require("fs"); let nodeVersion = parseFloat(process.version.substr(1)); describe("Stream API", () => { it("should be able to pipe to other strea...
Java
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Font; use JMS\Serializer\Annotation\ExclusionPolicy; us...
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 (10.0.2) on Fri Sep 21 22:00:31 PDT 2018 --> <title>U-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="da...
Java
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.synapse.v2019_06_01_preview; import java.util.Co...
Java
// Copyright 2015 Peter Beverloo. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. // Base class for a module. Stores the environment and handles magic such as route annotations. export class Module { constructor(env) { this.env_...
Java
<?php /* * This file is part of PHP CS Fixer. * * (c) Fabien Potencier <fabien@symfony.com> * Dariusz Rumiński <dariusz.ruminski@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Fixer\PhpUnit; use PhpCsFixer...
Java
--- layout: post title: "从头学算法(二、搞算法你必须知道的OJ)" date: 2016-12-20 11:36:52 categories: 数据结构及算法 tags: OJ algorithms mathjax: true --- 在没接触算法之前,我从没听说过OJ这个缩写,没关系,现在开始认识还来得及。等你真正开始研究算法,你才发现你又进入了一个新的世界。 这个世界,你不关注它的时候,它好像并不存在,而一旦你关注它了,每一个花草都让你叹为观止。 来看看百度百科是怎么说的吧: OJ是Online Judge系统的简称,用来在线检测程序源代码的正确性。著名的OJ有TYVJ、RQNOJ、U...
Java
package com.timotheteus.raincontrol.handlers; import com.timotheteus.raincontrol.tileentities.IGUITile; import com.timotheteus.raincontrol.tileentities.TileEntityInventoryBase; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; import net.minecraft.entity.player.EntityPlayer; import net....
Java
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2015, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
Java
version https://git-lfs.github.com/spec/v1 oid sha256:be847f24aac166b803f1ff5ccc7e4d7bc3fb5d960543e35f779068a754294c94 size 1312
Java
<?php namespace Matthimatiker\CommandLockingBundle\Locking; use Symfony\Component\Filesystem\LockHandler; /** * Uses files to create locks. * * @see \Symfony\Component\Filesystem\LockHandler * @see http://symfony.com/doc/current/components/filesystem/lock_handler.html */ class FileLockManager implements LockMan...
Java
// Core is a collection of helpers // Nothing specific to the emultor application "use strict"; // all code is defined in this namespace window.te = window.te || {}; // te.provide creates a namespace if not previously defined. // Levels are seperated by a `.` Each level is a generic JS object. // Example: // te....
Java
## # Backup v4.x Configuration # # Documentation: http://meskyanichi.github.io/backup # Issue Tracker: https://github.com/meskyanichi/backup/issues ## # Config Options # # The options here may be overridden on the command line, but the result # will depend on the use of --root-path on the command line. # # If --root-p...
Java
import Ember from 'ember'; let __TRANSLATION_MAP__ = {}; export default Ember.Service.extend({ map: __TRANSLATION_MAP__ });
Java
import React from 'react'; <<<<<<< HEAD import { Switch, Route } from 'react-router-dom'; import Home from './Home'; import About from './About'; import Blog from './Blog'; import Resume from './Resume'; import Error404 from './Error404'; ======= // import GithubForm from './forms/github/GithubForm'; import GithubRec...
Java
package cmd import ( "github.com/fatih/color" out "github.com/plouc/go-gitlab-client/cli/output" "github.com/spf13/cobra" ) func init() { getCmd.AddCommand(getProjectVarCmd) } var getProjectVarCmd = &cobra.Command{ Use: resourceCmd("project-var", "project-var"), Aliases: []string{"pv"}, Short: "Get the ...
Java
export interface IContact { id?: number; email: string; listName: string; name: string; }
Java
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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 r...
Java
package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.BitcoinWalletBasicWalletAvailableBalance; import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.CantRegisterCreditException; import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitco...
Java
using System; namespace Sherlock { /// <summary> /// A reader than can read values from a pipe. /// </summary> /// <typeparam name="T">The type of value to read.</typeparam> public interface IPipeReader<T> : IDisposable { /// <summary> /// Attempts to read a value from the pipe...
Java
# Nitrogen 2.0 New Features ### New Elements, Actions, and API functions * wf:wire can now act upon CSS classes or full JQuery Paths, not just Nitrogen elements. For example, wf:wire(".people > .address", Actions) will wire actions to any HTML elements with an "address" class underneath a "people" class. Anything on ...
Java