Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // General | |
| button_tile_map : true, | |
| editor_selector : 'lg_mceEditor', | |
| mode:'textareas', | |
| theme : 'advanced', | |
| // Cleanup/Output | |
| apply_source_formatting : true, | |
| convert_fonts_to_spans : true, | |
| convert_newlines_to_brs : false, |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /* | |
| A little node.js server for testing html5 ajax file uploads. | |
| It serves up the current directory and receives uploads at /upload. | |
| This is for use with xhr.send(file) where the entire request body is the file. | |
| It just pauses one second between chunks so that client-side progress events | |
| get a chance to fire. On my laptop it looks like the maximum chunk size is | |
| around 40K, so you would still need images in the range of hundreds of kilobytes | |
| to really be able to test it. |
| // Run Redis - cd redis-2.2.4 and run src/redis-server | |
| var sip = require('sip'); | |
| var sys = require('sys'); | |
| var redis = require('redis'); | |
| var tropoapi = require('tropo-webapi'); | |
| //Trim leading and trailing whitespace from string values. | |
| function trim(str) { | |
| return str.replace(/^\s+|\s+$/g, ''); |
| // Run Redis - cd redis-2.2.4 and run src/redis-server | |
| var sip = require('sip'); | |
| var sys = require('sys'); | |
| var redis = require('redis'); | |
| var tropoapi = require('tropo-webapi'); | |
| //Trim leading and trailing whitespace from string values. | |
| function trim(str) { | |
| return str.replace(/^\s+|\s+$/g, ''); |
| // History.js It! | |
| // v1.0.1 - 30 September, 2012 | |
| // https://gist.github.com/854622 | |
| (function(window,undefined){ | |
| // Prepare our Variables | |
| var | |
| History = window.History, | |
| $ = window.jQuery, | |
| document = window.document; |
| server { | |
| listen :80; | |
| server_name www.example.com; | |
| rewrite ^/(.*) http://example.com/$1 permanent; | |
| } | |
| server { | |
| server_name example.com; | |
| listen :80; | |
| # Set cache dir | |
| proxy_cache_path /var/cache/nginx levels=1:2 | |
| keys_zone=microcache:5m max_size=1000m; | |
| # Virtualhost/server configuration | |
| server { | |
| listen 80; | |
| server_name yourhost.domain.com; | |
| # Define cached location (may not be whole site) |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl http://npmjs.org/install.sh | sh |