I hereby claim:
- I am taesup on github.
- I am taesup (https://keybase.io/taesup) on keybase.
- I have a public key ASDvjCk9RNXqrZKqWPzySTvLzXteLqXoNAfMnUKbvz_wego
To claim this, I am signing this object:
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); | |
var express = require('express'); | |
var psi = require('psi'); | |
var app = express(); | |
var port = process.env.PORT || 7777; | |
app.get('/', home); |
(function () { | |
var root = angular.element(document.getElementsByTagName('html')); | |
var watchers = []; | |
var f = function (element) { | |
angular.forEach(['$scope', '$isolateScope'], function (scopeProperty) { | |
if (element.data() && element.data().hasOwnProperty(scopeProperty)) { | |
angular.forEach(element.data()[scopeProperty].$$watchers, function (watcher) { | |
watchers.push(watcher); |
https://gist.github.com/paulirish/5d52fb081b3570c81e3a | |
https://medium.com/@vilcins/css-tools-that-i-use-67cb8bfa2e2d | |
https://developers.google.com/web/fundamentals/look-and-feel/animations/css-vs-javascript?hl=en | |
http://csstriggers.com/ | |
https://slides.com/taesup/css-perf |
// ++ NOTES | |
/** | |
* console.log() --> PRINT TO SCREEN | |
* function () {} --> Declare a function (but don't run it) | |
* {functionName}(arg1, arg2) --> Actually using the function by name | |
*/ | |
// GLOBAL VARIABLES | |
var foo = 2; |
I hereby claim:
To claim this, I am signing this object:
var MongoClient = require('mongodb').MongoClient; | |
// Connection URL | |
var url = 'mongodb://localhost:27017/mongo_demo'; | |
module.exports = function createConnection() { | |
} | |
// Use connect method to connect to the server |
module.exports = function(sequelize, DataTypes) { | |
var Task = sequelize.define("Task", { | |
title: DataTypes.STRING | |
}); | |
Task.associate = function(models) { | |
Task.belongsTo(models.User); | |
} | |
return Task; |
Code Complete : Steve McConnell
Pragmatic Programmer : Dave Thomas
Clean Code - Uncle Bob Martin
Refactoring - Martin Fowler
Release It! - Michael Nygard
Jeff Atwood : Better Programmer
Chad Fowler : Check out his books section and follow on twitter
Martin Fowler : Founder of ThoughtWorks
TJ Holowaychuk : Creator of Express.js! How he got good
```javascript | |
function example1 () { | |
y = 20; | |
var y = 0; | |
jump(); | |
var jump = function () { | |
y += 15; | |
} | |
jump(); | |
function jump() { |