Skip to content

Instantly share code, notes, and snippets.

View ashphy's full-sized avatar
😃
Happy Coding

Kazuki Hamasaki ashphy

😃
Happy Coding
View GitHub Profile
@ashphy
ashphy / chromium_inspec.rb
Created June 7, 2014 14:29
Git repository inspection script for chromium
#!/usr/bin/env ruby
# Git repository inspection script for chromium
# See to get the code: http://www.chromium.org/developers/how-tos/get-the-code
# Kazuki Hamasaki <ashphy@ashphy.com>
require 'rugged'
REPO = '.'
REVIEW_COMMIT = /Review URL:/i
BOT_COMMITS = [/Updating trunk VERSION/, /Update .DEPS.git/, /Automated Commit/]
REVERT_COMMIT = /Revert r/
@ashphy
ashphy / MailHandler.java
Created October 14, 2013 15:22
Mail Handler for GAE/J using java.util.logging
package com.ashphy.mailhandler;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
import java.util.logging.ErrorManager;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
@ashphy
ashphy / binarycode
Last active December 14, 2015 15:09
Memo: mystery of binary code in Sherlock
4321 432 4 4 4 43 5431
01111 01110 01000 011110 01100 11110
15 14 8 8 8 12 30
ONHHHL
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7