Skip to content

Instantly share code, notes, and snippets.

@mpycio
mpycio / gist:ddbdea1adb6b86cf02f6
Last active August 29, 2015 14:16
transparent navigation bar using appeareance
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setShadowImage:[UIImage new]];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
@mpycio
mpycio / gist:0df4feaec0564d94e4a7
Last active August 29, 2015 14:20
import git repository to new remote
Counting objects: 912, done.
Delta compression using up to 8 threads.
#!/bin/bash
# check if user passed name of the new remote repository
if [ -z "$1" ]
then
echo "No bitbucket repository name supplied"
exit 1
fi
void main() {
var person = {
"name" : "Marcin",
"age" : 48,
"foot": "left"
};
var updates = {
"name": "Kaks",
"age": 25,