I hereby claim:
- I am grauwoelfchen on github.
- I am grauwoelfchen (https://keybase.io/grauwoelfchen) on keybase.
- I have a public key whose fingerprint is 70CC BB7D E229 78EA C0C9 45EC 68D2 A3B0 548E 2A48
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| --- index.js 2016-11-07 03:39:19.000000000 +0900 | |
| +++ extract-license.js 2016-11-07 03:40:03.000000000 +0900 | |
| @@ -20,15 +20,33 @@ | |
| var packagejson = this.readPackageJson(mod); | |
| return packagejson; | |
| }, | |
| + extractLicense: function(packagejson) { | |
| + var license = packagejson.license; | |
| + // add support license like `{type: '...', url: '...'}` | |
| + if (license && license.type) { |
| % equery l -po apache | |
| * Searching for apache ... | |
| [-P-] [ ] www-servers/apache-2.2.31:2 | |
| [IP-] [ ] www-servers/apache-2.4.18:2 | |
| [-P-] [ ] www-servers/apache-2.4.18-r1:2 | |
| % equery g www-servers/apache-2.2.31 | |
| * Searching for apache2.2.31 in www-servers ... | |
| * dependency graph for www-servers/apache-2.2.31 |
| require 'socket' | |
| require 'thread' | |
| socket = TCPSocket.open('127.0.0.1', 1178) | |
| socket.set_encoding('EUC-JP') | |
| # Response | |
| thread = Thread.new do | |
| while line = socket.gets | |
| line.split.each do |l| |
| {-# LANGUAGE EmptyDataDecls #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE QuasiQuotes #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE TypeFamilies #-} |
| import sys | |
| import boto3 | |
| import time | |
| from datetime import datetime | |
| profile_name = 'yasuhiro.asaka' | |
| region_name = 'REGION_NAME' | |
| # logs | |
| log_group_name = 'GROUP_NAME' | |
| log_stream_name_prefix = 'PREFIX' |
| class Book < ActiveRecord::Base | |
| after_commit :flush_cache | |
| def self.cached_find(id) | |
| Rails.cache.fetch([name, id], expires_in: 30.mitues) do | |
| where(:id => id).take! | |
| end | |
| end | |
| private |
| ;; (maximum '(1 2 5 4)) -> 5 | |
| ;; (maximum '()) -> ERROR: maximum of empty list! | |
| (define maximum | |
| (lambda (xs) | |
| (cond | |
| ((null? xs) (error "maximum of empty list!")) | |
| ((null? (cdr xs)) (car xs)) | |
| (else | |
| (let ((x (car xs)) (y (maximum (cdr xs)))) | |
| (if (> x y) x y)))))) |
| {-# OPTIONS -Wall -Werror #-} | |
| -- maximum' [1,2,5,4] -> 5 | |
| -- maximum' [] -> *** Exception: maximum of empty list! | |
| maximum' :: (Ord a) => [a] -> a | |
| maximum' [] = error "maximum of empty list!" | |
| maximum' [x] = x | |
| maximum' (x:xs) = max x (maximum' xs) | |
| -- replicate' 3 'a' -> "aaa" |