code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
# Flask based simple API
char-rnn from https://github.com/sherjilozair/char-rnn-tensorflow.
## Launch Server in Heroku
* Run heroku create and push to heroku:
```bash
cd poem-bot
heroku create
git push heroku master
```
* Alternatively, click the button below:
[
expect(extractor).to be_valid
end
end
describe Blockhead::Extractors::Value, '#extract_value' do
it 'returns @value unmolested' do
extractor =... | Java |
<?php
/*
* jQuery File Upload Plugin PHP Class 6.1.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
class UploadHandler
{
protected $options;
// PHP File Upload e... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>class RubyXL::VectorValue - rubyXL 3.4.21</title>
<script type="text/javascript">
var rdoc_rel_prefix = "../";
var index_rel_prefix = "../";
</script>
<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<scri... | Java |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | Java |
require File.expand_path('../../spec_helper', __FILE__)
module Pod
describe Command::Search do
extend SpecHelper::TemporaryRepos
describe 'Search' do
it 'registers it self' do
Command.parse(%w{ search }).should.be.instance_of Command::Search
end
it 'runs with correct parameters' d... | Java |
from __future__ import absolute_import, division, print_function
# note: py.io capture tests where copied from
# pylib 1.4.20.dev2 (rev 13d9af95547e)
from __future__ import with_statement
import pickle
import os
import sys
from io import UnsupportedOperation
import _pytest._code
import py
import pytest
import contextl... | Java |
package cn.winxo.gank.module.view;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import... | Java |
<?php
/*
UserFrosting Version: 0.2.2
By Alex Weissman
Copyright (c) 2014
Based on the UserCake user management system, v2.0.2.
Copyright (c) 2009-2012
UserFrosting, like UserCake, is 100% free and open-source.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associat... | Java |
package br.com.swconsultoria.nfe.schema.retEnvEpec;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Tipo Evento
*
* <p>Classe Java de TEvento complex type.
*
* <p>O seguinte fragmento do es... | Java |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | Java |
\documentclass[12pt,a4paper,openany,oneside]{book}
\input{thesis-setting}
% 仅用于测试
\usepackage{blindtext}
\title{\textsf{比如我举个例子}}
\author{{\kai 谁知道呢}}
\date{May 20, 20xx}
\begin{document}
\sloppy
\pagenumbering{Roman}
% 封皮
\frontmatter
\input{cover.tex}
\setcounter{page}{1}
\renewcommand{\baselinestretch}{1.25}... | Java |
.work {
min-height: 520px;
}
.work > div > p {
margin-bottom: 5px;
}
| Java |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.formrecognizer.administration;
import com.azure.ai.formrecognizer.administration.models.AccountProperties;
import com.azure.ai.formrecognizer.administration.models.BuildModelOptions;
import com.azure.a... | Java |
/**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highmaps]]
*/
package com.highmaps.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript n... | Java |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace NetsuiteEnvironmentViewer
{
//http://stackoverflow.com/questions/6442911/how-do-i-sync-scrolling-in-2-treeviews-using-the-slider
public partial class MyTreeView : TreeView
{
publi... | Java |
// This file is automatically generated.
package adila.db;
/*
* Asus ZenFone 2 Laser (ZE600KL)
*
* DEVICE: ASUS_Z00M
* MODEL: ASUS_Z00MD
*/
final class asus5fz00m_asus5fz00md {
public static final String DATA = "Asus|ZenFone 2 Laser (ZE600KL)|";
}
| Java |
/**
* Anonymous class
*/
class A {
a: any;
constructor(a: number) {
this.a = a;
}
}
/**
* Named class
*/
class B {
a: any;
b: any;
constructor(a, b) {
this.a = a;
this.b = b;
}
}
/**
* Named class extension
*/
class C extends A {
b: any;
constructor(a, b) {
super(a);
this.b... | Java |
/*
* measured-elasticsearch
*
* Copyright (c) 2015 Maximilian Antoni <mail@maxantoni.de>
*
* @license MIT
*/
'use strict';
exports.index = 'metrics-1970.01';
exports.timestamp = '1970-01-01T00:00:00.000Z';
function header(type) {
return {
index : { _type : type}
};
}
exports.headerCounter = heade... | Java |
@import url("screen.css");
@import url("non-screen.css") handheld;
@import url("non-screen.css") only screen and (max-device-width:640px);
#canvas-outer {
border: 0px;
position: relative;
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
}
#main_canvas {
width: 100%;
height: 100%;
... | Java |
PLANT_CONFIG = [
{key: 'name', label: 'Name'},
{key: 'scienceName', label: 'Scientific name'}
];
Template.plants.helpers({
plantListConfig: function() {
return PLANT_CONFIG;
}
});
Template.newPlant.helpers({
plantListConfig: function() {
return PLANT_CONFIG;
}
});
Template.new... | Java |
/**
* University of Campinas - Brazil
* Institute of Computing
* SED group
*
* date: February 2009
*
*/
package br.unicamp.ic.sed.mobilemedia.copyphoto.impl;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.... | Java |
body {font-family: verdana, arial, sans serif; font-size:11px; line-height:16px }
body,div,navigation {font-family: verdana, arial, sans serif; font-size:11px; line-height:16px }
td {font-family: verdana, arial, sans serif; font-size:11px; line-height:16px }
code, pre { font-family: "courier new", "courier";font-size:... | Java |
// generated by jwg -output misc/fixture/j/model_json.go misc/fixture/j; DO NOT EDIT
package j
import (
"encoding/json"
)
// FooJSON is jsonized struct for Foo.
type FooJSON struct {
Tmp *Temp `json:"tmp,omitempty"`
Bar `json:",omitempty"`
*Buzz `json:",omitempty"`
HogeJSON `json:",omitempty"`
... | Java |
#ifndef __NV_FACE_MLP_STATIC_H
#define __NV_FACE_MLP_STATIC_H
#include "nv_core.h"
#include "nv_ml.h"
#ifdef __cplusplus
extern "C" {
#endif
extern nv_mlp_t nv_face_mlp_dir;
extern nv_mlp_t nv_face_mlp_parts;
extern nv_mlp_t nv_face_mlp_face_00;
extern nv_mlp_t nv_face_mlp_face_01;
extern nv_mlp_t nv_fac... | Java |
$(document).ready(function(){$window=$(window);$('header[data-type="background"]').each(function(){var e=$(this);$(window).scroll(function(){var t=-($window.scrollTop()/e.data("speed"));var n="50% "+t+"px";e.css({backgroundPosition:n})})})}) | Java |
{{define "header"}}
<head>
<title>Ulbora CMS V3 Admin</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script type='text/javascript' src="/admin/js/popper.js"></script>
<script type='text/javascript' src="/admin/js/jquery-3.2.1.... | Java |
package station
import (
"github.com/moryg/eve_analyst/apiqueue/ratelimit"
"github.com/moryg/eve_analyst/database/station"
"log"
"net/http"
)
func (r *request) execute() {
ratelimit.Add()
res, err := http.Get(r.url)
ratelimit.Sub()
if err != nil {
log.Println("station.execute: " + err.Error())
return
}
... | Java |
a === b | Java |
module.exports = {
devTemplates: {
files: [{
expand: true,
cwd: '<%= appConfig.rutatemplates %>',
dest:'<%= appConfig.rutadev %>/html',
src: ['**/*']
}]
},
devImages: {
files: [{
expand: true,
cwd: '<%= appConfig... | Java |
<div lass="trials-container center-container" ng-controller="TimerCtrl">
<div class="row">
<div class="col-md-8">
<form name="logEntryForm" class="form-inline" ng-submit="createLog()">
<div class="form-group">
<input type="text" ng-model="newLog.description" class="form-control" placeholder="Descr... | Java |
# Test model
class Cat < ActiveRecord::Base
end
| Java |
const pug = require("pug");
const pugRuntimeWrap = require("pug-runtime/wrap");
const path = require("path");
const YAML = require("js-yaml");
const getCodeBlock = require("pug-code-block");
const detectIndent = require("detect-indent");
const rebaseIndent = require("rebase-indent");
const pugdocArguments = require(".... | Java |
module SimpleForm
class FormBuilder < ActionView::Helpers::FormBuilder
attr_reader :template, :object_name, :object, :wrapper
# When action is create or update, we still should use new and edit
ACTIONS = {
:create => :new,
:update => :edit
}
extend MapType
include SimpleForm::Inp... | Java |
import zmq
import datetime
import pytz
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from registrations.models import Registration
from registrations import handlers
from registrations import tasks
class Command(BaseCommand):
def log(self, message):
f... | Java |
module.exports.up=function(onSuccess,onFailed){
var dbo=new entity.Base();
dbo.saveToDB("recipe_drink",["recipe_code","drink_code","quantity","description"],
[
["3622","342",9.83,"1/3 shot Southern Comfort "],
["3622","315",9.83,"1/3 shot Grand Marnier "],
["3622","375",9.83,"1/3 shot Amaretto "],
["362... | Java |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Athletik | Volleyball</title>
<meta name="description" content="Athletik | Volleyballübungen" />
<meta name="generator" content="bookd... | Java |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'img',
attributeBindings: ['src'],
height: 100,
width: 100,
backgroundColor: 'aaa',
textColor: '555',
format: undefined, // gif, jpg, jpeg, png
text: undefined,
src: Ember.computed('height', 'width', 'backgroundColor', 'textColor'... | Java |
import database from "../api/database";
import * as types from "../actions/ActionTypes"
const receiveAspects = aspects => ({
type: types.GET_COMMON_ASPECTS,
aspects
});
export const getCommonAspects = () => dispatch => {
database.getCommonAspects(aspects => {
dispatch(receiveAspects(aspects))
})
};
expo... | Java |
var https = require('https'),
q = require('q'),
cache = require('./cache').cache;
var API_KEY = process.env.TF_MEETUP_API_KEY;
var fetch_events = function () {
var deferred = q.defer();
var options = {
host: 'api.meetup.com',
path: '/2/events?&sign=true&photo-host=public&group_urlname=GOTO-Night-Sto... | Java |
using System;
namespace monomart.Models.Domain
{
public class MM_GetBrand
{
public virtual int id { get; set; }
public virtual string name { get; set; }
}
}
| Java |
---
layout: log
title: 15 SEPT 2019
date: 2019-09-15
---
# stream of conscious
i really ought to make a habit of keeping up with these logs from friday-sunday. i very rarely pick up a laptop over the weekend, though. despite only being sick tuesday, i didn't feel fully cognizant until friday. saturday was full of cle... | Java |
// <copyright file="DataTypeDefinitionMappingRegistrar.cs" company="Logikfabrik">
// Copyright (c) 2016 anton(at)logikfabrik.se. Licensed under the MIT license.
// </copyright>
namespace Logikfabrik.Umbraco.Jet.Mappings
{
using System;
/// <summary>
/// The <see cref="DataTypeDefinitionMappingRegistrar... | Java |
import java.util.Scanner;
public class BinarySearch {
public static int binarySearch(int arr[], int num, int startIndex,
int endIndex) {
if (startIndex > endIndex) {
return -1;
}
int mid = startIndex + (endIndex - startIndex) / 2;
if (num == arr[mid]) {
return mid;
} else if (num > arr[mid]) {
... | Java |
package com.docuware.dev.schema._public.services.platform;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "SortDirection")
@XmlEnum
public enum SortDirection {
@XmlEnumValue("Default")
DEFAULT("Default"),
... | Java |
/* globals Ember, require */
(function() {
var _Ember;
var id = 0;
var dateKey = new Date().getTime();
if (typeof Ember !== 'undefined') {
_Ember = Ember;
} else {
_Ember = require('ember').default;
}
function symbol() {
return '__ember' + dateKey + id++;
}
function UNDEFINED() {}
f... | Java |
# View Helpers
Fae provides a number of built in view helpers.
* [Fae Date Format](#fae-date-format)
* [Fae Datetime Format](#fae-datetime-format)
* [Fae Toggle](#fae-toggle)
* [Fae Clone Button](#fae-clone-button)
* [Fae Delete Button](#fae-delete-button)
* [Form Header](#form-header)
* [Require Locals](#require-loc... | Java |
<html xmlns:string="xalan://java.lang.String" xmlns:lxslt="http://xml.apache.org/xslt">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Standard Output from DoubleInsideTest</title>
</head>
<body>
<pre>DoubleInsideTest.testComparableInsideFailNoMessage: Double 'valueA'(0.123) is inside... | Java |
use std::borrow::Cow;
use std::collections::HashMap;
use std::io::Write;
use serde_json::{to_string_pretty, to_value, Number, Value};
use crate::context::{ValueRender, ValueTruthy};
use crate::errors::{Error, Result};
use crate::parser::ast::*;
use crate::renderer::call_stack::CallStack;
use crate::renderer::for_loop... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VaiFundos
{
class Program
{
static void Main(string[] args)
{
GerenciadorCliente gerenciador = new GerenciadorCliente();
FundosEmDolar fundo_dol... | Java |
<?php /** @var Illuminate\Pagination\LengthAwarePaginator $users */ ?>
@section('header')
<h1><i class="fa fa-fw fa-users"></i> {{ trans('auth::users.titles.users') }} <small>{{ trans('auth::users.titles.users-list') }}</small></h1>
@endsection
@section('content')
<div class="box box-primary">
<div ... | Java |
// The MIT License (MIT)
//
// Copyright (c) 2014-2017 Darrell Wright
//
// 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... | Java |
import Resolver from 'ember/resolver';
var resolver = Resolver.create();
resolver.namespace = {
modulePrefix: 'todo-app'
};
export default resolver;
| Java |
# hy-kuo.github.io
My personal site :earth_americas:
| Java |
<?php
namespace HiFebriansyah\LaravelContentManager\Traits;
use Form;
use Illuminate\Support\MessageBag;
use Carbon;
use Session;
trait Generator
{
public function generateForm($class, $columns, $model)
{
$lcm = $model->getConfigs();
$errors = Session::get('errors', new MessageBag());
... | Java |
# Recipe-Box
An implamentation of freeCodeCamp's Recipe Box
| Java |
---
layout: post
title: bbcp
tags: [Network, Linux, Security]
---
In this post, we document how we installed and configured [BBCP](https://www.slac.stanford.edu/~abh/bbcp/) on [pulpo-dtn]({{ site.baseurl }}{% post_url 2017-2-9-pulpos %}).<!-- more -->
* Table of Contents
{:toc}
## Installation
For simplicity, We sim... | Java |
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;
/**
* Weekly controller.
*
* @Route("/weekly")
*/
class WeeklyController extends Controller
{
/**
* @Route("/", name="default")
*/
public function defa... | Java |
cocoalumberjackTest
===================
## setting
platform :ios, '7.0'
pod 'BlocksKit'
pod 'SVProgressHUD'
pod 'CocoaLumberjack'
$ pod install
### xxx-Prefix.pch
#ifdef DEBUG
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
#else
static const int ddLogLevel = LOG_LEVEL_OFF;
... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>WebApp</title>
<base href="/" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/... | Java |
/**
* The MIT License
*
* Copyright (C) 2015 Asterios Raptis
*
* 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, c... | Java |
#////////////////////////////////////////////////////////////////////////////
#//
#// This file is part of RTIMULib
#//
#// Copyright (c) 2014-2015, richards-tech, LLC
#//
#// Permission is hereby granted, free of charge, to any person obtaining a copy of
#// this software and associated documentation files (the "S... | Java |
<?php
/**
* Chronjob that will delete expired nonce tokens every hour
* Author: Sneha Inguva
* Date: 8-2-2014
*/
require_once('../config.php');
require_once('../db/mysqldb.php');
$con = new mysqldb($db_settings1,false);
$stmt = "Delete FROM nonce_values Where expiry_time <= CURRENT_TIMESTAMP";
$result = $con... | Java |
# GTD
<a name="top"></a>
<a href="http://spacemacs.org"><img src="https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg" alt="Made with Spacemacs">
</a><a href="http://www.twitter.com/zwb_ict"><img src="http://i.imgur.com/tXSoThF.png" alt="Twitter" align="right">... | Java |
---
title: activiti实体类服务组件和实体类
tags: [activiti]
---
### 实体类服务组件
activiti对数据的管理都会提供相应的服务组件。
1)IdentityService,对用户和用户组的管理
2)RepositoryService,流程存储服务组件。主要用于对Activiti中的流程存储的相关数据进行操作。包括流程存储数据的管理、流程部署以及流程的基本操作等。
3)TaskService,提供了操作流程任务的API,包括任务的查询、创建与删除、权限设置和参数设置等。
4)RuntimeService主要用于管理流程在运行时产生的数据以及提供对流程操作的API。
其中流程运... | 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 |
Ur/Web
=======================
A set of Sublime Text 2 resources for Ur/Web.
**If you had previously installed this package into your "Packages/User", you
should consider reinstalling as described below to get future updates.**
# Included:
- Language definition for Ur/Web. Provides syntax highlighting in Sublime ... | Java |
#!/usr/bin/python
from noisemapper.mapper import *
#from collectors.lib import utils
### Define the object mapper and start mapping
def main():
# utils.drop_privileges()
mapper = NoiseMapper()
mapper.run()
if __name__ == "__main__":
main()
| 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 (version 1.6.0_18) on Thu Dec 18 17:18:43 PST 2014 -->
<title>Uses of Class org.xml.sax.helpers.ParserFactory (Java Platform SE 7 )</title>
<meta name... | Java |
---
layout: default
---
{% assign minutes = content | number_of_words | divided_by: 180 %}
{% if minutes == 0 %}
{% assign minutes = 1 %}
{% endif %}
<div class="post-header mb2">
<h2>{{ page.title }}</h2>
<span class="post-meta">{{ page.date | date: "%b %-d, %Y" }}</span><br>
{% if page.update_date %}
<spa... | Java |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Julas.Utils;
using Julas.Utils.Collections;
using Julas.Utils.Extensions;
using TheArtOfDev.HtmlRen... | Java |
#ifndef INCLUDED_openfl__legacy_events_KeyboardEvent
#define INCLUDED_openfl__legacy_events_KeyboardEvent
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_openfl__legacy_events_Event
#include <openfl/_legacy/events/Event.h>
#endif
HX_DECLARE_CLASS3(openfl,_legacy,events,Event)
HX_DECLARE_CLASS3(openfl,_lega... | Java |
/*
* PokeDat - A Pokemon Data API.
* Copyright (C) 2015
*
* 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 |
今日のコミット
- [bouzuya/rust-sandbox](https://github.com/bouzuya/rust-sandbox) 15 commits
- [add session file creation to log_in](https://github.com/bouzuya/rust-sandbox/commit/342db99d04c7f9e537055a0b114d87c478629413)
- ここまでで mfa log-in サブコマンドが動くようになった
- [add status check to log_in](https://github.com/bouzuya/rust... | Java |
export { default } from './ui'
export * from './ui.selectors'
export * from './tabs'
| Java |
<?php
/*
* This File is part of the Lucid\Common\Tests\Struct package
*
* (c) iwyg <mail@thomas-appel.com>
*
* For full copyright and license information, please refer to the LICENSE file
* that was distributed with this package.
*/
namespace Lucid\Common\Tests\Struct;
use Lucid\Common\Struct\Items;
/**
* @... | Java |
<input type="hidden" id="permission" value="<?php echo $permission;?>">
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Usuarios</h3>
<?php
if (strpos($permission,'Add') !== false) {
... | Java |
using System;
using System.Diagnostics.CodeAnalysis;
namespace Delimited.Data.Exceptions
{
[Serializable, ExcludeFromCodeCoverage]
public class DelimitedReaderException : Exception
{
//
// For guidelines regarding the creation of new exception types, see
// http://msdn.microsoft.com/library/default.asp?ur... | Java |
import numpy as np
from numpy import cumsum, sum, searchsorted
from numpy.random import rand
import math
import utils
import core.sentence as sentence
import core.markovchain as mc
import logging
logger = logging.getLogger(__name__)
# Dialogue making class. Need to review where to return a string, where to return a l... | Java |
/*
Credits: Most of the original code seems to have been
written by George Michael Brower. The changes I've made
include adding background particle animations, text
placement and modification, and integration with a
sparkfun heart rate monitor by using Pubnub and johnny-five.
INSTRUCTIONS
... | 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 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2020_08_01
module Models
#
# Response for ApplicationGatewayBackendHealth API service call.
#
class Applicat... | Java |
define("resolver",
[],
function() {
"use strict";
/*
* This module defines a subclass of Ember.DefaultResolver that adds two
* important features:
*
* 1) The resolver makes the container aware of es6 modules via the AMD
* output. The loader's _seen is consulted so that classes can be
*... | Java |
package billing;
import cuke4duke.Then;
import cuke4duke.Given;
import static org.junit.Assert.assertTrue;
public class CalledSteps {
private boolean magic;
@Given("^it is (.*)$")
public void itIs(String what) {
if(what.equals("magic")) {
magic = true;
}
}
@Then("^mag... | Java |
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <sys/epoll.h>
#include "reactor.h"
struct state
{
reactor_handler input;
reactor_handler output;
char buffer[4096];
data remaining;
};
int fill(struct state *state)
{
ssize_t n;
... | Java |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::CognitiveServices::ContentModerator::V1_0
module Models
#
# Detected SSN details.
#
class SSN
include MsRestAzure
... | Java |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Posts · dpc's blog</title>
<meta name="description" content="Random posts about stuff.">
<meta name="generator" content="Hugo 0.16" />
<meta name="twitter... | Java |
(function() {
'use strict';
var express = require('express');
var path = require('path');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var app = express();
// view engine setup
app.set('v... | 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"/>
<title>ViennaCL - The Vien... | Java |
#include "randomplayer.h"
#include <QDirIterator>
void RandomPlayer::start()
{
this->setMedia(QUrl::fromLocalFile(fileList.takeFirst()));
this->play();
this->_readyToPlay = true;
}
void RandomPlayer::quitPlayMode()
{
this->_readyToPlay = false;
this->stop();
}
bool RandomPlayer::isPlayMode(){
... | Java |
#ifndef BITCOIN_CHAINPARAMSSEEDS_H
#define BITCOIN_CHAINPARAMSSEEDS_H
/**
* List of fixed seed nodes for the bitcoin network
* AUTOGENERATED by share/seeds/generate-seeds.py
*
* Each line contains a 16-byte IPv6 address and a port.
* IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly.
*... | Java |
<h1 align="center">
<br>
<br>
<img width="360" src="logo.png" alt="ulid">
<br>
<br>
<br>
</h1>
[](https://pypi.python.org/pypi/python-ulid)
[](https://travis-ci.or... | Java |
"use strict";
var C = function () {
function C() {
babelHelpers.classCallCheck(this, C);
}
babelHelpers.createClass(C, [{
key: "m",
value: function m(x) {
return 'a';
}
}]);
return C;
}();
| Java |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using log4net;
using Newtonsoft.Json;
using RoboticsTxt.Lib.Contracts;
using RoboticsTxt.Lib.Contracts.Configuration;
namespace RoboticsTxt.Lib.Components.Sequencer
{
internal class PositionStorageAccessor
{
private re... | Java |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Miruken Docs — SymbolDownloader docum... | Java |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Vincent Vergnolle
*
* 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
* t... | Java |
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.move(editor, { edge: 'start' })
}
export const input = (
<editor>
<block>
one <anchor />
two t<focus />
hree
</block>
</editor>
)
export const output = (
<editor... | Java |
using UnityEngine;
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters.Binary;
// Emanuel Strömgren
public class DebugTrackerVisualizer : MonoBehaviour {
private BinaryFormatter m_Formatter = new BinaryFormatter();
private B... | Java |
package shuaicj.hello.configuration.case04;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Spring boot application.
*
* @author shuaicj 2019/10/12
*/
@SpringBootApplication
public class Application {
public static void main(String... | Java |
# -*- coding: utf-8 -*-
from django.contrib.admin import TabularInline
from .models import GalleryPhoto
class PhotoInline(TabularInline):
"""
Tabular inline that will be displayed in the gallery form during frontend
editing or in the admin site.
"""
model = GalleryPhoto
fk_name = "gallery"
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.