code
stringlengths
4
1.01M
language
stringclasses
2 values
/* * The MIT License * * Copyright 2015 Adam Kowalewski. * * 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
<?php namespace MF\QueryBuilderComposer; use Doctrine\ORM\QueryBuilder; interface Modifier { public function __invoke(QueryBuilder $queryBuilder): QueryBuilder; }
Java
package backup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated....
Java
package servicebus // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenera...
Java
<?php return array ( 'id' => 'docomo_n2701c_ver1', 'fallback' => 'docomo_generic_jap_ver2', 'capabilities' => array ( 'columns' => '11', 'max_image_width' => '121', 'rows' => '11', 'resolution_width' => '176', 'resolution_height' => '198', 'max_image_height' => '190', 'flash_lite_ve...
Java
<?php namespace HMLB\Date\Tests\Localization; /* * This file is part of the Date package. * * (c) Hugues Maignol <hugues@hmlb.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use HMLB\Date\Date; use HMLB\Date\Tests\AbstractTe...
Java
// http://www.w3.org/2010/05/video/mediaevents.html var poppy = popcorn( [ vid_elem_ref | 'id_string' ] ); poppy // pass-through video control methods .load() .play() .pause() // property setters .currentTime( time ) // skip forward or backwards `time` seconds .playbackRate( rate ) .volume( delt...
Java
/* _____ __ _____________ _______ ______ ___________ / \| | \____ \__ \\_ __ \/ ___// __ \_ __ \ | Y Y \ | / |_> > __ \| | \/\___ \\ ___/| | \/ |__|_| /____/| __(____ /__| /____ >\___ >__| \/ |__| \/ \/ \/ Copyright (C) 2004 - 2020 Ingo Berg Redistri...
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
using System; using System.IO; using Xunit; namespace OpenSage.Tests.Data { internal static class TestUtility { public static T DoRoundtripTest<T>( Func<Stream> getOriginalStream, Func<Stream, T> parseCallback, Action<T, Stream> serializeCallback, bool s...
Java
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\DoctrineMongoDBBundle\Command; use Doctrine\ODM\MongoDB\...
Java
#!/bin/bash # This script overcomes a yucky bug in simplescalar's GCC, which # prevents it from working on the user filesystem (due to a problem # with the transition to 64-bit). Luckily /tmp is implemented differently # and doesn'thave this problem so we copy the tree there and do the make there. TMPNAME=/tmp/SS...
Java
<!-- Smart Data Platform - Reference Implementation This page shows how to receive and visualize the data stream from a sensor in real-time. In particular data is received using Socket.IO, which provides an abstraction layer to Websocket API. Data visualizzation is based on D3js library (<http://d3js.org). --...
Java
module LiveScript module Source VERSION = '1.5.0' end end
Java
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Topup extends MY_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this co...
Java
define(['myweb/jquery'], function ($) { 'use strict'; var error = function (message) { $('.form-feedback').removeClass('form-success').addClass('form-error').text(message).fadeIn(200); }; var success = function (message) { $('.form-feedback').removeClass('form-error').addClass('form-suc...
Java
# encoding: UTF-8 include Vorax describe 'tablezip layout' do before(:each) do# {{{ @sp = Sqlplus.new('sqlplus') @sp.default_convertor = :tablezip @prep = [VORAX_CSTR, "set tab off", "set linesize 10000", "set markup html on", "set echo off", ...
Java
from django.contrib.admin.models import LogEntry from django.contrib.auth.models import User, Group, Permission from simple_history import register from celsius.tools import register_for_permission_handling register(User) register(Group) register_for_permission_handling(User) register_for_permission_handling(Group) ...
Java
<!DOCTYPE html> <!--[if IE 8]> <html class="ie ie8"> <![endif]--> <!--[if IE 9]> <html class="ie ie9"> <![endif]--> <!--[if gt IE 9]><!--> <html> <!--<![endif]--> <head> <!-- Basic --> <meta charset="utf-8"> <title>VirUCA</title> <meta name="keywords" content="" /> <meta n...
Java
namespace ConsoleStudentSystem.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class User { private ICollection<UserProfile> userProfiles; public User() { this.userProfiles = new HashSet<UserProfile>(); } ...
Java
const gulp = require('gulp'), zip = require('gulp-zip'); /** * Metadata about the plugin. * * @var object */ const plugin = { name: 'example-plugin', directory: '.' } gulp.task('distribute', function () { let paths = [ 'vendor/twig/**/*', 'vendor/composer/**/*', 'v...
Java
namespace RouteExtreme.Web { using System; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Owin; using RouteExtreme.Models; using RouteExtreme.Data; p...
Java
package com.management.dao.impl.calcs; import java.sql.Connection; import java.sql.SQLException; import java.util.List; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanListHandler; import com.management.bean.calculate.ProjectCalc; import com.management.bean.calculate.Pro...
Java
# [Глава 1](../index.md#Глава-1-Построение-абстракций-с-помощью-процедур) ### Упражнение 1.2 Переведите следующее выражение в префиксную форму: `(5 + 4 + (2 - (3 - (6 + 4/5)))) / (3 * (6 - 2) * (2 - 7))` #### Решение [Code](../../src/sicp/chapter01/1_02.clj) | [Test](../../test/sicp/chapter01/1_02_test.clj)
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
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Windows; using System.Windows.Forms; using System.Windows.Forms.Integration; using System.Windows.Media; using WPFControls; namespace...
Java
using System.Collections.Immutable; using JetBrains.Annotations; using JsonApiDotNetCore.Configuration; using JsonApiDotNetCore.Queries.Expressions; using JsonApiDotNetCore.Resources; using JsonApiDotNetCore.Resources.Annotations; using Microsoft.Extensions.Primitives; namespace JsonApiDotNetCoreTests.IntegrationTests...
Java
/* * Author: Minho Kim (ISKU) * Date: March 3, 2018 * E-mail: minho.kim093@gmail.com * * https://github.com/ISKU/Algorithm * https://www.acmicpc.net/problem/13169 */ import java.util.*; public class Main { private static long[] array; private static int N; public static void main(String... args) { Scann...
Java
from django import forms from miniURL.models import Redirection #Pour faire un formulaire depuis un modèle. (/!\ héritage différent) class RedirectionForm(forms.ModelForm): class Meta: model = Redirection fields = ('real_url', 'pseudo') # Pour récupérer des données cel apeut ce faire avec un POST...
Java
<!DOCTYPE html> <!-- Copyright 2012 The Polymer Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <title>CoolClock</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="../../...
Java
package pp.iloc.model; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import pp.iloc.model.Num.NumKind; import pp.iloc.model.Operand.Type; import pp.iloc.parse.FormatException;...
Java
/** audio player styles **/ .audio-player, .audio-player div,.audio-player button { margin: 0; padding: 0; border: none; outline: none; } div.audio-player { position: relative; width: 100% !important; height: 76px !important; margin: 0 auto; } /* play/pause control */ .mejs-controls .mejs-button button ...
Java
<a href="https://sweetalert2.github.io/"> <img src="./assets/swal2-logo.png" width="498" alt="SweetAlert2"> </a> A beautiful, responsive, customizable, accessible (WAI-ARIA) replacement <br> for JavaScript's popup boxes. Zero dependencies. --- ### [Installation](https://sweetalert2.github.io/#download) | [Usage](h...
Java
<!DOCTYPE html> <html class="no-js " lang="zh"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="keywords" content="jQuery,API,中文,jquery api,1.11,def.resolveWith(c,[a])"/> <meta name="description" content="jQuery API 1.12.0 中文手册最新版,在线地址:http://j...
Java
import { IHiveMindNeuron, IHiveMindNeurons } from './HiveMindNeurons'; import { UserInput } from '../../BasicUserInput'; import { RequestContext } from '../../BasicRequestContext'; import { INeuronsResponse, ISingleNeuronsResponse, SingleNeuronsResponse } from './NeuronsResponse'; import { INeuronResponse } from '../.....
Java
require_relative 'spec_helper' require_relative '../lib/nixonpi/animations/easing' describe NixonPi::Easing do before :each do @object = Object.new @object.extend(NixonPi::Easing) end # @param [Object] x percent complete (0.0 - 1.0) # @param [Object] t elapsed time ms # @param [Object] b start value...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>circuits: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-abel: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.m...
Java
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def __init__(self, band_names=['delta', 'theta', 'alpha', 'beta'], ch_names=['TP9', 'AF7', 'A...
Java
#!/usr/bin/env bash # DETAILS: Invokes rsyncs with well known better options. # CREATED: 06/29/13 16:14:34 IST # MODIFIED: 10/24/17 14:36:30 IST # # AUTHOR: Ravikiran K.S., ravikirandotks@gmail.com # LICENCE: Copyright (c) 2013, Ravikiran K.S. #set -uvx # Warn unset vars as error, Verbose (echo each com...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <title>Transaction</title> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.hr...
Java
require 'spec_helper' describe 'ssh::default' do let(:chef_run){ ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '12.04').converge(described_recipe) } it 'should include the ssh::client recipe' do expect(chef_run).to include_recipe('ssh::client') end it 'should include the ssh::server recipe' do expec...
Java
<?php namespace Ekyna\Bundle\CartBundle\Provider; use Ekyna\Bundle\CartBundle\Model\CartProviderInterface; use Ekyna\Bundle\OrderBundle\Entity\OrderRepository; use Ekyna\Component\Sale\Order\OrderInterface; use Ekyna\Component\Sale\Order\OrderTypes; use Symfony\Component\HttpFoundation\Session\SessionInterface; /** ...
Java
<h1><?php echo $titulo_pagina; ?></h1> <p>Usuários cadastrados no sistema</p> <p class="alert bg-danger" style="display:none;"><strong>Mensagem!</strong> <span></span></p> <p><a href="<?php echo base_url().'admin/usuarios/cadastrar'; ?>" class="btn btn-primary">Cadastrar</a></p> <table class="table table-bordered table...
Java
# -*- coding: utf-8 -*- from modules import Robot import time r = Robot.Robot() state = [0, 1000, 1500] (run, move, write) = range(3) i = run slowdown = 1 flag_A = 0 flag_C = 0 lock = [0, 0, 0, 0] while(True): a = r.Read() for it in range(len(lock)): if lock[it]: lock[it] = lock[it] - 1 ...
Java
// // UIBarButtonItem+initWithImageName.h // lottowinnersv2 // // Created by Mac Mini on 4/17/14. // Copyright (c) 2014 com.qaik. All rights reserved. // #import <UIKit/UIKit.h> @interface UIBarButtonItem (initWithImageName) + (instancetype)barbuttonItemWithImage:(UIImage *)image target:(id)target action:(SEL)act...
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using Windows.Foundation.Collections; using Windows.Media; using Windows.UI.Xaml; using Windows.UI.Xaml.Contr...
Java
<html><body> <h4>Windows 10 x64 (19042.610)</h4><br> <h2>_OBJECT_REF_INFO</h2> <font face="arial"> +0x000 ObjectHeader : Ptr64 <a href="./_OBJECT_HEADER.html">_OBJECT_HEADER</a><br> +0x008 NextRef : Ptr64 Void<br> +0x010 ImageFileName : [16] UChar<br> +0x020 NextPos : Uint2B<br...
Java
#ifndef _SIMPLE_POLYGON_H #define _SIMPLE_POLYGON_H #include <vector> #include <QtOpenGL> #include "AGVector.h" #include "Triangulate.h" #define MAX_DIST 0.1 using std::vector; class SimplePolygon { public: SimplePolygon(); ~SimplePolygon(); void DrawPolygon(); void Clear(); void Update(AGVector v,...
Java
<?php class ModelTask { public $Model; public $MethodName; public $Request; public $ResponseInfo; public $Response; public $Headers; public static function Prepare(&$model, $methodName) { $newTask = new self; $newTask->Model = &$model; $newTask->MethodName = $methodName; $newTask->Request = null; $...
Java
/* * This code it's help you to check JS plugin function (e.g. jQuery) exist. * When function not exist, the code will auto reload JS plugin from your setting. * * plugin_name: It's your plugin function name (e.g. jQuery). The type is string. * reload_url: It's your reload plugin function URL. The type is string....
Java
# -*- coding: utf-8 -*- from django.db import models from Corretor.base import CorretorException from Corretor.base import ExecutorException from Corretor.base import CompiladorException from Corretor.base import ComparadorException from Corretor.base import LockException from model_utils import Choices class Retorn...
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location ...
Java
<?php include $_SERVER['DOCUMENT_ROOT'] . '/snippets/document/header/index.php'; ?> <div class="layout-project"> <div class="project project_glow context-content"> <section class="project__layout"> <header class="project__header"> <div class="container"> <h1 class="project__title">Glow</h...
Java
const ASSERT = require('assert'); describe('SSL Specs', function () { const PATH = require('path'); let Acts = require('./../index'); let testcert = PATH.join(__dirname, 'certs', 'test.cert'); let testkey = PATH.join(__dirname, 'certs', 'test.key'); it('boot with testcertificate without chain', fu...
Java
<?php require "../zxcd9.php"; //$stmt = $db->prepare("SELECT * from fin_allotments where hrdbid=:id"); //$stmt->bindParam(':id', $_SESSION['id']); //$stmt->execute(); //$rowfa = $stmt->fetch(PDO::FETCH_ASSOC); //echo $rowfa['hrdbid']; // echo $_SESSION['id']; // while ($rowfa = $stmt->fetch(PDO::FETCH_ASSOC)) {...
Java
package iso20022 type RepurchaseType6Code string
Java
<div class="sv-main-content"><div ui-view=""><div layout="row" layout-wrap="layout-wrap" ng-if="!mapView" style="max-width:1400px;margin: 0px auto"><div flex-sm="100" flex-gt-sm="50" flex-gt-md="33" flex-gt-lg="33" ng-repeat="agent in agents"><sv-broker-profile-thumb class="m"></sv-broker-profile-thumb></div></div></di...
Java
namespace XHTMLClassLibrary.AttributeDataTypes { /// <summary> /// One or more digits. /// </summary> public class Number : IAttributeDataType { private int? _number = null; public string Value { get { if (_number.HasValue) ...
Java
require "houston/releases/engine" require "houston/releases/configuration" module Houston module Releases extend self def dependencies [ :commits ] end def config(&block) @configuration ||= Releases::Configuration.new @configuration.instance_eval(&block) if block_given? @con...
Java
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
Java
const path = require('path'); const inquirer = require('inquirer'); const yargs = require('yargs'); const { sanitizeArgs, ui, invalidGitRepo, ingredients, addIngredients, promiseTimeout } = require('../common'); const { cloneRepo, deleteGitFolder, establishLocalGitBindings, addGitRemote, pushLoca...
Java
import React from 'react' import { useSelector } from 'react-redux' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import MoveSelector from '../containers/move-selector' import Footer from '../containers/footer' import Player from '../conta...
Java
<!-- TOC --> - [General](#general) - [R](#r) - [Installazione](#installazione) - [Scraping](#scraping) - [scrape](#scrape) - [Installazione](#installazione-1) - [XML](#xml) - [xml2json](#xml2json) - [Installazione](#installazione-2) - [XMLStarlet](#xmlstarlet) ...
Java
namespace EnergyTrading.MDM.Test.Contracts.Validators { using System; using System.Collections.Generic; using System.Linq; using EnergyTrading.MDM.ServiceHost.Unity.Configuration; using global::MDM.ServiceHost.Unity.Sample.Configuration; using Microsoft.Practices.Unity; using NUnit.Framew...
Java
## THIS REPO IS DEPRECATED (THIS PROJECT HAS BEEN MERGED)!! GO HERE, INSTEAD: https://github.com/apache/zeppelin/tree/master/elasticsearch # zeppelin-elasticsearch-interpreter Elasticsearch Interpreter for [Appache Zeppelin](https://zeppelin.incubator.apache.org/). ![Search pie](/docs/images/search_pie.png) ## B...
Java
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
Java
class LateMigration < ActiveRecord::Migration def up puts "Doing schema LateMigration" end def down puts "Undoing LateMigration" end end
Java
--- layout: tags title: merge ---
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 `mk_bare_fn` fn in crate `rustc_typeck`."> <meta name="keyw...
Java
const fs = require('fs'); const path = require('path'); class Service { constructor() { this.getFileRecursevly = this.getFileRecursevly.bind(this); this.getFiles = this.getFiles.bind(this); } getFileRecursevly(folderPath, shortPath = '') { var files = []; var folder = fs.read...
Java
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MemoryStandardStream.Read.cs" company="Naos Project"> // Copyright (c) Naos Project 2019. All rights reserved. // </copyright> // ----------------------------------------------...
Java
package com.falcon.cms.web.rest; import com.falcon.cms.web.rest.vm.LoggerVM; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.LoggerContext; import com.codahale.metrics.annotation.Timed; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.web.bind.a...
Java
# Change Log All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [3.0.3](https://github.com/sonata-project/SonataCoreBundle/compare/3.0.2...3.0.3) - 2016-06-17 ### Fixed - Add missing exporter service ## [3.0.2](https://github.com/...
Java
import DateParser from '../date-parser.js'; import ParsedInfo from '../../parsed-info'; import moment from 'moment'; Date.now = jest.fn(() => 1527130897000) test('Parses 12 Jan', () => { const dateParser = new DateParser(); dateParser.parse('12 Jan', ParsedInfo); const { value, startIndex, endIndex } = ParsedIn...
Java
package tranquvis.simplesmsremote.CommandManagement.Modules; /** * Created by Andreas Kaltenleitner on 31.10.2016. */ public class ModuleAudioTest extends ModuleTest { }
Java
--- topic: "Turtle Letters: 04" desc: "Planning your letters inside a bounding box (planning P and C)" indent: true --- {% include turtle_letters_header.html %} For each letter that you and your pair partner are going to draw, start by drawing a bounding box like this on on a piece of paper. <img src="BoundingBox....
Java
#include "stdafx.h" #include "record.hpp" namespace tc { namespace log { const char* record::type_acronym( void ) const { switch( type ) { case log::trace: return "T"; case log::debug: return "D"; case log::info: return "I"; case log::warn: return "W"; case log::error: return "E"; case log::fatal: return "F"; ...
Java
/* Header Styles */ header.main{ background: rgb(252,252,252); /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0J...
Java
#!/bin/bash ## To avoid regression ensure that all of these do not return (unknown) # annot_t.js printf "annot_t.js:9:21 = " assert_ok "$FLOW" type-at-pos annot_t.js 9 21 --strip-root --pretty # any.js printf "any.js:3:15 = " assert_ok "$FLOW" type-at-pos any.js 3 15 --strip-root --pretty printf "any.js:4:2 = " asse...
Java
exports.LOADING = "LOADING"; exports.ERROR = "ERROR"; exports.SUCCESS = "SUCCESS"; exports.FETCH = "FETCH"; exports.CREATE = "CREATE"; exports.UPDATE = "UPDATE"; exports.DELETE = "DELETE"; exports.SET_EDIT_MODE = "SET_EDIT_MODE"; exports.SET_ADD_MODE = "SET_ADD_MODE"; exports.CLOSE_FORM = "CLOSE_FORM"; exports.SET_PAGE...
Java
'use strict'; exports.ContainerBuilder = require('./CqrsContainerBuilder'); exports.EventStream = require('./EventStream'); exports.CommandBus = require('./CommandBus'); exports.EventStore = require('./EventStore'); exports.AbstractAggregate = require('./AbstractAggregate'); exports.AggregateCommandHandler = require...
Java
<!DOCTYPE html> <html><head> <script type="text/javascript" src="lightgl.js"></script> <script type="text/javascript" src="csg.js"></script> <script type="text/javascript" src="openjscad.js"></script> <script type="text/javascript" src="braille.jscad" charset="utf-8"></script> <script type="text/javascript" src="jquer...
Java
# Pull base image with batteries FROM buildpack-deps:jessie MAINTAINER EngageNExecute code@engagenexecute.com # Install packages. RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ locales \ python-dev \ cmake \ libpq-dev \ python-pip \ git-...
Java
'use strict'; var _ = require('./underscore-mixins.js'); var fnToNode = new Map(); exports.load = function (nodes, prefix) { let uuid = require('uuid'); if (prefix != null && prefix.length > 0) { prefix = prefix + ':'; } else { prefix = ''; } _(nodes).forEach(function (fn, name...
Java
Text Override === v.2.8.4 by: Matthew D. Jordan ### About A simple interface to modify a dimension's text override value directly. It even features shortcuts for frequently used overrides. Clear a text override by entering an empty string at the command line. If you want to use a chuck of text that includes space c...
Java
#!/bin/sh # # MediaWiki Setup Script # # This script will install and configure MediaWiki on # an Ubuntu 14.04 droplet export DEBIAN_FRONTEND=noninteractive; # Generate root and wordpress mysql passwords rootmysqlpass=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev | tr -dc 'a-zA-Z0...
Java
# Zensible Mongo Extension library to simplify working with mongo, it uses a builder pattern approach to performing calls to the mongo db, this allows for specific type of calls to be stored. # Motivation We all had to perform simple mongo actions but because of the mindboogling poor api of the offical mongo driver ...
Java
@echo off ipython notebook Numba_Demo_002.ipynb ipython nbconvert Numba_Demo_002.ipynb --to slides --post serve pause
Java
import { connect } from 'react-redux'; import Main from './Main'; import * as userActions from '../../state/user/userActions'; const mapStateToProps = (state, ownProps) => { return { activeTab: ownProps.location.pathname.split('/')[2] }; }; const mapDispatchToProps = (dispatch) => { return { getUserData...
Java
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { MembersComponent } from './members/members.component'; import { SeatingMapComponent } from './seating-map/seating-map.component'; const routes: Routes = [ { path: 'members', component: MembersComponent...
Java
# Update the X font indexes: if [ -x /usr/bin/mkfontdir ]; then /usr/bin/mkfontscale /usr/share/fonts/TTF /usr/bin/mkfontdir /usr/share/fonts/TTF /usr/bin/mkfontscale /usr/share/fonts/OTF /usr/bin/mkfontdir /usr/share/fonts/OTF fi if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache -f fi
Java
(function(angular) { 'use strict'; angular .module('jstube.chromeExtensionCleaner.popup') .directive('jstubeNavbar', jstubeNavbar); function jstubeNavbar() { return { restrict: 'E', templateUrl: 'nav/_navbar.html', controller: 'NavbarController', ...
Java
// Just re-export everything from the other files export * from './base-table-name'; export * from './compound-constraint'; export * from './constraint'; export * from './constraint-type'; export * from './default-value'; export * from './error-response'; export * from './filter-operation'; export * from './filter'; e...
Java
package com.dranawhite.mybatis.handler; import com.alibaba.fastjson.JSON; import com.dranawhite.mybatis.model.Address; import com.dranawhite.mybatis.model.FullAddress; import org.apache.ibatis.type.JdbcType; import org.apache.ibatis.type.MappedJdbcTypes; import org.apache.ibatis.type.MappedTypes; import org.apache.iba...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
Java
from util.tipo import tipo class S_PARTY_MEMBER_INTERVAL_POS_UPDATE(object): def __init__(self, tracker, time, direction, opcode, data): print(str(type(self)).split('.')[3]+'('+str(len(data))+'): '+ str(data.get_array_hex(1))[1:-1])
Java
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
Java
export hom, hom_check """ `hom_check(G,H,d)` checks if the dictionary `d` is a graph homomorphism from `G` to `H`. """ function hom_check(G::SimpleGraph, H::SimpleGraph, d::Dict)::Bool for e in G.E v, w = e x = d[v] y = d[w] if !H[x, y] return false end end ...
Java
"""Auto-generated file, do not edit by hand. BG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_BG = PhoneMetadata(id='BG', country_code=359, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[23567]\\d{5,7}|[489]\\d{6,8}', possible...
Java