This file contains hidden or 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 | |
| function inlinestyler($html) { | |
| return curl_post_data("http://inlinestyler.torchboxapps.com/styler/convert/", "returnraw=1&source=".urlencode($html)); | |
| } | |
| function curl_post_data($uri, $data) { | |
| $ch = curl_init($uri); | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $data); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| # Git push then pull over ssh | |
| # | |
| # Supposing you have these environments on the same ssh git remote: | |
| # project/origin.git | |
| # project/dev/.git | |
| # project/prod/.git | |
| # | |
| # You can then push the current branch and pull it in dev/ and prod/ by doing: | |
| # $ git deploy dev | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Change window.location.hash without scrolling the page, even in IE | |
| // by renaming the element's id temporarily | |
| function changeHashWithoutScrolling(hash) { | |
| const id = hash.replace(/^.*#/, '') | |
| const elem = document.getElementById(id) | |
| elem.id = `${id}-tmp` | |
| window.location.hash = hash | |
| elem.id = id | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/usr/bin/ruby | |
| # Prints out a memorable password. | |
| # | |
| # Example: | |
| # $ mdp | |
| # Kasubian704 | |
| # $ mdp 3 | |
| # trefle173 | |
| # semilunar557 | |
| # derride305 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # screen on ssh-connection | |
| if [ -n "$SSH_CONNECTION" ] && [ "$TERM" != 'screen' ] && [ -z "$SCREEN_EXIST" ]; then | |
| export SCREEN_EXIST=1 | |
| screen -DR | |
| fi | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| # Returns a pretty list of your commits in the subfolders | |
| # | |
| # I use to know what I've worked on in the last week, eg: | |
| # | |
| # $ cd ~/code/ | |
| # $ git-my-commits-since '7 days ago' | |
| # project-foo | |
| # 3a16032 2 days ago New cool feature | |
| # a07ba63 3 days ago Added improbability drive | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /** | |
| * jQuery Konami event plugin | |
| * Called after the ↑ ↑ ↓ ↓ ← → ← → B A keyboard sequence is completed. | |
| * by Sunny Ripert <http://sunfox.org>, under the WTFPL <http://sam.zoy.org/wtfpl/> | |
| * | |
| * Example: | |
| * $(window).konami(function() { | |
| * alert('Konami!') | |
| * }) | |
| **/ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | retried = false | |
| begin | |
| require 'foo' | |
| require 'bar' | |
| require 'spam' | |
| rescue LoadError => e | |
| raise if retried | |
| require 'rubygems' | |
| retried = true | |
| retry | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?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>beforeRunningCommand</key> | |
| <string>nop</string> | |
| <key>bundleUUID</key> | |
| <string>4676FC6D-6227-11D9-BFB1-000D93589AF6</string> | |
| <key>command</key> | |
| <string>echo '<ul>' | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /** | |
| * SingleKeyDown | |
| * | |
| * Returns when a key has been pressed but does not trigger | |
| * if control or command is beeing pressed. | |
| * | |
| * Also, adds the name of the key in the event under the | |
| * `keyName` option. Includes special names for the keys | |
| * left & right. | |
| * |