Skip to content

Instantly share code, notes, and snippets.

View yancya's full-sized avatar
💭
😂

Shinta Koyanagi yancya

💭
😂
View GitHub Profile
@saiten
saiten / rec_radiko.sh
Last active December 2, 2021 05:57
簡易radiko録音ツール。要swftools
#!/bin/sh
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
cookiefile=./cookie.txt
playerfile=./player.swf
keyfile=./authkey.png
if [ $# -eq 1 ]; then
channel=$1
output=./$1.flv
> perl -E 'say "生" & "死"'
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011
@unak
unak / history.txt
Last active November 29, 2021 01:40
The History of Ruby
* Only the releases of the stable versions are listed in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable."
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion.
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also listed. About the venues of such conferences, general English notations are adopted, in my hope.
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release because of an accident.
* 1.2.1 release was canceled once, and the 2nd release called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular.
* Since 1.0 was released with the date in large quantities, the mi
@hanachin
hanachin / enclose.rb
Created November 27, 2012 03:40
CodeIQの解答 挑戦者求む!【Ruby】Rubyでちょこっとテキスト処理 by フリーランス suginoy suginoy│CodeIQ https://codeiq.jp/ace/suginoy/q77
#!/usr/bin/env ruby
ARGV.instance_eval do
exit if empty?
width = map(&:size).max
border = "+#{'-' * width}+"
puts border
each {|line|
puts format("|%-*s|", width, line), border
@snaga
snaga / gist:4179435
Created November 30, 2012 23:25
check_pg_settings.sql
--
-- check_pg_settings.sql
--
-- Copyright(C) 2012 Uptime Technologies, LLC. All rights reserved.
--
SELECT name,
setting,
CASE WHEN setting::integer = 4096 THEN 'WARNING: default value (4096=32MB) is too small.'
WHEN setting::integer < 65536 THEN 'WARNING: too small. (<65536=512MB)'
ELSE 'OK.'
@matsumotory
matsumotory / gist:4350595
Last active December 10, 2015 00:19
mymruby.sh
set -e
git clone git://github.com/mruby/mruby.git
cd mruby/mrbgems/g/
git clone git://github.com/mattn/mruby-uv.git
git clone git://github.com/mattn/mruby-http.git
git clone git://github.com/mattn/mruby-json.git
git clone git://github.com/matsumoto-r/mruby-redis.git
git clone git://github.com/matsumoto-r/mruby-simplehttp.git
@KitaitiMakoto
KitaitiMakoto / file0.rb
Created December 21, 2012 15:19
ActiveRecordでINNER JOINするとsaveできなくなる(解決策あり) ref: http://qiita.com/items/9c406c6a5157cdf7c651
require 'logger'
require 'active_record'
# テーブル定義
class CreateShelves < ActiveRecord::Migration
def change
create_table :shelves
end
end
@Shinpeim
Shinpeim / 000.md
Last active January 22, 2022 07:31
プロセスとかスレッドとかプロセス間通信とかについて書く場所

重要

サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。

https://github.com/Shinpeim/process-book

URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。

この文書の目的

@isdyy
isdyy / google-bigquery-json.md
Last active April 7, 2024 18:31
Google BigQuery の JSON投入を軽く試す

コマンドラインツールのインストール

$ easy_install bigquery
$ bq init

ロード(テーブル作成・データ投入; project と dataset までは作成済みという前提)

$ bq load --source_format=NEWLINE_DELIMITED_JSON mydataset.nested01 nested01.data.json nested01.fields.json
Waiting on job_d7ebcad03b8247fc8b6f8313f0689a28 ... (26s) Current status: DONE

(ruby-core:18872の翻訳)

Title: [RIP] Guy Decoux.

こんにちわ。

2008年7月のはじめにGuy Decouxが亡くなりました。 彼の死をみなさんに伝えるのは悲しいことです。53歳でした。