Skip to content

Instantly share code, notes, and snippets.

View watiko's full-sized avatar
🎯
Focusing

watiko watiko

🎯
Focusing
View GitHub Profile
@valpackett
valpackett / 1_WTF.md
Created February 3, 2012 18:32
Kindle dictionary template

Kindle dictionary template

Use it with KindleGen

kindlegen dic.opf

@kidd
kidd / emvil.el
Created February 14, 2012 18:31
'perfect' combination of emacs+evil
;;; https://lists.ourproject.org/pipermail/implementations-list/2012-February/001513.html
(add-to-list 'load-path "~/programmingStuff/evil/")
(require 'evil)
;; remove all keybindings from insert-state keymap
(setcdr evil-insert-state-map nil)
;; but [escape] should switch back to normal state
(define-key evil-insert-state-map [escape] 'evil-normal-state)
(define-key evil-insert-state-map (kbd "jk") 'evil-normal-state)
(define-key evil-insert-state-map (kbd "jj") 'insert-jay)
@nlinker
nlinker / SCombinator.scala
Created October 12, 2012 03:44 — forked from folone/SCombinator.scala
Y-Combinator in Scala
/**
* <b>Fixed Point Combinator is:</b>
* Y = λf.(λx.f (x x)) (λx.f (x x))
*
* <b>Proof of correctness:</b>
* Y g = (λf . (λx . f (x x)) (λx . f (x x))) g (by definition of Y)
* = (λx . g (x x)) (λx . g (x x)) (β-reduction of λf: applied main function to g)
* = (λy . g (y y)) (λx . g (x x)) (α-conversion: renamed bound variable)
* = g ((λx . g (x x)) (λx . g (x x))) (β-reduction of λy: applied left function to right function)
* = g (Y g) (by second equality) [1]
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing

This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
@pottava
pottava / prep-container-engine-for-prod.md
Last active August 26, 2020 09:37
本番環境のための GKE 構築 Tips

プロジェクト・ネットワーク・クラスタの構成

プロジェクト

  • GCP のすべてのリソースは プロジェクト の下に作成される
  • プロジェクトごとに請求や IAM の管理が可能
  • 本番やステージングといった複数環境のリソースを分離するためにもプロジェクトで分けよう
@arharp
arharp / dnsmasq OS X.md
Last active May 15, 2023 07:49 — forked from ogrrd/dnsmasq OS X.md
Setup development URLs (e.g. mysite.test) with dnsmasq on Mac OS X

Setup development URLs (e.g. mysite.test) with dnsmasq on Mac OS X

Never touch your local /etc/hosts file in OS X again. Setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@superzazu
superzazu / wsenginebuilder.sh
Created June 27, 2018 14:35
Wineskin Engine Builder v1.0: create Wineskin engines from winehq.org
#!/usr/bin/env bash
# Wineskin Engine Builder v1.0: create Wineskin engines from winehq.org
set -e
if [[ $# -ne 3 ]]; then
echo "usage: wsenginebuilder version branch arch" >&2
echo "example 1: wsenginebuilder 3.11 devel osx64" >&2
echo "example 2: wsenginebuilder 3.0.1 stable osx" >&2
exit 1
@sbuss
sbuss / main.go
Last active August 15, 2019 20:23
Stackdriver logging with request grouping for App Engine Go 1.11
// Sample logging-quickstart writes a log entry to Stackdriver Logging.
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"