// jQuery
$(document).ready(function() {
// code
})| var _log = console.log; | |
| window.console.log = function(log){ | |
| _log.call(console, log.reverse ? log.reverse() : typeof log === 'string' ? log.split('').reverse().join('') : typeof log === 'number' ? log.toString().split('').reverse().join('') : typeof log === 'boolean' ? !log : log); | |
| }; |
| /** | |
| * Gets RSS Image Item Link | |
| * | |
| * Place the following inside rss markup | |
| * to display the the first image of that post: | |
| * echo '<img src="' .get_first_image_url($item->get_content()). '"/>'; | |
| * | |
| */ | |
| function get_first_image_url($html) { | |
| if (preg_match('/<img.+?src="(.+?)"/', $html, $matches)) { |
| <?php | |
| function runCommand () | |
| { | |
| $command = 'php artisan queue:listen > /dev/null & echo $!'; | |
| $number = exec($command); | |
| file_put_contents(__DIR__ . '/queue.pid', $number); | |
| } | |
| if (file_exists(__DIR__ . '/queue.pid')) { |
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } |
| defaults write com.apple.dock size-immutable -bool true; killall Dock |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
| $base-font-size: 16px; | |
| $base-line-height: 1.5; | |
| // this value may vary for each font | |
| // unitless value relative to 1em | |
| $cap-height: 0.68; | |
| @mixin baseline($font-size, $scale: 2) { |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/