Skip to content

Instantly share code, notes, and snippets.

View ryoakg's full-sized avatar

℟γồ ᾅḳᐃϼ╿ ryoakg

View GitHub Profile
/** @file
A simple, basic, EDK II native, "hello" application to verify that
we can build applications without LibC.
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.
@sunng87
sunng87 / gist:372a0a45a07357569eb6
Last active March 23, 2024 00:57
defprotocol with var-args support
(defmacro defprotocol+ [name & funcs]
(let [vararg-sym (symbol "&")
normalized-func-specs (map #(let [[n a] %]
(if (.contains a vararg-sym)
[(symbol (str n "*"))
(vec (remove (fn [_a]
(= _a vararg-sym)) a))
[n a]]
[n a]))
funcs)
@wnoguchi
wnoguchi / README.md
Last active November 22, 2017 03:51
ぼくのかんがえたさいきょうの .gitignore 。

.gitignore collections

About

ぼくのかんがえたさいきょうの .gitignore 。

References

@YungSang
YungSang / 00-README.md
Last active August 29, 2023 21:03
CoreOS とその関連技術に関するここ半年間の私の活動まとめ

CoreOS とその関連技術に関するここ半年間の私の活動まとめ

はじめに

最近、社内で私が「何者で何をしているのか見えないので可視化して欲しい」という案件が出ているらしいので、ヘコヘコと徒然なるままに書いていきたいと思うのであります。

社内向けというだけでなく社外の人にも発信出来る内容に、との仕様も要求され、社外向けには出来るだけ旬なネタで、かつ、社内向けにはそれを理解する上で必要な関連する技術を個々に触れながら基礎知識が無くても理解出来るように、との追加仕様も提示されております。

で、何をネタにしてどのように書けばいいのか迷った訳ですが、自分が実際にやって来た内容である CoreOS であればそこそこ旬であるし、それをおさらいしつつ、関連技術も Docker、Omaha、systemd、BtrFS、Golang、etcd、Kubernetes 等々多岐にわたるので、それらに関して私見も含めてわかりやすく書ければいいかなぁと、とりあえず書き始めようとしている次第であります。

@john2x
john2x / 00_destructuring.md
Last active November 21, 2025 02:39
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@DmZ
DmZ / pre-commit
Last active July 25, 2023 13:40
Git pre-commit hook to search for Amazon AWS API keys.
#!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
@kurogelee
kurogelee / file1.txt
Created May 24, 2014 00:12
Clojureのvectorに対するlastは遅い ref: http://qiita.com/kurogelee/items/019d3be32ea34bfb22e1
Elapsed time: 0.007123 msecs
Elapsed time: 0.005308 msecs
Elapsed time: 0.003352 msecs
Elapsed time: 191.406869 msecs
Elapsed time: 129.120391 msecs
Elapsed time: 77.368283 msecs
Elapsed time: 243.091859 msecs
Elapsed time: 0.006216 msecs
Elapsed time: 29.659985 msecs
Elapsed time: 0.093308 msecs
@kurogelee
kurogelee / anonymous.clj
Created May 2, 2014 04:59
Clojureの無名関数で%-1は何を表すか? ref: http://qiita.com/kurogelee/items/2807639f35cfdf945cac
(apply #(println %1 %-1 %2 %&) (range 10))
@kurogelee
kurogelee / file0.cljs
Created April 20, 2014 23:03
Clojureでproxyオブジェクトにメタ情報を付与する ref: http://qiita.com/kurogelee/items/ef22826be3577292526f
(def v (proxy [Object] []
(toString [] (str :abc))))
(with-meta v {:A 111})