Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| -- Adapted from these sources: | |
| -- http://peterdowns.com/posts/open-iterm-finder-service.html | |
| -- https://gist.github.com/cowboy/905546 | |
| -- | |
| -- Modified to work with files as well, cd-ing to their container folder | |
| on run {input, parameters} | |
| tell application "Finder" | |
| set my_file to first item of input | |
| set filetype to (kind of (info for my_file)) | |
| -- Treats OS X applications as files. To treat them as folders, integrate this SO answer: |
| /** | |
| * Type this in the console. | |
| * Doubleclick on the handler information you want. | |
| * It will show the REAL function that will be executed instead of the jQuery handler :) | |
| */ | |
| // >= jQuery 1.8 | |
| jQuery._data( $('.element').get(0), "events"); | |
| // <= jQuery 1.8 | |
| jQuery( $('.element').get(0) ).data( "events" ); |
| server { | |
| ## Your website name goes here. | |
| server_name domainname.com www.domainname.com _; | |
| ## Your only path reference. | |
| root /var/www/; | |
| listen 8080; | |
| ## This should be in your http block and if it is, it's not needed here. | |
| index index.html index.htm index.php; | |
| include conf.d/drop; |
| #!/usr/bin/env bash | |
| # --------------------------------------- | |
| # Virtual Machine Setup | |
| # --------------------------------------- | |
| # Adding multiverse sources. | |
| cat > /etc/apt/sources.list.d/multiverse.list << EOF | |
| deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
| deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse |
| The MIT License (MIT) | |
| Copyright (c) 2015 Justin Perry | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent