Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| git filter-branch --commit-filter ' | |
| if [ "$GIT_COMMITTER_NAME" = "<Old Name>" ]; | |
| then | |
| GIT_COMMITTER_NAME="<New Name>"; | |
| GIT_AUTHOR_NAME="<New Name>"; | |
| GIT_COMMITTER_EMAIL="<New Email>"; | |
| GIT_AUTHOR_EMAIL="<New Email>"; | |
| git commit-tree "$@"; | |
| else | |
| git commit-tree "$@"; |
| # metaphox.zsh-theme | |
| # | |
| if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
| local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
| # primary prompt, 80 col ruler, with double dash at 40 | |
| # PROMPT='$FG[237]\ |
| '#'+Math.floor(Math.random()*16777215).toString(16); |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| #!/bin/sh | |
| # | |
| # This shows a MacBook Pro Retina screen model number. | |
| # The modile number will be something like LP154YL01001. | |
| # | |
| # * "LS" prefix: built by Samsung | |
| # | |
| # * "LP" prefix: built by LG | |
| # | |
| # The screens manufactured by LG have had many problems with ghosting and image retention. |
| NSString *myAudioFileInBundle = @"words.mp3"; | |
| NSTimeInterval wordStartsAt = 1.8; | |
| NSTimeInterval wordEndsAt = 6.5; | |
| NSString *filePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:myAudioFileInBundle]; | |
| NSURL *myFileURL = [NSURL fileURLWithPath:filePath]; | |
| AVAudioPlayer *myPlayer = [[AVAudioPlayer alloc]initWithContentsOfURL:myFileURL error:nil]; | |
| if (myPlayer) { | |
| [myPlayer setCurrentTime:wordStartsAt]; | |
| [myPlayer prepareToPlay]; | |
| [myPlayer play]; |
| /* Times New Roman-based stack */ | |
| font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; | |
| /* Modern Georgia-based serif stack */ | |
| font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; | |
| /* Traditional Garamond-based serif stack */ | |
| font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif; | |
| /* Helvetica/Arial-based sans serif stack */ |
From Metaphox for Metaphox
xcode-select --install| DCPU-16 Specification | |
| Copyright 1985 Mojang | |
| Version 1.7 | |
| === SUMMARY ==================================================================== | |
| * 16 bit words | |
| * 0x10000 words of ram |
| //以下は、c でも c++ でも同じ。 | |
| //X(x) になってるところは全て警告orエラーになる。 | |
| // http://d.hatena.ne.jp/cicupo2/ | |
| void foo(void*x){} | |
| #define C const | |
| #define X(x) /* x */ | |
| int main() |