This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wlCommonInit() { | |
angular.element(document).ready(function() { | |
angular.bootstrap(document, [ 'App' ]); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Persona { | |
let nombre: String | |
var carro: Carro? | |
init(nombre: String) { | |
self.nombre = nombre | |
} | |
} | |
class Carro { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Persona { | |
let nombre: String | |
var carro: Carro? | |
init(nombre: String) { | |
self.nombre = nombre | |
} | |
} | |
class Carro { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Persona { | |
let nombre: String | |
var carro: Carro? | |
init(nombre: String) { | |
self.nombre = nombre | |
} | |
func transportarse() { | |
carro?.arrancarMotor { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Persona { | |
let nombre: String | |
var carro: Carro? | |
init(nombre: String) { | |
self.nombre = nombre | |
} | |
func transportarse() { | |
carro?.arrancarMotor { [weak self] in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |