case class Person(id: Long, name: String, organizationId: Long)
object Person {
def groupByOrg: Map[Long, Seq[Person]] = ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!SLIDE | |
# 今日のお題 | |
## ActionController | |
!SLIDE | |
* ActionDispatch が dispatch する先 | |
* MVC の まさに C(まさに) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total 0 | |
drwxr-xr-x 7 takafumi staff 238 Sep 30 20:01 Align | |
drwxr-xr-x 8 takafumi staff 272 Sep 30 20:01 Gundo | |
drwxr-xr-x 7 takafumi staff 238 Sep 30 20:01 L9 | |
drwxr-xr-x 8 takafumi staff 272 Sep 30 20:01 TweetVim | |
drwxr-xr-x 7 takafumi staff 238 Sep 30 20:01 autodirmake.vim | |
drwxr-xr-x 6 takafumi staff 204 Sep 30 20:01 cecutil | |
drwxr-xr-x 9 takafumi staff 306 Sep 30 20:02 codic-vim | |
drwxr-xr-x 8 takafumi staff 272 Feb 24 07:15 ctrlp.vim | |
drwxr-xr-x 8 takafumi staff 272 Sep 30 20:02 current-func-info.vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://play.rust-lang.org/?gist=cce473b90dd798d61725d50295026f33&version=stable&backtrace=0 | |
fn main() { | |
let vec = vec![2, 3, 4, 5]; | |
// let res: Vec<Result<i32, String>> = vec.iter() | |
let res: Result<Vec<i32>, String> = vec.iter() | |
.map(|a| if a % 2 == 0 { | |
println!("a:{}", a); | |
Ok(a * 3) | |
} else { | |
Err(format!("Error! {} is odd value!", a)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/un.h> | |
#include <sys/socket.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <signal.h> | |
#include <errno.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<span> <a href="hoge"></a> | |
</span> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="ac-discovery" content="gist.githubusercontent.com https://github.com/totem3/containers/releases/download/0.0.1/test-container.{ext}"> | |
<meta name="ac-discovery-pubkeys" content="gist.githubusercontent.com https://github.com/totem3/containers/releases/download/0.0.1/pubring.gpg"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'celluloid' | |
require 'timeout' | |
Celluloid.task_class = Celluloid::TaskThread | |
class Worker | |
include Celluloid | |
def run(check) | |
puts "run" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
class Host | |
attr_reader *%i(name ip tags reported tn tmax dmax location gmond_started metrics) | |
def initialize(name, ip, tags, reported, tn, tmax, dmax, location, gmond_started, metrics) | |
@name = name | |
@ip = ip | |
@tags = tags | |
@reported = reported | |
@tn = tn |