This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys, getopt | |
import os, yaml | |
import cgi | |
import urllib | |
import webbrowser | |
import facebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# EDIT HERE! | |
OUTPUT_DIR = '/tmp/' | |
# --- From: http://docs.python.org/library/csv.html | |
# --- BEGIN | |
import csv, codecs, cStringIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# --- From: http://docs.python.org/library/csv.html | |
# --- BEGIN | |
import csv, codecs, cStringIO | |
class UTF8Recoder: | |
""" | |
Iterator that reads an encoded stream and reencodes the input to UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb | |
index 856a34a..20654fd 100644 | |
--- a/Library/Formula/emacs.rb | |
+++ b/Library/Formula/emacs.rb | |
@@ -28,6 +28,7 @@ class Emacs < Formula | |
def patches | |
p = [] | |
+ p0 = [] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Step 1. Install proctools to use "pgrep" command. | |
# | |
# Step 2. Configure your .ssh/config to include: | |
# | |
# Host proxy-host | |
# HostName proxy-host.example.com | |
# User a12345 | |
# DynamicForward localhost:1080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import csv | |
from icalendar import Calendar, Event | |
from datetime import datetime | |
ical = Calendar() | |
ical.add('version', '2.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Eject and Sleep | |
-- ejectableなディスクをアンマウントしてスリープ | |
-- アンマウント状態で実行するとマウント | |
set diskNames to {"HD-PATU3", "Time Machine"} | |
tell application "Finder" | |
set disksToEject to {} | |
repeat with diskName in diskNames | |
if disk diskName exists then | |
set aDisk to (disk diskName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class ZooKeeperLib < Requirement | |
def initialize | |
@zk = Formula.factory('zookeeper') | |
end | |
def fatal? | |
true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/FiscalYearlyArchives/fiscal_yearly_archives.pl b/FiscalYearlyArchives/fiscal_yearly_archives.pl | |
index 4c57e36..fedac03 100644 | |
--- a/FiscalYearlyArchives/fiscal_yearly_archives.pl | |
+++ b/FiscalYearlyArchives/fiscal_yearly_archives.pl | |
@@ -57,7 +57,7 @@ sub archive_fiscal_year { | |
my $tag = $ctx->stash('tag'); | |
return $ctx->error(MT->translate("You used an [_1] tag without a date context set up.", "MT$tag")) | |
unless defined $ts; | |
- ts2fiscal($ts); | |
+ ts2fiscal($ts) + 1; |
OlderNewer