code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | Java |
#!/usr/bin/perl -w
use strict;
use Getopt::Long;
use FindBin qw($Bin $Script);
use File::Basename qw(basename dirname);
use Data::Dumper;
use lib "/home/zhoujj/my_lib/pm";
use bioinfo;
&usage if @ARGV<1;
#open IN,"" ||die "Can't open the file:$\n";
#open OUT,"" ||die "Can't open the file:$\n";
sub usage {
m... | Java |
<table>
<thead>
<tr>
<th>Nombre</th>
<th>RUT</th>
<th>Sexo</th>
<th>Dirección</th>
<th>Ciudad/Comuna</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
| Java |
\begin{tikzpicture}
\begin{axis}[
width=9cm,height=6cm,
ymin=0,
ytick align=outside,
axis x line*=bottom,axis y line*=left,
tick label style={
/pgf/number format/assume math mode=true,
/pgf/number format/1000 sep={}
},
ylabel={\# citations},
% enlargelimits=0.15,
ybar... | Java |
.podcast-channel-header{width:100%;clear:both;display:inline-block;border-bottom:3px solid #000}.podcast-channel-image{width:25%;float:left;display:inline-block;border:1px solid #000}.channel-meta{width:74%;float:left;display:inline-block}.channel-meta h1{text-align:center;margin:0}.channel-meta h2{text-align:center}.c... | Java |
#!/usr/bin/env node
(function () {
var DirectoryLayout = require('../lib/index.js'),
program = require('commander'),
options;
program
.version('1.0.2')
.usage('[options] <path, ...>')
.option('-g, --generate <path> <output-directory-layout-file-path>', 'Generate directo... | Java |
---
layout: post
title: "Seek for Sole External Sponsor"
date: 2017-08-08 18:00:00
isStaticPost: false
---
We are seeking for one more sponsor except ShanghaiTech University to cover the expenses of awarding excellent presenters. Note that you cannot title the event, you can only show here at the website and in the... | Java |
var class_snowflake_1_1_game_1_1_game_database =
[
[ "GameDatabase", "class_snowflake_1_1_game_1_1_game_database.html#a2f09c1f7fe18beaf8be1447e541f4d68", null ],
[ "AddGame", "class_snowflake_1_1_game_1_1_game_database.html#a859513bbac24328df5d3fe2e47dbc183", null ],
[ "GetAllGames", "class_snowflake_1_1_ga... | Java |
---
layout: api_index
title: api
breadcrumbs: true
---
{% include api_listing.html %} | Java |
package org.winterblade.minecraft.harmony.api.questing;
import org.winterblade.minecraft.scripting.api.IScriptObjectDeserializer;
import org.winterblade.minecraft.scripting.api.ScriptObjectDeserializer;
/**
* Created by Matt on 5/29/2016.
*/
public enum QuestStatus {
INVALID, ACTIVE, LOCKED, COMPLETE, CLOSED;
... | Java |
package leetcode11_20;
/**Given a linked list, remove the nth node from the end of list and return its head.
For example, Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note: Given n will always be valid. Try to do this in one pass.
*/
... | Java |
package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.Date;
import java.util.Lis... | Java |
import cairo
from gi.repository import Gtk
from gi.repository import Gdk
from pylsner import plugin
class Window(Gtk.Window):
def __init__(self):
super(Window, self).__init__(skip_pager_hint=True,
skip_taskbar_hint=True,
)
... | Java |
<!DOCTYPE html>
<html>
<head>
<title>likeness:Configuration#children~details documentation</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../../index.css" />
<link rel="stylesheet" type="text/css" href="../../../../../../../../highlight.css" />
<script type="text/javascript" src=... | Java |
<?php $t = $a->getThing(); ?>
<div class="linkitem item-flavour-<?php echo $a->getFlavour() ?>" id="link-item-<?php echo $a->getId(); ?>">
<?php if (isset($nopos)): ?>
<span class="itempos"> </span>
<?php else: ?>
<span class="itempos"><?php echo $pos; ?></span>
<?php endif; ?>
<div class="votebt... | Java |
import { Physics as EightBittrPhysics } from "eightbittr";
import { FullScreenPokemon } from "../FullScreenPokemon";
import { Direction } from "./Constants";
import { Character, Grass, Actor } from "./Actors";
/**
* Physics functions to move Actors around.
*/
export class Physics<Game extends FullScreenPokemon> ex... | Java |
import {Model} from '../../models/base/Model';
import {Subject} from 'rxjs/Subject';
import {BaseService} from '../BaseService';
import {ActivatedRoute, Router} from '@angular/router';
import {UserRights, UserService} from '../../services/UserService';
import {ListTableColumn} from './ListTableColumn';
import {Behavior... | Java |
# Given the list values = [] , write code that fills the list with each set of numbers below.
# a.1 2 3 4 5 6 7 8 9 10
list = []
for i in range(11):
list.append(i)
print(list) | Java |
using System;
using System.IO;
using System.ServiceProcess;
using InEngine.Core;
//using Mono.Unix;
//using Mono.Unix.Native;
namespace InEngine
{
class Program
{
public const string ServiceName = "InEngine.NET";
public static ServerHost ServerHost { get; set; }
static void Main(strin... | Java |
// JavaScript Document
$(document).ready(function() {
$('form input[type="file"]').change(function() {
var filename = $(this).val();
$(this).prev('i').text(filename);
});
$('.input-file').click(function() {
$(this).find('input').click();
});
/*
* Previene doble click en boton submit de envio de datos de... | Java |
# 插件
Vuex 的 store 接受 `plugins` 选项,这个选项暴露出每次 mutation 的钩子。Vuex 插件就是一个函数,它接收 store 作为唯一参数:
``` js
const myPlugin = store => {
// 当 store 初始化后调用
store.subscribe((mutation, state) => {
// 每次 mutation 之后调用
// mutation 的格式为 { type, payload }
})
}
```
然后像这样使用:
``` js
const store = new Vuex.Store({
// ...
... | Java |
<?php
namespace App\Jobs;
use App\Jobs\Job;
use App\Models\API\Outpost;
use DB;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Log;
use Pheal\Pheal;
class UpdateOutpostsJob extends Job implements ShouldQueue
{
use InteractsWithQueue, S... | Java |
using System;
using System.Net;
using Jasper.Configuration;
using Jasper.Runtime;
using Jasper.Transports;
using Jasper.Transports.Sending;
using Jasper.Util;
namespace Jasper.Tcp
{
public class TcpEndpoint : Endpoint
{
public TcpEndpoint() : this("localhost", 2000)
{
}
public ... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TITLE</title>
<style type="text/css" media="screen">
body {
font-family: sans-serif;
}
</style>
</head>
<body>
<p>HELLO</p>
<script type="text/javascript">
</script>
</body>
</html>
| Java |
//
// KontaktSDK
// Version: 3.0.4
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
@import Foundation;
#import "KTKNearbyDevice.h"
NS_ASSUME_NONNULL_BEGIN
@protocol KTKDevicesManagerDelegate;
#pragma mark - External Constants
extern NSTimeInterval const KTKDeviceInvalidationAgeNever;
#pragma mark ... | Java |
<div class="ui right aligned grid">
<div class="right aligned column">
<span *ngIf="currentState == 'save as' && endPointForm.valid">
<a mat-mini-fab routerLink="." color='primary' (click)="createEndPoint()"><mat-icon>content_copy</mat-icon></a>
save as
</span>
... | Java |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Palestrantes_model extends CI_Model {
private $id;
private $nome;
private $foto;
public function __construct() {
parent::__construct();
}
public function setId($id) {
$this->id = $id;
}
public function getId() {
return $th... | Java |
Thanks for reading. You can put me down now.
| Java |
<?php
namespace Acast;
/**
* 中间件
* @package Acast
*/
abstract class Middleware {
/**
* 存储中间件回调函数
* @var array
*/
protected static $_middleware = [];
/**
* 注册中间件
*
* @param string $name
* @param callable $callback
*/
static function register(string $name, calla... | Java |
clean "/tmp" do
copy "*.*", to: "/test"
end
| Java |
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
namespace EmptyKeys.UserInterface.Generator.Types
{
/// <summary>
... | Java |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/*
* Copyright (c) 2008 litl, LLC
*
* 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 witho... | Java |
/*
Project Orleans Cloud Service SDK ver. 1.0
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,
inc... | Java |
//
// FastTemplate
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Jeff Panici
// 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 ... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About phreak</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... | Java |
<?php
/**
* Created by PhpStorm.
* User: phpNT
* Date: 24.07.2016
* Time: 21:57
*/
namespace phpnt\cropper\assets;
use yii\web\AssetBundle;
class DistAsset extends AssetBundle
{
public $sourcePath = '@vendor/phpnt/yii2-cropper';
public $css = [
'css/crop.css'
];
public $images = [
... | Java |
本文的目的是为了探索通过genkins来打包不同target(DEBUG,PRE_RELEASE等)
## 在github上创建repo
## 在本地创建工程
```
git remote add origin url_to_your_git_repo
git branch --set-upstream master origin/master #track local master branch to origin/master
git add *
git commit -m 'first commit'
git pull origin master
git push origin master
```
## 蒲公英中创建应用... | Java |
---
layout: post
date: 2015-08-29
title: "Alessandro Angelozzi 101 Sleeveless Chapel Train Sheath/Column"
category: Alessandro Angelozzi
tags: [Alessandro Angelozzi,Alessandro Angelozzi ,Sheath/Column,One shoulder,Chapel Train,Sleeveless]
---
### Alessandro Angelozzi 101
Just **$309.99**
### Sleeveless Chapel Train S... | Java |
require 'vcr'
require 'vcr/rspec'
VCR.config do |c|
c.cassette_library_dir = 'spec/vcr'
c.http_stubbing_library = :webmock
c.default_cassette_options = { :record => :new_episodes }
end
RSpec.configure do |c|
c.extend VCR::RSpec::Macros
end
| Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NonVisitorPatternExample
{
public class Loan
{
public int Owed { get; set; }
public int MonthlyPayment { get; set; }
}
}
| Java |
---
layout: post
published: true
title: Why we switched from AWS Lightsail to EC2 for Gitlab
imagefeature: blog/aws-lightsail-create-gitlab.png
mathjax: false
featured: true
comments: false
description: AWS Lightsail vs AWS EC2
categories:
- aws
tags: ec2 aws lightsail vpc
canonical: https://www.transfon.com/blog/Li... | Java |
// BASE64压缩接口
#ifndef _INCLUDE_BASE64_H
#define _INCLUDE_BASE64_H
#include <stdio.h>
#include <stdlib.h>
#include "sqlite3.h"
// 标准Base64编码表
static char encoding_table[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
... | Java |
Application.class_eval do
get '/' do
if current_user
@sites = ABPlugin::API.sites(
:include => {
:envs => true,
:categories => {
:include => {
:tests => {
:include => {
:variants => {
:methods => :... | Java |
<?php
namespace Wahlemedia\Showroom\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
class add_short_description_to_items_table extends Migration
{
public function up()
{
Schema::table('wahlemedia_showroom_items', function (Blueprint $table... | Java |
#### Integrations
##### Google Cloud SCC
- Updated the Docker image to: *demisto/google-api-py3:1.0.0.27143*.
- Fixed an issue where the ***test-module*** command would fail when using a custom certificate.
| Java |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header" role="heading">
<h1 class="entry-title">
<?php if( !is_single() ) : ?>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
<?php else: ?>
<?php the_title(); ?>
... | Java |
module Days
class App < Sinatra::Base
get "/admin/users", :admin_only => true do
@users = User.all
haml :'admin/users/index', layout: :admin
end
get "/admin/users/new", :admin_only => true do
@user = User.new
haml :'admin/users/form', layout: :admin
end
post "/admin/users... | Java |
"""
Tests for L{monotone}.
"""
from hypothesis import given, strategies as st
import errno
from monotone import get_clock_info, monotonic
from monotone import _api, _bindings
import os
import platform
import pytest
needs_posix = pytest.mark.skipif(
os.name == "posix" and platform.system() == "Darwin",
reas... | Java |
import require from 'require';
function getDescriptor(obj: Record<string, unknown>, path: string) {
let parts = path.split('.');
let value: unknown = obj;
for (let i = 0; i < parts.length - 1; i++) {
let part = parts[i]!;
// NOTE: This isn't entirely safe since we could have a null!
value = (value as... | 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="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/fav... | Java |
<?php
namespace TenUp\Doze\v1_0_0;
use PHPUnit_Framework_TestResult;
use Text_Template;
use WP_Mock;
use WP_Mock\Tools\TestCase as BaseTestCase;
class TestCase extends BaseTestCase {
public function run( PHPUnit_Framework_TestResult $result = null ) {
$this->setPreserveGlobalState( false );
return parent::run( ... | Java |
<?php
namespace Oro\Bundle\CalendarBundle\Form\EventListener;
use Doctrine\Common\Collections\Collection;
use Oro\Bundle\CalendarBundle\Entity\Attendee;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
/**
* Makes sure index... | Java |
package com.lynx.service;
import java.util.Collection;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.lynx.domain.User;
import com.lynx.repository.UserRepository;
import ... | Java |
var _ = require('underscore');
var colors = require('colors');
var sprintf = require('sprintf-js').sprintf;
/**
* used to decode AIS messages.
* Currently decodes types 1,2,3,4,5,9,18,19,21,24,27
* Currently does not decode 6,7,8,10,11,12,13,14,15,16,17,20,22,23,25,26
* Currently does not support the USCG E... | Java |
#!/bin/bash
set -ex
mkdir /chroot
mkdir /chroot/bin
mkdir /chroot/lib
mkdir /chroot/lib64
mkdir /chroot/dev
mkdir /chroot/tmp
mkdir /chroot/var
# # debootstrap
# debootstrap saucy /chroot
# busybox
cp /bin/busybox /chroot/bin/sh
cp /lib64/ld-linux-x86-64.so.2 /chroot/lib64/ld-linux-x86-64.so.2
cp /lib/x86_64-linux-g... | Java |
# Wateruby
Interesting twist of ruby language: YAML contains fragments of ruby, that can be composed. Compiles to ruby. Art of true metaprogramming and code generation.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'wateruby'
```
And then execute:
$ bundle
Or install it yourself as... | Java |
#ifndef V_Phi_Error_Calculator_h
#define V_Phi_Error_Calculator_h
#include "Intensity_Moment_Data.h"
#include "Cell_Data.h"
#include "Fem_Quadrature.h"
#include "Input_Reader.h"
#include <algorithm>
/** @file V_Phi_Error_Calculator.h
* @author pmaginot
* @brief Base class to implement interface f... | Java |
package ui
import (
"image"
"image/color"
"image/draw"
)
// UI represents an instance of the UI
type UI struct {
component
WindowTitle string
Input Input
keyFuncs map[Key]func() error
prevX, prevY int
}
// New creates a new UI instance
func New(width, height int) *UI {
rect := image.Rect(0, 0, w... | Java |
# frozen_string_literal: true
require 'basquiat/adapters/rabbitmq_adapter'
RSpec.describe Basquiat::Adapters::RabbitMq do
subject(:adapter) { Basquiat::Adapters::RabbitMq.new }
let(:base_options) do
{ connection: { hosts: [ENV.fetch('BASQUIAT_RABBITMQ_1_PORT_5672_TCP_ADDR') { 'localhost' }],
... | Java |
/**
* Created by raynald on 8/22/14.
*/
App.Collections.Contacts = Backbone.Collection.extend({
model : App.Models.Contact,
localStorage: new Backbone.LocalStorage('my-contacts')
}); | Java |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.09.02 at 01:00... | Java |
# Multilingual ShapeWorld
### Table of content
- [Dependency Minimal Recursion Semantics (DMRS)](#dependency-minimal-recursion-semantics-dmrs)
- [Linearized DMRS Notation (LDN)](#linearized-dmrs-notation-ldn)
+ [How to go from MRS to DMRS using LDN](#how-to-go-from-mrs-to-dmrs-using-ldn)
- [How to integrate the g... | Java |
package org.scalajs.openui5.sap.m
import org.scalajs.openui5.sap.ui.core.{CSSSize, Wrapping}
import org.scalajs.openui5.util.{Settings, SettingsMap, noSettings}
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSName, ScalaJSDefined}
@ScalaJSDefined
trait TextAreaSettings extends InputBaseSettings
object ... | Java |
using UnityEngine;
using System.Collections;
namespace Com.LuisPedroFonseca.ProCamera2D.TopDownShooter
{
public class EnemyAttack : MonoBehaviour
{
public float RotationSpeed = 2f;
public Pool BulletPool;
public Transform WeaponTip;
public float FireRate = .3f;
public ... | Java |
import * as React from 'react';
import { Ratings, Mode, Size, Layout } from '..';
import * as examples from './examples';
import {
header,
api,
divider,
importExample,
playground,
tab,
code as baseCode,
tabs,
testkit,
title,
} from 'wix-storybook-utils/Sections';
import { allComponents } from '../..... | Java |
import * as path from 'path';
import { EmptyTree } from '@angular-devkit/schematics';
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
describe('Update 6.1.0', () => {
let appTree: UnitTestTree;
const schematicRunner = new SchematicTestRunner('ig-migrate', path.join(__di... | Java |
# Minion_Game
This is a project for a game that I currently work on with a friend. We decided to use github to enable both of us to work on the project simultaneously. Due to the way githubs payment model works, we decided to upload the code into a public repository, while keeping compilation instructions and assets p... | Java |
package cn.jzvd.demo;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapte... | Java |
const assert = require('assert')
| Java |
// @public
import RavenType = require('raven-js');
import {Breadcrumb, CaptureOptions, User} from './interface';
export {Breadcrumb, CaptureOptions, User};
let output = {
enabled: false,
captureException(ex: Error, options?: CaptureOptions) {},
context<T>(fn: () => T): T {
return fn();
},
wrap<TFunc ex... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>SEEPPP v1</title>
</head>
<body onLoad="document.location.href='app.php'"></body>
</html>
| 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 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
typedef SLR_FLAGS __MIDL___MIDL_itf_shobjidl_0212_0001;
END_ATF_NAMESPACE
| Java |
FROM johnnyasantoss/dotnet-mono-docker:dotnet2.0-mono5.2-sdk
WORKDIR /app
COPY ./** /app/
RUN apt-get update && apt-get install -y libgit2-24
RUN ./build.sh -t "pack" -v > dockerbuild.txt 2>&1
| Java |
#region Copyright (c) 2014 Orcomp development team.
// -------------------------------------------------------------------------------------------------------------------
// <copyright file="GraphExplorerViewModel.cs" company="Orcomp development team">
// Copyright (c) 2014 Orcomp development team. All rights reserv... | Java |
require 'spec_helper'
describe Fastball do
it 'has a version number' do
expect(Fastball::VERSION).not_to be nil
end
end
| Java |
namespace IronSharp.IronMQ
{
/// <summary>
/// http://dev.iron.io/mq/reference/clouds/
/// </summary>
public static class IronMqCloudHosts
{
public const string DEFAULT = AWS_US_EAST_HOST;
/// <summary>
/// Default
/// </summary>
public const string AWS_US_E... | Java |
The MIT License (MIT)
Copyright (c) crdx
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, publish, distrib... | Java |
package com.yngvark.communicate_through_named_pipes.input;
import org.slf4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import static org.slf4j.LoggerFactory.getLogger;
public class InputFileReader {
private final Logger logger = getLogger(getClass());
private final BufferedReader buf... | Java |
---
layout: post
title: Syntax Highlighting Post
description: "Demo post displaying the various ways of highlighting code in Markdown."
modified: 2016-06-01T15:27:45-04:00
tags: [sample post, code, highlighting]
published: false
image:
feature: abstract-10.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.... | Java |
'use strict';
var _ = require('lodash'),
jsonFormat = require('json-format'),
grunt = require('grunt');
var util = require('../util/util');
module.exports = {
json: function(data, options, generatedContent, callback){
if(_.isString(options.dest)){
grunt.file.write(options.dest + '/json/' + generat... | Java |
/**
* Dont edit this file!
* This module generates itself from lang.js files!
* Instead edit the language files in /lang/
**/
/*global define*/
define(function () {
"use strict";
var i18n = {};
i18n.de = {
"Visit %s overview" : "Zur %s Übersicht",
"An error occured, please reload." : "Es gab einen unerwar... | Java |
---
layout: page
title: "ACCT 4825: Experimental Seminar Statistics"
comments: true
description: "blanks"
keywords: "ACCT,4825,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl... | Java |
use chrono::{offset::Utc, DateTime};
use rustorm::{pool, DbError, FromDao, Pool, ToColumnNames, ToDao, ToTableName};
/// Run using:
/// ```sh
/// cargo run --example insert_usage_mysql --features "with-mysql"
/// ```
fn main() {
mod for_insert {
use super::*;
#[derive(Debug, PartialEq, ToDao, ToCol... | Java |
// Copyright 2017 The Lynx Authors. All rights reserved.
#ifndef LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_
#define LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_
#include "base/task/task.h"
#include "base/threading/condition.h"
#include "base/threading/message_pump.h"
#include "base/timer/timer.h"
namespace base {
class... | Java |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
mongoose = require('mongoose'),
Person = mongoose.model('Person'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
_ = require('lodash');
/**
* Create a Person
*/
exports.create = fu... | Java |
---
title: "Spreadsheet hijinks"
excerpt: The results from crowd-sourcing a suitable term for a common spreadsheet practice.
tags:
- excel
- munging
- unheadr
- clippy
header:
image: /assets/images/featureExcel.png
---
Earlier in the week Jenny Bryan helped me ask the Twitter community what to call this wid... | Java |
#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
#include <reader.hpp>
#include <writer.hpp>
using namespace std;
using namespace jam;
struct JoinK {
JoinK(vector<vector<char>>&& input, int kIn) : g(input), k(kIn) { n = g.size(); }
void rotate() {
for (auto& v : g) {
v.era... | Java |
"use strict";require("retape")(require("./index")) | Java |
---
title: Scala 入门笔记
author: He Tao
date: 2015-03-28
tag: [Scala]
category: 编程语言
layout: post
---
Scala初学笔记。
Hello World in Scala
---------------------
学习Scala的语法,还是从Hello World开始吧:
```scala
object HelloWorld {
def main(args: Array[String]) {
print("Hello World, Scala!")
}
}
```
<!... | Java |
/**
* Copyright © 2009-2012 A. Matías Quezada
*/
use('sassmine').on(function(sas) {
var Block = Class.extend({
constructor: function(message, code) {
this.base();
this.message = message;
this.code = code;
this.before = [];
this.after = [];
},
execute: function() {
this.code.call(null, sa... | Java |
#include <Core/Platform.h>
#include <Shared/misc.h>
#include <Core/Core.h>
#include "DebugCamera.h"
#include "SceneTools.h"
DebugCamera::DebugCamera(Pimp::World* world) :
world(world)
, isEnabled(false)
, isLookingAt(false)
{
ASSERT(nullptr != world);
camera = new Pimp::Camera(world);
world->GetElements().push_b... | Java |
---
redirect_from: '/webmaster.html'
---
Page to test redirection artefacts
| Java |
#ifndef OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H
#define OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H
//
// OpenTissue Template Library
// - A generic toolbox for physics-based modeling and simulation.
// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
//
// OTTL is li... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About callcoin</source>
<translation>در مورد بیتکویین</translation>
... | Java |
The MIT License (MIT)
Copyright (c) 2017 Santiago Chávez
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,... | Java |
import { Component } from '@angular/core';
import { ContactService } from './contact.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Simple Contacts Application';
constructor(private contactService:Co... | Java |
package org.moe.runtime
class MoeSystem(
private var STDOUT : java.io.PrintStream = Console.out,
private var STDIN : java.io.BufferedReader = Console.in,
private var STDERR : java.io.PrintStream = Console.err
) {
def getSTDIN = STDIN
def getSTDOUT = STDOUT
def getSTDERR = STDERR
def getEnv ... | Java |
<?php
use Phinx\Migration\AbstractMigration;
class CreateCinemaTables extends AbstractMigration
{
public function change()
{
$movies = $this->table("movies", ['id' => true, 'primary_key' => 'id']);
$movies->addColumn('kinopoisk_id', 'integer')
->addColumn('name', 'string')
... | Java |
import { delay } from "../delay"
import { getOneTrustConsent } from "../getOneTrustConsent"
import { oneTrustReady } from "../oneTrustReady"
jest.mock("../delay")
jest.mock("../oneTrustReady")
describe("getOneTrustConsent", () => {
const delayMock = delay as jest.Mock
const oneTrustReadyMock = oneTrustReady as je... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.