This file contains hidden or 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
find . -name ".git" | xargs rm -rf |
This file contains hidden or 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
Express: | |
sudo npm install -g generator-express | |
AngularJS: | |
sudo npm install -g generator-angular | |
Crear app: | |
yo | |
This file contains hidden or 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
<br><label>Color: </label> | |
<ul> | |
<label class="radio-inline"> | |
<input type="radio" name="color" id="color1" value="label-warning" checked> <h4><span class="label label-warning">Etiqueta</span></h4> | |
</label> | |
<label class="radio-inline"> | |
<input type="radio" name="color" id="color2" value="label-danger"> <h4><span class="label label-danger">Etiqueta</span></h4> | |
</label> | |
<label class="radio-inline"> | |
<input type="radio" name="color" id="color3" value="label-info"> <h4><span class="label label-info">Etiqueta</span></h4> |
This file contains hidden or 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
#estamos guardando de un CSV y no tenemos PK | |
def get_db(): | |
from pymongo import MongoClient | |
client = MongoClient('localhost:27017') | |
db = client.dineros | |
return db | |
def storeData(data): | |
db = get_db() |
This file contains hidden or 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
if (event.submit) { | |
event.submit(); | |
} else { | |
event.returnValue = true; | |
} |
This file contains hidden or 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
if (event.preventDefault) { | |
event.preventDefault(); | |
} else { | |
event.returnValue = false; | |
} |
This file contains hidden or 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
var parserRarbg = function(html){ | |
return 'pepe'; | |
}; | |
//Definiciones públicas | |
exports.parserRarbg = parserRarbg; |
This file contains hidden or 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
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) | |
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) | |
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) | |
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) | |
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) | |
//Example: SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.1") ? 0.0f : 0.5f; | |
//Example: SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6") |
This file contains hidden or 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
//To enable slow animations you can add a line of code to the “applicationDidBecomeActive”. | |
[UIApplication.sharedApplication.keyWindow.layersetSpeed:0.1f]; |