-
github
https://github.com/search?q={query}
-
grooveshark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Mail" | |
set theSelectedMessages to selection | |
repeat with theMessage in theSelectedMessages | |
set theMailbox to "All Mail" | |
tell application "Mail" | |
move the theMessage to mailbox theMailbox | |
end tell | |
end repeat | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media all and (max-device-width: 480px) { | |
// | |
// Define new CSS rules here for screens | |
// that are less than 480px wide. | |
// | |
// These rules will need to OVERRIDE the global | |
// styles that you have previously declared. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Function to process GBS info and update the dom. | |
function ProcessGBSBookInfo(booksInfo) { | |
for (isbn in booksInfo) { | |
var url_elem = document.getElementById(isbn); | |
var pic_elem = document.getElementById("google_book"); | |
var gbs_elem = document.getElementById("GBSDiv"); | |
var bookInfo = booksInfo[isbn]; | |
if (bookInfo) { | |
gbs_elem.innerHTML="<fieldset style='width:100px'><div align=center></div></fieldset>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Launch the OSX Color Picker and copy a HEX value to the clipboard. | |
-- From: http://strawhousepig.net/index.php?focus=19 | |
set theColor to (choose color) | |
set the clipboard to my RGB2HTML(theColor) | |
on RGB2HTML(RGB_values) | |
-- NOTE: this sub-routine expects the RBG values to be from 0 to 65536 | |
set the hex_list to ¬ | |
{"0", "1", "2", "3", "4", "5", "6", "7", "8", ¬ | |
"9", "A", "B", "C", "D", "E", "F"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
______ | |
< Mooo > | |
------ | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class FooThing | |
{ | |
var $message = 'foo'; | |
function to_s() { | |
return $message; | |
} | |
function __toString() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load deez. | |
LoadModule alias_module /usr/libexec/apache2/mod_alias.so | |
LoadModule authz_host_module /usr/libexec/apache2/mod_authz_host.so | |
LoadModule dir_module /usr/libexec/apache2/mod_dir.so | |
LoadModule log_config_module /usr/libexec/apache2/mod_log_config.so | |
LoadModule mime_module /usr/libexec/apache2/mod_mime.so | |
LoadModule php5_module /usr/libexec/apache2/libphp5.so | |
LoadModule rewrite_module /usr/libexec/apache2/mod_rewrite.so | |
# Get down to bizness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Expectation | |
{ | |
function __construct($value) { | |
$this->value = $value; | |
} | |
function toBe($expected) { | |
return $this->value === $expected; |