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
def strip_accents(s): | |
return ''.join((c for c in unicodedata.normalize('NFD', s) if unicodedata.category(c) != 'Mn')) | |
strip_accents(input_str.decode('utf-8')) |
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 MiConstructor(){ | |
scopeGlobal = 10; | |
var scopeLocal = 11; | |
var miArray = [2,10,2,3]; | |
// apunta correctamente a MiConstructor | |
console.log(this); | |
this.mimetodo = function(){ | |
// apunta correctamente a MiConstructor | |
console.log(this); | |
miArray.forEach(function(item){ |
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
'use strict'; | |
function MiConstructor(){ | |
// Guardamos la referencia a this en la variable self | |
var self = this; | |
window.scopeGlobal = 10; | |
var scopeLocal = 11; | |
var miArray = [2,10,2,3]; | |
// Apunta correctamente a MiConstructor | |
console.log(self); | |
this.mimetodo = function(){ |
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
///CLIENT/// | |
Accounts = new Mongo.Collection('accounts'); | |
Tracker.autorun(function () { | |
Meteor.subscribe('accounts-stats'); | |
}); | |
console.log(Accounts.find().fetch()); | |
///END CLIENT/// | |
///SERVER/// |
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 declaration | |
function hola(){ | |
} | |
//function expresion | |
var hola = function(){ | |
} | |
//named function expression | |
var hola = function hola(){ |
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 hola(){ | |
} |
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
console.log(hola()); | |
function hola(){ | |
return 'hola mundo'; | |
} |
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
console.log(hola()); | |
var hola = function(){ | |
return 'hola mundo'; | |
} |
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 hola(){ | |
console.log('hola'); | |
}(); |
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 hola(){ | |
console.log('hola'); | |
}(); |
OlderNewer