This file contains hidden or 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
find . -name "*.html" -print0 | xargs -0 nkf -w -Lu --overwrite |
This file contains hidden or 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
class LatLngControl extends google.maps.OverlayView | |
constructor: (map) -> | |
@ANCHOR_OFFSET_ = new google.maps.Point 8, 8 | |
@node_ = @createHtmlNode_() | |
map.controls[google.maps.ControlPosition.TOP].push @node_ | |
@setMap map | |
@set 'visible', false | |
draw: -> |
This file contains hidden or 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
cat ~/.zsh_history | awk '{print $1" "$2}' | sort | uniq -c | sort -nr | head -20 |
This file contains hidden or 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 -*- | |
# super 使わない | |
class Base(object): | |
def __init__(self): | |
print('Base') | |
This file contains hidden or 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 -*- | |
# super 使う(Function.prototype.apply みたいな動き) | |
class Base(object): | |
def __init__(self): | |
print('Base') | |
This file contains hidden or 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
--- hgeditor.latest 2012-08-22 23:08:18.007214610 +0900 | |
+++ hgeditor 2012-08-22 23:08:27.607219725 +0900 | |
@@ -12,11 +12,15 @@ | |
emacs) | |
EDITOR="$EDITOR -nw" | |
;; | |
- gvim|vim) | |
- EDITOR="$EDITOR -f -o" | |
- ;; | |
esac |
This file contains hidden or 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/perl -w | |
use strict; | |
use warnings; | |
use File::Temp qw(tempfile); | |
my $fh; | |
my $f; | |
unless ( -t STDIN) { | |
($fh, $f) = tempfile( |
This file contains hidden or 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 | |
from datetime import * | |
def create_tzinfo(name, offset_hours=0, offset_dst=0): | |
my_tzinfo = type(name, (tzinfo, ), {}) | |
my_tzinfo.utcoffset = lambda self, dt: timedelta(hours=offset_hours) | |
my_tzinfo.dst = lambda self, dt: timedelta(offset_dst) | |
my_tzinfo.tzname = lambda self, dt: name | |
return my_tzinfo |
This file contains hidden or 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
svn log /path/to/repo -q | awk '/^r/ { print $3 }' | sort | uniq -c | sort -rn |
This file contains hidden or 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
// vim:ft=objc:ts=2:sts=2:sw=2 | |
@interface MyClass : NSObject | |
@property (nonatomic, readonly, copy) NSString *publicProperty; | |
@property (nonatomic, copy) NSString *protectedProperty; | |
- (void)pubilcMethod; | |
@end |
OlderNewer