code
stringlengths
4
1.01M
language
stringclasses
2 values
Ubench [![Build Status](https://travis-ci.org/devster/ubench.svg?branch=master)](https://travis-ci.org/devster/ubench) ====== Ubench is a PHP micro library for benchmark > https://github.com/devster/ubench Installation ------------ ### Old school ### require `src/Ubench.php` in your project. ### Composer ### Add...
Java
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSObject.h" @class NSMutableDictionary, NSString; // Not exported @interface GQZArchive : NSObject { NSMutableDictionary *mEntries; id <GQZArchiveInputStream> ...
Java
/* * mysplit.c - Another handy routine for testing your tiny shell * * usage: mysplit <n> * Fork a child that spins for <n> seconds in 1-second chunks. */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> int main(int argc, char **argv) { ...
Java
/* * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. 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...
Java
\hypertarget{dir_a39a2e34196bbb4cf212587eee358088}{}\section{C\+:/\+Users/\+Tim-\/\+Mobil/\+Documents/\+Arduino/libraries/\+N\+B\+H\+X711/src Directory Reference} \label{dir_a39a2e34196bbb4cf212587eee358088}\index{C\+:/\+Users/\+Tim-\/\+Mobil/\+Documents/\+Arduino/libraries/\+N\+B\+H\+X711/src Directory Reference@{C\+:...
Java
<?PHP /** * password view. * * includes form for username and email to send password to user. * */ ?> <div id="content_area"> <div class="row" id="login"> <!--login box--> <div class="col-xs-24" > <?php //begins th...
Java
using System; using System.Threading; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace vplan { public class PrefManager { NSUserDefaults locstore = new NSUserDefaults(); bool notified = false; public PrefManager () { refresh (); } protected void refresh () { locstore.Synchronize (); ...
Java
/* DISKSPD Copyright(c) Microsoft Corporation All rights reserved. MIT License 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 us...
Java
/** @jsx h */ import h from '../../helpers/h' export const schema = { blocks: { paragraph: { marks: [{ type: 'bold' }, { type: 'underline' }], }, }, } export const input = ( <value> <document> <paragraph> one <i>two</i> three </paragraph> </document> </value> ) expo...
Java
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it to the object below. * * .noConflict() * ...
Java
#pragma once #include "interface/types.h" inline uintptr_t get_return_address() { uintptr_t ret; asm volatile("movq 8(%%rbp), %0" : "=r"(ret) : : "memory"); return ret; }
Java
import {bootstrap} from '@angular/platform-browser-dynamic'; import {ROUTER_PROVIDERS} from '@angular/router-deprecated'; import {HTTP_PROVIDERS} from '@angular/http'; import {AppComponent} from './app.component'; import {LoggerService} from './blocks/logger.service'; bootstrap(AppComponent, [ LoggerService, ROUTE...
Java
package org.apache.shiro.grails.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.apache.shiro.authz.Permission; @Target({ElementType.FIELD, ElementType.METHOD}) @Retention(Retention...
Java
local r = require('restructure') local ArrayT = r.Array describe('Array', function() describe('decode', function() it( 'should decode fixed length', function() local stream = r.DecodeStream.new(string.char(1, 2, 3, 4, 5)) local array = ArrayT.new(r.uint8, 4) assert.are.same({1, 2, 3, 4}, array:...
Java
using Academy.Core.Contracts; using Academy.Commands.Adding; using Moq; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Academy.Tests.Commands.Mocks; namespace Academy.Tests.Commands.AddingTests.AddStudentToSea...
Java
module.exports = { before: [function () { console.log('global beforeAll1'); }, 'alias1'], 'alias1': 'alias2', 'alias2': function () { console.log('global beforeAll2'); }, 'One': function () { this.sum = 1; }, 'plus one': function () { this.sum += 1; }, 'equals two': function () { ...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Submission 121</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> <img src="gallery/subm...
Java
puppet-roundcube ================ ## Overview Install and configure roundcube with optional apache/mysql configuration. * `roundcube` : Main define for the roundcube. ## Examples Typical user with apache and mysql configuration : roundcube { 'webmail.example.com': docroot => '/var/www/webmail.ex...
Java
## 0.0.2 30-08-2016 * Fixed pin to mimic the old logic PR#4 ## 0.0.1 29-08-2016 * First version
Java
exports.__esModule = true; exports.parseServerOptionsForRunCommand = parseServerOptionsForRunCommand; exports.parseRunTargets = parseRunTargets; var _cordova = require('../cordova'); var cordova = babelHelpers.interopRequireWildcard(_cordova); var _cordovaProjectJs = require('../cordova/project.js'); var _cordovaRu...
Java
# MilkshakeAndMouse An online store for organic/cruelty free merchandise.
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0037)http://notefeeder.heroku.com/500.html --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; chars...
Java
from attributes import * from constants import * # ------------------------------------------------------------------------------ # class UnitManager (Attributes) : """ UnitManager class -- manages a pool """ # -------------------------------------------------------------------------- # ...
Java
'use strict'; angular.module('terminaaliApp') .factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) { var currentUser = {}; if($cookieStore.get('token')) { currentUser = User.get(); } return { /** * Authenticate user and save token * *...
Java
$(document).ready(function(){ var toggleMuffEditor = function(stat=false){ $("#muff-opt").remove(); // bind event if(stat){ $(".muff").mouseover(function() { $("#muff-opt").remove(); muffShowOptions($(this)); $(window).scroll(function(){ $("#muff-opt").remove(); }) ...
Java
--- layout: page title: Version history permalink: "setup/en/releasenotes/" language: en --- #### vNext * __New__ FileCopy Add-In: parameter sourceTimeFilter also for FILE and SFTP protocol. #### 1.4.5 * __New__ New Add-In List2Csv to export SharePoint Online lists to CSV files. * __New__ New add-in SharepointToDB...
Java
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = undefined; var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/p...
Java
package jp.opap.material.model import java.util.UUID import jp.opap.data.yaml.Node import jp.opap.material.data.Collections.{EitherSeq, Seqs} import jp.opap.material.facade.GitLabRepositoryLoaderFactory.GitlabRepositoryInfo import jp.opap.material.model.RepositoryConfig.RepositoryInfo import jp.opap.material.model.Wa...
Java
const _cache = Dict{AbstractString,Array}() function fetch_word_list(filename::AbstractString) haskey(_cache, filename) && return _cache[filename] try io = open(filename, "r") words = map(x -> chomp(x), readlines(io)) close(io) ret = convert(Array{UTF8String,1}, words) _cache[filename] = ret ...
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_11) on Sun Aug 31 14:44:00 IST 2014 --> <title>Uses of Class org.symboltable.Edge</title> <meta name="date" content="2014-08-31"> <link rel="st...
Java
# Parser.Many&lt;T&gt; method Always succeeds. The value is a collection of as many items as can be successfully parsed. ```csharp public static IParser<IReadOnlyList<T>> Many<T>(this IParser<T> parser) ``` ## See Also * interface [IParser&lt;T&gt;](../IParser-1.md) * class [Parser](../Parser.md) * namespace [Faith...
Java
using System.ComponentModel; namespace NSysmon.Collector.HAProxy { /// <summary> /// Current server statuses /// </summary> public enum ProxyServerStatus { [Description("Status Unknown!")] None = 0, //Won't be populated for backends [Description("Server is up, status nor...
Java
import datetime from django.contrib.contenttypes.models import ContentType from django.utils import timezone from .models import Action def create_action(user, verb, target=None): now = timezone.now() last_minute = now - datetime.timedelta(seconds=60) similar_actions = Action.objects.filter(user_id=user...
Java
package engine; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Point; public class CircleShape extends Shape { double radius; //radius of shape public CircleShape(double rad, Vector2D v, double r, double d, Color c) { super(v, r, d, c); radius = rad; } @Override ...
Java
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19.99 9.79c.51-.4.51-1.18 0-1.58l-6.76-5.26c-.72-.56-1.73-.56-2.46 0L9.41 4.02l7.88 7.88 2.7-2.11zm0 3.49l-.01-.01a.991.991 0 00-1.22 0l-.05.04 1.4 1.4c.37-.41.34-1.07-.12-1.43zm1.45 5.6L4.12 1.56a.9...
Java
Deprecated. See: - [TRex Collection](https://github.com/Raphhh/trex-collection): PHP helpers for collections. - [TRex Reflection](https://github.com/Raphhh/trex-reflection): PHP tool to reflect callables an types. - [TRex parser](https://github.com/Raphhh/trex-parser): PHP tool to parse code and extract statements....
Java
sandbox.lua =========== A pure-lua solution for running untrusted Lua code. The default behavior is restricting access to "dangerous" functions in Lua, such as `os.execute`. It's possible to provide extra functions via the `options.env` parameter. Infinite loops are prevented via the `debug` library. For now, sand...
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DarkSwift</source> <translation type="unfinished"/> </message> <message> <location l...
Java
# Worker Glass [Unmaintained] **Note**: This library is no longer in use in the Karafka ecosystem. It was developed for Karafka versions prior to `1.0`. If you're using this library and want to take it over, please ping us. [![Build Status](https://github.com/karafka/worker-glass/workflows/ci/badge.svg)](https://gith...
Java
# -*- coding: utf-8 -*- # # RedPipe documentation build configuration file, created by # sphinx-quickstart on Wed Apr 19 13:22:45 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
Java
import { assign, forEach, isArray } from 'min-dash'; var abs= Math.abs, round = Math.round; var TOLERANCE = 10; export default function BendpointSnapping(eventBus) { function snapTo(values, value) { if (isArray(values)) { var i = values.length; while (i--) if (abs(values[i] - value) <...
Java
var changeSpan; var i = 0; var hobbies = [ 'Music', 'HTML5', 'Learning', 'Exploring', 'Art', 'Teaching', 'Virtual Reality', 'The Cosmos', 'Unity3D', 'Tilemaps', 'Reading', 'Butterscotch', 'Drawing', 'Taking Photos', 'Smiles', 'The Poetics of Space', 'Making Sounds', 'Board games', 'Trave...
Java
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>CodePen - A Pen by Justin Kams</title> </head> <body> <html> <head> <title>The Basics of The Web and HTML</title> </head> <body> <h2>The Basics of The Web and HTML</h2> <p><em></em></p> <p><em><h3>The Basics of the World Wide Web</h3></em> The...
Java
<?php namespace App\Http\ViewComposers; use App\Models\Character; use App\Models\Message; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Auth; use Illuminate\View\View; class CharacterMessagesComposer { /** * Bind data to the view. * * @param ...
Java
--- layout: default archive: true --- <script src="https://apis.google.com/js/platform.js" async defer></script> <article class="post"> <header> <h1>{{ page.title }}</h1> <h2 class="headline">{{ page.date | date:"%B %-d, %Y" }}</h2> </header> <section id="post-body"> {{content}} ...
Java
from src.tools.dictionaries import PostLoadedDict # Utility class ################################################ class ServerImplementationDict(PostLoadedDict): def __missing__(self, key): try: return super().__missing__(key) except KeyError: return NotImplemented ########...
Java
import { GraphQLInputObjectType, GraphQLID, GraphQLList, GraphQLBoolean, } from 'graphql'; import RecipientTypeEnum from './RecipientTypeEnum'; import MessageTypeEnum from './MessageTypeEnum'; import NoteInputType from './NoteInputType'; import TranslationInputType from './TranslationInputType'; import Communi...
Java
require "rubygems" require 'active_support' require "ruby-debug" gem 'test-unit' require "test/unit" require 'active_support' require 'active_support/test_case' require 'shoulda' require 'rr' require File.dirname(__FILE__) + '/../lib/ubiquitously' Ubiquitously.configure("test/config/secrets.yml") Passport.configure("...
Java
{% macro scenario_tabs(selected,num,path, id) %} <div class="section-tabs js-tabs clearfix mb20"> <ul> {% set navs = [ {url:"timeline-review",label:"Timeline"}, {url:"details-fme",label:"Details"}, {url:"evidence-portal",label:"Evidence"}, {url:"appointment",label:"Appointment"} ...
Java
#include <boost/lexical_cast.hpp> #include <disccord/models/user.hpp> namespace disccord { namespace models { user::user() : username(""), avatar(), email(), discriminator(0), bot(false), mfa_enabled(), verified() { } user::~user() { } void use...
Java
package com.full360.voltdbscala import org.voltdb.client.ClientResponse /** * Exception thrown when the status of a client response if not success * @param message the detail message of this exception */ case class ClientResponseStatusException(message: String) extends Exception(message) object ClientResponseStat...
Java
// // UIView+WebCacheOperation.h // SKWebImage // // Created by 侯森魁 on 2019/8/23. // Copyright © 2019 侯森魁. All rights reserved. // #import <UIKit/UIKit.h> #import "SKWebImageCompat.h" #import "SKWebImageManager.h" NS_ASSUME_NONNULL_BEGIN @interface UIView (WebCacheOperation) /** Set the image load operation (s...
Java
#CSCI 211 - Lab 1 ##Introduction to Linux and the g++ Compiler ##Goals: * Overview: Linux organization * Introduce several basic Linux commands * Provide an example of creating, compiling, and running a c++ program * Set up all the directories for the course assignments * Provide practice creating, compiling, and run...
Java
// // ///////////////////////////////////////////////////////////////////////////// // // Copyright 2014 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 acco...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ASPPatterns.Chap7.Library.Services.Views; namespace ASPPatterns.Chap7.Library.Services.Messages { public class FindMembersResponse : ResponseBase { public IEnumerable<MemberView> MembersFound { get; set; } ...
Java
let _ = require('underscore'), React = require('react'); class Icon extends React.Component { render() { let className = "icon " + this.props.icon; let other = _.omit(this.props.icon, "icon"); return ( <span className={className} role="img" {...other}></span> ...
Java
using System.IO; namespace Mandro.Utils.Setup { public class DirectoryHelper { public DirectoryHelper() { } public static void CopyDirectory(string sourceDirName, string destDirName, bool copySubDirs) { // Get the subdirectories for the specified directory....
Java
import { NotificationType } from 'vscode-languageclient' export enum Status { ok = 1, warn = 2, error = 3 } export interface StatusParams { state: Status } export const type = new NotificationType<StatusParams>('standard/status')
Java
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class ChevronDown extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,298.3L256,298.3L256,298.3l174.2-167.2c4.3-4.2,11.4-4.1,15.8,0.2l30.6,29.9c4.4,4.3,4.5,11.3,0.2,15.5L264.1,380.9 ...
Java
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); const webpack = require('webpack'); const paths = require('./tools/paths'); const en...
Java
// // SA_DiceEvaluator.h // // Copyright (c) 2016 Said Achmiz. // // This software is licensed under the MIT license. // See the file "LICENSE" for more information. #import <Foundation/Foundation.h> @class SA_DiceBag; @class SA_DiceExpression; /************************************************/ #pragma mark SA_Dice...
Java
// This file is automatically generated. package adila.db; /* * Alcatel POP 2 (5) * * DEVICE: alto5 * MODEL: 7043K */ final class alto5_7043k { public static final String DATA = "Alcatel|POP 2 (5)|"; }
Java
<?php namespace BackOfficeBundle\Entity; use Doctrine\ORM\EntityRepository; /** * PosteCollaborateurRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class PosteCollaborateurRepository extends EntityRepository { }
Java
/* database.h Author: Pixel Flash Server database.h contains the class definition for the database class used by the cuCare server to store data persistently */ #ifndef DATABASE_H #define DATABASE_H #include <QtSql> #include <QDebug> class Database { public: Database(); ~Database(); QSqlQuery que...
Java
// ========================================================================== // snd_app // ========================================================================== // Copyright (c) 2006-2012, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and use in source and b...
Java
% % Primera página del documento \begin{titlepage} \begin{scriptsize}\noindent Facultad de Informática.\\ Ingeniería en Informática.\\ Ingeniería del Software.\\ Proyecto: Everywhere House Control. \end{scriptsize}\\ \vfill \begin{center} \begin{Large} \textbf...
Java
<?php /** * @file * Contains \Drupal\shortcut\ShortcutSetStorageControllerInterface. */ namespace Drupal\shortcut; use Drupal\Core\Entity\EntityStorageControllerInterface; use Drupal\shortcut\ShortcutSetInterface; /** * Defines a common interface for shortcut entity controller classes. */ interface ShortcutSet...
Java
using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using MS.Core; namespace System.Runtime.Remoting.Contexts { public static class __ContextAttribute { public static IObservable<System.Boolean> IsNewContextOK( this IObservable<...
Java
# -*- coding: utf-8 -*- # # Copyright (C) 2008 John Paulett (john -at- paulett.org) # Copyright (C) 2009, 2011, 2013 David Aguilar (davvid -at- gmail.com) # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. """Python libr...
Java
require 'spec_helper' describe "beings/show" do before(:each) do @being = FactoryGirl.create(:being) @being.randomize! end end
Java
import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; class ProteinTranslator { private static final Integer CODON_LENGTH = 3; private static final Map<String, String> CODON_TO_PROTEIN = Map.ofEntries( Map.entry("AUG", "Methionine"), Map.entry("UUU...
Java
# -*- coding: utf-8 -*- """ Created on Wed Sep 09 13:04:53 2015 * If TimerTool.exe is running, kill the process. * If input parameter is given, start TimerTool and set clock resolution Starts TimerTool.exe and sets the clock resolution to argv[0] ms Ex: python set_clock_resolution 0.5 @author: marcus """ ...
Java
<?php use Illuminate\Database\Seeder; use jeremykenedy\LaravelRoles\Models\Permission; class PermissionsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /* * Add Permissions * */ if (Permis...
Java
#------------------------------------------------------------------------------- # osx.cmake # Fips cmake settings file for OSX target platform. #------------------------------------------------------------------------------- set(FIPS_PLATFORM OSX) set(FIPS_PLATFORM_NAME "osx") set(FIPS_MACOS 1) set(FIPS_OSX 1...
Java
# maton 👀 Watch a machine's load and display it beautifully ✨ Even if this project is originally a technical test for an interview, I used it to try some tools that either I never had the chance to experiment with, or I wanted to know better. ## ⚒ Tools ### NodeJS and express I never used them in a big project, only...
Java
# MpiSyncManager Aplikasi Mpi Sync Manager
Java
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; namespace TrueSync.Physics2D { // Original Code by Steven Lu - see http://www.box2d.org/forum/viewtopic.php?f=3&t=1688 // Ported to Farseer 3.0 by Nicolás Hormazábal internal struct ShapeData { pu...
Java
<?php /* * This file is part of the Sonata project. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\MediaBundle\Tests\Validator; use Sonata\MediaBundle\Pr...
Java
--- layout: page title: "2016Google校招笔试-Not So Random" subheadline: teaser: "今天参加宣讲会模拟面试的题目,来源Google APAC 2016 University Graduates Test Round E Problem C。Google开始校招了,而我还是这么弱鸡..." categories: - share - algorithm tags: - Algorithm header: no image: thumb: gallery-example-4-thumb.jpg title: gallery...
Java
require "rails_helper" describe Linter::Shellcheck do it_behaves_like "a linter" do let(:lintable_files) { %w(foo.sh foo.zsh foo.bash) } let(:not_lintable_files) { %w(foo.js) } end describe "#file_review" do it "returns a saved and incomplete file review" do commit_file = build_commit_file(fil...
Java
-- This query extracts dose+durations of neuromuscular blocking agents -- Note: we assume that injections will be filtered for carevue as they will have starttime = stopttime. -- Get drug administration data from CareVue and MetaVision -- metavision is simple and only requires one temporary table with drugmv as ( se...
Java
cryptocurrency-market-data ========================== Experiments in cryptocurrency market data parsing/processing
Java
#ifndef ABB_VALUE_H #define ABB_VALUE_H #include <type_traits> #include <tuple> namespace abb { class und_t {}; class pass_t {}; const und_t und; const pass_t pass; template<typename Value> struct is_und : std::is_same<Value, und_t> {}; template<typename Value> struct is_pass : std::is_same<Value, pass_t> {}; ...
Java
//================================================================================================= /*! // \file blazemark/blaze/TDVecSMatMult.h // \brief Header file for the Blaze transpose dense vector/sparse matrix multiplication kernel // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // Th...
Java
/* * Copyright 2015 Google Inc. 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Java
<?php namespace Kuxin\Helper; /** * Class Collect * * @package Kuxin\Helper * @author Pakey <pakey@qq.com> */ class Collect { /** * 获取内容 * * @param $data * @return bool|mixed|string */ public static function getContent($data, $header = [], $option = []) { if (is_str...
Java
/** * JS for the player character. * * * * */ import * as Consts from './consts'; var leftLeg; var rightLeg; var leftArm; var rightArm; const BODY_HEIGHT = 5; const LEG_HEIGHT = 5; const HEAD_HEIGHT = Consts.BLOCK_WIDTH * (3/5); const SKIN_COLORS = [0xFADCAB, 0x9E7245, 0x4F3F2F]; const BASE_MAT = new THREE.MeshL...
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_112-google-v7) on Fri Jul 21 13:02:32 PDT 2017 --> <title>Resetter</title> <meta name="date" content="2017-07-21"> <link rel="stylesheet" type=...
Java
blocklevel = ["blockquote", "div", "form", "p", "table", "video", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "details", "article", "header", "main"] def normalizeEnter(src): #Deletes all user defined for readability reason existing line breaks that are issues for the HTML output for elem in blocklevel: while src.fin...
Java
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class DataQuestionnaire extends Model { protected $fillable = ['game_question', 'game_opponent_evaluation', 'study_evaluation']; /** * Relationship with parent DataParticipant. * * @return \Illuminate\Database\Eloquent\Rela...
Java
# riemann-stream Stream events from Riemann on CLI
Java
_rm: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 ...
Java
--- layout: page title: About Us permalink: /about/ --- Just started in 2015, we bring passion and energy to the industry backed by years of real-world experience. We strive to make our software both useful and usable, which can often be a fun challenge in today's fast-paced world. We are woman-owned small busines...
Java
# Editing a document with Vim Today was the first time I used Vim to edit a text file. I'd previously install Vim and attempted to play around with it, but I had no clue what I was doing and abandoned it until now. My issue was that I couldn't figure out how to actually add or edit the contents of a text file. Silly,...
Java
<?php namespace Tests\Map\Gazzetta; use PHPUnit\Framework\TestCase; use FFQP\Map\Gazzetta\GazzettaMapSince2013; class GazzettaMapSince2013Test extends TestCase { public function testExtractRows() { $map = new GazzettaMapSince2013(); $this->assertInternalType('int', 3); $rows = $map->e...
Java
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2015 Daniel Campora * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
Java
<?php namespace ObjectStorage\Test\Adapter; use ObjectStorage\Adapter\PlaintextStorageKeyEncryptedStorageAdapter; use ObjectStorage\Adapter\StorageAdapterInterface; use ParagonIE\Halite\KeyFactory; use ParagonIE\Halite\Symmetric\Crypto; use ParagonIE\HiddenString\HiddenString; use PHPUnit\Framework\Constraint\Logical...
Java
package com.github.kolandroid.kol.model.elements.basic; import com.github.kolandroid.kol.model.elements.interfaces.ModelGroup; import java.util.ArrayList; import java.util.Iterator; public class BasicGroup<E> implements ModelGroup<E> { /** * Autogenerated by eclipse. */ private static final long se...
Java
import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from 'superhero/tests/helpers/start-app'; import characterData from '../fixtures/character'; var application, server; module('Acceptance: Character', { beforeEach: function() { application = startApp(); var character = char...
Java
#ifndef CAVALIERI_RULE_TESTER_UTIL_H #define CAVALIERI_RULE_TESTER_UTIL_H #include <vector> #include <common/event.h> #include <external/mock_external.h> typedef std::pair<time_t, Event> mock_index_events_t; std::vector<Event> json_to_events(const std::string json, bool & ok); std::string results(std::vector<mock_i...
Java