Skip to content

Instantly share code, notes, and snippets.

@muuki88
muuki88 / jenkins-sbt.groovy
Created November 2, 2016 17:03
Jenkins 2.0 SBT build pipeline
node {
stage('Git') {
git 'https://github.com/muuki88/activator-play-cluster-sample.git'
}
stage('Build') {
def builds = [:]
builds['scala'] = {
// assumes you have the sbt plugin installed and created an sbt installation named 'sbt-0.13.13'
sh "${tool name: 'sbt-0.13.13', type: 'org.jvnet.hudson.plugins.SbtPluginBuilder$SbtInstallation'}/bin/sbt compile test"
}
@mohayonao
mohayonao / 00.md
Last active July 23, 2018 13:49
CoffeeCollider勉強会用の資料 http://goo.gl/Z2JmZ2

IDE

http://mohayonao.github.io/CoffeeCollider/

  • "Run" でコードを実行
  • "Stop" で停止
  • "Link" でコードをリンク化 (保存)
  • "Compile" コンパイル後のコード(JavaScript)を表示

IDEの機能

  • サンプルコード読み込み
@shigeki
shigeki / large_file.js
Created November 26, 2012 13:47
大容量ファイルのダウンロードを提供するサンプルコード
var fs = require('fs');
var http = require('http');
var util = require('util');
var file = './1G.file';
var stat = fs.statSync(file);
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'octet-stream/binary',
'Content-Length': stat.size
});
var rStream = fs.createReadStream(file);