I hereby claim:
- I am dabio on github.
- I am dabio (https://keybase.io/dabio) on keybase.
- I have a public key whose fingerprint is F140 D335 981E 7AE2 8357 49A8 5B1E E898 A4C2 D9D3
To claim this, I am signing this object:
mogrify -filter spline -adaptive-resize 1600x -unsharp 0x1 *.JPG | |
mogrify -filter spline -resize 616x -unsharp 0x1 -path thumbs *.JPG | |
for files in *.JPG | |
do | |
mv "$files" "${files%.JPG}.jpg" | |
done |
- (void)removeOldDatabase | |
{ | |
if (![[[NSUserDefaults standardUserDefaults] objectForKey:@"parku-3.0.0"] boolValue]) { | |
NSURL *storeURL = [NSPersistentStore MR_defaultLocalStoreUrl]; | |
NSError *error; | |
[[NSFileManager defaultManager] removeItemAtPath:storeURL.path error:&error]; | |
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"parku-3.0.0"]; | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
def timesince(d, now=Time.now) | |
delta = (now - d.to_time).to_i | |
return '0 Minuten' if delta <= 60 | |
chunks = [ | |
[60 * 60 * 24 * 356, 'Jahr', 'Jahre'], | |
[60 * 60 * 24 * 30, 'Monat', 'Monate'], | |
[60 * 60 * 24 * 7, 'Woche', 'Wochen'], | |
[60 * 60 * 24, 'Tag', 'Tage'], | |
[60 * 60, 'Stunde', 'Stunden'], |
# Fixes encoding issue by defaulting to UTF-8 | |
def force_encoding(data, encoding = 'UTF-8') | |
if data.respond_to? :force_encoding | |
data.force_encoding encoding | |
elsif data.respond_to? :each_value | |
data.each_value { |v| v.force_encoding(encoding) } | |
elsif data.respond_to? :each | |
data.each { |v| v.force_encoding(encoding) } | |
end | |
data |
gem list | cut -d" " -f1 | xargs gem uninstall -aIx |
./configure \ | |
--host="arm-apple-darwin" \ | |
--enable-static \ | |
--disable-shared \ | |
--disable-dependency-tracking \ | |
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \ | |
CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2 \ | |
CXXCPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2 \ | |
CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc\ | |
AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar \ |
mysql -Nse 'SHOW TABLES' [database] | while read table; do mysql -e "DROP TABLE $table;" [database]; done |
mysql -Nse 'SHOW TABLES' [database] | while read table; do mysql -e "TRUNCATE TABLE $table;" [database]; done |
package solr | |
import ( | |
"encoding/xml" | |
) | |
type SolrResponse struct { | |
Results SolrResults `xml:"result"` | |
} |