code
stringlengths
4
1.01M
language
stringclasses
2 values
'use strict'; goog.provide('Blockly.JavaScript.serial'); goog.require('Blockly.JavaScript'); Blockly.JavaScript.serial_print = function() { var content = Blockly.JavaScript.valueToCode(this, 'CONTENT', Blockly.JavaScript.ORDER_ATOMIC) || '\"\"' var code = 'serial.writeString(\'\' + '+content+');\n'; return code...
Java
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.cloud.spanner_v1.proto import ( result_set_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2, ) from google.cloud.spanner_v1.proto import ( spanner_pb2 as google_dot_cloud_dot_spanner__v1_dot_prot...
Java
package com.comps.util; import com.google.gson.Gson; public class GsonManager { private static Gson instance; public static Gson getInstance(){ if (instance == null){ instance = new Gson(); } return instance; } }
Java
/** * Blueprint API Configuration * (sails.config.blueprints) * * These settings are for the global configuration of blueprint routes and * request options (which impact the behavior of blueprint actions). * * You may also override any of these settings on a per-controller basis * by defining a '_config' key in...
Java
------------------------------------------------------------------------------- -- budget info ------------------------------------------------------------------------------- CREATE TABLE BUDGET_INFO( ID BIGINT NOT NULL, NAME VARCHAR(200), CREATE_TIME DATETIME, STATUS VARCHAR(50), TYPE VARCHAR(50), MONE...
Java
import { IInjectable } from "../common/common"; import { TypedMap } from "../common/common"; import { StateProvider } from "./stateProvider"; import { ResolveContext } from "../resolve/resolveContext"; import * as angular from 'angular'; import IScope = angular.IScope; /** * Annotates a controller expression (m...
Java
// This file is part of JavaSMT, // an API wrapper for a collection of SMT solvers: // https://github.com/sosy-lab/java-smt // // SPDX-FileCopyrightText: 2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 package org.sosy_lab.java_smt.test; import static com.google.common.truth.Truth...
Java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.09.17 at 0...
Java
#!/bin/bash SOURCE="${BASH_SOURCE[0]}" while [ -h ${SOURCE} ];do DIR=$( cd -P $( dirname ${SOURCE} ) && pwd ) SOURCE="$(readlink ${SOURCE})" [[ ${SOURCE} != /* ]] && SOURCE=${DIR}/${SOURCE} done BASEDIR="$( cd -P $( dirname ${SOURCE} ) && pwd )" cd ${BASEDIR} docker build -t zkpregistry.com:5043/alpine-tomcat:jr...
Java
package it.unibz.inf.ontop.renderer; /* * #%L * ontop-obdalib-core * %% * Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
Java
#define SQLITE_ASCII #define SQLITE_DISABLE_LFS #define SQLITE_ENABLE_OVERSIZE_CELL_CHECK #define SQLITE_MUTEX_OMIT #define SQLITE_OMIT_AUTHORIZATION #define SQLITE_OMIT_DEPRECATED #define SQLITE_OMIT_GET_TABLE #define SQLITE_OMIT_INCRBLOB #define SQLITE_OMIT_LOOKASIDE #define SQLITE_OMIT_SHARED_CACHE #define SQLITE_OM...
Java
/* * ****************************************************************************** * Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License i...
Java
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.MessagePopover. sap.ui.define(["jquery.sap.global", "./ResponsivePopover", "./Button", "./Toolbar", "./Tool...
Java
using BdlIBMS.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BdlIBMS.Repositories { public interface IUserRepository : IRepository<string, User> { User FindByUserNameAndPassword(string userName, string password); ...
Java
<div class="table-overflow overflow"> <table class="efor-table-logs mdl-data-table mdl-shadow--2dp"> <thead> <tr> <th class="mdl-data-table__cell--non-numeric">Nombre</th> <th class="mdl-data-table__cell--non-numeric" width="280px">Email</th> <th c...
Java
package com.github.particlesystem.modifiers; import com.github.particlesystem.Particle; public interface ParticleModifier { /** * modifies the specific value of a particle given the current miliseconds * * @param particle * @param miliseconds */ void apply(Particle particle, long mi...
Java
package com.ftfl.icare; import java.util.List; import com.ftfl.icare.adapter.CustomAppointmentAdapter; import com.ftfl.icare.adapter.CustomDoctorAdapter; import com.ftfl.icare.helper.AppointmentDataSource; import com.ftfl.icare.helper.DoctorProfileDataSource; import com.ftfl.icare.model.Appointment; import com.ftfl.i...
Java
--- title: IDEA date: 2017-05-27 10:50:00 tags: idea categories: tools --- ## [下载](https://confluence.jetbrains.com/display/IDEADEV/IDEA+14.1+EAP) - [Windows](https://download.jetbrains.com/idea/ideaIU-14.1.7.zip) - [OS X](https://download.jetbrains.com/idea/ideaIU-14.1.7.dmg) - [Linux](https://download.jetbrains.com/...
Java
package com.ymsino.water.service.manager.manager; import java.util.List; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * This class was generated by the JAX-WS RI....
Java
# -*- coding: utf-8 -*- import allure from selenium.webdriver.common.by import By from .base import BasePage from .elements import SimpleInput, SimpleText from .blocks.nav import NavBlock class BrowseMoviePageLocators(object): """Локаторы страницы просмотра информации о фильме""" TITLE_LOCATOR = (By.CSS_SE...
Java
Contextual Image Delivery ============================= This is an optional module for the SDL Digital Experience Accelerator Java web application. It contains an implementation of interface `MediaHelper` that uses Tridion Contextual Image Delivery (CID) to resize images on the server side. Note that in order to use ...
Java
// // DZYSquareCell.h // budejie // // Created by dzy on 16/1/7. // Copyright © 2016年 董震宇. All rights reserved. // #import <UIKit/UIKit.h> @class DZYSquareModel; @interface DZYSquareCell : UICollectionViewCell /** 方块模型 */ @property (nonatomic, strong) DZYSquareModel *squareModel; @end
Java
package app.yweather.com.yweather.util; import android.annotation.TargetApi; import android.content.Context; import android.content.SharedPreferences; import android.os.Build; import android.preference.PreferenceManager; import org.json.JSONArray; import org.json.JSONObject; import java.text.SimpleDateFormat; import...
Java
package pl.touk.nussknacker.engine.flink.util.timestamp import com.github.ghik.silencer.silent import org.apache.flink.streaming.api.functions.AssignerWithPeriodicWatermarks import org.apache.flink.streaming.api.watermark.Watermark import scala.annotation.nowarn /** * It is a copy-paste of BoundedOutOfOrdernessTim...
Java
/* * Copyright (C) 2017 grandcentrix GmbH * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
/*jslint browser: true*/ /*global $, jQuery, alert*/ (function ($) { "use strict"; $(document).ready(function () { $("input[name=dob]").datepicker({ dateFormat: 'yy-mm-dd', inline: true, showOtherMonths: true }); }); $(document).ready(functi...
Java
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V. licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. // // Code generated from specification version 7.7.0: DO NOT EDIT package esapi import ( "context" "io" "ne...
Java
""" Copyright 2015-2018 IBM Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
Java
/* * Copyright 2012 International Business Machines Corp. * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You ...
Java
--- layout: post title: Underperformance of Lenovo ThinkBook Intel i7-8565U with Windows 10 pro date: 2021-07-07 type: post published: true status: publish categories: [travel] tags: author: login: MiguelGamboa email: display_name: Miguel Gamboa --- The stack Lenovo-Intel-Win10 is a completely rubbish for r...
Java
# -*- coding: utf-8 -*- import unittest import pykintone from pykintone.model import kintoneModel import tests.envs as envs class TestAppModelSimple(kintoneModel): def __init__(self): super(TestAppModelSimple, self).__init__() self.my_key = "" self.stringField = "" class TestComment(uni...
Java
package com.iclockwork.percy.wechat4j; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; /** * HelloWorldTest * * @author: fengwang * @date: 2016/3/9 13:40 * @version: 1.0 * @since: JDK 1.7 */ public class HelloWorldTest { /** * ...
Java
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
Java
#!/bin/bash # Copyright 2016 Nitor Creations Oy # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
Java
package com.scicrop.se.commons.utils; import java.io.IOException; import org.apache.commons.logging.Log; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import org.apache.log4j.RollingFileAppender; public class LogHelper...
Java
function Add-VSWAFv2RuleGroupCountAction { <# .SYNOPSIS Adds an AWS::WAFv2::RuleGroup.CountAction resource property to the template. .DESCRIPTION Adds an AWS::WAFv2::RuleGroup.CountAction resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/la...
Java
// Copyright 2015 Thomas Trapp // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Java
# -*- coding: utf-8 -*- ''' The Salt Key backend API and interface used by the CLI. The Key class can be used to manage salt keys directly without interfacing with the CLI. ''' # Import python libs from __future__ import absolute_import, print_function import os import copy import json import stat import shutil import...
Java
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'chapter4-components', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e....
Java
require_relative '../lib/rails_stub' require_relative 'lib/pb_core_ingester' require_relative '../lib/has_logger' require 'rake' require_relative '../app/models/collection' require_relative '../app/models/exhibit' class Exception def short message + "\n" + backtrace[0..2].join("\n") end end class ParamsError...
Java
Python 机器学习的必备技巧 ====== > 尝试使用 Python 掌握机器学习、人工智能和深度学习。 ![](https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/programming-code-keyboard-laptop.png?itok=pGfEfu2S) 想要入门机器学习并不难。除了<ruby>大规模网络公开课<rt>Massive Open Online Courses</rt></ruby>(MOOCs)之外,还有很多其它优秀的免费资源。下面我分享一些我觉得比较有用的方法。 1. 阅...
Java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
// ==UserScript== // @name tabtweet // @namespace http://chiptheglasses.com // @description add a classic RT button to tweets // @include http://*twitter.com* // ==/UserScript== // contains jQuery 1.4.1; It is patched. /*! * jQuery JavaScript Library v1.4.1 * http://jquery.com/ * * Copyright 2010, John Resig * D...
Java
# Shamelessly stolen from http://github.com/masak/yapsi/blob/master/Makefile # With alpha replaced with perl6 & SOURCES changed to my sources. PERL6 = perl6 SOURCES=lib/SIC/AST.pm lib/SIC/Grammar.pm \ lib/SIC/Actions.pm lib/SIC/Compiler.pm PIRS=$(SOURCES:.pm=.pir) all: $(PIRS) %.pir: %.pm env PERL6LIB=`pwd`/lib ...
Java
# GitURL GitURL represents something that can be passed to `git clone`. ## clone >method clone([Str](./Str.md) **:$to** ⟶ [File](./File.md)) Calls `git clone` on the the url and returns the path to the cloned directory. ```perl6 GitURL<https://github.com/spitsh/spitsh.git/>.clone.cd; say ${ $*git status }; ``` |Par...
Java
// (c) Jean Fabre, 2011-2013 All rights reserved. // http://www.fabrejean.net // contact: http://www.fabrejean.net/contact.htm // // Version Alpha 0.92 // INSTRUCTIONS // Drop a PlayMakerArrayList script onto a GameObject, and define a unique name for reference if several PlayMakerArrayList coexists on that GameObjec...
Java
#!/bin/sh #------------------------------------------------------------------------------ # # MyRPM - Rpm Utilities # Copyright (c) Jean-Marie RENOUARD 2014 - LightPath # Contact : Jean-Marie Renouard <jmrenouard at gmail.com> # # This program is open source, licensed under the Artistic Licence v2.0. # # Artistic Licen...
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 (1.8.0_292) on Fri Jul 02 03:47:37 UTC 2021 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>com.destroystokyo.paper (Gl...
Java
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Transforms</title> <style> #threed-example { margin: 50px 20px; -webkit-transform: rotateZ(5deg); -moz-transform: rotateZ(5deg); -o-transform: rotateZ(5deg); transform: rotateZ(5deg); -webkit-transition: -webkit-transform 2s ease-in-o...
Java
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <title>De Mulierum Subtili Deceptione</title> </head> <body> <!--XXVII De Mulierum Subtili Deceptione--> <h4>The Subtle Deciption of a Woman</h4> <p> <!-- Darius regnavit prudens valde, qui ...
Java
// Convert DMD CodeView debug information to PDB files // Copyright (c) 2009-2010 by Rainer Schuetze, All Rights Reserved // // License for redistribution is given by the Artistic License 2.0 // see file LICENSE for further details #include "mspdb.h" #include <windows.h> #pragma comment(lib, "rpcrt4.lib") ...
Java
package TearDrop::Command::import_blast; use 5.12.0; use Mojo::Base 'Mojolicious::Command'; use Carp; use Try::Tiny; use TearDrop::Task::ImportBLAST; use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case); has description => 'Import BLAST results (currently only custom format)'; has usage =...
Java
public class Lab4_2 { public static void main(String[] arg) { System.out.print(" * |"); for(int x=1;x<=12;x++) { if (x<10) System.out.print(' '); if (x<100) System.out.print(' '); System.out.print(x+" "); } System.out.println(); for(int x=1;x<=21;x++) { if (x<10) System....
Java
var HLSP = { /* set squareness to 0 for a flat land */ // intensità colore land audioreattivab più bassa mizu: { cameraPositionY: 10, seaLevel: 0, displayText: '<b>CHAPTER ONE, MIZU</b><br/><i>TO BE TRAPPED INTO THE MORNING UNDERTOW</i>', speed: 10, modelsParams...
Java
/* ######################## Shared ######################## */ * { box-sizing: border-box; } body { background-color: #D4D4D4; padding: 0px; margin: 0px; font-family: 'Rubik', serif; } section { float: left; width: 100%; min-height: 100vh; padding: 4...
Java
/******************************************************************************* * Copyright 2011, 2012 Chris Banes. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Java
package Mojolicious::Plugins; use Mojo::Base 'Mojo::EventEmitter'; use Mojo::Util 'camelize'; has namespaces => sub { ['Mojolicious::Plugin'] }; sub emit_hook { my $self = shift; for my $cb (@{$self->subscribers(shift)}) { $cb->(@_) } return $self; } sub emit_chain { my ($self, $name, @args) = @_; my $wr...
Java
# Crafting - Rethink of Crafting Ideas.... - It takes a village to craft an item. - Crafting will no longer be something every player has several types of on each character – making alts to max it out on each. - Crafting will be done at a guild / tribe level. - Players provide mats to NPCs who can craft item...
Java
""" WSGI config for brp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from dj_static import Cling from django.core.wsgi import get_wsgi_application os.environ....
Java
class Imagemagick < Formula desc "Tools and libraries to manipulate images in many formats" homepage "https://www.imagemagick.org/" # Please always keep the Homebrew mirror as the primary URL as the # ImageMagick site removes tarballs regularly which means we get issues # unnecessarily and older versions of t...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Reflection; using CSScriptLibrary; using System.Windows.Controls; using Mono.CSharp; namespace RobinhoodDesktop.Script { /// <summary> /// Specifies...
Java
/*_ generic.hpp Tue Jul 5 1988 Modified by: Walter Bright */ #ifndef __GENERIC_H #define __GENERIC_H 1 /* Name concatenator functions */ #define name2(n1,n2) n1 ## n2 #define name3(n1,n2,n3) n1 ## n2 ## n3 #define name4(n1,n2,n3,n4) n1 ## n2 ## n3 ## n4 typedef int (*GPT) (int,char *); extern int genericerro...
Java
<?php $bbcode["code"] = array( 'callback' => 'bbcodeCodeHighlight', 'pre' => TRUE, ); $bbcode["source"] = array( 'callback' => 'bbcodeCodeHighlight', 'pre' => TRUE, ); function bbcodeCodeHighlight($dom, $contents, $arg) { // in <pre> style $contents = preg_replace('/^\n|\n$/', "", $contents); inclu...
Java
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; src: local('Source Sans Pro'), local('SourceSansPro-Regular'), url(fonts/SourceSansPro-Regular.otf) format('opentype'); } @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; src: local('Sou...
Java
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | +-----...
Java
FROM microsoft/aspnetcore:2.0 ARG source WORKDIR /app EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "WebApi.dll"]
Java
""" recursely """ __version__ = "0.1" __description__ = "Recursive importer for Python submodules" __author__ = "Karol Kuczmarski" __license__ = "Simplified BSD" import sys from recursely._compat import IS_PY3 from recursely.importer import RecursiveImporter from recursely.utils import SentinelList __all__ = ['ins...
Java
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-id-init-unresolvable.case // - src/dstr-binding/error/for-of-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-of statement) esid: sec-for-in-and-for-of-statements-runtime-semanti...
Java
import {Component, OnInit} from '@angular/core'; import {MarketCard} from '../market-card'; import {MarketCardType} from '../market-card-type'; import {MarketService} from '../market.service'; import {Expansion} from '../expansion'; import { GameModeService } from '../game-mode.service'; import { GameMode } from '../ga...
Java
/** * Copyright (c) 2013, Jens Hohmuth * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of co...
Java
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
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>Simulation &#8212; OSIM 0.1 documentation</title> ...
Java
# coding: utf-8 import sys from setuptools import setup, find_packages NAME = "pollster" VERSION = "2.0.2" # To install the library, run the following # # python setup.py install # # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-da...
Java
import requests import logging import redis from requests.packages.urllib3.exceptions import ConnectionError from core.serialisers import json from dss import localsettings # TODO(fergal.moran@gmail.com): refactor these out to # classes to avoid duplicating constants below HEADERS = { 'content-type': 'application/j...
Java
unless ENV["HOMEBREW_BREW_FILE"] raise "HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!" end require "constants" require "tmpdir" require "pathname" HOMEBREW_BREW_FILE = Pathname.new(ENV["HOMEBREW_BREW_FILE"]) TEST_TMPDIR = ENV.fetch("HOMEBREW_TEST_TMPDIR") do |k| dir = Dir.mktmpdir("homebre...
Java
# Copyright (c) 2015-2016, Ruslan Baratov # All rights reserved. include(hunter_apply_copy_rules) include(hunter_apply_gate_settings) include(hunter_calculate_self) include(hunter_create_cache_file) include(hunter_fatal_error) include(hunter_internal_error) include(hunter_sanity_checks) include(hunter_status_debug) in...
Java
# Copyright (c) 2021, DjaoDjin Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
Java
/* * Copyright (C) 2005 by egnite Software GmbH. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this lis...
Java
global _check_for_key _check_for_key: push bp mov bp, sp mov ax, word [bp+4] call os_check_for_key pop bp ret
Java
// -------------------------------------------------------------------------------- // SharpDisasm (File: SharpDisasm\ud_operand_code.cs) // Copyright (c) 2014-2015 Justin Stenning // http://spazzarama.com // https://github.com/spazzarama/SharpDisasm // https://sharpdisasm.codeplex.com/ // // SharpDisasm is distribute...
Java
# Contacts and Contributors This section contains important contacts for the project, in different know how areas. It is also our know how management list. ## Active Contacts Topic | Contacts :---|:--- Product Management | Joakim Bucher, Patrick Schweizer Business Analysis | Markus Flückiger, Stephan Koch Interactio...
Java
# Copyright 2014 Dev in Cachu authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from django.conf import settings from django.conf.urls import include, patterns, url from django.views.decorators import csrf from django.views.generic impor...
Java
{-# LANGUAGE TupleSections #-} module Arbitrary.TestModule where import Data.Integrated.TestModule import Test.QuickCheck import Data.ModulePath import Control.Applicative import Arbitrary.Properties import Test.Util import Filesystem.Path.CurrentOS import Prelude hiding (FilePath) import qualified Arbitrary.ModulePat...
Java
# -*- coding: utf-8 -*- class Pkg @pkgDir @jailDir def self.init() @pkgDir = System.getConf("pkgDir") @jailDir = System.getConf("jailDir") end def self.main(data) if (data["control"] == "search") then search(data["name"]).each_line do |pname| pname = pname.chomp SendMsg.machine("pkg","search...
Java
#!/usr/bin/env python #********************************************************************* # Software License Agreement (BSD License) # # Copyright (c) 2011 andrewtron3000 # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
Java
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import urllib from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * from jp.ac.kyoto_su.aokilab.dragon.mvc.model import OpenGLModel from jp.ac.kyoto_su.aokilab.dragon.mvc.view import * from jp.ac.kyoto_su.aokil...
Java
# Copyright 2015-2017 Rumma & Ko Ltd # License: BSD (see file COPYING for details) from lino.core.roles import UserRole class SimpleContactsUser(UserRole): pass class ContactsUser(SimpleContactsUser): pass class ContactsStaff(ContactsUser): pass
Java
/* * block.h -- block transfer * * Copyright (C) 2010-2012,2014-2015 Olaf Bergmann <bergmann@tzi.org> * * SPDX-License-Identifier: BSD-2-Clause * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ #ifndef COAP_BLOCK_H_ #define COAP_BLOCK_H_ #include "encode.h" #include ...
Java
from django.db.models import Transform from django.db.models import DateTimeField, TimeField from django.utils.functional import cached_property class TimeValue(Transform): lookup_name = 'time' function = 'time' def as_sql(self, compiler, connection): lhs, params = compiler.compile(self.lhs) ...
Java
/* Copyright (c) 2012, William Magato All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
Java
<?php header('Content-Type: text/html; charset=utf-8'); require_once 'Akna.php'; $user = ''; $pass = ''; $akna = new Akna( $user, $pass ); $contacts = $akna->emailMarketing->contacts; $messages = $akna->emailMarketing->messages; $campaigns = $akna->emailMarketing->campaigns; try { // $result_1 = $contact...
Java
/* * Copyright 2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
// Copyright 2014 David Miller. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sequtil import ( "errors" "github.com/dmiller/go-seq/iseq" "github.com/dmiller/go-seq/murmur3" //"fmt" "math" "reflect" ) // Hash returns a hash c...
Java
// Copyright (C) 2016 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-white-space description: > Mongolian Vowel Separator is not recognized as white space. info: | 11.2 White Space WhiteSpace :: <TAB> <VT> <FF> <SP> ...
Java
/* * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * not...
Java
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "vm_strings.h" #include <assert.h> String *String_alloc(size_t length) { String *p = (String *)calloc(1, sizeof(String) + (length+1) * sizeof(char)); p->length = length; return p; } String *String_new(char *orig) { String *s = String_alloc(strlen...
Java
#!/usr/bin/env python __author__ = 'Adam R. Smith, Michael Meisinger, Dave Foster <dfoster@asascience.com>' import threading import traceback import gevent from gevent import greenlet, Timeout from gevent.event import Event, AsyncResult from gevent.queue import Queue from pyon.core import MSG_HEADER_ACTOR from pyon....
Java
# 98Fmplayer (beta) PC-98 FM driver emulation (very early version) ![gtk screenshot](/img/screenshot_gtk.png?raw=true) ![gtk toneviewer screenshot](/img/screenshot_gtk.toneview.png?raw=true) ![gtk config screenshot](/img/screenshot_gtk.config.png?raw=true) ![w2k screenshot](/img/screenshotw2k.png?raw=true) *If you are...
Java
# Author: Nick Raptis <airscorp@gmail.com> """ Module for listing commands and help. """ from basemodule import BaseModule, BaseCommandContext from alternatives import _ class HelpContext(BaseCommandContext): def cmd_list(self, argument): """List commands""" arg = argument.lower() index ...
Java
Notebook with pandas in a container =================================== Docker container for the IPython notebook (with pandas). Usage ----- docker run -i -t --rm -v `pwd`/notebooks:/notebooks -p 8888:8888 -e "PASSWORD=YOURPASSWORD" mlf4aiur/pandas You'll now be able to access your notebook at https://localhost...
Java