Skip to content

Instantly share code, notes, and snippets.

View degt's full-sized avatar
⛱️
Le vent se lève, il faut tenter de vivre.

Daniel Gutiérrez degt

⛱️
Le vent se lève, il faut tenter de vivre.
View GitHub Profile
$http.jsonp('{{ site.url }}/posts.json?callback=JSON_CALLBACK').then(function (res) {
$scope.posts = res.data;
}, function (error) {
console.log(error);
});
@degt
degt / UINavigationBar+Height.swift
Created October 22, 2015 23:43 — forked from siberianisaev/UINavigationBar+Height.swift
Change height of UINavigationBar
import Foundation
private var AssociatedObjectHandle: UInt8 = 0
extension UINavigationBar {
var height: CGFloat {
get {
if let h = objc_getAssociatedObject(self, &AssociatedObjectHandle) as? CGFloat {