Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # name: scorphish | |
| # ~/.config/fish/functions/fish_prompt.fish | |
| function _prompt_rubies -a sep_color -a ruby_color -d 'Display current Ruby (rvm/rbenv)' | |
| [ "$theme_display_ruby" = 'no' ]; and return | |
| set -l ruby_version | |
| if type rvm-prompt >/dev/null 2>&1 | |
| set ruby_version (rvm-prompt i v g) | |
| else if type rbenv >/dev/null 2>&1 | |
| set ruby_version (rbenv version-name) |
| // comic-copier.js | |
| const fs = require('fs') | |
| const os = require('os') | |
| const path = require('path') | |
| const sander = require('sander') | |
| const input = '/path/from/' | |
| const output = '/path/to' |
| { | |
| "env": { | |
| "browser": true, | |
| "commonjs": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "parserOptions": { | |
| "ecmaVersion": 8, |
| { | |
| "env": { | |
| "browser": true, | |
| "commonjs": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "parserOptions": { | |
| "ecmaVersion": 8, |
| var http = require('http'); | |
| var fs = require('fs'); | |
| http.createServer(function(req, res) { | |
| if (req.url === '/favicon.ico') { | |
| return res.end(); | |
| } | |
| console.log('Incoming request to ' + req.url); | |
| var i=2; |
| - http://timstermatic.github.io/blog/2013/08/17/a-simple-mvc-framework-with-node-and-express/ | |
| - how to make your express app mvc-like. went a lil over my head, but maybe i'm a noob. | |
| - https://code.tutsplus.com/tutorials/build-a-complete-mvc-website-with-expressjs--net-34168 | |
| - this one went over my head too | |
| - http://www.9bitstudios.com/2014/10/creating-an-mvc-express-js-application/ | |
| - https://hackhands.com/delving-node-js-express-web-framework/ | |
| - http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ | |
| - this one helped me understand models | |
| - https://www.packtpub.com/books/content/angularjs-nodejs-and-firebase-startup-web-developers-toolkit | |
| - a lil outdated for adding firebase to your app (if you wanna go that route instead of express), but it's a good start |
| var fs = require('fs'); | |
| var jsonfile = require('jsonfile'); | |
| var os = require('os'); | |
| var page = require('./page.js') | |
| var path = require('path'); | |
| var template = { | |
| "name": "", | |
| "currentIndex": 0, | |
| "fullIndex": 0 |
| sudo chown -R "$USER":admin /path/to/folder |
| // Cleans up path for web-friendliness: Requires Node | |
| var path = require('path'); | |
| function dirEncode(oldPath) { | |
| var newPath = ''; | |
| var tempPath = oldPath.split(path.sep); | |
| for (j=0; j < tempPath.length; j++) { | |
| newPath = path.join(newPath, encodeURIComponent(tempPath[j])); | |
| }; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.