app.http.before.push(function(req, res){
app.log.info(req.url);
res.emit('next');
})
var www = 'public'; | |
var appFiles = [ | |
www + '/app/app.js', | |
www + '/app/services/*.js', | |
www + '/app/filters/*.js', | |
www + '/app/directives/*.js', | |
www + '/app/controllers/*.js' | |
]; |
download nodewebkit zip, extract to home directory
yum install curl -y
curl -O https://s3.amazonaws.com/node-webkit/v0.6.1/node-webkit-v0.6.1-linux-ia32.tar.gz
tar -zxvf node-webkit-v0.6.1-linux-ia32.tar.gz
ln -s /usr/lib/libudev.so.1 /usr/lib/libudev.so.0
export PATH=$PATH:/home/username/node-webkit-v0.6.1-linux-ia32
Lately, I have been digging into the angular-ui-router, (https://github.com/angular-ui/ui-router), I would say from ng-conf, it is the recommended way to do routing in Angular. What I find interesting about it, is how you can have multiple views and your routing graph can be defined in your loosely coupled modules. This provides a very conventional way to assembling your angular.modules for an angularjs application. Instead of having several features in your controller and templates directory, you can have several repositories that just focus on a particular feature.
For example, if you have two CRUD modules, (projects and contacts), with ui-router you can keep each routing state independent of the other as long as they are unique.
So in one module projects
, I can have a config section and create the following routing state:
angular.js('projects', [])
#!/bin/bash | |
echo "Finding latest version." | |
VERSION=`curl -s http://nodejs.org/dist/latest/SHASUMS.txt | awk '/node-v/ {print $2}' | head -1 | sed s/node-v// | sed s/-/\ / | awk '{print $1}'` | |
echo "Preparing to install node-v$VERSION" | |
url="http://nodejs.org/dist/v"$VERSION"/node-v"$VERSION".tar.gz" | |
echo "GET" $url | |
curl $url | tar -zxf - |
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
module.exports = clickEvent; | |
function clickEvent(handler, opts) { | |
opts = opts || {}; | |
return function clickHandler(ev) { | |
if (!opts.ctrl && ev.ctrlKey) { | |
return; | |
} |
- Place your closed laptop on a soft surface, upside down.
- Use a sharp knife to cut a hole in the warranty sticker (YES THIS WILL VOID THE WARRANTY).
- Remove the 13 screws with a small phillips head screwdriver (PH1 size works well). Be careful, the screws are very small and will strip easily if you use the wrong size screwdriver.
- Remove the bottom of the laptop by pulling up on it near the hinges. It takes a bit of pressure to remove, but if you lift it from the back (near the hinges) the same way you would open a laptop screen, the hooks won't break (even though they will make a loud snapping sound).
- Remove the BIOS write-protect screw. It is labeled as #7 in this image
- With the bottom off, turn over the laptop and open the screen.
- Plug the laptop in (it must b
A quick rant.
- PouchDB is slow, because it doesn't use bare-metal IndexedDB
OK, first off I want to point out the CanIUse table for IndexedDB. Go ahead, look at it. I'll wait.