Skip to content

Instantly share code, notes, and snippets.

View taketin's full-sized avatar
🍺
cheers

H.Takeshita taketin

🍺
cheers
  • Fukuoka, Japan.
View GitHub Profile
@teppeis
teppeis / tenkaichi-git.md
Last active April 29, 2023 14:58
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@mochiz
mochiz / gist:4736183
Last active April 16, 2023 03:56
rbenvとruby-buildでRuby環境を最新に保つ

rbenvとruby-buildでRuby環境を最新に保つ

更新日:2014/11/19

rbenv, ruby-buildを更新

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
// ==UserScript==
// @name github-build-badge
// @author linyows
// @namespace http://linyows.com/
// @description "Expand build status badge"
// @include https://github.com/*
// ==/UserScript==
(function() {
var match_witch_badge = /<a href="(http:\/\/ci[0-9]{0,3}\..*\.[a-z]{2,5}\/job\/.*)"><img src=".*" alt="Build Status" data-canonical-src=".*" style=".*"><\/a>/g;

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。

Composer

@tarunon
tarunon / print.swift
Created June 10, 2014 11:27
Print Classes and Methods
func printClasses() {
var count: CUnsignedInt = 0
var clist = objc_copyClassList(&count)
for var i: CUnsignedInt = 0; i < count; i++ {
let c : AnyClass? = clist.memory
println(" #Class \(class_getName(c))")
printMethods(c)
clist = clist.succ()
}
}
@implementation NSObject (forSwift)
- (id)__performSelector:(SEL)aSelector
{
Method m = class_getInstanceMethod(self.class, aSelector);
const char *types = method_copyReturnType(m);
if (strcmp("v", types)) {
return [self performSelector:aSelector];
} else {
@staltz
staltz / introrx.md
Last active August 1, 2024 08:51
The introduction to Reactive Programming you've been missing
@jspahrsummers
jspahrsummers / GHRunLoopWatchdog.h
Created January 28, 2015 20:50
A class for logging excessive blocking on the main thread
/// Observes a run loop to detect any stalling or blocking that occurs.
///
/// This class is thread-safe.
@interface GHRunLoopWatchdog : NSObject
/// Initializes the receiver to watch the specified run loop, using a default
/// stalling threshold.
- (id)initWithRunLoop:(CFRunLoopRef)runLoop;
/// Initializes the receiver to detect when the specified run loop blocks for
@groovelab
groovelab / 0 PerfectLib.md
Last active April 21, 2016 11:18
UbuntuにSwiftとPerfectLibをインストールする

AWS

EC2インスタンスを作成

AMI

ubuntu-wily-daily-amd64-server-20151209 (Ubuntu 15.10)

セキュリティグループを設定

インバウンド

SSH, HTTP を許可

サブドメインを設定