code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
package org.sfm.tuples;
public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> {
private final T20 element19;
public Tuple20(T1 element0, T2 element1,... | Java |
# Supported tags and respective `Dockerfile` links
- [`8.3.0-alpha1-apache`, `8.3-rc-apache`, `rc-apache`, `8.3.0-alpha1`, `8.3-rc`, `rc` (*8.3-rc/apache/Dockerfile*)](https://github.com/docker-library/drupal/blob/a5a6b1294bd3a987d6410887ba895e5649dc163c/8.3-rc/apache/Dockerfile)
- [`8.3.0-alpha1-fpm`, `8.3-rc-fpm`, `... | Java |
<?php
$districts = array('Ampara', 'Anuradhapura', 'Badulla', 'Batticaloa', 'Colombo', 'Galle', 'Gampaha', 'Hambantota', 'Jaffna', 'Kaluthara', 'Kandy', 'Kilinochchi', 'Kegalle', 'Mannar', 'Matale', 'Matara', 'Monaragala', 'Mulattivu', 'Nuwaraeliya', 'Polonnaruwa', 'Rathnapura', 'Trincomalee', 'Vavuniya');
?>
<!DOCTY... | Java |
/*
* file: twi.h
* created: 20160807
* author(s): mr-augustine
*
* These are the Two-Wire Interface (TWI) bit mask definitions
* They were copied from the following site:
* http://www.nongnu.org/avr-libc/user-manual/group__util__twi.html
*
* The mnemonics are defined as follows:
* TW_MT_xxx: Master Transmitte... | Java |
/*
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
* Copyright (C) 2016-2021 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, eith... | Java |
//config file for bae
if(sumeru.BAE_VERSION){
sumeru.config.database({
dbname : '',
user: '',//bae 3.0 required
password: ''//bae 3.0 required
});
sumeru.config({
site_url : '' //with tailing slash
});
} | Java |
.preloader-background {
display: flex;
align-items: center;
justify-content: center;
background-color: #eee;
position: fixed;
z-index: 100;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.collapsible header {
background-color: #546e7a !important;
}
| Java |
#include <cassert>
#include <cmath>
#include "gtest/gtest.h"
#include "interlude.hpp"
// defined in the header
// #define MAT_SIZE 5
using std::cout;
using std::endl;
// void matDiagSum(int a[][MAT_SIZE], int rows, int cols){
// }
// 1 2 3 4 5 1 2 3 4 5
// 6 7 8 9 10 6 8 10 12 14
... | Java |
<?php
/**
* @author "Michael Collette" <metrol@metrol.net>
* @package Metrol_Libs
* @version 2.0
* @copyright (c) 2014, Michael Collette
*/
namespace Metrol\HTML\Table;
/**
* Defines an HTML Table Foot Area
*/
class Foot extends Section
{
/**
*/
public function __construct()
{
parent::__construct(... | Java |
clean_zsh_history
=================
Erase tautological history in `.zsh_history`.
# Usage
python ./clean_zsh_history.py [path/to/.zsh_history]
default arguments is `$HOME/.zsh_history`
| Java |
import sys
sys.path.insert(0,'../')
from fast_guided_filter import blur
print("hello")
| Java |
#include "core/bomberman.hpp"
#include "core/menu.hpp"
#include "core/screens.hpp"
#include "core/view.hpp"
#include "core/views/menu.hpp"
MenuView::MenuView(Screen *screen, Menu *menu)
: View(screen)
, menu(menu)
, clock(Timer::get(2))
{
}
MenuView::~MenuView()
{
delete this->menu;
}
void MenuView::... | Java |
///<reference src="js/tempus-dominus"/>
/*global $ */
tempusDominus.jQueryInterface = function (option, argument) {
if (this.length === 1) {
return tempusDominus.jQueryHandleThis(this, option, argument);
}
// "this" is jquery here
return this.each(function () {
tempusDominus.jQueryHandleThis(this, opti... | Java |
web-practice
============
| Java |
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
@Pipe({
name: 'sanitizeHtml',
pure: false
})
export class SanitizerPipe implements PipeTransform {
constructor(private _sanitizer: DomSanitizer) {
}
transform(v: string): SafeH... | Java |
<?php
/*
* This file is part of the Nexylan packages.
*
* (c) Nexylan SAS <contact@nexylan.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nexy\PayboxDirect\Tests\Symfony\Bridge\DependencyInjection;
use Matthias\S... | Java |
.jqCron-selector {
position: relative;
}
.jqCron-cross,
.jqCron-selector-title {
cursor: pointer;
border-radius: 3px;
border: 1px solid #ddd;
margin: 0 0.2em;
padding: 0 0.5em;
}
.jqCron-container.disable .jqCron-cross:hover,
.jqCron-container.disable .jqCron-selector-title:hover,
.jqCron-cross,
.jqCron-selector-... | Java |
# from test_plus.test import TestCase
#
#
# class TestUser(TestCase):
#
# def setUp(self):
# self.user = self.make_user()
#
# def test__str__(self):
# self.assertEqual(
# self.user.__str__(),
# 'testuser' # This is the default username for self.make_user()
# )
#
... | Java |
<?php
class WPML_ST_Track_Strings_Notice {
const NOTICE_ID = 'wpml-st-tracking-all-strings-as-english-notice';
const NOTICE_GROUP = 'wpml-st-strings-tracking';
/**
* @var WPML_Notices
*/
private $admin_notices;
public function __construct( WPML_Notices $admin_notices ) {
$this->admin_notices = $admin_not... | Java |
using System;
using System.Xml.Serialization;
namespace EZOper.NetSiteUtilities.AopApi
{
/// <summary>
/// AlipayEbppPdeductSignValidateResponse.
/// </summary>
public class AlipayEbppPdeductSignValidateResponse : AopResponse
{
}
}
| Java |
#ifndef ACCOUNTDIALOG_H
#define ACCOUNTDIALOG_H
#include <QDialog>
namespace Ui {
class AccountDialog;
}
class AccountDialog : public QDialog
{
Q_OBJECT
public:
explicit AccountDialog(QWidget *parent = 0);
~AccountDialog();
private slots:
// TODO: 三个槽变成一个
void on_azureDefaultRadioButton_clicked... | Java |
import Telescope from 'meteor/nova:lib';
import Posts from "meteor/nova:posts";
import Comments from "meteor/nova:comments";
import Users from 'meteor/nova:users';
serveAPI = function(terms){
var posts = [];
var parameters = Posts.parameters.get(terms);
const postsCursor = Posts.find(parameters.selector, param... | Java |
class ImportResult < ActiveRecord::Base
belongs_to :import
enum status: [ :starting, :running, :finishing, :finished, :stalled, :aborted ]
serialize :found_listing_keys
serialize :removed_listing_keys
serialize :snapshots
def found_count_difference
previous_run = self.import.import_results.where(['st... | Java |
package fr.pizzeria.exception;
public class StockageException extends Exception {
public StockageException() {
super();
}
public StockageException(String message, Throwable cause) {
super(message, cause);
}
public StockageException(String message) {
super(message);
}
public StockageException(Throwable... | Java |
# swio
--
import "github.com/shipwire/swutil/swio"
Package swio provides additional utilities on top of the standard io package.
## Usage
```go
var DummyReader = newDummy(time.Now().Unix())
```
DummyReader is a reader of pseudo-random data. It is meant to be more efficient
than cryptographically random data, but... | Java |
from rest_framework import serializers
from django.contrib.auth.models import User
from dixit.account.models import UserProfile
class UserProfileSerializer(serializers.ModelSerializer):
class Meta:
model = UserProfile
fields = ('name', )
class UserSerializer(serializers.ModelSerializer):
... | Java |
# == Schema Information
#
# Table name: tecnicos
#
# id :integer not null, primary key
# phone_number :string
# health_post_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# name :string
#
class Tecnico < ActiveRecord::Base
in... | Java |
using System;
using System.Collections.Generic;
namespace Paladino.Drawing
{
/// <summary>
/// The thumbnails class handles all thumbnails to different types of content
/// embedded in the core.
/// </summary>
public static class Thumbnails
{
#region Members
private static Dictionary<Guid,... | Java |
using System.Linq;
using UnityEditor;
using UnityEditor.Animations;
using UnityEngine;
namespace Framework.Editor
{
[CustomActionEditor(typeof(ActionAnimParam))]
public class ActionGraphEditorAnimParamNode : ActionGraphEditorNode
{
public ActionAnimParam Node => (ActionAnimParam) ActionNode;
... | Java |
/**
* @author Vexatos
*/
@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package vexatos.backpacks.backpack;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault;
| Java |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" cont... | Java |
//This code is taken from InflightShipSave by Claw, using the CC-BY-NC-SA license.
//See https://github.com/ClawKSP/InflightShipSave
//Actually I found this code from Kerbal_Construction_Time as well. All bundled in this utility class. Thanks guys ;)
using UnityEngine;
namespace FlightEdit.FlightEdit
{
public ... | Java |
import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as Waste } from '../../entities/Waste';
import { Deferred } from '../../util/utils';
import NavLink from '../../components/NavLink';
import Progress from 'react-progress-2';
import { PageHeader, Row, ... | Java |
//
// JMColor.h
// JMChartView
//
// Created by chengjiaming on 15/3/26.
// Copyright (c) 2015年 chengjiaming. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* 主色系
*/
#define JMBlue [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1]
/**
* 背景色
*/
#define JMCloudWhite [UIColor col... | Java |
var basePaths = {
src: 'public/',
dest: 'public.dist/',
bower: 'bower_components/'
};
var paths = {
images: {
src: basePaths.src + 'images/',
dest: basePaths.dest + 'images/min/'
},
scripts: {
src: basePaths.src + 'scripts/',
dest: basePaths.dest + 'scripts/min/'
},
styles: {
src: ba... | Java |
---
title: ajz21
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: z21
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:... | Java |
/*
* Vulkan Example - Implements a separable two-pass fullscreen blur (also known as bloom)
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <... | Java |
package mcjty.deepresonance.jei.smelter;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
public class SmelterRecipeHandler implements mezz.jei.api.recipe.IRecipeHandler<SmelterRecipeWrapper> {
private final String id;
public SmelterRecipeHandler() {
this.id = SmelterReci... | Java |
#### Add WordPress Plugin Ajax Load More Auth File Upload Vulnerability
Application: WordPress Plugin 'Ajax Load More' 2.8.1.1
Homepage: https://wordpress.org/plugins/ajax-load-more/
Source Code: https://downloads.wordpress.org/plugin/ajax-load-more.2.8.0.zip
Active Installs (wordpress.org): 10,000+
Referenc... | Java |
<?php
class Braintree_CreditCardVerification extends Braintree_Result_CreditCardVerification
{
public static function factory($attributes)
{
$instance = new self($attributes);
return $instance;
}
// static methods redirecting to gateway
public static function fetch($qu... | Java |
var g_batchAssessmentEditor = null;
var g_tabAssessments = null;
var g_updatingAttendance = false;
var g_onRefresh = null;
var g_lockedCount = 0;
var g_btnSubmit = null;
var g_sectionAssessmentEditors = null;
var g_sectionAssessmentButtons = null;
function createAssessment(content, to) {
var assessmentJson = {};
a... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="search... | Java |
package edu.purdue.eaps.weatherpipe;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchA... | Java |
---
layout: post
title: Any code of your own that you haven't looked at for six or more months might as well have been written by someone else. (Eagleson's law)
category: week
tags: [c++, python, versioning, javascript, bash, windows, programming, ping-pong, spotify, engineering]
---
## Top Pick
* Spotify En... | Java |
fluency
=======
An HTML, CSS, and Javascript framework for interactive video produced <a href="http://interactivedocs.com" target="_blank">Interactive Docs</a>.
Check out the <a href="http://interactivedocs.com/fluency.html" target="_blank">documentation</a> on our website.
To run locally [npm](https://www.npmjs.org... | Java |
del *.exe
del *.obj
call "%VS140COMNTOOLS%\..\..\VC\bin\vcvars32.bat"
cl /D _CONSOLE /W4 /O2 calc-ram.cpp
| Java |
/* $Id: get_attachments.c,v 1.13 2015/07/20 10:35:53 tm Exp $
*
* PDFlib TET sample application.
*
* PDF text extractor which also searches PDF file attachments.
* The file attachments may be attached to the document or
* to page-level annotations of type FileAttachment. The former construct
* also covers PDF 1.... | Java |
# -*- coding: utf-8 -*-
require 'spec_helper'
describe RailwayCompany do
describe :import do
let(:file_path) do
tempfile = Tempfile.new('railway_companies.csv')
tempfile << <<EOS
company_cd,rr_cd,company_name,company_name_k,company_name_h,company_name_r,company_url,company_type,e_status,e_sort
1,11,J... | Java |
<?php
/**
* PHPSpec
*
* LICENSE
*
* This file is subject to the GNU Lesser General Public License Version 3
* that is bundled with this package in the file LICENSE.
* It is also available through the world-wide-web at this URL:
* http://www.gnu.org/licenses/lgpl-3.0.txt
* If you did not receive a copy of the l... | Java |
package framework.org.json;
/*
Copyright (c) 2002 JSON.org
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, ... | Java |
#include "abstract_serializable.h"
using namespace json;
json::__abstract_serializable__::__abstract_serializable__() {}
std::map<std::string, std::function<json::__abstract_serializable__*()> > json::__abstract_serializable__::dictionary;
| Java |
module CalculableAttrs
VERSION = "0.0.15"
end
| Java |
# -*- coding: utf-8 -*-
import pack_command
import pack_command_python
import timeit
import cProfile
import pstats
import pycallgraph
def format_time(seconds):
v = seconds
if v * 1000 * 1000 * 1000 < 1000:
scale = u'ns'
v = int(round(v*1000*1000*1000))
elif v * 1000 * 1000 < 1000:
... | Java |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SerializationJsonModule.cs" company="Catel development team">
// Copyright (c) 2008 - 2015 Catel development team. All rights reserved.
// </copyright>
// ----------------------... | Java |
var fs = require('fs');
var mysql = require('mysql');
var qs = require('querystring');
var express = require('express');
var config = JSON.parse(fs.readFileSync(__dirname+'/config.json', 'UTF-8'));
// -----------------------------------------------------------------------------
// Keep a persistant connection to the... | Java |
module ElectricSheep
class Config
include Queue
attr_reader :hosts
attr_accessor :encryption_options, :decryption_options, :ssh_options
def initialize
@hosts = Metadata::Hosts.new
end
end
end
| Java |
import SuccessPage from '../index';
import expect from 'expect';
import { shallow } from 'enzyme';
import React from 'react';
describe('<SuccessPage />', () => {
});
| Java |
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'lib/'
},
// map tells the System loader where to look for things
map: {
... | Java |
# SSISCookbook
SSIS cookbook for the hurried developer
Check out [the book](./main.pdf)
| Java |
body { padding-top: 50px; }
.navbar {
margin-bottom:0px;
}
#content {
margin-top: 20px;
}
footer { font-size: .9em;}
* {
margin: 0;
}
html, body {
height: 100%;
}
#body_wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -50px; /* the bottom margin is th... | Java |
<?php
namespace Application\Core;
use \DateTime;
/**
* The LogHandler handles writing and clearing logs
*/
class LogHandler {
public static function clear() {
$files = App::logs()->files();
foreach ($files as $file) { $file->remove(); }
}
public ... | Java |
/**
* Created by Tomas Kulhanek on 1/16/17.
*/
//import {HttpClient} from 'aurelia-http-client';
import {ProjectApi} from "../components/projectapi";
import {Vfstorage} from '../components/vfstorage';
//import {bindable} from 'aurelia-framework';
export class Modulecontrol{
// @bindable classin = "w3-card-4 w3-sa... | Java |
namespace CSReader.Command
{
/// <summary>
/// ヘルプを表示するコマンド
/// </summary>
public class HelpCommand : ICommand
{
public const string COMMAND_NAME = "help";
/// <summary>
/// コマンドを実行する
/// </summary>
/// <returns>ヘルプ文字列</returns>
public s... | Java |
//The MIT License(MIT)
//
//Copyright(c) 2016 universalappfactory
//
//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, co... | Java |
.aquaIvory6,
.hover_aquaIvory6:hover,
.active_aquaIvory6:active {
-webkit-box-shadow: 0 0.63em 0.75em rgba(255, 232, 28, .39),
inset 0 -0.5em 0.9em 0 #ffe282,
inset 0 -0.5em 0em 0.65em rgb(232, 213, 0),
inset 0 0em 0.5em 2em rgb(232, 224, 127);
-moz-box-shadow: 0 0.63em 0.75em r... | Java |
Given /^I am in the "(.*?)" directory$/ do |dir|
@dir = dir
@project = RemoteTerminal::Project.find(@dir)
end
When /^I get the path from my location$/ do
@path = @project.path_from(@dir)
end
Then /^I should see "(.*?)"$/ do |path|
@path.should be == path
end
When /^I get the path to my location$/ do
@path ... | Java |
require "test_helper"
class FHeapTest < ActiveSupport::TestCase
def setup
@heap = FHeap.new
end
def setup_sample_heap
@node_1 = @heap.insert!(1)
@node_2 = @heap.insert!(2)
@node_6 = @heap.insert!(6)
@node_5 = @node_2.add_child!(5)
@node_3 = @node_1.add_child!(3)
@node_4 =... | Java |
using SuperScript.Configuration;
using SuperScript.Emitters;
using SuperScript.Modifiers;
using SuperScript.Modifiers.Converters;
using SuperScript.Modifiers.Post;
using SuperScript.Modifiers.Pre;
using SuperScript.Modifiers.Writers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;... | Java |
using Cofoundry.Core;
using Cofoundry.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Cofoundry.Web.Admin
{
public class CustomEntitiesRouteLibrary : AngularModuleRouteLibrary
{
public const string RoutePrefix = "custom-entities";
private readonly AdminSett... | Java |
/* eslint-disable no-undef,no-unused-expressions */
const request = require('supertest')
const expect = require('chai').expect
const app = require('../../bin/www')
const fixtures = require('../data/fixtures')
describe('/api/mappings', () => {
beforeEach(() => {
this.Sample = require('../../models').Sample
t... | Java |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","es",{title:"Instrucciones de accesibilidad",contents:"Ayuda. Para cerrar presione ESC.",legend:[{name:"General",items:[{name:"Barra de her... | Java |
#include "FunctionCallOperatorNode.h"
#include "compiler/Parser/Parser.h"
#include "compiler/AST/Variables/VariableNode.h"
#include <assert.h>
namespace Three {
FunctionCallOperatorNode* FunctionCallOperatorNode::parse(Parser& parser, ASTNode* receiver, ASTNode* firstArg) {
assert(parser.helper()->peek().... | Java |
---
layout: post
title: "对个人要不要进入互联网行业的一些看法"
categories:
- others
tags:
- others
---
> StartTime: 2016-12-11,ModifyTime:2017-04-02
一个典型的热情进入互联网创业公司,失望退出的例子。 在南京两年半,因为所学专业原因以及其他,多多少少接触过不少创业公司和有些经历。大早上某帅气的单身狗学长发我[一篇文章](http://mp.weixin.qq.com/s?__biz=MzA4MTkxMzU3NQ==&mid=2651008248&idx=1&sn=4a9d81aab9c99affdb38dfaceb... | Java |
{% extends 'base.html' %}
{% block title %}Grow Buildbot{% endblock %}
{% block body %}
<h2>Recent builds</h2>
<ul>
{% for build in builds %}
<li>
<a href="{{ url_for('build', build_id=build.id)}}">build {{ build.id }}</a>:
<strong class="status-{{ build.status }}">{{ build.status }}</st... | Java |
/**
* @license Highcharts JS v9.0.1 (2021-02-16)
* @module highcharts/modules/dependency-wheel
* @requires highcharts
* @requires highcharts/modules/sankey
*
* Dependency wheel module
*
* (c) 2010-2021 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Series/DependencyWhee... | Java |
/*!
* OOUI v0.40.3
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2020 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2020-09-02T15:42:49Z
*/
( function ( OO ) {
'use strict';
/**
* An ActionWidget is a {@link OO.ui.ButtonWidget button wi... | Java |
<?php
namespace Report;
use Illuminate\Support\Collection;
class Datareport
{
protected static $instance = NULL;
protected $id = NULL;
protected $caption = NULL;
protected $icon = NULL;
// protected $rowSourceUrl = NULL; // server side row source url
// protected $columns ... | Java |
require 'simplecov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec/'
end
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'llt/db_handl... | Java |
<?php
namespace App\Support\Http\Routing;
use App\Support\Facades\Request;
use App\Support\Traits\ClassNameTrait;
/**
* Class Router
* @package App\Support\Routing
* @author Fruty <ed.fruty@gmail.com>
*/
class Router
{
use ClassNameTrait;
/**
* Registered routes
*
* @access protected
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Dulcet.Twitter;
using Inscribe.Common;
using Inscribe.Configuration;
using Inscribe.Util;
using Inscribe.Subsystems;
using Inscribe.ViewModels.PartBlocks.MainBlock.TimelineChild;
using Livet;
... | Java |
'use strict';
/* global angular */
(function() {
var aDashboard = angular.module('aDashboard');
aDashboard.controller('ADashboardController', function( $scope, $rootScope, tradelistFactory, $timeout) {
$scope.subState = $scope.$parent;
$scope.accountValue;
$scope.avgWin;
$scope.avgLoss;
$scope.avgTradeS... | Java |
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
using Microsoft.Dash.Server.Diagnostics;
using Microsoft.Dash.Server.Handlers;
using Microsoft.Dash.Server.Utils;
... | Java |
---
layout: page
title: "时光机"
description: "文章归档"
header-img: "img/orange.jpg"
---
<ul class="listing">
{% for post in site.posts %}
{% capture y %}{{post.date | date:"%Y"}}{% endcapture %}
{% if year != y %}
{% assign year = y %}
<li class="listing-seperator">{{ y }}</li>
{% endif %}
<li class="listi... | Java |
<!doctype html>
<html>
<head></head>
<body>
<!-- Multiple terms, single description -->
<dl>
<dt>Firefox</dt>
<dt>Mozilla Firefox</dt>
<dt>Fx</dt>
<dd>
A free, open source, cross-platform,
graphical web browser developed by the
Mozilla Corporation and hundreds of
volunteers.
</dd>
</dl>
</body... | Java |
'use strict';
// MODULES //
var isArrayLike = require( 'validate.io-array-like' ),
isTypedArrayLike = require( 'validate.io-typed-array-like' ),
deepSet = require( 'utils-deep-set' ).factory,
deepGet = require( 'utils-deep-get' ).factory;
// FUNCTIONS
var POW = require( './number.js' );
// POWER //
/**
* FUN... | Java |
<?php
namespace repositorio\estudianteBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Sede
*
* @ORM\Table(name="sede")
* @ORM\Entity
*/
class Sede
{
/**
* @var string
*
* @ORM\Column(name="codigo_sede", type="string", length=5, nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(s... | Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Sun Nov 04 20:19:08 CET 2012 -->
<TITLE>
OESCompressedPalettedTexture (LWJGL API)
</TITLE>
<META NAME="date" CONTENT="2012-11-04">
... | Java |
/**
* Created by avinashvundyala on 09/07/16.
*/
public class SelectionSort {
public int[] iterativeSelectionSort(int[] arr) {
int temp, smallIdx;
for(int i = 0; i < arr.length; i++) {
smallIdx = i;
for(int j = i; j < arr.length; j++) {
if(arr[smallIdx] > arr[j]) {
smallIdx = ... | Java |
'use strict';
function getReferenceMatrix (matrix, direction) {
return matrix.unflatten().rows.sort((r1, r2) => {
return (r1[1] > r2[1] ? 1 : r1[1] < r2[1] ? -1 : 0) * (direction === 'desc' ? -1 : 1);
});
}
function simpleSort (matrix, direction) {
const referenceMatrix = getReferenceMatrix(matrix, direction);
... | Java |
"""
Initialize Flask app
"""
from flask import Flask
import os
from flask_debugtoolbar import DebugToolbarExtension
from werkzeug.debug import DebuggedApplication
app = Flask('application')
if os.getenv('FLASK_CONF') == 'DEV':
# Development settings
app.config.from_object('application.settings.Development')
... | Java |
/*
* @(#)Function2Arg.cs 3.0.0 2016-05-07
*
* You may use this software under the condition of "Simplified BSD License"
*
* Copyright 2010-2016 MARIUSZ GROMADA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the f... | Java |
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Dapper;
using MicroOrm.Dapper.Repositories.Extensions;
namespace MicroOrm.Dapper.Repositories
{
/// <summary>
/// Base Repository
/// </summary>
public partial class DapperRepository<TEntity>
where TEnt... | Java |
# Bindings Guide
| Folder | Description |
| --- | --- |
| [electron](./electron) | Status of bindings specific to the Electron |
| Java |
############################################################
# joDict ##############################################
############################################################
export joDict, joDictException
struct joDictException <: Exception
msg :: String
end
##################################################... | Java |
import watch from 'gulp-watch';
import browserSync from 'browser-sync';
import path from 'path';
/**
* Gulp task to watch files
* @return {function} Function task
*/
export default function watchFilesTask() {
const config = this.config;
const runSequence = require('run-sequence').use(this.gulp);
r... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>class DropboxApi::Endpoints::Sharing::RevokeSharedLink - RDoc Documentation</title>
<script type="text/javascript">
var rdoc_rel_prefix = "../../../";
var index_rel_prefix = "../../../";
</script>
<script src="../../../js/jquery.js"></script>
<script s... | Java |
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D","388":"u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","2":"UB z F J K C G E B A D u Y I M H N O P Q SB RB"},D:{"1":"0 1 2 3 4 5 6 7 e f L h i j k l m n o p q r s t y v GB g DB VB EB","2":"F J K C G E B A D u Y I M... | Java |
<?php
namespace MiniGameMessageApp\Parser;
use MiniGame\Entity\MiniGameId;
use MiniGame\Entity\PlayerId;
interface ParsingPlayer
{
/**
* @return PlayerId
*/
public function getPlayerId();
/**
* @return MiniGameId
*/
public function getGameId();
}
| Java |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Scott Shawcroft for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.