Skip to content

Instantly share code, notes, and snippets.

var Product = require('../models/product');
require('../server');//this makes sure the db is connected
exports.up = function(next){
var watch = new Product({
name: 'Rolex Watch'
description: 'One of the most expensive, luxurious items around.',
price: 3500000,
active: true
});
{
"_id" : "NYJ-YeqK",
"title" : "Pre-Assessment [Food]",
"description" : "Use basic control structures (if/else statements) to affect the output of your code.",
"start" : "//modify the function below to output a food preference\n//if the 'food' being passed into your function is pizza, return the output 'i love pizza'. If food is 'hotpockets', return 'hot pockets woo', and if it's anything else, return 'i have bad taste in foods'\n\n\nvar myFoodPreference = function(food) {\n //code goes here\n return output;\n}",
"tests" : [
{
"_out" : "i love pizza",
"invoke" : {
"params" : [
DevMountain offers both a full-time and part-time iOS class. Full-time is an immersive, 9-5 Mon-Fri class. The part-time class is 4 days a week and after-hours.
In both classes, you'll start building apps on Day 1 of the class, and by the end you'll at least one application in the App Store (possibly even making you money). Classes are rigorous, but previous programming experience is not required. If you want to learn from past Apple devs, top instructors, and have access to solid mentors we think this is the place to go. They also have good connections to employers, although many students coming out of the class prefer to freelance.
DevMountain is the best and largest iOS bootcamp in the midwest. We also offer free housing included with the price of immersive tuition. We feel that there is no better deal in the country if you want to become an iOS developer.
var express = require('express');
var bodyParser = require('body-parser');
var session = require('express-session');
var passport = require('passport');
var TwitterStrategy = require('passport-twitter').Strategy;
passport.use(new TwitterStrategy({
consumerKey: 'qgT3gYCqZCTbyL5EVzcOMVL8R',
consumerSecret: 'Qkp6wOagy4pnC87kjBlwEAbFQstLrlFADvpitZ4tYNdc9UjE7G',
callbackURL: 'http://localhost:8080/auth/twitter/callback'
var http = require('http');
http.createServer(function(req, res) {
//code here
}).listen(8800);
/Users/cahlan/Projects/scan/scan.me/app/../web/css/e28da59.css
[error] An error occurred while running:
'/usr/local/var/rbenv/shims/ruby' '/Users/cahlan/Projects/scan/scan.me/app/../bin/compass' 'compile' '/private/var/folders/vg/bkqtd7_15l1bwtm4nn74h80c0000gn/T' '--output-style' 'expanded' '--images-dir' '/Users/cahlan/Projects/scan/scan.me/app/../web/bundles' '--config' '/private/var/folders/vg/bkqtd7_15l1bwtm4nn74h80c0000gn/T/assetic_compassasxBJV' '--sass-dir' '' '--css-dir' '' '/private/var/folders/vg/bkqtd7_15l1bwtm4nn74h80c0000gn/T/assetic_compassL9nmtn.scss'
Error Output:
WARNING: 'glyphicons-halflings.png' was not found (or cannot be read) in /private/var/folders/vg/bkqtd7_15l1bwtm4nn74h80c0000gn/T/images/scanbootstrap/images
WARNING: 'glyphicons-halflings-white.png' was not found (or cannot be read) in /private/var/folders/vg/bkqtd7_15l1bwtm4nn74h80c0000gn/T/images/scanbootstrap/images
WARNING: 'qrcode.png' was not found (or cannot be read) in /private/var/folders/vg/bkqtd7_15l1bwtm4nn74h80c0000gn/
[2014-01-24T16:06:25-07:00] INFO: script[Add recurrent script if needed] ran successfully
================================================================================
Error executing action `run` on resource 'script[Bundling gems]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '5'
---- Begin output of "bash" "/tmp/chef-script20140124-7890-34jol6" ----
================================================================================
Error executing action `install` on resource 'gem_package[mysql]'
================================================================================
Gem::Installer::ExtensionBuildError
-----------------------------------
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
/usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mixlib/log (LoadError)
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.4/lib/chef/log.rb:21:in `<top (required)>'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.4/lib/chef/config.rb:21:in `<top (required)>'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.4/lib/chef/platform.rb:19:in `<top (required)>'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
*** glibc detected *** /usr/bin/ruby: corrupted double-linked list: 0x000000000933f5a0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x760e6)[0x7fadb0f5b0e6]
/lib64/libc.so.6(+0x79f0a)[0x7fadb0f5ef0a]
/lib64/libc.so.6(__libc_malloc+0x71)[0x7fadb0f5f911]
/usr/lib64/libruby.so.1.9(+0x6c374)[0x7fadb1dc8374]
/usr/lib64/libruby.so.1.9(rb_str_buf_new+0xc3)[0x7fadb1e5c2b3]
/usr/lib64/libruby.so.1.9(rb_enc_vsprintf+0x44)[0x7fadb1e4f274]
/usr/lib64/libruby.so.1.9(rb_enc_sprintf+0x88)[0x7fadb1e4f458]
/usr/lib64/libruby.so.1.9(+0x13d705)[0x7fadb1e99705]