Here's what I did to get things working.
Yep, over at: https://developer.apple.com
| #!/bin/bash | |
| function switch_files { | |
| mv $1.png $1.tmp.png | |
| mv $1-inverse.png $1.png | |
| mv $1.tmp.png $1-inverse.png | |
| mv $1@2x.png $1@2x.tmp.png | |
| mv $1[email protected] $1@2x.png | |
| mv $1@2x.tmp.png $1[email protected] | |
| } |
| Solarized | |
| #FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F | |
| Solarized Dark | |
| #073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F | |
| <?php | |
| use RecursiveDirectoryIterator; | |
| use RecursiveIteratorIterator; | |
| use SplFileInfo; | |
| # http://stackoverflow.com/a/3352564/283851 | |
| /** | |
| * Recursively delete a directory and all of it's contents - e.g.the equivalent of `rm -r` on the command-line. |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
| // Addition to jQuery to get the inner text width | |
| $.fn.textWidth = function(){ | |
| var text = $(this).html(); | |
| $(this).html('<span>'+text+'</span>'); | |
| var width = $(this).find('span:first').width(); | |
| $(this).html(text); | |
| return width; | |
| }; |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: plexconnect | |
| # Required-Start: plexmediaserver networking | |
| # Required-Stop: plexmediaserver networking | |
| # Default-Start: 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: This is the Plex Connect daemon | |
| # Description: This script starts the Plex Connect | |
| # Python scripts in a detached screen. |
| <?php | |
| function pre_print_r($var){ | |
| echo "<pre>"; | |
| print_r($var); | |
| echo "</pre>"; | |
| } | |
| function Bigrams($word){ |
| diff -urN htop-1.0.2-orig/CRT.c htop-1.0.2/CRT.c | |
| --- htop-1.0.2-orig/CRT.c 2013-03-23 14:10:29.500604247 +0100 | |
| +++ htop-1.0.2/CRT.c 2013-03-23 14:11:01.916663508 +0100 | |
| @@ -59,6 +59,9 @@ | |
| UPTIME, | |
| BATTERY, | |
| TASKS_RUNNING, | |
| + TEMPERATURE_COOL, | |
| + TEMPERATURE_MEDIUM, | |
| + TEMPERATURE_HOT, |
| <?php | |
| /** | |
| * This functions runs like array_unique but is based on similarity | |
| * and the math is based on similar_text to know better, see: php.net/similar_text | |
| * | |
| * @param [type] $array [description] | |
| * @param integer $howMuch [description] | |
| * @param [type] $callback [description] | |
| * @return [type] [description] |