Skip to content

Instantly share code, notes, and snippets.

@pdjota
pdjota / output.bash.txt
Created March 27, 2017 15:46
Covalent AOT
➤ 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
@pdjota
pdjota / npm-ls.txt
Created March 27, 2017 14:46
NPM Listing Covalent
➤ 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
@pdjota
pdjota / npm-ls.txt
Created March 27, 2017 14:46
NPM Listing Covalent
➤ 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
//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) {
@pdjota
pdjota / cien.rb
Created June 2, 2013 23:52
Create100 files.
require 'fileutils'
100.times do |i|
FileUtils.cp 'a.txt', "b_%i.txt" % i
end
@pdjota
pdjota / html-sync.js
Last active December 16, 2015 19:59
Some backbone changes for using empty models with Razor views.
/*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',
@pdjota
pdjota / component.json
Created March 26, 2013 14:10
component.json When installing es5-shim bower install es5-shim
{
"name": "es5-shim",
"version": "2.0.8",
"main": "./es5-shim.js",
"repository": {
"type": "git",
"url": "git://github.com/kriskowal/es5-shim"
}
}
@pdjota
pdjota / .bowerrc
Created March 22, 2013 15:24
.bowerrc example for using a custom bower-server
{
"endpoint" : "http://localhost:8080",
"searchpath": ["https://bower.herokuapp.com"]
}
@pdjota
pdjota / gist:4340131
Created December 19, 2012 20:22
vagrant init cheatsheet.
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
@pdjota
pdjota / conn.py
Created October 25, 2012 12:27
MongoDB 101
import pymongo
from pymongo import Connection
cxn = Connection('localhost', 27017)
db = cxn.test
names = db.names
i = names.find_one()
print i