普通に使えるみたいねー
hoge | fuga | hage |
---|---|---|
egg | spam | ham |
foo | bar | baz |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use FindBin; | |
use Text::MicroTemplate::File; | |
my $info = qx{/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I}; | |
my ($ssid) = $info =~ / SSID: (.*)$/m; |
README.html |
(arity (symbol-function 'identity)) ;=> (1 . 1) | |
(arity (symbol-function '+)) ;=> (0 . many) | |
(arity (symbol-function 'substring)) ;=> (2 . 3) | |
(defun foo (a b c &optional d e f)) | |
(arity (symbol-function 'foo)) ;=> (3 . 6) | |
(defun bar (a b c &rest rest)) | |
(arity (symbol-function 'bar)) ;=> (3 . many) |
#!/usr/bin/env ruby | |
require 'optparse' | |
def tag(name, attr = nil, content = nil) | |
unless attr or content | |
return "<#{name}>" | |
end | |
if not attr and content | |
return "<#{name}>#{content}</#{name}>" |
#!/usr/bin/env ruby | |
def suffix(file, suffix) | |
base = File.basename(file, File.extname(file)) | |
ext = File.extname(file) | |
"#{base}#{suffix}#{ext}" | |
end | |
banner = <<EOF | |
usage |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys, traceback, re | |
from fractions import Fraction | |
nil = type('Nil', (), {'__str__': lambda self: '()'})() | |
undef = type('Undef', (), {'__str__': lambda self: '#<undef>'})() | |
f = type('F', (), {'__str__': lambda self: '#f'})() |
;;; anything-mac-itunes.el --- Use iTunes on Mac with anything.el | |
;; Copyright (C) 2010 Hiroshige Umino | |
;; Author: Hiroshige Umino <[email protected]> | |
;; Created: 2010-11-24 | |
;; Version: 0.0.1 | |
;; | |
;; Keywords: anything, mac | |
;; |
(a gist based on the old toolmantim article on setting up remote repos)
To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.
This is somewhat of a follow-up to the previous article setting up a new rails app with git.
Set up the new bare repo on the server:
#import <Foundation/Foundation.h> | |
@interface Account : NSObject | |
{ | |
NSString* uuid; | |
NSString* email; | |
NSString* password; | |
} | |
@property (readonly) NSString* uuid; |