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
#!/bin/sh | |
#./retina.sh directory file_suffix_for_reference file_suffix_to_look_for [-v] | |
# for example: | |
#./retina.sh Images.xcassets 2x 3x [-v] | |
counter=1 | |
file_list=() | |
while IFS= read -d $'\0' -r file ; do |
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
GTButton *button0 = ({ | |
GTButton *button = [[GTButton alloc] init]; | |
[button setTitle:@"top" forState:UIControlStateNormal]; | |
[self.view addSubview:button]; | |
button; | |
}); | |
GTButton *button1 = ({ | |
GTButton *button = [[GTButton alloc] init]; | |
[button setTitle:@"1" forState:UIControlStateNormal]; |
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
#!/bin/bash | |
UnRelLink() { | |
local link=$1 | |
echo "http://it-ebooks.info$link" | |
} | |
GetBook() { | |
echo Downloading \#$1... | |
index=http://it-ebooks.info/book/$1/ |