Wednesday, 31 July 2013
Keyboard Shortcuts for Bash
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + L | Clears the Screen, similar to the clear command |
Ctrl + U | Clears the line before the cursor position. If you are at the end of the line, clears the entire line. |
Ctrl + H | Same as backspace |
Ctrl + R | Let’s you search through previously used commands |
Ctrl + C | Kill whatever you are running |
Ctrl + D | Exit the current shell |
Ctrl + Z | Puts whatever you are running into a suspended background process. fg restores it. |
Ctrl + W | Delete the word before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + T | Swap the last two characters before the cursor |
Esc + T | Swap the last two words before the cursor |
Alt + F | Move cursor forward one word on the current line |
Alt + B | Move cursor backward one word on the current line |
Tab | Auto-complete files and folder names |
Monday, 29 July 2013
Saturday, 27 July 2013
javascript Module Pattern example
http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html
Friday, 26 July 2013
Sunday, 21 July 2013
Tuesday, 16 July 2013
newrelic_rpm with Rails 4 on heroku
There is a bug in newrelics config file
The solution:
1. in config/newrelic.yml
line 46 replace
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
view is var in defined in heroku
blah:(master) ✗ heroku config
DATABASE_URL =>
HEROKU_POSTGRESQL_COBALT_URL =>
NEW_RELIC_LICENSE_KEY =>
NEW_RELIC_LOG =>
PAPERTRAIL_API_TOKEN =>
set the var
heroku config:set NEW_RELIC_APP_NAME=new_app
also in ~/.profile
export NEW_RELIC_APP_NAME=my_app
The solution:
1. in config/newrelic.yml
line 46 replace
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
view is var in defined in heroku
blah:(master) ✗ heroku config
DATABASE_URL =>
HEROKU_POSTGRESQL_COBALT_URL =>
NEW_RELIC_LICENSE_KEY =>
NEW_RELIC_LOG =>
PAPERTRAIL_API_TOKEN =>
set the var
heroku config:set NEW_RELIC_APP_NAME=new_app
also in ~/.profile
export NEW_RELIC_APP_NAME=my_app
Sunday, 14 July 2013
Saturday, 13 July 2013
fyrebox
Check this out! My friend's awsome service to create quizzes that can be played on Facebook timeline
Made with Node.js and MongoDB
@fyrebox https://www.fyrebox.co/
Made with Node.js and MongoDB
@fyrebox https://www.fyrebox.co/
Friday, 12 July 2013
Tuesday, 2 July 2013
Adapt.js responsive without bootstrap
What is this?
Adapt.js is a lightweight (848 bytes minified) JavaScript file that determines which CSS file to load before the browser renders a page. If the browser tilts or resizes, Adapt.js simply checks its width, and serves only the CSS that is needed, when it is needed.
http://adapt.960.gs/
Adapt.js is a lightweight (848 bytes minified) JavaScript file that determines which CSS file to load before the browser renders a page. If the browser tilts or resizes, Adapt.js simply checks its width, and serves only the CSS that is needed, when it is needed.
http://adapt.960.gs/
// Edit to suit your needs. var ADAPT_CONFIG = { // Where is your CSS? path: 'assets/css/', // false = Only run once, when page first loads. // true = Change on window resize and page tilt. dynamic: true, // Optional callback... myCallback(i, width) callback: myCallback, // First range entry is the minimum. // Last range entry is the maximum. // Separate ranges by "to" keyword. range: [ '0px to 760px = mobile.css', '760px to 980px = 720.css', '980px to 1280px = 960.css', '1280px to 1600px = 1200.css', '1600px to 1920px = 1560.css', '1940px to 2540px = 1920.css', '2540px = 2520.css' ] };
Subscribe to:
Posts (Atom)