Skip to content

Instantly share code, notes, and snippets.

View seriwb's full-sized avatar
💪
Product making

seri seriwb

💪
Product making
View GitHub Profile
@rummelonp
rummelonp / percol_zsh.md
Created December 7, 2012 15:57
percol 入れて zsh と組み合わせたら超便利

percol 入れて zsh と組み合わせたら超便利

だったので紹介

percol とは

percol は入力の1行を1候補として,部分一致かつ AND 検索で絞り込みし,選択した候補を出力するコマンドです.端的に言えば Emacs の anything.el のコマンド版です.
@aeg
aeg / ExpandURL.groovy
Created May 4, 2013 16:35
短縮URLをGroovyで展開する
// Case #1
// 短縮URLを展開する
// 短縮URLが存在しない場合には、groovyx.net.http.HttpResponseException をthrowする
import groovyx.net.http.HttpURLClient
assert 'https://gyakubiki-groovy.rhcloud.com/' == expandURL("http://bit.ly/gyakubikigroovy")
public String expandURL(String urlStr) {
HttpURLClient http = new HttpURLClient(followRedirects:false)
@okunishinishi
okunishinishi / setup_npm inside proxy
Created November 27, 2013 01:29
社内でgitやnpmを使うときの設定
git config --global http.proxy http://myproxy:8080
git config --global https.proxy https://myproxy:8080
npm config set proxy http://myproxy:8080
npm config set https-proxy https://myproxy:8080
npm config set registry http://registry.npmjs.org/
@voluntas
voluntas / ansible_trot.rst
Last active February 24, 2016 03:44
Ansible トラノマキ
@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();
@joakimk
joakimk / README.md
Last active January 1, 2022 23:21
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.

@xuwei-k
xuwei-k / scalaz-stream.md
Last active June 24, 2021 01:09
Scalaz-Streamの基本的なクラスや概念まとめ

Scalaz-Streamの基本的なクラスや概念まとめ

  • versionは0.7a

scalaz-streamが依存してるライブラリ内のclass

  • scalaz-streamではなくscalaz-concurrentにあるクラス
  • scalaz-streamは、これと Task にかなり依存してるので、まずはこれらを理解することが重要
@voluntas
voluntas / naze_erlang.rst
Last active October 31, 2023 03:33
なぜ Erlang/OTP を使い続けるのか
@shiro01
shiro01 / athena_query_submit_and_copy_result_file.py
Last active December 17, 2021 04:20
Athenaにクエリを実行しS3に保存されたファイルを別のフォルダにファイル名を変更しつつ移動する。
import boto3
import os
import time
from datetime import datetime
from datetime import timedelta
def lambda_handler(event, context):
query = build_query()
target_db = os.environ['TARGET_DB']