Skip to content

Instantly share code, notes, and snippets.

Issei Naruta mirakui

Block or report user

Report or block mirakui

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tatsuru
tatsuru / parse.rb
Last active Feb 1, 2016
ec2 RI parser
View parse.rb
#!/usr/bin/env ruby
require 'json'
def parse(uri)
JSON.parse `curl -s #{uri}`.gsub("/*\n * This file is intended for use only on aws.amazon.com. We do not guarantee its availability or accuracy.\n *\n * Copyright 2014 Amazon.com, Inc. or its affiliates. All rights reserved.\n */\ncallback({",'{').gsub("\);", '').gsub(/([a-zA-Z]+):/, '"\1":')
end
puts %w(
region
@JunichiIto
JunichiIto / alias_matchers.md
Last active Oct 17, 2019
List of alias matchers in RSpec 3
View alias_matchers.md

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
View kawasaki.txt
Java のコードを
pythonista に持ち込む:まぁ、Java も書けなくはないけどね
rubyist に持ち込む:ツマラン、どこかに細工してやろうか・・・
perler に持ち込む:出てけゴルァァァァァァァァァァァ!!
Python のコードを
Java エンジニアに持ち込む:おぅ、Python のコードか
rubyist に持ち込む:スクリプト言語の僚友だ、バッチリ直してやるぜ
perler に持ち込む:けっ、優等生か
@hitode909
hitode909 / lgtm
Created Oct 22, 2013
ランダムなLGTMをクリップボードにコピーするやつ
View lgtm
#! /usr/bin/env ruby
# Copy random LGTM to clipboard
require 'open-uri'
require 'nokogiri'
require 'shellwords'
doc = Nokogiri open('http://www.lgtm.in/g')
View aerobike_break.md

概要

  • エアロバイクが壊れたので、対応を検討した。

  • 保障期間の1年以内だったが、修理に時間が掛かるので、新しいのに買い換えた。

  • 壊れたのは、粗大ゴミとして出す申し込みをした。

  • エアロバイク

    • 壊れたやつ: アルインコAFB4010
    • 新しいやつ: 上記と同じの
View tumblr_photo_backuper.rb
#!/usr/bin/env ruby
Dir.chdir(File.dirname(__FILE__))
require 'digest/sha2'
require 'uri'
require 'open-uri'
require 'json'
API_KEY = 'api_key'
TUMBLELOG = 'scrap.sorah.jp'
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active Oct 18, 2019
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@matope
matope / Cassandra - A Decentralized Structured Storage System.markdown
Created Jul 23, 2012
Cassandra - A Decentralized Structured Storage System[和訳]
View Cassandra - A Decentralized Structured Storage System.markdown
View gist:2500991
# -*- coding:utf-8 -*-
class String
def kaibun
self + self[0..-2].reverse
end
end
View markdown2inao.pl
#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Text::Markdown 'markdown';
use HTML::TreeBuilder;
use List::Util 'max';
use Encode;
You can’t perform that action at this time.