Skip to content

Instantly share code, notes, and snippets.

View udzura's full-sized avatar

Kondo Uchio udzura

View GitHub Profile
>>
Hi,
We apologize, but the only way we will be able to verify ownership of this account is if you reply to this email with an attached color image of your government-issued photo identification confirming your full name and date of birth. Rest assured that we will permanently delete your ID from our servers once we have used it to verify the authenticity of your account.
Please note that we will not be able to process your request unless you send in proper identification. We apologize for any inconvenience this may cause.
Thanks,
<<
@mizchi
mizchi / async_objcet.cc
Created August 16, 2011 01:23
C++による非同期node用拡張
#include <node.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
using namespace v8;
using namespace node;
class AsyncObject : ObjectWrap {
public:
@yuroyoro
yuroyoro / fizzbuzz.rb
Created August 9, 2012 06:40
Array#cycleでfizzbuzz
([Array.new(2, "").push("Fizz").cycle, Array.new(4, "").push("Buzz").cycle]).tap{|fizz, buzz| (1..100).map{|n| [fizz.next + buzz.next, n.to_s].sort.last}.each(&method(:puts))}
@zaki
zaki / bootstrap.sh
Created January 3, 2013 13:11
Personalized workstation setup based on pivotal workstation
#!/bin/bash
# This shell script was created at solowizard.com
#
# http://github.com/tommyh/solo_wizard
# (c) 2012, Tom Hallett
# This script may be freely distributed under the MIT license.
pushd `pwd`
if rvm --version 2>/dev/null; then
gem install soloist
@morygonzalez
morygonzalez / always_140.rb
Created January 9, 2013 05:08
earthquake.gem で必ず140文字投稿する
# coding: utf-8
# always tweet with 140 characters
# port of https://gist.github.com/453709
#
Earthquake.init do
command :t140 do |m|
max = 140
body = m[1]
len = body.length
@linyows
linyows / generate_hosts.rb
Last active December 17, 2015 13:38
Generate the Hosts Dynamically on AWS
#!/usr/bin/env ruby
# README
#
# Generate the Hosts Dynamically
# ==============================
#
# Usage
# -----
#
@GOROman
GOROman / WWWWWWWWWWWWWW.cs
Created December 15, 2013 03:03
Unity の C# でフィールドに草を生やすサンプルスクリプト
using UnityEngine;
using System.Collections;
// 草原クラス
class WWWWWWWWWWWWWWWWWWWWWWWW : MonoBehaviour {
public void wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww() {
Debug.Log ( "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww");
}
}
Java のコードを
pythonista に持ち込む:まぁ、Java も書けなくはないけどね
rubyist に持ち込む:ツマラン、どこかに細工してやろうか・・・
perler に持ち込む:出てけゴルァァァァァァァァァァァ!!
Python のコードを
Java エンジニアに持ち込む:おぅ、Python のコードか
rubyist に持ち込む:スクリプト言語の僚友だ、バッチリ直してやるぜ
perler に持ち込む:けっ、優等生か
#!/usr/bin/env ruby
require "nokogiri"
require 'pry'
require 'htmlentities'
# opens every file in the given dir tree and converts any html img tags to rails image_tag calls
#
# example usage:
# ruby convert.rb ~/my_rails_app/app/views
#
@kitak
kitak / konami_command.js
Last active August 29, 2015 14:02
コナミコマンドを実装した
var keyCodeCheck = (function () {
var konamiCommandKeyCodes = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65];
var acceptIndex = 0;
var timerId = null;
var resetAcceptIndex = function () {
console.log('最初からやりなおしです');
acceptIndex = 0;
};