Skip to content

Instantly share code, notes, and snippets.

View Lewuathe's full-sized avatar
🈂️
👍

Kai Sasaki Lewuathe

🈂️
👍
View GitHub Profile
@evantahler
evantahler / gist:1574158
Last active June 3, 2016 22:28
Build Node on Phidget (ARMv4tl + emdebian)
@yyuu
yyuu / Makefile
Created February 8, 2012 04:09 — forked from anonymous/Makefile
openssl private CA management script
OPENSSL = openssl
DAYS = -days 3652
CADAYS = -days 3652
REQ = $(OPENSSL) req
CA = $(OPENSSL) ca
VERIFY = $(OPENSSL) verify
X509 = $(OPENSSL) x509
# must be absolute path
CATOP = $(PWD)/ca
@abrahamjso
abrahamjso / gist:3754708
Created September 20, 2012 08:43
rsaAutentification
<a href="home.php">Regresar</a><br/>
<?php
validar($_POST['user'], $_POST['respuesta'], $_POST['x']);
function validar($usuario, $r, $x)
{
$lista = getUser($usuario);
if($lista)
{
@jbenet
jbenet / simple-git-branching-model.md
Last active June 17, 2024 14:53
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@neubig
neubig / crf.py
Created November 7, 2013 10:59
This is a script to train conditional random fields. It is written to minimize the number of lines of code, with no regard for efficiency.
#!/usr/bin/python
# crf.py (by Graham Neubig)
# This script trains conditional random fields (CRFs)
# stdin: A corpus of WORD_POS WORD_POS WORD_POS sentences
# stdout: Feature vectors for emission and transition properties
from collections import defaultdict
from math import log, exp
import sys
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 18, 2024 11:25
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@gologo13
gologo13 / file0.txt
Last active August 29, 2015 13:57
ヘッダのカスタマイズや独自処理をしたいときの AFNetworking 2.0 の使い方 ref: http://qiita.com/gologo13/items/f36cb7208c15869888ca
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager GET:@"https://hogehoge.api.com/user"
parameters:@{ @"user_id":@"hoge" }
success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"res:%@", responseObject);
}
failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"error:%@", error);
}];
@gakuzzzz
gakuzzzz / 1_.md
Last active August 2, 2023 01:59
Scala の省略ルール早覚え

Scala の省略ルール早覚え

このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。

メソッド定義

def concatAsString(a: Int, b: Int): String = {
  val a_ = a.toString();
  val b_ = b.toString();