code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
# coding: utf-8
require_relative 'wrapper_comparator'
module Comparability
module Comparators
class ReverseWrapperComparator < WrapperComparator
def compare(me, other)
reverse(wrapped_compare(me, other))
end
private
def reverse(comparison_result)
if comparison_result.n... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simon</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/simon.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700|VT323" rel="stylesheet">
... | Java |
<h2>Editing Tip</h2>
<br>
<?php echo render('admin/tips/_form'); ?>
<p>
<?php echo Html::anchor('admin/tips/view/'.$tip->id, 'View'); ?> |
<?php echo Html::anchor('admin/tips', 'Back'); ?></p>
| Java |
package com.hyh.arithmetic.skills;
import android.annotation.SuppressLint;
import java.util.ArrayList;
import java.util.List;
/**
* 规划了一份需求的技能清单 req_skills,并打算从备选人员名单 people 中选出些人组成一个「必要团队」
* ( 编号为 i 的备选人员 people[i] 含有一份该备选人员掌握的技能列表)。
* 所谓「必要团队」,就是在这个团队中,对于所需求的技能列表 req_skills 中列出的每项技能,团队中至少有一名成员已经掌握。
* 我们可以用每个人的... | Java |
// Generated by CoffeeScript 1.8.0
(function() {
var TaskSchema, mongoose;
mongoose = require('./mongoose');
TaskSchema = mongoose.Schema({
id: {
type: Number,
unique: true
},
title: {
type: String
},
url: {
type: String,
unique: true
},
status: {
... | Java |
---
layout: page
title: Twin Corporation Conference
date: 2016-05-24
author: Helen Conrad
tags: weekly links, java
status: published
summary: In hac habitasse platea dictumst. Morbi.
banner: images/banner/people.jpg
booking:
startDate: 05/07/2016
endDate: 05/12/2016
ctyhocn: PHLCVHX
groupCode: TCC
published: tr... | Java |
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2018 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies th... | Java |
var mongoose = require('mongoose'),
_ = require('underscore'),
roomTokenizer = function(msg) {
var tokens = [];
tokens = tokens.concat(msg.content.split(' '));
tokens.push(msg.author);
return tokens;
};
exports.init = function(db) {
var EntitySchemaDefinition,
E... | Java |
import React, { PropTypes } from 'react'
import { Grid, Row, Col } from 'react-bootstrap'
import Sort from '../../components/Sort'
import ProjectFilterForm from '../../components/ProjectFilterForm'
import Search from '../../containers/Search'
import ProjectsDashboardStatContainer from '../../containers/ProjectsDashboar... | Java |
<HTML><HEAD>
<TITLE>Review for Scream (1996)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0117571">Scream (1996)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Tim+Voon">Tim Voon</A></H... | Java |
import _plotly_utils.basevalidators
class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="textfont", parent_name="scattersmith", **kwargs):
super(TextfontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | Java |
export default function mapNodesToColumns({
children = [],
columns = 1,
dimensions = [],
} = {}) {
let nodes = []
let heights = []
if (columns === 1) {
return children
}
// use dimensions to calculate the best column for each child
if (dimensions.length && dimensions.length === children.length) ... | Java |
/**
* @fileoverview enforce or disallow capitalization of the first letter of a comment
* @author Kevin Partington
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const... | Java |
namespace PythonSharp.Exceptions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AttributeError : Exception
{
public AttributeError(string message)
: base(message)
{
}
}
}
| Java |
package iso20022
// Security that is a sub-set of an investment fund, and is governed by the same investment fund policy, eg, dividend option or valuation currency.
type FinancialInstrument11 struct {
// Unique and unambiguous identifier of a security, assigned under a formal or proprietary identification scheme.
I... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tree-diameter: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | Java |
---
layout: page
title: Hill - Travis Wedding
date: 2016-05-24
author: Denise Joseph
tags: weekly links, java
status: published
summary: Morbi dignissim viverra tortor sed molestie. Nullam.
banner: images/banner/office-01.jpg
booking:
startDate: 10/08/2016
endDate: 10/12/2016
ctyhocn: CBKKSHX
groupCode: HTW
pub... | Java |
module.exports = {
FIREBASE_URL: 'https://amber-heat-<your-app>.firebaseio.com/',
TWITTER_KEY: '',
TWITTER_SECRET: '',
TWITTER_CALLBACK: process.env.TWITTER_CALLBACK || 'Twitter Callback Url'
}; | Java |
/**
* @hidden
* @param a0
* @param a1
* @param a2
* @param a3
* @param a4
* @param a5
* @param a6
* @param a7
* @param b0
* @param b1
* @param b2
* @param b3
* @param b4
* @param b5
* @param b6
* @param b7
* @param index
* @returns
*/
export declare function extE3(a0: number, a1: number, a2: number,... | Java |
require 'rails_helper'
describe SectionSevenController do
it { should respond_to(:index) }
end
| Java |
# dispensable-chat
Socket.io party chat
Team name: `dispensable-flicker`
http://jsdev.learnersguild.org/goals/378-Socket-Party_Chat.html
## Instructions
Type the following in your terminal
1. `git clone https://github.com/TrevorJamesH/dispensable-chat.git trevorSocket`
2. `cd trevorSocket`
3. `npm run init-db`
4. Ge... | Java |
/**
* Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.com
*
* 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 |
WBlog
=======
[](https://travis-ci.org/windy/wblog)
[](https://codeclimate.com/github/windy/wblog)
[](https://codecl... | Java |
'use strict'
const _ = require('lodash')
module.exports = {
getQueryString(url) {
const qs = {}
_.forEach(url.split('?').pop().split('&'), s => {
if (!s) return
const kv = s.split('=')
if (kv[0]) {
qs[kv[0]] = decodeURIComponent(kv[1])
}
})
return qs
},
toQuerySt... | 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 |
/*
* This file is part of React, licensed under the MIT License (MIT).
*
* Copyright (c) 2013 Flow Powered <https://flowpowered.com/>
* Original ReactPhysics3D C++ library by Daniel Chappuis <http://danielchappuis.ch>
* React is re-licensed with permission from ReactPhysics3D author.
*
* Permission is hereby gra... | Java |
<?xml version="1.0" ?>
<!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-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
... | Java |
<!doctype html>
<html class="theme-next pisces use-motion" lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<met... | Java |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ META.project_short_title }} | The Texas Tribune</title>
{% block styles %}
<link rel="stylesheet" href="//api.ti... | Java |
using Microsoft.Xna.Framework;
namespace XmasHell.FSM
{
public struct FSMStateData<T>
{
public FSM<T> Machine { get; internal set; }
public FSMBehaviour<T> Behaviour { get; internal set; }
public T State { get; internal set; }
public GameTime GameTime { get; internal set; }
}
}
| Java |
// --------------------------------------------------------------------------------------------
#region // Copyright (c) 2020, SIL International. All Rights Reserved.
// <copyright from='2011' to='2020' company='SIL International'>
// Copyright (c) 2020, SIL International. All Rights Reserved.
//
// Distributable und... | Java |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>my-angular-cli-app documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-sca... | Java |
module CdnBacon
VERSION = "0.0.1"
end
| Java |
## Build
Let's say your project name is Foo.
* cd to Foo.
* `npm run prod`
The command will generate all static files into build folder.
* `npm run start:prod`
You can test the build by run `npm run start:prod`, the command will bring up a node server which servers all static files under build foler.
Visit [http://... | Java |
---
layout: post
title: "Georgia Tech Baseball: Schedule Preview and Prediction - May"
description: "This is the end of the line, friends. Do the Jackets get over the tourney hump?"
permalink: https://www.fromtherumbleseat.com/2019/2/8/18215049/georgia-tech-baseball-schedule-preview-and-prediction-may-duke-pitt-mercer-... | Java |
'use strict';
var eachAsync = require('each-async');
var onetime = require('onetime');
var arrify = require('arrify');
module.exports = function (hostnames, cb) {
cb = onetime(cb);
eachAsync(arrify(hostnames), function (hostname, i, next) {
var img = new Image();
img.onload = function () {
cb(true);
// ... | Java |
<?php
class Ressource extends Thing {
var $name;
var $url;
var $schemaDefinition;
function __construct($url = null) {
if ($url) $this->url = $this->preparePath($url);
}
function preparePath($path) {
$path = str_replace(" ", "+", $path);
return $path;
}
function getFileName() {
if (strpos($this->re... | Java |
module Ldaptic
class Error < ::RuntimeError
end
class EntryNotSaved < Error
end
# All server errors are instances of this class. The error message and error
# code can be accessed with <tt>exception.message</tt> and
# <tt>exception.code</tt> respectively.
class ServerError < Error
attr_accessor ... | Java |
package org.broadinstitute.sting.utils.codecs.table;
import org.broad.tribble.Feature;
import org.broad.tribble.readers.LineReader;
import org.broadinstitute.sting.gatk.refdata.ReferenceDependentFeatureCodec;
import org.broadinstitute.sting.utils.GenomeLocParser;
import org.broadinstitute.sting.utils.exceptions.UserEx... | Java |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | Java |
<!-- THIS FILE IS GENERATED VIA '.template-helpers/generate-tag-details.pl' -->
# Tags of `ruby`
- [`ruby:2.0.0-p647`](#ruby200-p647)
- [`ruby:2.0.0`](#ruby200)
- [`ruby:2.0`](#ruby20)
- [`ruby:2.0.0-p647-onbuild`](#ruby200-p647-onbuild)
- [`ruby:2.0.0-onbuild`](#ruby200-onbuild)
- [`ruby:2.0-onbuild`](#ruby20-onbuil... | Java |
<div class="commune_descr limited">
<p>
Neufchâtel-Hardelot est
une ville géographiquement positionnée dans le département des Pas-de-Calais en Nord-Pas-de-Calais. Elle comptait 3 759 habitants en 2008.</p>
<p>La commune propose de multiples aménagements, elle dispose, entre autres, de deux terrains de te... | Java |
//IP Flow Information Export (IPFIX) Entities
// Last Updated 2013-01-15
// http://www.iana.org/assignments/ipfix/ipfix.xml
var entities = [];
//ipfix-information-elements
entities['elements'] = {
"1":{"name":"octetDeltaCount","dataType":"unsigned64","dataTypeSemantics":"deltaCounter","group":"flowCounter","units":"... | Java |
using System;
namespace Versioning
{
public class NominalData : Sage_Container, IData
{
/* Autogenerated by sage_wrapper_generator.pl */
SageDataObject110.NominalData nd11;
SageDataObject120.NominalData nd12;
SageDataObject130.NominalData nd13;
SageDataObject140.... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Alphabet Table</title>
</head>
<body>
<table border="1px">
<tr>
<td colspan="3" align="center">Title goes here</td>
<td align="center">A</td>
<td align="right">B</td>
</tr>
... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `uok` fn in crate `rustc_lint`.">
<meta name="keywords" con... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `color` mod in crate `term`.">
<meta name="keywords" conten... | Java |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h> /* Definition of AT_* constants */
#ifndef _MSC_VER
#include <unistd.h>
#include <dirent.h>
#else
#pragma warning(disable:4996)
#endif
#include "logging.h"
#include "config.h"
#include "... | Java |
using AutoMapper;
using Bivi.Domaine;
using Bivi.FrontOffice.Web.ViewModels;
using Bivi.FrontOffice.Web.ViewModels.ModelBuilders;
using Bivi.FrontOffice.Web.ViewModels.Pages.Common;
using Bivi.Infrastructure.Attributes.Modularity;
using Bivi.Infrastructure.Constant;
using Bivi.Infrastructure.Services.Caching;
... | Java |
require 'filefm'
def test_config
File.join(File.dirname(__FILE__), 'config.yml')
end
def swift_server
ENV["SWIFT_SERVER"]
end
def swift_username
u = ENV["SWIFT_USERNAME"]
u
end
def swift_password
ENV["SWIFT_PASSWORD"]
end
def swift_test_container
ENV["SWIFT_TEST_CONTAINER"] || "filefm-test"
end
def sw... | Java |
<div class="container">
<div class="jumbotron">
<h1>Best Offer</h1>
<p class="font-face">Welcome to BestOffer!</p>
</div>
<div class="row">
<div class="col-md-12">
<div ng-include="'/partials/main/our-customers.html'"></div>
</div>
</div>
</div> | Java |
module Rentjuicer
class Response
attr_accessor :body
def initialize(response, raise_error = false)
rash_response(response)
raise Error.new(self.body.code, self.body.message) if !success? && raise_error
end
def success?
self.body && !self.body.blank? && self.body.respond_to?(:statu... | Java |
/***************************************************************************/
/* */
/* ftlist.h */
/* */
/* Ge... | Java |
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.references :post, index: true
t.integer :author_id
t.string :comment
t.timestamps
end
end
end
| Java |
<?php
namespace TheCodingMachine\Yaco\Discovery;
use Interop\Container\ContainerInterface;
use Interop\Container\Factory\ContainerFactoryInterface;
use Puli\Discovery\Api\Discovery;
use Puli\Discovery\Binding\ClassBinding;
use Symfony\Component\Filesystem\Filesystem;
use TheCodingMachine\Yaco\Compiler;
/**
* A cla... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>multiplier: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | Java |
from django.core import serializers
from rest_framework.response import Response
from django.http import JsonResponse
try:
from urllib import quote_plus # python 2
except:
pass
try:
from urllib.parse import quote_plus # python 3
except:
pass
from django.contrib import messages
from django.contrib.co... | Java |
/* @flow */
import {
InputTypeComposer,
type ObjectTypeComposerFieldConfigAsObjectDefinition,
} from 'graphql-compose';
import { getTypeName, type CommonOpts, desc } from '../../../utils';
import { getAllAsFieldConfigMap } from '../../Commons/FieldNames';
export function getRangeITC<TContext>(
opts: CommonOpts<... | Java |
<?php
return array (
'id' => 'nokia_c7_00_ver1_subuaold_subu2k9',
'fallback' => 'nokia_c7_00_ver1_subuaold',
'capabilities' =>
array (
'mobile_browser' => 'UCWeb',
'mobile_browser_version' => '9',
),
);
| Java |
---
layout: post
microblog: true
audio:
photo:
date: 2012-07-11 10:06:51 -0600
guid: http://craigmcclellan.micro.blog/2012/07/11/t223085957279264768.html
---
I don't trust any "true story" written by someone with that name. @ Got Books! [t.co/m1PcK3VW](http://t.co/m1PcK3VW)
| Java |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({lblItem:"\u30a2\u30a4\u30c6\u30e0",title:"\u30b5\u30a4\u30f3 \u30a4\u30f3",info:"{server} {resource} \u306e\u30a2\u30a4\u30c6\u30e0\u306b\u30a2\u30af\u30bb... | Java |
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Agregar Servicio</h1>
</div>
<!-- /.col-lg-12 -->
<div class="panel-body">
<div cl... | Java |
package com.exilegl.ld34.entity.enemy;
import java.util.Random;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Rectangle;
... | Java |
//
// This file is part of nuBASIC
// Copyright (c) Antonino Calderone (antonino.calderone@gmail.com)
// All rights reserved.
// Licensed under the MIT License.
// See COPYING file in the project root for full license information.
//
/* -------------------------------------------------------------------------- */... | Java |
{% extends 'base.html' %}
{% block head %}
<title>Websites</title>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col s12">
<div class="card">
<div class="card-content #90caf9 blue lighten-3">
<div class="card-tit... | Java |
import Data.List (permutations, sort)
solve :: String
solve = (sort $ permutations "0123456789") !! 999999
main = putStrLn $ solve
| Java |
import { Component, OnInit, Input } from '@angular/core';
import { ROUTER_DIRECTIVES } from '@angular/router';
import { PublishingItemsService, PublishingItem } from '../shared/index';
@Component({
moduleId: module.id,
selector: 'app-publish-card',
templateUrl: 'publish-card.component.html',
styleUrls: ['publi... | Java |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Split the input into chunks.
exports.default = (function (input, fail) {
var len = input.length;
var level = 0;
var parenLevel = 0;
var lastOpening;
var lastOpeningParen;
var lastMultiComment;
var lastMultiCommen... | Java |
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB
{
/// <summary>
/// Enables events from backend.
/// </summary>
[Command(ProtocolName.IndexedDB.Enable)]
[SupportedBy("Chrome")]
public class Enabl... | Java |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class music_switch : MonoBehaviour {
private AudioSource aud;
public AudioClip[] songs;
private int selection;
// Use this for initialization
void Start () {
aud = this.GetComponent<AudioSource> ();
selection = Random.Ran... | Java |
angular.module("umbraco")
.controller("Umbraco.PropertyEditors.RTEController",
function ($rootScope, $scope, $q, $locale, dialogService, $log, imageHelper, assetsService, $timeout, tinyMceService, angularHelper, stylesheetResource, macroService, editorState) {
$scope.isLoading = true;
//... | Java |
from ..cw_model import CWModel
class Order(CWModel):
def __init__(self, json_dict=None):
self.id = None # (Integer)
self.company = None # *(CompanyReference)
self.contact = None # (ContactReference)
self.phone = None # (String)
self.phoneExt = None # (String... | Java |
package adts;
/**
* Interface that represents any music item. MusicSymbol and MusicPart extend
* this. Thus, a Music could be a MusicPiece, a Voice, a Chord, a Lyric, a
* Pitch, or a Rest. a The objects are immutable. The equals, toString, and
* hashCode methods work recursively and individually different fr... | Java |
class ApplicationPolicy
attr_reader :user, :record
def initialize(user, record)
@user = user
@record = record
end
class Scope
attr_reader :user, :scope
def initialize(user, scope)
@user = user
@scope = scope
end
end
end
| Java |
'use strict';
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var init = require("Espresso/oop").init;
var trim = require("Espresso/trim").trim;
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
function RequestInterface(){
oop(this,"Espresso/Http/RequestIn... | Java |
#ifndef __BK_MESH_SAMPLING_H__
#define __BK_MESH_SAMPLING_H__
// blackhart headers.
#include "foundation\BkExport.h"
#include "foundation\BkAtomicDataType.h"
// Forward declarations.
struct BkPoint3;
// ~~~~~ Dcl(PUBLIC) ~~~~~
/*! \brief Samples a list of triangles.
*
* \param vertices The vertices of each triang... | Java |
namespace AnimalLookupWebservice.Areas.HelpPage.ModelDescriptions
{
public class KeyValuePairModelDescription : ModelDescription
{
public ModelDescription KeyModelDescription { get; set; }
public ModelDescription ValueModelDescription { get; set; }
}
} | Java |
module.exports = function(dataUri, maxDimension, callback){
var source = new Image();
source.addEventListener('load', function(){
var canvas = document.createElement('canvas'),
ratio = Math.max(source.width, source.height) / maxDimension;
canvas.width = source.width / ratio;
... | Java |
#!/bin/bash
# if config file doesnt exist (wont exist until user changes a setting) then copy default config file
if [[ ! -f /config/core.conf ]]; then
echo "[info] Deluge config file doesn't exist, copying default..."
cp /home/nobody/deluge/core.conf /config/
else
echo "[info] Deluge config file already exists, sk... | Java |
</script> <!--script end-->
</body> <!--body end-->
</html> <!--html end-->
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Kiwi.Renderers.CanvasRenderer - Kiwi.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="sty... | Java |
// @flow
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import Middleware from './Middleware';
type Base = {
href?: string,
target?: string,
};
type Link = {
crossOrigin?: string,
href?: string,
hrefLang?: string,
integrity?: string,
media?: string,
preload?: bool... | Java |
-- randexpr1.test
--
-- db eval {SELECT (case coalesce((select +a from t1 where exists(select 1 from t1 where t1.e not between t1.f-b and (select count(*) from t1)-t1.f | e)),t1.d+case when t1.b not between t1.d and 17+case when a in (t1.d,a,(abs(~case when (t1.f)<=t1.c then -17 else t1.f end)/abs(19))*d*t1.d) then (... | Java |
import {
RESOURCE,
SERVER_ERRORS,
INITIAL_STATE_WITH_CACHED_LIST,
INITIAL_STATE_WITH_LIST_BEING_FETCHED,
INITIAL_STATE_WITH_CACHED_AND_SELECTED_LIST,
} from '../mocks'
import { generateListResourceActions } from './mocks'
const request = () => Promise.resolve([RESOURCE])
const errorRequest = () => ... | Java |
#!/usr/bin/env bash
phpize
./configure
make
sudo make install
make clean
php --re focusphp
| Java |
// acquisition.hpp
#ifndef ACQUISITION_HPP
#define ACQUISITION_HPP
#include <QAbstractVideoBuffer>
#include <QAbstractVideoSurface>
#include <QList>
#include <QVideoFrame>
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(visionAcquisitionLog)
class Acquisition : public QAbstractVideoSurface {
Q_OBJECT
... | Java |
/*
* The MIT License
* Copyright © 2014 Cube Island
*
* 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, modif... | Java |
import { AppPage } from './app.po';
describe('material2 App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
});
| Java |
Radiant.config do |config|
config.define 'admin.title', :default => "Radiant CMS"
config.define 'dev.host'
config.define 'local.timezone', :allow_change => true, :select_from => lambda { ActiveSupport::TimeZone::MAPPING.keys.sort }
config.define 'defaults.locale', :select_from => lambda { Radiant::AvailableLoca... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: 48 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: 16 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="st... | Java |
package com.bugsnag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
/**
* If spring-webmv... | Java |
import React, {Component} from 'react';
import MiniInfoBar from '../components/MiniInfoBar';
export default class About extends Component {
state = {
showKitten: false
}
handleToggleKitten() {
this.setState({showKitten: !this.state.showKitten});
}
render() {
const {showKitten} = this.state;
... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<meta name="collection" content="api">
<!-- Generated by javadoc (build 1.5.0-rc) on Wed Aug 11 07:24:05 PDT 2004 -->
<TITLE>
NumberOfDocuments (Java 2 Platform SE 5.0)
</TITLE>
<META NAM... | Java |
package com.seafile.seadroid2.transfer;
/**
* Download state listener
*
*/
public interface DownloadStateListener {
void onFileDownloadProgress(int taskID);
void onFileDownloaded(int taskID);
void onFileDownloadFailed(int taskID);
}
| Java |
from pydispatch import dispatcher
from PySide import QtCore, QtGui
import cbpos
logger = cbpos.get_logger(__name__)
from .page import BasePage
class MainWindow(QtGui.QMainWindow):
__inits = []
def __init__(self):
super(MainWindow, self).__init__()
self.tabs = QtGui... | Java |
package cn.javay.zheng.common.validator;
import com.baidu.unbiz.fluentvalidator.ValidationError;
import com.baidu.unbiz.fluentvalidator.Validator;
import com.baidu.unbiz.fluentvalidator.ValidatorContext;
import com.baidu.unbiz.fluentvalidator.ValidatorHandler;
/**
* 长度校验
* Created by shuzheng on 2017/2/18.
*/
publ... | Java |
define([
"dojo/_base/array",
"dojo/_base/connect",
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/window",
"dojo/dom",
"dojo/dom-class",
"dojo/dom-construct",
"dojo/dom-style",
"dijit/registry",
"dijit/_Contained",
"dijit/_Container",
"dijit/_WidgetBase",
"./ProgressIndicator",
"./ToolBarButton",
... | Java |
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../..'
export const input = (
<editor>
<block>
<mark key="a">
<anchor />o
</mark>
n
<mark key="b">
e<focus />
</mark>
</block>
</editor>
)
export const run = editor => {
return Array.from(E... | Java |
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* ... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.