This file contains 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
sudo chef-solo -c solo.rb -j ./product.json |
This file contains 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
" 突然の死コマンド | |
command! -nargs=1 Totuzen call g:totuzen(<args>) | |
" 突然の死ジェネレート関数 | |
function! g:totuzen(str) | |
" 文字列(バイト数)を取得 | |
let char_num = strlen(a:str) | |
" 実際の文字数を取得 | |
let mchar_num = s:mojisu(a:str) |
This file contains 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
/** try to use Tuple */ | |
object Euler0009 { | |
private val max = 1000 | |
def main(args: Array[String]) { | |
println( | |
triplet(1, 2).filter{ case(a, b, c) => a*a + b*b == c*c} | |
.map{case (a, b, c) => a * b * c} | |
) |
This file contains 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
(ns kuchitama.javafx | |
(:gen-class | |
:extends javafx.application.Application) | |
(:import [javafx.application Application] | |
[javafx.scene Scene Group] | |
[javafx.stage Stage StageBuilder])) | |
(defn -start [this stage] | |
(let [scene (Scene. (Group.)) | |
builder (doto (StageBuilder/create) |
This file contains 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
変態 | |
hentai_advent | |
daiksy | |
dpoject21 | |
backpaper0 | |
kuchitama | |
はがねのつるぎ | |
_funya | |
ponkore | |
もじゃ変 |
This file contains 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
"GitHubリポジトリにあるプラグインを利用場合 | |
NeoBundle 'tpope/vim-fugitive' | |
"GitHub以外のGitリポジトリにあるプラグインを利用する場合 | |
NeoBundle 'git://git.wincent.com/command-t.git' | |
"Git以外のリポジトリにあるプラグインをを利用する場合 | |
NeoBundle 'http://svn.macports.org/repository/macports/contrib/mpvim/' | |
NeoBundle 'https://bitbucket.org/ns9tks/vim-fuzzyfinder' |
This file contains 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
// Original source written by irof. | |
List list = [ | |
[color:'blue', weight:10], | |
[color:'red', weight:30], | |
[color:'blue', weight:50], | |
] | |
// Javaで | |
int weight1 = 0; |
This file contains 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
(apply + | |
(filter #(or (= (mod % 3) 0) (= (mod % 5) 0)) | |
(range 1 1000))) |
This file contains 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
;; kuchitama's solution to Penultimate Element | |
;; https://4clojure.com/problem/20 | |
#(if (= 2 (count %)) | |
(first %) | |
(recur (rest %))) |
This file contains 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
;; 4Clojure #156 Map Defaults | |
(fn [v ks] (zipmap ks (repeat (count ks) v))) |
NewerOlder