Skip to content

Instantly share code, notes, and snippets.

View rinx's full-sized avatar
🍵
Drinking sencha all the time

Rintaro Okamura rinx

🍵
Drinking sencha all the time
View GitHub Profile
@rinx
rinx / helmify-kustomize
Created June 3, 2020 02:45 — forked from mumoshu/helmify-kustomize
Run `helmify-kustomize build $chart $env` in order to generate a local helm chart at `$chart/`, from kustomize overlay at `${chart}-kustomize/overlays/$env`
#!/usr/bin/env bash
cmd=$1
chart=$2
env=$3
dir=${chart}-kustomize
chart=${chart/.\//}
build() {
@rinx
rinx / compress_tar_gzip.go
Created May 27, 2020 06:52 — forked from mimoo/compress_tar_gzip.go
How to compress a folder in Golang using tar and gzip (works with nested folders)
package main
import (
"archive/tar"
"bytes"
"compress/gzip"
"fmt"
"io"
"os"
"path/filepath"
@rinx
rinx / core.clj
Created October 27, 2019 08:59 — forked from taylorwood/core.clj
GraalVM polyglot interop between Clojure and JavaScript https://blog.taylorwood.io/2018/11/26/graal-polyglot.html
(ns polydact.core
(:import (clojure.lang IFn)
(org.graalvm.polyglot Context Value)
(org.graalvm.polyglot.proxy ProxyArray ProxyExecutable ProxyObject)))
(set! *warn-on-reflection* true)
(comment
(do
(def context
@rinx
rinx / github.css
Last active August 29, 2015 14:07 — forked from theconektd/github.css
Github-like css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
width: 800px;
margin: 0 auto;
padding: 30px; }
@rinx
rinx / 0_reuse_code.js
Created May 16, 2014 16:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rinx
rinx / gist:8928940
Last active August 31, 2016 16:32
黒い歴史を消して全部AA
for(var i=0; i< jq$(".column_odd_120").length; i++) jq$(".column_odd_120").attr("class","column_odd")
for(var i=0; i< jq$(".column_odd").length; i++) jq$(".column_odd > td:eq("+(5+i*8) +")").text("AA")