Skip to content

Instantly share code, notes, and snippets.

View ymotongpoo's full-sized avatar
📈
observability matters

Yoshi Yamaguchi ymotongpoo

📈
observability matters
View GitHub Profile
@nikuyoshi
nikuyoshi / build-crosscompile-env.sh
Last active November 20, 2022 13:17
Goのクロスコンパイル環境構築のためのシェルスクリプト
#!/bin/sh
# Environment list
# $GOOS $GOARCH
# darwin 386
# darwin amd64
# freebsd 386
# freebsd amd64
# freebsd arm
# linux 386

山口くんちでペプシパーリー!!

はじめに

コンテンツ性のある人間が7人も集まってただ管を巻くだけではもったいないので、技術話で殴り合うさまをオンライン配信したいと考えています。

配信用の安価なカメラを太一が当日買って持っていきます。誰か便利なものを持ってるなら金曜までに太一にメンション下さい。

当日は昼飯を食いながら一日の流れを確認して山口くんちに着くなりペプシを開けつつオンライン配信したいと考えています。

コンテンツについて

@voluntas
voluntas / eval.rst
Last active April 8, 2024 03:13
評価制度の無い評価制度

How to use swift in your terminal

setup

First, install Xcode 6 beta.

And run it.

sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer
@tcnksm
tcnksm / docker_cheat.md
Last active August 5, 2021 03:59 — forked from wsargent/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

@mopemope
mopemope / core.clj
Last active December 21, 2015 18:59
hentai4.me crawler example
(ns hentai.core
(:require
[clojure.core.async :as async :refer :all])
(:use
[hentai.crawler]
[clojure.tools.logging]))
(defn- zip [a b]
(map (fn [x y] (vector x y)) a b))
@campoy
campoy / letitfail.go
Last active January 6, 2024 07:26
This example shows how to have a set of goroutines running concurrently and processing requests. Panics from goroutines are recovered and the worker is restarted. You can download it and run it directly using `go run letitfail.go`
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
@tokoroten
tokoroten / amidakuji.py
Created June 13, 2013 15:07
アミダクジは公平な仕組みなのかの検証。 縦線が10本のアミダクジでは、横線を150本程度ひかないと公平なアミダクジにはなりませんでした。 それ以下の場合、当たりがある場所の真上を選択すると当たり確率が高いです。
#coding:utf-8
import random
def amida_shuffle(line_num, exchange_num):
lines = range(line_num)
for i in xrange(exchange_num):
p = random.randrange(line_num - 1)
lines[p], lines[p+1] = lines[p+1], lines[p]
return lines
@hagino3000
hagino3000 / capture.js
Last active January 21, 2020 22:21
Capture screenshot using phantom.js
var page = new WebPage(),
address, output, size;
if (phantom.args.length != 2) {
console.log('Give me URL and filename');
phantom.exit();
} else {
address = phantom.args[0];
output = phantom.args[1];
page.viewportSize = { width: 1024, height: 768 };
# encoding=utf8
import os
import cuisine
from fabric.api import run, sudo, cd, task, local
from fabtools.vagrant import vagrant