convert a string to number at JavaScript.
- +
+'12'; // 12
typeof +'12' // number
+'12s'; // NaN
typeof +'12s'; // number| alias pacon='sudo networksetup -setautoproxyurl Wi-Fi https://yourproxy.pac' | |
| alias pacoff='sudo networksetup -setautoproxyurl Wi-Fi off' |
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| To enable any of there plugins, go to: `Settings` -> `Plugins` | |
| You'll find plugins in the first page, to get the others press `Browse repositories...` button. | |
| - Apache config (.htaccess) support | |
| - Bootstrap | |
| - Color Ide | |
| - CSS Support | |
| - EditorConfig | |
| - File Watchers | |
| - Git Integration |
convert a string to number at JavaScript.
+'12'; // 12
typeof +'12' // number
+'12s'; // NaN
typeof +'12s'; // numberAttention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // detect if naturalWidth property is supported | |
| // getting it is much faster than getComputedStyle() | |
| var supportsNatural = ( "naturalWidth" in (new Image()) ), | |
| imagePath = 'image.jpg', | |
| interval, | |
| hasSize, | |
| onHasSize = function() { | |
| if(hasSize) return; | |
| var naturalWidth = supportsNatural ? img[0].naturalWidth : img.width(); |
| .markdown-body { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| } | |
| .markdown-body > *:first-child { | |
| margin-top: 0 !important; | |
| } | |
| .markdown-body > *:last-child { | |
| margin-bottom: 0 !important; | |
| } |
| <!DOCTYPE html> | |
| <!-- #include "inc_header.html" title="Example" header="Sample Title" --> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Example</title> | |
| <link rel="stylesheet" href="css/main.css"> | |
| </head> | |
| <body> | |
| <h1>Sample Title</h1> |
| <!-- copy this to YOUR_THEME.tmTheme--> | |
| <dict> | |
| <key>name</key> | |
| <string>diff: deleted</string> | |
| <key>scope</key> | |
| <string>markup.deleted</string> | |
| <key>settings</key> | |
| <dict> | |
| <key>background</key> | |
| <string>#EAE3CA</string> |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)