code
stringlengths
4
1.01M
language
stringclasses
2 values
version https://git-lfs.github.com/spec/v1 oid sha256:b1b66ad7cf63a081650856aed61fbfdf1b6b511e47c622989e9927e504424a5d size 2493
Java
#include "ErrorCodes.h" std::error_code make_error_code(SimBlockErrc ec) { return {static_cast<int>(ec), simblockErrCategory}; }
Java
<?php /* Safe sample input : backticks interpretation, reading the file /tmp/tainted.txt sanitize : cast in float construction : use of sprintf via a %d with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distri...
Java
<div class="ui container" id="event"> <div class="ui stackable one column grid"> <div class="column"> <div class="ui card"> <div class="content"> <div class="header">{{ vm.event.attributes.title }}</div> </div><!-- header --> <div class="content"> <h3>Organiza...
Java
<?php namespace Oriancci\Query; class Insert extends Built { public function buildQuery() { // INSERT INTO $sql = 'INSERT INTO '; $sql .= $this->buildTableName(INSERT_INTO); // SET $sql .= ' SET '; $sql .= $this->buildSet(SET); return $sql; } ...
Java
package pl.yourempire.api.event; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class Event { private static Map<Class<Event>, ArrayList<ListenerCaller>> listenerMap = new HashMap<>(); public stat...
Java
<!DOCTYPE html> <html class="no-js" lang="hi"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="p5.js a JS client-side library for creating graphic and interactive ...
Java
tinyMCE.init({ mode : 'textareas', theme : "advanced", theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pastewo...
Java
package org.fluentjava.iwant.plannerapi; public interface ResourcePool { boolean hasFreeResources(); Resource acquire(); void release(Resource resource); }
Java
SampleApp =========
Java
#ifndef ENDOCAST_EXTRACTOR_HPP #define ENDOCAST_EXTRACTOR_HPP 1 #include <mi/VolumeData.hpp> class EndocastExtractor { private: public: EndocastExtractor ( void ) ; ~EndocastExtractor ( void ) ; bool extract ( mi::VolumeData<float>& distData, mi::VolumeData<int>& labelData, const doub...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>qcert: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>menhirlib: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
Java
/* eslint-env node */ 'use strict'; const EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); module.exports = function(defaults) { let app = new EmberAddon(defaults, { 'ember-cli-babel': { includePolyfill: true } }); app.import('node_modules/highlightjs/styles/monokai-sublime.css'); /...
Java
import { SplashEffect } from "./effect.js"; import { Linear } from "../interpolation.js"; export class TranslateFromPosition extends SplashEffect { constructor(element, options) { super(element); options = options || {}; this.x = options.x || 0; this.y = options.y || 0; // Can be whatever, but the effect...
Java
/*------------------------------------------------------------------------------ 27.0 - Localization ------------------------------------------------------------------------------*/ /* RTL except Hebrew (see below): Tahoma as the first font; */ body.rtl, body.rtl .press-this a.wp-switch-editor { font-family:...
Java
<html><img border=0 src=716-53-0.txt alt=716-53-0.txt></img><body> "x" "1" "KAZIUS, J, MCGUIRE, R AND BURSI, R. DERIVATION AND VALIDATION OF TOXICOPHORES FOR MUTAGENICITY PREDICTION. J. MED. CHEM. 48: 312-320, 2005" </body></html>
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>quicksort-complexity: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../boot...
Java
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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 r...
Java
namespace Sorting { using System; using System.Collections.Generic; using Constants; /// <summary> /// Define class for selection sort algorithm and its implementation /// </summary> /// <typeparam name="T">Type of the elements to be sorted</typeparam> /// <see cref="https://en.wikipe...
Java
# encoding: utf-8 module Axiom class Relation module Operation # A mixin for Binary relations module Binary include Axiom::Operation::Binary # Hook called when module is included # # @param [Module] descendant # the module or class including Binary ...
Java
<?php /** * @file * * Contains \Drupal\Tests\test_example\Unit\TestExampleConversionsTest. */ namespace Drupal\Tests\test_example\Functional; use Drupal\simpletest\BrowserTestBase; /** * Ensure that the simpletest_example content type provided functions properly. * * The TestExampleFunctionalTest is a functio...
Java
<?php /* /* Safe sample input : use exec to execute the script /tmp/tainted.php and store the output in $tainted SANITIZE : uses indirect reference construction : prepared query and no right verification */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to...
Java
package com.myconnector.client.domain; import java.util.List; import com.google.gwt.user.client.rpc.IsSerializable; import com.myconnector.client.domain.interfaces.ITodoContext; import com.myconnector.client.domain.interfaces.ITodoItem; import com.myconnector.client.domain.interfaces.ITodoList; public class TodoList...
Java
/** * Wheel, copyright (c) 2019 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const File = require('./File'); exports.FileDetail = class extends File.File { constructor(opts) { opts.className = 'file detail'; super(opts);...
Java
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Java
<?php namespace Code200\ImageKing\Classes; use Cms\Helpers\File; use Code200\ImageKing\Classes\Exceptions\ExtensionNotAllowedException; use Code200\Imageking\models\Settings; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; class ImageService { /** * @var string */ private $ht...
Java
wedge = 14 background = { epsilon = 0.997179, q = 0.619347 } streams = { { epsilon = -1.297424, mu = 190.545111, r = 13.878006, theta = 0.198390, phi = 3.139994, sigma = 3.743833 }, { epsilon = -1.008419, mu = 199.646461, ...
Java
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
Java
const _transform = require('lodash/transform'); function MatchTransformer(match) { if( !(this instanceof MatchTransformer) ) { return this.transform(new MatchTransformer(match)); } if( typeof match === 'string' ) { // Escape string match = match.replace(/[.*+?^${}()|[\]\\]/g, '\\$&...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>huffman: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
Java
body { margin:0; padding:0; font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing:antialiased; font-size:11px; } a { color:#111; } a:hover { text-decoration:none; } header { background:url(header.jpg) center center #111; text-align:center; color:#f...
Java
import ProgressBar from "progress"; import padEnd from "lodash/padEnd"; class ProgressBarController { constructor() { this.bar = null; } init(total) { if (this.bar) { this.terminate(); } // Intentionally a noop because node-progress doesn't work well in non-TTY // environments if ...
Java
var commons = require('../commons') var frisby = require('frisby'); var FormData = require('form-data'); frisby.create('Get file') .get(commons.host+'/file/2134354/zgzhrthztrh/sgeh' ) .after(function(err, res, body) { expect(res.request.href.match(/errcode=404/)).not.toBeNull() }) .toss()
Java
<!doctype html> <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> <head> <!-- Meta, title, CSS, favicons, etc. -...
Java
<?php namespace Frontend\PublicBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and ma...
Java
package command import ( "fmt" "os" "path/filepath" "time" "github.com/kemokemo/gckdir/lib" "github.com/skratchdot/open-golang/open" "github.com/urfave/cli" ) var ( // UsageVerify is Usage of verify subcommand for cli UsageVerify = "Verifies the structure and each hash value of files." ) // CmdVerify verif...
Java
search_result['2189']=["topic_0000000000000543_attached_props--.html","VerifyPhoneNumberModel Attached Properties",""];
Java
/// <reference path="Transform3D.ts" /> namespace zen { export class GameObject extends Transform3D { public name:string = "GameObject"; public tag:string = ""; public layer:string = ""; private _guid:string = zen.guid.create(); public get guid() { return t...
Java
$(document).ready(function () { startAnimation(); }); if (!window.requestAnimationFrame) { window.requestAnimationFrame = (window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function (callback) { return window.setTimeout(c...
Java
<?php get_template_part('templates/front', 'page'); ?>
Java
--- layout: post title: 'Palestras Novembro 2013: Instituto de Informática da Universidade Federal de Goiás (UFG), Conferência Web da W3C (São Paulo) e FrontInFloripa (Santa Catarina)' date: 2013-11-04 19:36:33.000000000 -02:00 type: post published: true status: publish categories: - Eventos tags: - Conferência Web W...
Java
/*jshint camelcase: false */ (function(window, module, undefined) { 'use strict'; // lifted from Underscore then bastardized var _flatten = function(input, output) { for (var i = 0, length = input.length; i < length; i++) { var value = input[i]; if (value.type === 'div') { _flatten(value...
Java
0.12.0 (Next) ============= #### Features * [#956](https://github.com/intridea/grape/issues/956): Support `present` with `Grape::Presenters::Presenter` - [@u2](https://github.com/u2). #### Fixes * [#936](https://github.com/intridea/grape/pull/936): Fixed default params processing for optional groups - [@dm1try](ht...
Java
module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ // watch for changes and trigger compass, jshint, uglify and livereload watch: { js: { files: ['jquery.accrue.js...
Java
require "lita" Lita.load_locales Dir[File.expand_path( File.join("..", "..", "locales", "*.yml"), __FILE__ )] require "lita/handlers/urban"
Java
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.IO; using System.Text; public class KinectManager : MonoBehaviour { public enum Smoothing : int { None, Default, Medium, Aggressive } // Public Bool to determine how m...
Java
<?php namespace Lam\MdlBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Lam\MdlBundle\Entity\FormationInformatique * @ORM\Table() * @ORM\Entity(repositoryClass="Lam\MdlBundle\Entity\FormationInformatiqueRepository") */ class Formationinformatique { /** * @var integer $id * * @ORM\Column(n...
Java
package com.hackathon.hackathon2014.activity; import android.app.Activity; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import an...
Java
require_relative 'shell/version' require_relative 'shell/loader' require_relative 'shell/alfrc' module Alf module Shell # This is the default configuration to be forked from DEFAULT_CONFIG = Alfrc.new # Command factory def self.Command(*args) Quickl::Command(*args){|builder| builder.co...
Java
package net.tqft.iterables.interfaces; public interface Transformer<S, T> { public abstract T evaluate(S s); }
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-analysis: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstr...
Java
require "capybarel/dsl/elements" require "capybarel/dsl/javascript" require "capybarel/dsl/from_yaml" module Capybarel module DSL module All include Capybarel::DSL::Elements include Capybarel::DSL::JavaScript include Capybarel::DSL::FromYaml end end end
Java
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import update from 'immutability-helper'; class ListItemBullet extends Component { render() { let cssClasses = `listbullet`; const bulletStyle = { border: `5px solid ${this.props.color}`, backgroundColor:...
Java
require 'spec_helper' describe RubygemsController do before do @g = Factory.create :rubygem @v = Factory.create :version, rubygem: @g end it 'should #show successfully' do tr = Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id get :show, id: @g.name response.should be_succe...
Java
using System; using System.IO; namespace Pulse.Core { /// <summary> /// НЕ потокобезопасный! /// </summary> public sealed class StreamSegment : Stream { private long _offset, _length; public readonly Stream BaseStream; public StreamSegment(Stream stream, long offset, long...
Java
import Ember from 'ember'; export default Ember.Component.extend({ tagName: '', didInsertElement: function() { this.startPoppover(); }, willDestroyElement: function() { this.dismissPoppover(); }, startPoppover: function() { var options = this.getPoppoverOptions(); Ember.$(function() { ...
Java
#ifndef _RELLIK_H_ #define _RELLIK_H_ #include "gametime.h" typedef struct rellik Rellik; Rellik *rellik_Create(); void rellik_Destroy(Rellik *self); void rellik_Initialize(Rellik *self); void rellik_Update(Rellik *self, GameTime gameTime); void rellik_Render(Rellik *self); #endif
Java
header { width: 100%; color: #fff; text-align: center; } .container { width: 80%; margin: 0 auto; } .brand { background: linear-gradient(-225deg, #2c5499, #3e97e6); padding: 30px 0; } .brand img { cursor: pointer; } h1 { font-size: 3em; font-weight: normal; line-height: 60px; cursor: pointer...
Java
FROM debian:8.2 MAINTAINER Stuart Ellis <stuart@stuartellis.eu> ENV REFRESHED_AT 2015-09-09 ENV PYTHON_VERSION 3.4.2-2 RUN apt-get update && \ apt-get install -qy python3=$PYTHON_VERSION && \ rm -rf /var/lib/apt/lists/*
Java
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Str; class TagsTableSeeder extends Seeder { /** * Run the database seeding. */ public function run() { DB::table('tags')->truncate(); DB::table('tags')->insert([ [ 'name' => 'Qnique', ...
Java
/* * SonarLint for Visual Studio * Copyright (C) 2016-2021 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version ...
Java
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * SoundcloudSearch Schema */ var SoundcloudSearchSchema = new Schema({ // SoundcloudSearch model fields // ... search: { type: String, required: 'There must be a search term', trim: true }, ...
Java
--- layout: home title: All Posts description: "An archive of posts." comments: false --- {% for post in site.posts %} {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} {% if forloop.first %} <article> <h2 id="{{ this_y...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>io: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script> <script type="text/javascript" src="lens.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>...
Java
{% extends 'base.html' %} {% block body %} <div> rest: {{ restaurant.name }} </div> {% endblock %}
Java
import random # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): _largesize = 300 def __init__(self, head): self.head = head self.lsize = 0 while head.next: h...
Java
package db import ( "io/ioutil" "os" . "fmt" "strings" . "github.com/yak-labs/chirp-lang" "github.com/yak-labs/smilax-web/table/levi" ) /* table get Site Table Row -> []Value table set Site Table Row []Value table match Site Table RowPattern ValuePattern -> []{row value} */ var Lev = levi.New("leveldb.dat")...
Java
package com.github.wovnio.wovnjava; import java.util.HashMap; import javax.servlet.FilterConfig; import javax.servlet.http.HttpServletRequest; import org.easymock.EasyMock; import java.net.URL; import java.net.MalformedURLException; import junit.framework.TestCase; public class HeadersTest extends TestCase { p...
Java
package eu.cyfronoid.core.configuration.evaluator; import java.util.ArrayDeque; public class Stack extends ArrayDeque<Double> { private static final long serialVersionUID = 1L; @Override public void push(Double v) { super.push(v); } @Override public Double pop() { ...
Java
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest import os from misura.canon import option from misura.canon.option import get_typed_cols, get_insert_cmd, base_col_def, print_tree import sqlite3 from misura.canon.tests import testdir db = testdir + 'storage/tmpdb' c1 = testdir + 'storage/Conf.csv' def go(t)...
Java
/* Taken from the popular Visual Studio Vibrant Ink Schema */ .cm-s-vibrant-ink.CodeMirror { background: black; color: white; } .cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; } .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } .cm-s-vibrant-ink .Cod...
Java
// * ———————————————————————————————————————————————————————— * // // * cli upload // * uploads image by providing a link by running: // * enduro upload http://www.imgur.com/asd.png // * ———————————————————————————————————————————————————————— * // var cli_upload = function () {} // vendor dependencies var Promise = ...
Java
import React from "react" import Img from "gatsby-image" import { StaticQuery, graphql } from "gatsby" import html5 from "../images/html5.svg" import js from "../images/javascript.svg" import jQuery from "../images/jquery.svg" import php from "../images/php.svg" import python from "../images/python.svg" import css3 fro...
Java
var debug = require('debug')('harmonyhubjs:client:login:hub') var Client = require('node-xmpp-client') var Q = require('q') var util = require('../util') /** PrivateFunction: getIdentity * Logs in to a Harmony hub as a guest and uses the userAuthToken from logitech's * web service to retrieve an identity token. * ...
Java
from players.player import player from auxiliar.aux_plot import * import random from collections import deque import sys sys.path.append('..') import tensorblock as tb import numpy as np import tensorflow as tf # PLAYER REINFORCE RNN class player_reinforce_rnn_2(player): # __INIT__ def __init__(self): ...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fundamental-arithmetics: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../b...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>huffman: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
Java
<html> <head> <title>User agent detail - Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </hea...
Java
<!DOCTYPE html> <html> <head> <title>MyFonts Webfonts Demo for iOS devices</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type="text/css" media="all"> h2 { font-weight:normal; } @font-face { font-family:"ProximaNova-Bold"; src:url("2FE569_0.svg#ProximaNova-Bold") fo...
Java
Namespace Media ''' <summary></summary> ''' <autogenerated>Generated from a T4 template. Modifications will be lost, if applicable use a partial class instead.</autogenerated> ''' <generator-date>17/02/2014 16:03:03</generator-date> ''' <generator-functions>1</generator-functions> ''' <generator-source>Deimos\_Me...
Java
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
Java
module.exports = require('regenerate')(0x261D, 0x26F9, 0x1F385, 0x1F3C7, 0x1F46E, 0x1F47C, 0x1F4AA, 0x1F57A, 0x1F590, 0x1F6A3, 0x1F6C0, 0x1F6CC, 0x1F926).addRange(0x270A, 0x270D).addRange(0x1F3C2, 0x1F3C4).addRange(0x1F3CA, 0x1F3CC).addRange(0x1F442, 0x1F443).addRange(0x1F446, 0x1F450).addRange(0x1F466, 0x1F469).addRan...
Java
# VivaTalk Oh god it's time. run this to push to GH pages: rm output/images; cp -r images output; ghp-import -n output -p; rm -r output/images; ln -s ../images output/images
Java
module SupportEngine class SupportType < ActiveRecord::Base attr_accessible :name, :email has_many :tickets, inverse_of: :support_type # TODO: Detect background job def notify!(ticket) SupportEngine::TicketMailer.notify(self, ticket).deliver end end end
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>Story-Ly</title> <!-- Bootstrap core CSS --> <link href="ven...
Java
from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id_seq'), primary_key=True) analysis_id = Column(String(500)) experiment_id = Column(Str...
Java
require 'faraday' # @private module Faraday module Disqussion # @private class RaiseHttp4xx < ::Faraday::Response::Middleware def on_complete(env) case env[:status].to_i when 400 raise ::Disqussion::BadRequest.new(error_message(env), env[:response_headers]) when 401 ...
Java
#![alt text](http://farkhor.github.io/CuSha/images/CuSha-logo-small.png "CuSha") CuSha is a CUDA-based vertex-centric graph processing framework that uses G-Shards and Concatenated Windows (CW) representations to store graphs inside the GPU global memory. G-Shards and CW consume more space compared to Compressed Spars...
Java
package jp.co.future.uroborosql.parameter.mapper; import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.Matchers.*; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.math.BigDecimal; import java.sql.Connection; import java.sql.Timestamp; import java.text.ParseException; imp...
Java
<?php namespace Ejimba\Pesapal\OAuth; class OAuthRequest { private $parameters; private $http_method; private $http_url; // for debug purposes public $base_string; public static $version = '1.0'; public static $POST_INPUT = 'php://input'; function __construct($http_method, $http_url, $parameters=NULL) { @...
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]) /******/ return installedModu...
Java
#!/bin/sh # Capture the current version. VERSION=`cat ./VERSION` # Currently using YUI Compressor for minification. YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar # To use the YUI Compressor, Java is required (http://java.com). JAVA=`which java` if [ "$JAVA" == "" ]; then echo "Not found: java" ; exi...
Java
<template name="home"> <div id="ww"> <div class="container"> <div class="row"> <div class="col-lg-8 col-md-offset-2 centered"> {{> me}} </div><!-- /col-lg-8 --> </div><!-- /row --> </div> <!-- /container --> </div><!-- /ww --> {{> work}} </template>
Java
/** * Scale Interpolation Function. * * @param {number} a start scale * @param {number} b end scale * @param {number} v progress * @returns {string} the interpolated scale */ export default function scale(a, b, v) { // eslint-disable-next-line no-bitwise return `scale(${((a + (b - a) * v) * 1000 >> 0) / 1000...
Java
/* * jQuery ZenPen url/link action * * Copyright (c) 2013 Deux Huit Huit (http://www.deuxhuithuit.com/) * Licensed under the MIT (http://deuxhuithuit.mit-license.org) * Based on the work of Tim Holman (https://github.com/tholman/zenpen) * Licensed under the Apache License (https://github.com/tholman/zenpen/b...
Java
-- aka combobox in java/win32 -- also menubar : multiple dropdown
Java
const mockMark = jest.fn(); const mockUnmark = jest.fn(); jest.mock('mark.js', () => () => ({ mark: mockMark, unmark: mockUnmark, })); import { MarkerService } from '../MarkerService'; describe('Marker service', () => { let marker: MarkerService; const element = document.createElement('span'); beforeEach(...
Java
# Copyright (c) 2010-2011 ProgressBound, Inc. # # 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, modify, merge, pu...
Java