Skip to content

Instantly share code, notes, and snippets.

@grimrose
grimrose / build.gradle
Created March 15, 2015 13:20
#yokohamagroovy #30
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.apache.derby:derby:10.11.1.1'
}
}
def loader = GroovyObject.class.classLoader
@grimrose
grimrose / syoboben.md
Last active August 29, 2015 14:15
しょぼちむにデータモデル設計について教えてくださいの会 #syoboben

しょぼちむにデータモデル設計について教えてくださいの会 #syoboben

http://connpass.com/event/10849/

データベース

  • データベーススペシャリスト試験対策?
  • データベースベンダー特化?
  • SQLについて?
@grimrose
grimrose / yokohama_groovy_27.md
Last active August 29, 2015 14:05
#yokohamagroovy #27
@grimrose
grimrose / yokohama_groovy_26.md
Last active August 29, 2015 14:04
#yokohamagroovy #26
@Grab(group = 'com.squareup.retrofit', module = 'retrofit', version = '1.6.1')
import retrofit.RestAdapter
import retrofit.http.GET
import retrofit.http.Query
interface WeatherService {
@GET('/forecast/webservice/json/v1')
Map find(@Query('city') String city)
}
@grimrose
grimrose / yokohama_groovy_24.md
Last active August 29, 2015 14:02
#yokohamagroovy #24
@grimrose
grimrose / demo_server.js
Created April 28, 2014 09:38
Nodyn on web server
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
var vertx = require('vertx');
vertx.createHttpServer().requestHandler(function(req) {
req.response.headers['Content-Type'] = "text/plain";
req.response.statusCode(200).end("Hello World");
@grimrose
grimrose / yokohama_groovy_23.md
Last active August 29, 2015 14:00
#yokohamagroovy #23
apply plugin: 'java'
apply plugin: 'idea'
/*
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.camel:camel-core:2.13.0'
compile 'org.slf4j:slf4j-simple:1.7.6'