色んなSQLをSquerylで書くと? のパクリです。
テーブル名とかカラム名はちょっと弄りました。
SELECT *| import scala.concurrent.Future | |
| object either { | |
| // Scala standard library Either is sometimes used to distinguish between 'failure' and 'success' state. Like these two methods: | |
| def getUser(id: String): Either[String, User] = ??? | |
| def getPreferences(user: User): Either[String, Preferences] = ??? | |
| // The Right side contains the success value by convention, because right is right, right? |
| var casper = require('casper').create(); | |
| casper.cli.drop("cli"); | |
| casper.cli.drop("casper-path"); | |
| if (casper.cli.args.length === 0 && Object.keys(casper.cli.options).length === 0) { | |
| casper.echo('Usage: phantomjs download-java.js <name of file to download>'); | |
| casper.echo('Example: phantomjs download-java.js jdk-7u45-linux-x64.rpm'); | |
| casper.exit(1); | |
| } |
| require 'socket' | |
| require 'net/http' | |
| require 'uri' | |
| class Proxy | |
| PORT = 8888 | |
| def initialize | |
| @server_socket = TCPServer.open(nil, PORT) | |
| @responses = {} |
| #! /usr/bin/env python | |
| # | |
| # coding: utf-8 | |
| """ | |
| Version-bump script for Maven projects. | |
| Reads pom.xml, parses the version, increments it and writes an updated pom to stdout. | |
| Usage: | |
| pom-vbump.py [-i] [-v <new version number>] [path to pom.xml] |
| scala> implicit class WithInMethod(obj: Any) { | |
| | def in(a: {def contains(e: Any): Boolean}): Boolean = a.contains(obj) | |
| | } | |
| warning: there were 1 feature warnings; re-run with -feature for details | |
| defined class WithInMethod | |
| scala> "foo" in List("1", "2") | |
| res3: Boolean = false | |
| scala> "foo" in List("foo", "bar") |
色んなSQLをSquerylで書くと? のパクリです。
テーブル名とかカラム名はちょっと弄りました。
SELECT *| import java.io.File | |
| import language.experimental.macros | |
| import scala.reflect.macros.Context | |
| object Macros { | |
| def LINE: Int = macro lineImpl | |
| def lineImpl(c: Context): c.Expr[Int] = { | |
| import c.universe._ |
| !SLIDE | |
| Play 2.0 の Action と BodyParser について学ぼう | |
| ---------------- | |
| !SLIDE | |
| 自己紹介 | |
| ---------------- | |
| * 望月 慎也 | |
| * @lyrical_logical | |
| * 株式会社レピダム |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| fizz = function f() { | |
| fizz = function () { | |
| fizz = function () { | |
| fizz = f | |
| return "Fizz" | |
| } | |
| } | |
| } | |
| buzz = function f() { |