Skip to content

Instantly share code, notes, and snippets.

View jaiversin's full-sized avatar

Jhon Jaiver López jaiversin

  • Medellín, Colombia
View GitHub Profile
### Keybase proof
I hereby claim:
* I am jaiversin on github.
* I am jaiversin (https://keybase.io/jaiversin) on keybase.
* I have a public key ASAmeoslfwbIzUKFHyJGrJ-7nIbAsp79uHbgxCY7LUOYmAo
To claim this, I am signing this object:
class Persona {
let nombre: String
var carro: Carro?
init(nombre: String) {
self.nombre = nombre
}
func transportarse() {
carro?.arrancarMotor { [weak self] in
class Persona {
let nombre: String
var carro: Carro?
init(nombre: String) {
self.nombre = nombre
}
func transportarse() {
carro?.arrancarMotor {
class Persona {
let nombre: String
var carro: Carro?
init(nombre: String) {
self.nombre = nombre
}
}
class Carro {
class Persona {
let nombre: String
var carro: Carro?
init(nombre: String) {
self.nombre = nombre
}
}
class Carro {
@jaiversin
jaiversin / main.js
Created February 27, 2015 19:02
WL common init
function wlCommonInit() {
angular.element(document).ready(function() {
angular.bootstrap(document, [ 'App' ]);
});
}
@jaiversin
jaiversin / Fade Transition
Created April 30, 2013 19:32
Fade transition for iOS
//Navigate to the controller
- (IBAction)myButtonPressed:(id)sender {
MyVC *myVC = [[MyVC alloc] initWithNibName:@"MyVC" bundle:nil];
CATransition* transition = [CATransition animation];
transition.duration = 0.5;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionFade;
@jaiversin
jaiversin / queue_function_calling.js
Created April 9, 2012 16:57
Creates a queue (poor queue impl, i know) and add function metadata info for further callings. Improved version by @simevidas http://jsfiddle.net/CEdPS/3/
function Queue(arr) {
var i = 0;
this.callNext = function() {
typeof arr[i].f == 'function' && arr[i].f(arr[i++].params);
};
}
function f1(params) {
alert(params[0]);
}