Skip to content

Instantly share code, notes, and snippets.

@0xced
0xced / Makefile
Created March 23, 2012 15:02
Experiment ->isa vs object_getClass()
OPTIONS = metaclass.m -o metaclass -std=c99 -framework Foundation -arch x86_64 -Os
isa:
clang -DUSE_ISA=1 $(OPTIONS)
./metaclass
object_getClass:
clang -DUSE_ISA=0 $(OPTIONS)
./metaclass
@tosihisa
tosihisa / gcc_warn_query.awk
Created May 3, 2012 12:47
gcc の警告オプションを調べてみた。
#!/usr/bin/gawk -f
#http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html
BEGIN {
gcc_cmd="gcc -Q --help=warnings,^joined,^undocumented";
w_lv[0] = "";
w_lv[1] = "-Wall";
w_lv[2] = "-Wall -Wextra";
for(i = 0;i < 3;i++){
cmdln = sprintf("%s %s",gcc_cmd,w_lv[i]);
@suer
suer / init.rb
Created May 11, 2012 05:14
Redmine Plugin: add link to overall activities page
# Redmine Plugin: Add Link To Overall Activities.
#
# License:
# The MIT License (MIT) Copyright (c) 2012 suer
#
# Permission is hereby granted, free of charge, to
# any person obtaining a copy of this software and
# associated documentation files (the "Software"),
# to deal in the Software without restricti on,
# including without limitation the rights to use,
@choplin
choplin / include_img.rb
Created May 26, 2012 16:52
include image tag for jekyll(Octopress)
# Title: Include Image Tag for Jekyll
# Authors: choplin
# Description: Include <img> tag with src from a specified directory
# Configuration: as below in your _config.yml (images/blog as default)
#
# image_dir: images/blog
#
# Syntax {% include_img [class name(s)] image_file.(jpg|jpeg|png|gif) [width [height]] [title text | "title text" ["alt text"]] %}
#
# Examples:
@justincjahn
justincjahn / gist:3062860
Created July 6, 2012 21:32
Gitlab init.d for RedHat based distributions.
#!/bin/bash
#
# GitLab Runs unicorn and resque for nginx integration.
###
# chkconfig: 35 82 55
# processname: unicorn
# processname: resque
# description: Runs unicorn and resque for nginx integration.
###
@katta
katta / Jenkins_Growl_Notifier.rb
Created July 10, 2012 15:05
Growl notifier for jenkins
#!/usr/bin/ruby
require 'rubygems'
require 'json'
require 'net/http'
require 'uri'
require 'date'
$ciBaseUrl = 'http://ci.motechproject.org' #URL of your jenkins CI
$jobs = ['Ananya-Kilkari','Ananya-Reports','Ananya-Kilkari-Smoke'] # add all the jobs to be monitored in this list
@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

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

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@shunirr
shunirr / README.md
Created August 30, 2012 04:07 — forked from laiso/README
Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

必要なもの

うっかり jenkins.pkg を入れてしまった人はアンインストールする

@fmtonakai
fmtonakai / CustomAlertView.h
Created September 4, 2012 02:20
Custom AlertView with Interface Builder
//
// CustomAlertView.h
// CustomAlert
//
// Created by masaki.fuke on 2012/08/23.
// Copyright (c) 2012年 masaki.fuke. All rights reserved.
//
#import <UIKit/UIKit.h>
@BlackKetchupTea512
BlackKetchupTea512 / sublimetext_default_settings.md
Created September 4, 2012 12:11
Sublime Text 2 のDefault設定ファイルについて

追記

この記事は古いです...。はてなブログの方に完全版を置いてあります。→ http://blue-ham-cake1024.hatenablog.com/entry/2012/09/07/Sublime_Text_2_のDefault設定ファイルを眺める


はてなブログは調子が悪いようなので。

この記事ではDefault設定ファイルにどのような記述がされているか、その記述にどんな意味があるかを一つ一つ見ていきます。実際に設定をカスタマイズしてみたい方は、メニューのPreferencesタブの"Settings - User"からUser設定ファイルを開いてそこでいろいろ試してみましょう。