code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
---
layout: post
title: Mughal Empire
categories:
- Learning
---
[Mughal Empire](http://en.wikipedia.org/wiki/Mughal_Empire) (1526 – 1857) rulers...
- 1526-1530 [Babur ](http://en.wikipedia.org/wiki/Babur)
- 1530–1539 and after restoration 1555–1556 [Humayun ](http://en.wikipedia.org/wiki/Humayun)
- 1556–1605 [Akbar... | Java |
require "spec_helper"
module Smsru
describe API do
shared_context "shared configuration", need_values: 'configuration' do
before :each do
Smsru.configure do |conf|
conf.api_id = 'your-api-id'
conf.from = 'sender-name'
conf.test = test
conf.format = format
... | Java |
import { expect } from 'chai';
import buildUriTemplate from '../src/uri-template';
describe('URI Template Handler', () => {
context('when there are path object parameters', () => {
context('when the path object parameters are not query parameters', () => {
const basePath = '/api';
const href = '/pet... | Java |
let Demo1 = require('./components/demo1.js');
document.body.appendChild(Demo1()); | Java |
<!--
Author: Ray-Eldath
refer to:
- http://docs.mathjax.org/en/latest/options/index.html
-->
{% if site.mathjax %}
<script type="text/javascript" async src="https://cdnjs.loli.net/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config... | Java |
///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
/// Auto-generated by Stone, do not modify.
///
#import <Foundation/Foundation.h>
#import "DBSerializableProtocol.h"
@class DBTEAMLOGFileRevertDetails;
NS_ASSUME_NONNULL_BEGIN
#pragma mark - API Object
///
/// The `FileRevertDetails` struct.
///
//... | Java |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Demo05")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration(""... | Java |
# safe_projects
Project management with git
## Configuration
Create a file named `~/.projects` with the path where you'd like your
repositories to be stored. This should ideally be a location that is backed up
regularly.
```bash
vim ~/.projects
```
An example file looks like this:
```bash
export REPOSITORY_ROOT=/n... | Java |
<div id="container" class="container-fluid" ng-controller="cloudAppController">
<div class="table">
<div class="col-lg-2">
<label for="teamDD">Team:</label>
<select id="teamDD" class="form-control headerSelectWidth" ng-model="filteredTeam"
ng-change="onTeamChange... | Java |
package doit.study.droid.fragments;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertDialog;
i... | Java |
<?php
namespace Zycon42\Security\Application;
use Nette;
use Nette\Application\Request;
use Nette\Reflection\ClassType;
use Nette\Reflection\Method;
use Symfony\Component\ExpressionLanguage\Expression;
class PresenterRequirementsChecker extends Nette\Object {
/**
* @var ExpressionEvaluator
*/
priv... | Java |
<?php
namespace App\Http\Middleware;
use Input, Closure, Response, User;
class CheckClientKey {
public function handle($request, Closure $next)
{
$input = Input::all();
$output = array();
if(!isset($input['key'])){
$output['error'] = 'API key required';
return Response::json($output, ... | Java |
/*!
NSURL extension
YSCategorys
Copyright (c) 2013-2014 YoungShook
https://github.com/youngshook/YSCategorys
The MIT License (MIT)
http://www.opensource.org/licenses/mit-license.php
*/
#import <Foundation/Foundation.h>
@interface NSURL (YSKit)
/** Cover query string into NSDictionary
*/
-... | Java |
---
permalink: /en/getting-startedLearn
redirect: /en/getting-started/
layout: redirect
sitemap: false
--- | Java |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | Java |
#region References
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
using Speedy;
#endregion
namespace Scribe.Data.Entities
{
public class Page : ModifiableEntity
{
#region Constructors
[SuppressMessage("ReSharper", "VirtualMemberCallInContructor"... | Java |
#pragma config(Sensor, in1, linefollower, sensorLineFollower)
#pragma config(Sensor, dgtl5, OutputBeltSonar, sensorSONAR_mm)
#pragma config(Motor, port6, WhipCreamMotor, tmotorVex393, openLoop)
#pragma config(Motor, port7, InputBeltMotor, tmotorServoContinuousRotation, openLoop)
#pragma conf... | Java |
# 弃用通知
此项目已不再维护,所有内容已经移至[magpie](https://github.com/haifenghuang/magpie)。
# Monkey程序语言
Table of Contents
=================
* [Monkey程序语言](#monkey%E7%A8%8B%E5%BA%8F%E8%AF%AD%E8%A8%80)
* [主页](#%E4%B8%BB%E9%A1%B5)
* [概述](#%E6%A6%82%E8%BF%B0)
* [总览](#%E6%80%BB%E8%A7%88)
* [安装](#%E5%AE%89%E8%A3%85)
* [基本用法](#%... | Java |
<?php
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Spatie\Backup\FileHelpers\FileSelector;
class FileSelectorTest extends Orchestra\Testbench\TestCase
{
protected $path;
protected $disk;
protected $root;
protected $testFilesPath;
protected $fileSelector;
public... | Java |
var Handler, MiniEventEmitter;
Handler = require("./handler");
MiniEventEmitter = (function() {
function MiniEventEmitter(obj) {
var handler;
handler = new Handler(this, obj);
this.on = handler.on;
this.off = handler.off;
this.emit = handler.emit;
this.emitIf = handler.emitIf;
this.trigg... | Java |
#!/usr/bin/bash
# Hard variables
# Directory containing Snakemake and cluster.json files
snakefile_dir='/nas/longleaf/home/sfrenk/pipelines/snakemake'
usage="\nCreate directory with Snakemake files required for pipeline \n\n setup_dir -p <pipeline> -d <directory> \n\n pipelines: bowtie_srna, hisat2_rna, srna_telo\n\... | Java |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import {connect} from 'react... | Java |
//
// YZAlertView.h
// AlertViewDemo
//
// Created by yangyongzheng on 2017/8/17.
// Copyright © 2017年 yangyongzheng. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^YYZAlertViewActionHandler)(UIAlertAction *action);
NS_CLASS_AVAILABLE_IOS(8_0) @interface YYZAlertView : NSObject
+ (void)yyz_alertV... | Java |
{% extends "layout_unbranded.html" %}
{% block page_title %}
GOV.UK prototype kit
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="grid-row">
<div class="column-full">
<div id="global-breadcrumb" class="breadcrumb">
<a class="link-back" href="results_confirm2?searc... | Java |
<div id="maxoptions_example"></div> | Java |
Given(/^I have an Auton that has two steps, first step scheduling the next step$/) do
class ScheduleSecondStepAuton < Nestene::Auton
def first
context.schedule_step(:second)
end
def second
'ok'
end
attr_accessor :context
attribute foo: Fixnum
end
@auton_type="ScheduleSecond... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ergo: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>finger-tree: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | Java |
using MineLib.Core;
using MineLib.Core.Data;
using MineLib.Core.IO;
using ProtocolClassic.Data;
namespace ProtocolClassic.Packets.Server
{
public struct LevelFinalizePacket : IPacketWithSize
{
public Position Coordinates;
public byte ID { get { return 0x04; } }
public short Size { get... | Java |
#ifndef IDUCK_HPP_124b1b04_74d3_41ae_b7ce_2a0bea79f1c7
#define IDUCK_HPP_124b1b04_74d3_41ae_b7ce_2a0bea79f1c7
#include "../strategy/IFly.hpp"
/**
\interface IDuck
Interface for duck. It can fly, quack and rotate right.
*/
class IDuck
{
public:
virtual Course getCourse() const = 0;
virtual int getDistan... | Java |
require 'cred_hubble/resources/credential'
module CredHubble
module Resources
class UserValue
include Virtus.model
attribute :username, String
attribute :password, String
attribute :password_hash, String
def to_json(options = {})
attributes.to_json(options)
end
... | Java |
# encoding: utf-8
require 'spec_helper'
describe Optimizer::Algebra::Projection::ExtensionOperand, '#optimizable?' do
subject { object.optimizable? }
let(:header) { Relation::Header.coerce([[:id, Integer], [:name, String], [:age, Integer]]) }
let(:base) { Relation.new(header, LazyEnumerable.new([[1, 'Dan... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace ASP.NET_Core_Email.Models.ManageViewModels
{
public class ConfigureTwoFactorViewModel
{
public string SelectedProvider { get; set; }
public ICol... | Java |
#include <stdio.h>
#include "list.h"
#define N 10
link reverse(link);
int main(void) {
int i;
link head, x;
// Population
head = new_link(0);
x = head;
for (i = 1; i < N; ++i) {
x = insert_after(x, new_link(i));
}
// Reversal
head = reverse(head);
// Traversal
x = head;
do {
printf("%i\n", x->i... | Java |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------... | Java |
-- service script, define some stuuf for use with main build config
self=loader.extra[1]
profile=loader.extra[2]
prefix=loader.extra[3]
config=loader.extra[4]
prefix_addon=string.format('--prefix="%s"', prefix)
| Java |
import { get } from "ember-metal/property_get";
import { set } from "ember-metal/property_set";
import Ember from "ember-metal/core"; // Ember.assert
import EmberError from "ember-metal/error";
import {
Descriptor,
defineProperty
} from "ember-metal/properties";
import { ComputedProperty } from "ember-metal/compute... | Java |
# Alt Three Storage
A cached secure storage provider for Laravel 5.
## Installation
This version requires [PHP](https://php.net) 7.1 or 7.2, and supports Laravel 5.5 - 5.7 only.
To get the latest version, simply require the project using [Composer](https://getcomposer.org):
```bash
$ composer require alt-three/st... | 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_65) on Sat Dec 27 23:31:06 CST 2014 -->
<TITLE>
Uses of Class pages.MarkovTable
</TITLE>
<META NAME="date" CONTENT="2014-12-27">
<LINK REL ="styles... | Java |
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*
* author: emicklei
*/
V8D.receiveCallback = function(msg) {
var obj = JSON.parse(msg);
var context = this;
if (obj.receiver != "this") {
var namespaces = obj.rece... | Java |
#!/usr/bin/env bash
GEM_BIN=$1/ruby/bin/gem
export GEM_HOME=/usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1
install_gems() {
echo $KIDSRUBY_INSTALLING_GEMS
${GEM_BIN} install htmlentities-4.3.0.gem --no-ri --no-rdoc 2>&1
${GEM_BIN} install rubywarrior-i18n-0.0.3.gem --no-ri --no-rdoc 2>&1
${GEM_BIN} install serial... | Java |
require File.join(File.dirname(__FILE__), 'test_helper')
require 'activesupport'
class SplamTest < Test::Unit::TestCase
class FixedRule < Splam::Rule
def run
add_score 25, "The force is strong with this one"
end
end
# It should not be in the default set
Splam::Rule.default_rules.delete SplamTest... | Java |
<?php
namespace Symfony\Component\Serializer;
use Symfony\Component\Serializer\SerializerInterface;
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
... | Java |
// wb_t@CÌCN[h
#include <windows.h> // WWindowsAPI
#include <tchar.h> // TCHAR^
#include <string.h> // C¶ñ
// ÖÌvg^Cvé¾
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // EBhEbZ[WÉÎµÄÆ©Ìð·éæ¤Éè`µ½R[obN... | Java |
/**
*
* Modelo de Login usando MCV
* Desenvolvido por Ricardo Hirashiki
* Publicado em: http://www.sitedoricardo.com.br
* Data: Ago/2011
*
* Baseado na extensao criada por Wemerson Januario
* http://code.google.com/p/login-window/
*
*/
Ext.define('Siccad.view.authentication.CapsWarningTooltip', ... | Java |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotate : MonoBehaviour {
public Vector3 m_rotate;
public float m_speed;
void Start()
{
transform.rotation = Random.rotation;
}
// Update is called once per frame
void Update () {
transf... | Java |
package slacknotifications.teamcity.payload;
import jetbrains.buildServer.messages.Status;
import jetbrains.buildServer.responsibility.ResponsibilityEntry;
import jetbrains.buildServer.responsibility.TestNameResponsibilityEntry;
import jetbrains.buildServer.serverSide.*;
import jetbrains.buildServer.tests.TestName;
i... | Java |
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [sip.js](./sip.js.md) > [RegistererOptions](./sip.js.registereroptions.md) > [instanceId](./sip.js.registereroptions.instanceid.md)
## RegistererOptions.instanceId property
UUID to provide with "+sip.... | Java |
<?php
/* SRVDVServerBundle:Registration:email.txt.twig */
class __TwigTemplate_d9fb642ef38579dd6542f4eacc9668ce91ac497e0fd5b3f1b1ca25429847bdfe extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks ... | Java |
using Portal.CMS.Entities.Enumerators;
using Portal.CMS.Services.Generic;
using Portal.CMS.Services.PageBuilder;
using Portal.CMS.Web.Architecture.ActionFilters;
using Portal.CMS.Web.Architecture.Extensions;
using Portal.CMS.Web.Areas.PageBuilder.ViewModels.Component;
using Portal.CMS.Web.ViewModels.Shared;
using Syst... | Java |
<?php
/**
* Created by PhpStorm.
* User: robert
* Date: 1/14/15
* Time: 3:06 PM
*/
namespace Skema\Directive;
class Binding extends Base {
} | Java |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// ActionOnDispose.cs
//
//
// Implemention of IDisposable that runs a del... | Java |
using System;
using System.Collections.Generic;
using Esb.Transport;
namespace Esb.Message
{
public interface IMessageQueue
{
void Add(Envelope message);
IEnumerable<Envelope> Messages { get; }
Envelope GetNextMessage();
void SuspendMessages(Type messageType);
void Resu... | Java |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CRealMoveRequestDelayCheckerDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Register
{
class CRealMoveRequestDelayChec... | Java |
title: 会声会影安装与激活
date: 2016-06-05 22:58:54
tags:
---
## 资源
* [会声会影下载](http://www.huishenghuiying.com.cn/xiazai.html#selctbuy)
* [会声会影注册机下载](https://hostr.co/file/FDp8MOYlRuHv/AppNee.com.Corel.X5-X9.All.Products.Universal.Keygen.7z?warning=on)
* 转载:[会声会影安装与激活](https://luoyefe.com/blog/2016/06/05/%E4%BC%9A%E5%A3%B0%E4%B... | Java |
// generates an interface file given an eni file
// you can generate an eni file using the aws-cli
// example:
// aws ec2 describe-network-interfaces --network-interface-ids eni-2492676c > eni-7290653a.json
var ENI_FILE = "json/eni-651e2c2c.json";
// the interface you want to configure
var INTERFACE = "eth1";
// po... | Java |
# nodejs-boilerplate
## About
A boilerplate for a developer environment pre-built for a nodejs project using expressjs for the backend and angularjs for the front end. This boilerplate also comes with a built in logger for requests as well as a Gruntfile with my favorite addons for developing nodejs projects. :godmod... | Java |
//-----------------------------------------------------------------------
// <copyright file="LocalizableFormBase.cs" company="Hyperar">
// Copyright (c) Hyperar. All rights reserved.
// </copyright>
// <author>Matías Ezequiel Sánchez</author>
//---------------------------------------------------------------------... | Java |
var width = window.innerWidth,
height = window.innerHeight,
boids = [],
destination,
canvas,
context;
const MAX_NUMBER = 100;
const MAX_SPEED = 1;
const radius = 5;
init();
animation();
function init(){
canvas = document.getElementById('canvas'),
context = canvas.getContext( "2d" );
canvas.w... | Java |
package com.facetime.spring.support;
import java.util.ArrayList;
import java.util.List;
import com.facetime.core.conf.ConfigUtils;
import com.facetime.core.utils.StringUtils;
/**
* 分页类
*
* @author yufei
* @param <T>
*/
public class Page<T> {
private static int BEGIN_PAGE_SIZE = 20;
/** 下拉分页列表的递增数量级 */
priva... | Java |
---
layout: post
title: Mancester 6/26
---
### Screened today, imaged 6/22 growth exp. & screened larvae; cleaned broodstock, yada yada yada...
#### Imaged 6/22 SN growth experiment larvae
Grace imaged the well plate, taking photos of first the well #, then larvae, not capturing the same larvae more than once. She im... | Java |
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
-- ----------------------------------------------------------------------------------------------------------
-- ... | Java |
#ifndef ABSTRACTTRANSFORM_H
#define ABSTRACTTRANSFORM_H
#include <new>
#include <mfapi.h>
#include <mftransform.h>
#include <mfidl.h>
#include <mferror.h>
#include <strsafe.h>
#include <assert.h>
// Note: The Direct2D helper library is included for its 2D matrix operations.
#include <D2d1helper.h>
#include <wrl\impl... | Java |
package com.cnpc.framework.base.service.impl;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.cnpc.framework.base.entity.Dict;
import com.cnpc.framework.base.pojo.TreeNode;
import com.c... | Java |
#include "unicorn/format.hpp"
#include <cmath>
#include <cstdio>
using namespace RS::Unicorn::Literals;
using namespace std::chrono;
using namespace std::literals;
namespace RS::Unicorn {
namespace UnicornDetail {
namespace {
// These will always be called with x>=0 and prec>=0
... | Java |
#!/bin/bash
DATESTR=$(date +"%Y%m%d%H%M%S")
LOCAL_BACKUP_DIR=/home/rails/db_backups/dsi
function fetch_ntriples() {
FILE_NAME="$LOCAL_BACKUP_DIR/$1"
GRAPH_URI=$2
SOURCE_URI=http://46.4.78.148/dsi/data?graph=$GRAPH_URI
curl -s -H "Accept:text/plain" -f -o $FILE_NAME $SOURCE_URI
CURL_STATUS=$?
... | Java |
//
// IOService.cpp
// Firedrake
//
// Created by Sidney Just
// Copyright (c) 2015 by Sidney Just
// 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... | Java |
# Toady 1.0
Wickedly extensible IRC bot written in Node.js. Load and reload mods without reconnecting.
## Please pay attention: This master branch is merged with version 1.x from Toady and got extended afterwards!
## Download. Install. Fly.
If you don't already have Node.js, [get it](http://nodejs.org). It's awesome... | 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("Pe... | Java |
//-----------------------------------------------------------------------
// <copyright file="IDemPlateFileGenerator.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation 2011. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
name... | Java |
namespace PlacesToEat.Data.Common
{
using System;
using System.Data.Entity;
using System.Linq;
using Contracts;
using Models;
public class DbUserRepository<T> : IDbUserRepository<T>
where T : class, IAuditInfo, IDeletableEntity
{
public DbUserRepository(DbContext context)
... | Java |
---
layout: post
title: Java-Interview
category: Java
description: Java 面试
---
一、Java基础
1. String类为什么是final的
2. HashMap的源码,实现原理,底层结构。
3. 说说你知道的几个Java集合类:list、set、queue、map实现类。
4. 描述一下ArrayList和LinkedList各自实现和区别
5. Java中的队列都有哪些,有什么区别。
6. 反射中,Class.forName和classloader的区别。
7. Java7、Java8的新特性
8. Ja... | Java |
describe("Dragable Row Directive ", function () {
var scope, container, element, html, compiled, compile;
beforeEach(module("app", function ($provide) { $provide.value("authService", {}) }));
beforeEach(inject(function ($compile, $rootScope) {
html = '<div id="element-id" data-draggable-row=""'
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ninject.Modules;
using Ninject.Extensions.Conventions;
namespace SongManager.Web.NinjectSupport
{
/// <summary>
/// Automatically loads all Boot Modules and puts them into the Ninject Dependency Resolver
/// </summary>
publ... | Java |
# Amaretti.js
[](https://gitter.im/VincentCasse/amaretti.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://t... | Java |
package com.kromracing.runningroute.client;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Widget;
final public class Utils {
private Utils() {
}
/**
* Sets the HTML id ... | Java |
/**
* This file was copied from https://github.com/jenkinsci/mercurial-plugin/raw/master/src/test/java/hudson/plugins/mercurial/MercurialRule.java
* so we as well have a MercurialRule to create test repos with.
* The file is licensed under the MIT License, which can by found at: http://www.opensource.org/licenses/mi... | Java |
function simulated_annealing(tuning_run::Run,
channel::RemoteChannel;
temperature::Function = log_temperature)
iteration = 1
function iterate(tuning_run::Run)
p = temperature(iteration)
iteration += 1
return probabilisti... | Java |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | Java |
package zhou.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
/**
* Created by zzhoujay on 2015/7/22 0022.
*/
public class Norm... | Java |
<ng-container *ngIf="preview.user && !authHelper.isSelf(preview.user)">
<user-info [user]="preview.user">
</user-info>
</ng-container>
<!-- description + image -->
<label-value [label]="i18n.voucher.voucher">
{{ preview.type.voucherTitle }}
</label-value>
<ng-container *ngIf="buyVoucher.count === 1; else multiple... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GulfCoin</source>
<translation>關於位元幣</translation>
</message>
<message>
<location li... | Java |
package UserInterface.Animation;
/**
* Makes shit get big, makes shit get small.
*/
public class SizeAnimation extends Animation {
protected int iW, iH, fW, fH, cW, cH;
public SizeAnimation(long period, int paceType, boolean loop, int iW, int iH, int fW, int fH) {
super(period, paceType, loop);
... | Java |
import * as path from "path";
import * as tl from "vsts-task-lib/task";
import {IExecOptions, IExecSyncResult} from "vsts-task-lib/toolrunner";
import * as auth from "packaging-common/nuget/Authentication";
import * as commandHelper from "packaging-common/nuget/CommandHelper";
import {NuGetConfigHelper2} from "packagi... | Java |
import _ from 'lodash';
import { createSelector } from 'reselect';
const srcFilesSelector = state => state.srcFiles;
const featuresSelector = state => state.features;
const featureByIdSelector = state => state.featureById;
const keywordSelector = (state, keyword) => keyword;
function getMarks(feature, ele) {
const ... | Java |
<?php
class Receiving_lib
{
var $CI;
function __construct()
{
$this->CI =& get_instance();
}
function get_cart()
{
if(!$this->CI->session->userdata('cartRecv'))
$this->set_cart(array());
return $this->CI->session->userdata('cartRecv');
}
function set_cart($cart_data)
{
$t... | Java |
package com.mauriciotogneri.apply.compiler.syntactic.nodes.arithmetic;
import com.mauriciotogneri.apply.compiler.lexical.Token;
import com.mauriciotogneri.apply.compiler.syntactic.TreeNode;
import com.mauriciotogneri.apply.compiler.syntactic.nodes.ExpressionBinaryNode;
public class ArithmeticModuleNode extends Expres... | Java |
#LocalFolderPathStr=${PWD}
#LocalFilePathStr=$LocalFolderPathStr'/.pypirc'
#HomeFilePathStr=$HOME'/.pypirc'
#echo $LocalFilePathStr
#echo $HomeFilePathStr
#cp $LocalFilePathStr $HomeFilePathStr
python setup.py register
sudo python setup.py sdist upload | Java |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-user',
template: '<router-outlet></router-outlet>'
})
export class UserComponent implements OnInit {
constructor(public router: Router) { }
ngOnInit() {
if (this.router.url ... | Java |
# coding: utf-8
from sqlalchemy.testing import eq_, assert_raises, assert_raises_message, \
config, is_
import re
from sqlalchemy.testing.util import picklers
from sqlalchemy.interfaces import ConnectionProxy
from sqlalchemy import MetaData, Integer, String, INT, VARCHAR, func, \
bindparam, select, event, Type... | Java |
/**
* Copyright (C) 2013 Tobias P. Becker
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge... | Java |
exports.login = function* (ctx) {
const result = yield ctx.service.mine.login(ctx.request.body);
if (!result) {
ctx.status = 400;
ctx.body = {
status: 400,
msg: `please check your username and password`,
}
return;
}
ctx.body = {
access_token: result.access_token,
msg: 'login ... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script>
const importObject = Object.freeze({
env: {
__memory_b... | Java |
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Web;
namespace Umbraco.Core
{
///<summary>
/// Extension methods for dictionary & concurrentdictionary
///... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Phenotype Demo</title>
<meta name="description" content="Phenotype Demo">
<link rel="stylesheet" href="style.css">
<script src="phenotype.js" type="application/javascript"></script>
</head>
<body>
<a ... | Java |
import * as yargs from "yargs";
import { getEnvironment, getSlimConfig } from "../cli-helpers";
export const devCommand: yargs.CommandModule = {
command: "dev",
describe: "Start a development server.",
builder: {
open: {
alias: "o",
type: "boolean",
description: ... | Java |
export const browserVersions = () => {
let u = navigator.userAgent
return {
// 移动终端浏览器版本信息
trident: u.indexOf('Trident') > -1, // IE内核
presto: u.indexOf('Presto') > -1, // opera内核
webKit: u.indexOf('AppleWebKit') > -1, // 苹果、谷歌内核
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') === -1, // 火狐... | Java |
module YandexMusic
class Client
include YandexMusic::Auth
include YandexMusic::Endpoints::Search
include YandexMusic::Endpoints::ArtistAlbums
include YandexMusic::Endpoints::AlbumsTracks
def initialize(client_id, client_secret)
@client_id, @client_secret = client_id, client_secret
end
... | Java |
<div class="container">
<div class="col-md-12 col-sm-12 col-xs-12 no-padding">
<div ng-controller="GroupMenu" ng-model="currentMenu" ng-init="currentMenu = 'new'" ng-include="'group/menu'" class="row"></div>
<div class="row">
<div class="col-md-12 no-padding">
<div c... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.