a/o 2020-05-29
--
- Restart with Cmd-R or Cmd-D
- Erase drive / 3x if second-hand
- Reinstall MacOS
| Shortcode: htitle | |
| Snippet: =========== **%fill:Header Title%** =========== | |
| Result: =========== **Header** =========== | |
| Shortcode: tline | |
| Snippet: ============================== | |
| Result: ============================== | |
| Shortcode: startask | |
| Snippet: **★ %fill:Starred To Do Item%** |
| # A guide to prevent pain and suffering while upgrading to OS X Mavericks | |
| # This will vary greatly depending on system set up, so read the instructions carefully | |
| # Back up Virtulenvs | |
| #################### | |
| # Very important! | |
| # For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv | |
| # in order to prevent loss of dependencies during the upgrade. |
| <?php | |
| /* | |
| * Translate a non-standard object into an associative array object. | |
| * Super-useful for dealing with simplexml objects. | |
| */ | |
| function simpleXML_to_object($obj) | |
| { | |
| $data = new StdClass(); | |
| if( | |
| (is_object($obj) && get_class($obj) == 'SimpleXMLElement') |
Craig Mod does a bigger overhaul with Twitter for Minimalists, but this will only do the following:
You can add this CSS in Safari with this extension. The URL to target is twitter.com/*.
| // http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric/1830844#1830844 | |
| function isNumber(n) { return !isNaN(parseFloat(n)) && isFinite(n); } | |
| // Check if character is a fraction, e.g. ¼ | |
| function isFractionalChar(n) { | |
| c = n.charCodeAt(); | |
| return (c >= 188 && c <= 190) || (c >= 8531 && c <= 8542); | |
| } | |
| // return the first fractional character in a string |
| /* http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */ | |
| overflow: hidden; | |
| text-indent: 100%; | |
| white-space: nowrap; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>author</key> | |
| <string>Jacob Rus</string> | |
| <key>comment</key> | |
| <string>Created by Jacob Rus. Based on ‘Slate’ by Wilson Miner</string> | |
| <key>name</key> | |
| <string>Cowboy - Presentation</string> |
| Just a few notes for the curious. | |
| * Every number in Mr. Penumbra's 24-Hour Bookstore is a least a little bit meaningful | |
| * The Unbroken Spine member IDs are extra meaningful | |
| * I checked in the roster and Peter Richardson's member ID is 6K6DV8 | |
| * I checked in the roster and Patrick Ewing's member ID is 6L9SN2 | |
| * Peter and Patrick had different mentors | |
| * Beware the missing letter | |
| More to come, here and there... |
| /* ------------------------------------------------- | |
| MINIMAL TWITTER FOR FLUID / USERSTYLES | |
| Special thanks to: | |
| Max Fenton (@maxfenton) for kicking this off | |
| ------------------------------------------------- */ | |
| .trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics { |