Skip to content

Instantly share code, notes, and snippets.

View fd00's full-sized avatar
💤
Always sleepy

Daisuke Fujimura (fd0) fd00

💤
Always sleepy
View GitHub Profile
@myobie
myobie / mountain-lion-brew-setup.markdown
Created February 18, 2012 20:14
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

#!/bin/sh
curl -s http://www22.atwiki.jp/madoka-magica/pages/56.html|grep '「'|head -n 306|tail -n 9|sed 's:暁美ほむら:エンジニア:g'|sed 's:ほむら:エンジニア:g'|sed 's:彼女:エンジニア:g'|sed 's:まどか:自分たち:g'|sed 's:時間軸:リファクタ:g'|sed 's:ワルプルギス:そ○○○ん:g'
@yuroyoro
yuroyoro / AwesomeReverseEngineeringCode.java
Created August 16, 2012 10:41
図2●COBOLプログラムから生成した設計書とJavaプログラムの例(富士通の発... : http://itpro.nikkeibp.co.jp/article/NEWS/20120815/416081/?SS=imgview&FD=-2096679071&ST=system
public void 計算処理(String pkt_年月日1, long pkt_通算日1){
//
/*** 前年までの「うるう年」を考慮する。 ***/
クラス_Rv作業領域.setうるう年数((クラス_Rv作業領域.get年() - 1900 - 1)/4);
//
/*** 前年までの通算日付を求める。 ***/
クラス_Rv作業領域.set合計日数((クラス_Rv作業領域.get年() - 1900) * 365 + クラス_Rv作業領域.getうるう年数());
//
/*** 入力された年がうるう年か判定する ***/
クラス_Rv作業領域.set作業用年(GlobalUtil.round(クラス_Rv作業領域.get年()/4,0,RoundingMode.DOWN));
@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@rjz
rjz / twintents.rb
Created November 4, 2012 16:55
Rails Twitter Intent Helper
# Demonstrate helper for rendering twitter intents
#
# Usage:
#
# Twitter::Intents.tweet(
# :text => 'Hello, world!',
# :via => 'rjzaworski',
# :url => 'https://gist.github.com/gists/4012584'
# )
#
@Lordnibbler
Lordnibbler / pull-request-template.md
Last active May 18, 2025 19:58
Sample Pull Request Template

Status

READY/IN DEVELOPMENT/HOLD

Migrations

YES | NO

Description

A few sentences describing the overall goals of the pull request's commits.

Related PRs

newgame! Special Information

Settings

Eagle Jump Inc. HQ

Somewhere in Suginami, Tokyo

@kotakanbe
kotakanbe / mohikan_slack_channels.md
Last active December 28, 2025 18:24
モヒカンslack( https://mohikan.slack.com )のチャネルリスト
@voluntas
voluntas / dropbox_api_v2.rst
Last active December 14, 2021 06:38
Dropbox API v2 仕様まとめ
@Rich-Harris
Rich-Harris / please-include-a-repro.md
Last active April 5, 2025 14:54
Please include a repro

Please include a repro

You probably arrived here because of a curt message in response to an issue you filed on a repo that I contribute to. Sorry about that (particularly if you filed the issue long ago and have been waiting patiently for a response). Let me explain:

I work on a lot of different open source projects. I really do like building software that makes other people's lives easier, but it's crazy time-consuming. One of the most time-consuming parts is responding to issues. A lot of OSS maintainers will bend over backwards to try and understand your specific problem and diagnose it, to the point of setting up new test projects, fussing around with different Node versions, reading the documentation for build tools that we don't use, debugging problems in third party dependencies that appear to be involved in the problem... and so on. I've personally spent hundreds of hours of my free time doing these sorts of things to try and help people out, because I want to be a responsible maintainer and I