Primer parcial: Jueves 3 de Octubre
Existen 3 clases:
-
De Tres formas Altus,a,um
-
De dos formas o de segunda clase
var mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/app'); | |
var usrSchema = new mongoose.Schema({ | |
user: { type: String, required: true }, | |
password: { type: String, required: true }, | |
DLU: { type: Date } | |
}); | |
meteor create --example todos | |
meteor bundle myapp.tgz | |
tar xzf myapp.tgz | |
cd bundle | |
(create package json with settings below) | |
jitsu databases create mongo <dbname> | |
(grab dbstring) | |
jitsu env set PORT 3000 | |
jitsu env set MONGO_URL <dbstring> | |
jitsu deploy |
$ brew tap homebrew/dupes | |
$ brew install apple-gcc42 | |
$ export CC=`which gcc-4.2` | |
$ brew remove imagemagick | |
$ brew install imagemagick |
#!/bin/bash | |
for file in *.jpg | |
do | |
sips --resampleHeightWidthMax 1357 --setProperty formatOptions 80 $file | |
done; |
/** | |
* jQuery useful and custom extensions | |
*/ | |
/** | |
* Non ajax plugin as seen in: http://stackoverflow.com/questions/1149454/non-ajax-get-post-using-jquery-plugin | |
*/ | |
(function(jQuery) { | |
$.extend({ | |
doGet: function(url, params) { |