code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
describe('responsive-compass-sprite', function() {
describe('icon-sprite', function() {
function compare(expected, tmp, done) {
var baseExpected = __dirname + '/expected/icon-sprite',
... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-odd-order: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... | Java |
ifeq ($(CC),cc)
CC = clang
endif
ifeq ($(CC),gcc)
CC = clang
endif
CC ?= clang
ifeq ($(V),1)
Q =
else
Q = @
endif
MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SDN_SENSOR_BASE ?= $(shell dirname $(MAKEFILE_DIR))
RTE_SDK ?= $(SDN_SENSOR_BASE)/external/dpdk
RTE_TARGET ?=... | Java |
---
id: D2D7DFCE-5BC2-4B6B-929D-A0DE8B1206C9
title: 春天
author: 吴念真
date: 2015-09-11 23:03:51
categories: 小说
tags: default
---
阿圆是金门金沙市场一家杂货店里打杂的小妹,长得不是很好看,加上老板以吝啬出名,所以跟其他杂货店比起来,他们的生意差很多。
那年头在金门当兵根本没有机会回台湾,所以不管哪家店,只要有稍具姿色的美眉驻守,几乎不管服务或者商品的品质有多烂、价格有多不合理,也可以让一大群“精子已经满到喉咙,吐口痰连爬过的蟑螂都会怀孕”的阿兵哥蜂拥而至;于是供应全师将近一万人伙食材料... | Java |
require "test_helper"
class Admin::BidsControllerTest < ActionController::TestCase
setup :create_administrator_session
def test_index
opts = {:controller => "admin/bids", :action => "index"}
assert_routing("/admin/bids", opts)
get(:index)
assert_response(:success)
assert_template("admin/bids/... | Java |
package goginjsonrpc
import (
"fmt"
"encoding/json"
"io/ioutil"
"net/http"
"reflect"
"github.com/gin-gonic/gin"
)
func jsonrpcError(c *gin.Context, code int, message string, data string, id string) {
c.JSON(http.StatusOK, map[string]interface{}{
"result": nil,
"jsonrpc": "2.0",
"error": map[string]int... | Java |
require 'open-uri'
require 'nokogiri'
require 'pry'
require "oracle/version"
require 'oracle/cli'
require 'oracle/hero'
require 'oracle/scraper'
| Java |
package com.ftchinese.jobs.common
import org.eclipse.jetty.server.handler.gzip.GzipHandler
import org.eclipse.jetty.server.handler.{ContextHandler, ContextHandlerCollection}
import org.eclipse.jetty.server.{Server, ServerConnector}
import scala.collection.mutable.ArrayBuffer
/**
* An http server.
* Created by wanbo ... | Java |
include_directories(${GIT_ROOT}/aws-sdk-cpp/aws-cpp-sdk-transfer/include)
| Java |
<!DOCTYPE html>
<html>
<head></head>
<body style="font:12px Consolas; margin:0;">
<div id="p1" style="background:gold; width:50px; height:50px; min-width:100px; min-height:100px; padding:10px;">
<div id="c1" style="width:100%; height:100%; background:plum;"></div>
</div>
<br>
<div id="p2" styl... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>subst: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | Java |
//~ name a744
alert(a744);
//~ component a745.js
| Java |
//
// BlackHoleDemo.h
// Drawing
//
// Created by Adrian Russell on 16/12/2013.
// Copyright (c) 2013 Adrian Russell. All rights reserved.
//
#ifndef __Drawing__BlackHoleDemo__
#define __Drawing__BlackHoleDemo__
#include "PhysicsDemo.h"
#include "ForceGenerator.h"
class BlackHoleDemo : public PhysicsDemo {
... | Java |
'use strict';
var Q = require('q')
, _ = require('underscore');
exports.defaults = function () { return { storage: {} }; };
exports.mixin = {
/**
* Converts `arguments` to a key to be stored.
*/
toKey: function () {
return _.toArray(arguments);
},
contains: function () {
return this.contain... | Java |
<?php
namespace Baghayi\Skyroom\Factory;
use Baghayi\Skyroom\Room as RoomItself;
use Baghayi\Skyroom\User;
use Baghayi\Skyroom\Collection\Users;
use Baghayi\Skyroom\Exception\AlreadyExists;
use Baghayi\Skyroom\Request;
use Baghayi\Skyroom\Exception\DuplicateRoom;
final class Room {
private $request;
public ... | Java |
capstone.controller("RegisterCtrl", function($scope,$http,AuthFactory,$location,user1){
// $(".button-collapse").sideNav();
$http.get(`states.json`)
.then((data)=>{
$scope.stateName = data.data
console.log($scope.stateName)
$('input.autocomplete').autocomplete({
data: $scope.stateName,
limit: 10 // The max... | Java |
<?php if(time() > 1346310303){return null;} return array (
2 =>
array (
4 =>
array (
0 =>
array (
'id' => 3,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Гастроэнтерология',
'longtitle' => '',
'description' => 'Гастроэнтер... | Java |
<!DOCTYPE html>
<html>
<head>
<title>movies of the 80's</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7o... | Java |
<!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/html; charset=utf-8" />
<title>Query Objects — MongoAlchemy v0.8 documentat... | Java |
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your... | Java |
<?php
namespace AppBundle\Service\Crud\Strategy;
/**
* @author Alexandr Sibov<cyberdelia1987@gmail.com>
*/
trait ResolverAwareTrait
{
/**
* @var ResolverInterface
*/
private $resolver;
public function setStrategyResolver(ResolverInterface $resolver)
{
$this->resolver = $resolver;
... | Java |
(function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param $mdSidenav
* @param avatars... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | Java |
# ConfigBot
Welcome to config_bot gem!
This is a ruby command-line bot which will guide you to create a config file which can be later used by any environment.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'config_bot'
```
And then execute:
$ bundle
Or install it yourself as:
... | Java |
import Router = require('koa-router');
import * as schema from './schema';
import * as routes from './routes';
import validator from '../../utils/validator';
const router = new Router({ prefix: '/toolkit' });
router.get('/example', routes.example);
router.post('/upload', validator(schema.upload), routes.upload);
exp... | Java |
class Report < ActiveRecord::Base
mount_uploader :forest_photo, ForestPhotoUploader
end
| Java |
package io.mattw.youtube.commentsuite.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.List;
import java.util.stre... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudfla... | Java |
package com.aol.cyclops.guava;
import com.aol.simple.react.stream.traits.FutureStream;
import com.google.common.collect.FluentIterable;
public class FromSimpleReact {
public static <T> FluentIterable<T> fromSimpleReact(
FutureStream<T> s) {
return FluentIterable.from(s);
}
}
| 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="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | Java |
#import <Flutter/Flutter.h>
@interface AdbflibPlugin : NSObject<FlutterPlugin>
@end
| Java |
---
layout: post
title: "苹果的清洁能源项目"
date: 2016-3-21 9:11:11
categories: 苹果 能源 环保
published: false
---
本月 22 号苹果举行了他们的春季发布会。虽然消费产品,例如 iPhone 和 iPad 并没有大的更新,但是关于 CareKit 和[环保项目][1]的进展还是很振奋人心的。特别是其中的清洁能源项目,是非常雄心勃勃并且需要巨大投入的,因此也十分值得我们研究学习。

[1]: http://www.apple.c... | Java |
<?php
namespace Nijens\FailureHandling;
use Nijens\Utilities\UnregisterableCallback;
/**
* FailureCatcher
*
* @author Niels Nijens <nijens.niels@gmail.com>
* @package Nijens\Failurehandling
**/
class FailureCatcher
{
/**
* The failure handler instance implementing FailureHandlerInterface
*
*... | Java |
namespace Farmhand.Installers.Patcher.Injection.Components.Modifiers
{
// ReSharper disable StyleCop.SA1600
using System;
using System.ComponentModel.Composition;
using Farmhand.Installers.Patcher.Cecil;
using Farmhand.Installers.Patcher.Injection.Components.Hooks;
using Farmhand.Installers.Pa... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | Java |
<?php
namespace Superjobs\HomeBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Superjobs\HomeBundle\Entity\CVtheque;
use Superjobs\HomeBundle\Form\CVthequeType;
use Superjobs\HomeBundle\Entity\Category;
use Superjobs\HomeBundle\Form\Categor... | Java |
local module = {}
function module.ctor(env,loader)
env.loader = loader
end
return module
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | Java |
MIT License
===========
Copyright (c) 2017 Arne Bakkebø
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, p... | Java |
<?php
/**
* BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
*
* @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace BjyAuthorize\Service;
use BjyAuthorize\View\UnauthorizedStrat... | Java |
require 'spec_helper'
describe Micropost do
let(:user) { FactoryGirl.create(:user) }
before { @micropost = user.microposts.build(content: "Lorem ipsum") }
subject { @micropost }
it { should respond_to(:content) }
it { should respond_to(:user_id) }
it { should respond_to(:user) }
its(:user) { should e... | Java |
//
// ViewController.h
// DSCrashDemo
//
// Created by dasheng on 16/4/11.
// Copyright © 2016年 dasheng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| Java |
https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=1068
| 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\FujiFilm;
use JMS\Serializer\Annotation\ExclusionPolicy... | Java |
var gulp = require('gulp'),
concat = require('gulp-concat'),
compass = require('gulp-compass'),
notify = require('gulp-notify');
function swallowError(error) {
this.emit('end');
}
function reportError(error) {
notify.onError().apply(this, arguments);
this.emit('end');
}
// com... | Java |
import { CustomVirtualAudioNodeFactory, VirtualAudioNode } from "../types";
export default abstract class VirtualAudioNodeBase {
public readonly node!: string | CustomVirtualAudioNodeFactory;
public cannotUpdateInPlace(newVirtualAudioNode: VirtualAudioNode): boolean {
return newVirtualAudioNode.node !== this.... | Java |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
from __future__ import absolute_import
from math import acos, cos, pi, radians, sin, sqrt
import auttitude as at
import numpy as np
def normalized_cross(a, b):
"""
Returns the normalized cross product between vectors.
Uses numpy.cros... | Java |
#!/usr/bin/env bash
set -e
function hr {
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
}
while getopts ":u" opt; do
case $opt in
u)
docker pull blengerich/genamap || { echo "failed to pull the image" >&2; exit 1; }
hr
echo 'Pulled the GenAMap docker image... | Java |
c ----------------------------------------------------------------------
c
c Gaussian wake model applied to offshore wind farms (WindFarm object)
c by Juan P. Murcia <jumu@dtu.dk>
c
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c ----------... | Java |
{% extends path+"/_layout-case-action.html" %}
{% block citizen_content %}
{{ data.nuggets | log }}
<p class="no-kdBar"><a href="javascript: history.go(-1)" class="link-back">Back</a></p>
<h1 class="heading-large mt10
">
<span class="heading-secondary">Mental state examination</span>
Insight</h1>
<div class="... | Java |
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% for column in widget.columns %}
<span class="icon-admin {{ column }}"></span>
{% endfor %}
<br/>
{% include "django/forms/widgets/input.html" %} {{ widget.label }}</label> | Java |
# frozen_string_literal: true
require 'spec_helper'
module Pathway
describe Result do
describe ".success" do
let(:result) { Result.success("VALUE") }
it "returns a Success object with passed value", :aggregate_failures do
expect(result).to be_a(Result::Success)
expect(result.value).... | Java |
package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import factory.FactoryService;
import vo.Bbs_CommmVo;
import vo.Board2Vo;
public class BoardDao2 {
private static BoardDao2 dao;
public static synchronized BoardDao2 getDao(){
if ( dao == null ) dao = new BoardDao2();
return dao;... | Java |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.freteplanejado.entity;
/**
*
* @author 43596980895
*/
public class Frete {
private int id;
private String orige... | Java |
module.exports = require( "./src/LRUCache" ); | Java |
Kloj le Grand
=============
Clojure bot for [vindinium](http://vindinium.org)
## Usage
```
$ lein repl
```
```clojure
> ; (re)load the code
> (require 'vindinium.core :reload)
> ; run a training game with 80 turns
> (vindinium.core/-main "training" secretkey 80)
> ; run 50 arena games
> (vindinium.core/-main "are... | Java |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min... | Java |
package com.martijndashorst.euler;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
/**
* The sequence of triangle numbers is generated by adding the natural numbers.
* So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first
* ten ... | Java |
'use strict';
angular.module('sportzCast')
.controller('FooterCtrl', function ($scope) {
$('#footer').hide();
$(function () {
$(window).scroll(function () {
// set distance user needs to scroll before we start fadeIn
if ($(this).scrollTop() > 500) {
$('.na... | Java |
# Changelog
## Unreleased
- Removed `kp get` and `kp set` commands, basically we removed the global config. Config can only be done via `kanpai.json` or the `kanpai` field in `package.json`.
## 0.10.1
- Support `HTTPS` git URL.
## 0.10.0
- Move `npm publish` and `kp gh-release` to a standalone command: `kp releas... | Java |
/* crypto/bf/blowfish.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | Java |
package ru.otus.l51.tests;
/**
* Created by tully.
*/
@SuppressWarnings("unused")
public class TestClass {
private int a = 0;
private String s = "";
public TestClass() {
}
public TestClass(Integer a) {
this.a = a;
}
public TestClass(Integer a, String s) {
this.a = a;
... | Java |
{% extends "adventure/views/templates/layout.html" %}
{% block content %}
<div class="post">
<div class="post_inner">
<div class="the_post format-text">
<ul>
{% for adventure in adventures %}
<li>
<a href="/adventure/{{ adventure.id }}">{{ adventure.title }}</a>
<div class="addition... | Java |
<?php
namespace Blogger\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
//\Blogger\BlogBundle\Entity\Client
class ClientController extends Controller{
... | Java |
<?php
namespace mle86\Value;
/**
* The interface of all value classes,
* i.e. AbstractValue and AbstractSerializableValue.
*
* It just specifies that Value classes should have a 'value' method
* and a one-argument constructor, although those classes have another
* important requirement: being immutable. But... | Java |
package main
import (
"fmt"
"log"
"net"
"os"
"github.com/kennylevinsen/g9p"
"github.com/kennylevinsen/g9ptools/fileserver"
"github.com/kennylevinsen/g9ptools/ramfs/ramtree"
)
func main() {
if len(os.Args) < 5 {
fmt.Printf("Too few arguments\n")
fmt.Printf("%s service UID GID address\n", os.Args[0])
fmt... | Java |
/**
* Usuario Controller Test Suite
*
* @author Thiago Paes <mrprompt@gmail.com>
* @license MIT
*/
'use strict';
var connection = require('../test');
var Usuario = require('../../src/controllers/UsuarioController');
var sinon = require('sinon');
var assert = require('assert');
var request = require('request');
... | Java |
#!/usr/bin/env ts-node
import * as Path from 'path'
import * as Fs from 'fs'
import Ajv, { ErrorObject } from 'ajv'
function handleError(error: string) {
console.error(error)
process.exit(-1)
}
function formatErrors(errors: ErrorObject[]): string {
return errors
.map(error => {
const { dataPath, mes... | Java |
<?php
namespace TheScienceTour\DocumentBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique as MongoDBUnique;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use TheScienceTour\MediaBundle\... | Java |
define([
], function () {
'use strict';
return function (req, res, next) {
function filterParams(req, action) {
var paramsWhitelist = action.params,
whitelistParam,
paramValue,
type,
filteredParams = {};
// check a... | Java |
module Em
module Systemcommand
VERSION = "2.0.10"
end
end
| Java |
use std::env;
use std::process;
use minigrep::Config;
fn main() {
let args: Vec<String> = env::args().collect();
let config = Config::new(&args).unwrap_or_else(|err| {
eprintln!("Problem parsing arguments: {}", err);
process::exit(1);
});
if let Err(e) = minigrep::run(config) {
... | Java |
// Copyright (c) 2018 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_UTIL_H_
#define SHELL_COMMON_GIN_UTIL_H_
#include "gin/converter.h"
#include "gin/function_template.h"
namespace gin_util {
template <typename T... | Java |
{% extends "images/base.html" %}
{% block content %}
<h2>{{ resource }}</h2>
<p><strong>Tags: </strong>
{% for tag in resource.tags.all %}
<a href={% url 'tag' tag %}>{{ tag }}</a>
{% endfor %}
<p><strong>Similar Images: </strong>
{% for resource in resource.tags.similar_objects %}
<a href="{% url 'resource' resourc... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - DoCoMo/2.0 P90liS(c100;TB;W20H10)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleap... | Java |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SourceSchemaParser.DOTA2;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace SourceSchemaParser.JsonConverters
{
internal class SchemaItemToDotaHeroJsonConverter : JsonConverter
{
public override void WriteJson(Js... | Java |
<!doctype html>
<html lang="en-gb">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
... | Java |
Express ES6 boilerplate
=======================
[](https://codeclimate.com/github/RomanovSci/express-es6-boilerplate) [ Quantum Unit Solutions <http://github.com/dmeikle/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gossamer\Tehuti\Routing;
... | Java |
<html>
<head>
<meta content="HTML Tidy for HTML5 for Linux version 5.2.0" name="generator"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="Describes the xSemaphoreCreateBinaryStatic() RTOS API function which is part of the RTOS semaphore API source code function set.... | Java |
require 'test_helper'
class ActsAsSurveyTest < ActiveSupport::TestCase
# Called before every test method runs. Can be used
# to set up fixture information.
def setup
# Do nothing
end
# Called after every test method runs. Can be used to tear
# down fixture information.
def teardown
# Do nothin... | Java |
<?php
/**
Protein Engineering Analysis Tool Structure Analysis (PEATSA)
Copyright (C) 2010 Michael Johnston & Jens Erik Nielsen
Author: Michael Johnston
This program 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 S... | Java |
from django.contrib import admin
# Register your models here.
from rcps.models import *
class IngredientToRecipeInline(admin.TabularInline):
model = Ingredient.recipes.through
verbose_name = 'Ингредиент'
verbose_name_plural = 'Ингредиенты'
class EquipmentInline(admin.TabularInline):
model = Equipme... | Java |
var gulp = require('gulp'),
webserver = require('gulp-webserver'),
htmlreplace = require('gulp-html-replace');
//gulp.task('default', function() {
// gulp.run('watcher', 'webserver');
//});
gulp.task('webserver', function() {
gulp.src('build')
.pipe(webserver({
livereload: true
... | Java |
# Stop and remove swift containers and image if any
docker stop SWIFT_AIO
docker rm SWIFT_AIO
docker rm SWIFT_DATA
#docker rmi swift-aio | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | Java |
# 2017-11-08 - Release 0.1.7
- Add passing in agent user id and group id
# 2017-10-09 - Release 0.1.6
- Change resource name for group to avoid collisions
- Add ulimit settings to init template
# 2017-05-17 - Release 0.1.2
- merge PR from [Jess Reynolds](https://github.com/knuedge/bamboo_agent/pull/1)
- add ability t... | Java |
/// <reference types="chai" />
declare module "chai-bytes" {
function chaiBytes(chai: any, utils: any): void;
export = chaiBytes;
}
declare namespace Chai {
// For BDD API
interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
equalBytes(expected: string | Array<... | Java |
<?php
namespace TemperatureBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Equipement
*
* @ORM\Table(name="equipement")
* @ORM\Entity(repositoryClass="TemperatureBundle\Repository\EquipementRepository")
*/
class Equipement
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
... | Java |
<?php
namespace AppBundle\Admin;
use Sonata\UserBundle\Admin\Entity\UserAdmin as BaseUserAdmin;
class UserAdmin extends BaseUserAdmin
{
/**
* {@inheritdoc}
*/
protected $datagridValues = array(
'_page' => 1, // display the first page (default = 1)
'_sort_order' => 'ASC', ... | Java |
using System;
using System.IO;
using Aspose.Pdf;
using Aspose.Pdf.Facades;
namespace Aspose.Pdf.Examples.CSharp.AsposePDF.Images
{
public class CGMImageToPDF
{
public static void Run()
{
// ExStart:CGMImageToPDF
// The path to the documents directory.
string ... | Java |
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme.title }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme.description }}{% endif %}">
<meta name="viewport" conten... | Java |
#!/usr/bin/perl
package GrabzItPDFOptions;
use GrabzIt::GrabzItBaseOptions;
@ISA = qw(GrabzItBaseOptions);
sub new
{
my $class = shift;
my $self = GrabzItBaseOptions->new(@_);
$self->{"browserWidth"} = 0;
$self->{"includeBackground"} = 1;
$self->{"pagesize"} = "A4";
$self->{... | Java |
#include "HelloWorldScene.h"
#include ".\Scene\LevelScene.h"
#include ".\Entity\Umbrella.h"
#include "SimpleAudioEngine.h"
#include ".\Scene\SceneManager.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease o... | Java |
module Lesson08 where
-- Now let's have some real fun: a two player, online five card stud game,
-- with a full betting system. The betting system is actually the biggest
-- addition versus what we've done previously, so most of our attention
-- will be focused on that. Most of the other code will be very similar
-- t... | Java |
/**
* Created by siddharthsharma on 5/21/16.
*/
var React = require('react');
var Contact = require('./contact/app-catalog');
var Cart = require('./cart/app-cart');
var Router = require('react-router-component');
var CatalogDetail = require('./product/app-catalogdetail');
var Template = require('./app-template.js');... | Java |
package com.project.library.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public class MyDateUtil {
public Date calculateDate(String currentDate... | Java |
<?php
/*
* Sendanor SimpleREST PHP Framework
* Copyright 2017-2020 Jaakko-Heikki Heusala <jheusala@iki.fi>
*/
namespace SimpleREST\Legacy\Database;
/* Security check */
if(!defined('REST_PHP')) {
die("Direct access not permitted\n");
}
/** Database interface */
interface iDatabaseTable {
public function __const... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.