- update
2014-01-26
- version
0.1
原題: SWIM: Scalable Weakly-consistent Infection-style Process Group Membership Protocol
SELECT系SQLでできることとかActiveRecordでできること | |
# people | |
* name : 名前(文字列) | |
* age : 年齢(整数) | |
| id | name | age | | |
| 1 | John | 18 | | |
| 2 | Ben | 27 | |
(defvar lawlist-month) | |
(defvar lawlist-year nil) | |
(defun lawlist-org-agenda-view-mode-dispatch () | |
"Select the month in agenda view." | |
(interactive) | |
(message "View: [1-9] [o]CT [n]OV [d]EC, j(next), k(prev).") | |
(let* ((a (read-char-exclusive)) | |
(year (or lawlist-year | |
(setq lawlist-year |
#include <algorithm> | |
#include <iostream> | |
#include <map> | |
#include <numeric> | |
#include <set> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
#include <cmath> | |
using namespace std; |
(defun rmarkdown-to-html () | |
"Run knitr::knit2html on the current file" | |
(interactive) | |
(shell-command | |
(format "Rscript -e \"knitr::knit2html('%s')\"" | |
(shell-quote-argument (buffer-file-name))))) |
社会人のための趣味CTFまとめ http://hority-ctf.blogspot.jp/2014/08/ctf.html
# -*- coding: utf-8 -*- | |
from gensim.models import word2vec | |
import MeCab | |
import random | |
model = word2vec.Word2Vec.load("oogiri_gensim.model") | |
tagger = MeCab.Tagger("-Ochasen") | |
def word_and_kind_parse(line): | |
line_word = line.split("\t") | |
if len(line_word) < 2: |
#!/usr/bin/env python | |
""" | |
Requires pychromecast. | |
Install with `pip install pychromecast` | |
usage: cast.py [-h] -d DEVICE -v VIDEO | |
Cast YouTube videos headlessly. |
function gh --description 'Open the webpage for the current github repo/branch' | |
set -l fetch_url (command git remote --verbose show -n origin ^/dev/null | command grep Fetch | cut -c 14- ) | |
#did we get an exit status? | |
if [ $status -gt 0 ] | |
echo 'Not a git repo.' | |
return 1 | |
end | |
if [ -z $fetch_url ] |