Skip to content

Instantly share code, notes, and snippets.

View 3-n's full-sized avatar

Jarosław Gliwiński 3-n

View GitHub Profile
@3-n
3-n / retina_check
Created December 1, 2014 15:41
A messy way to check which images may be missing in an ios application
#!/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
@3-n
3-n / grid
Last active January 4, 2016 22:09
Ad hoc grid with KeepLayout
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];
@3-n
3-n / getbooks.sh
Created August 9, 2012 19:40
it-ebooks.info mirror; usage: ./getbooks.sh 1 <n>n
#!/bin/bash
UnRelLink() {
local link=$1
echo "http://it-ebooks.info$link"
}
GetBook() {
echo Downloading \#$1...
index=http://it-ebooks.info/book/$1/