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
➤ ng serve --aot | |
** NG Live Development Server is running on http://localhost:4200. ** | |
Hash: 6a38e9bf99d82af8f7ee | |
Time: 1098ms | |
chunk {0} styles.bundle.js, styles.bundle.js.map (styles) 28 bytes {3} [initial] [rendered] | |
chunk {1} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 28 bytes {3} [initial] [rendered] | |
chunk {2} main.bundle.js, main.bundle.js.map (main) 40 bytes [initial] [rendered] | |
chunk {3} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered] | |
ERROR in Error encountered resolving symbol values statically. Could not resolve @covalent/core relative to /Users/pdejuan/projects/101/covalentapp/src/app/app.module.ts., resolving symbol AppModule in /Users/pdejuan/projects/101/covalentapp/src/app/app.module.ts, resolving symbol AppModule in /Users/pdejuan/projects/101/covalentapp/src/app/app.module.ts, resolving symbol AppModule in /Users/pdejuan/projects/101/covalentapp/src/app/app.module.ts |
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
➤ npm ls | |
covalentapp@0.0.0 /Users/pdejuan/projects/101/covalentapp | |
├── @angular/common@2.4.8 | |
├── @angular/compiler@2.4.8 | |
├─┬ @angular/compiler-cli@2.4.8 | |
│ ├─┬ @angular/tsc-wrapped@0.5.2 | |
│ │ └── tsickle@0.2.6 | |
│ ├── minimist@1.2.0 | |
│ └── reflect-metadata@0.1.10 | |
├── @angular/core@2.4.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
➤ npm ls | |
covalentapp@0.0.0 /Users/pdejuan/projects/101/covalentapp | |
├── @angular/common@2.4.8 | |
├── @angular/compiler@2.4.8 | |
├─┬ @angular/compiler-cli@2.4.8 | |
│ ├─┬ @angular/tsc-wrapped@0.5.2 | |
│ │ └── tsickle@0.2.6 | |
│ ├── minimist@1.2.0 | |
│ └── reflect-metadata@0.1.10 | |
├── @angular/core@2.4.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
//Implementing a Linked List in JS | |
//Example: | |
//var a = new List([1,2,3,4]); | |
//at = a.reverse(); | |
function List (initialArray) { | |
var list = this; | |
list.first = null; | |
if (!!initialArray) { | |
initialArray.forEach(function (elem) { |
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
require 'fileutils' | |
100.times do |i| | |
FileUtils.cp 'a.txt', "b_%i.txt" % i | |
end |
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
/*jshint indent:2, nomen:false, browser:true */ | |
/*globals define, console, ActiveXObject */ | |
/** | |
* Html custom sync for html usage. | |
*/ | |
define(['underscore', 'backbone'], function (_, Backbone) { | |
'use strict'; | |
var HtmlSync = {}; | |
var methodMap = { | |
'create': 'POST', |
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
{ | |
"name": "es5-shim", | |
"version": "2.0.8", | |
"main": "./es5-shim.js", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/kriskowal/es5-shim" | |
} | |
} |
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
{ | |
"endpoint" : "http://localhost:8080", | |
"searchpath": ["https://bower.herokuapp.com"] | |
} |
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
vagrant box add u64 https://dl.dropbox.com/u/1543052/Boxes/UbuntuServer12.04amd64.box | |
vagrant init u64 | |
vagrant up | |
#Connecting in Windows | |
ssh -i ~/.vagrant.d/insecure_private_key vagrant@localhost -p 2222 |
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
import pymongo | |
from pymongo import Connection | |
cxn = Connection('localhost', 27017) | |
db = cxn.test | |
names = db.names | |
i = names.find_one() | |
print i |