THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # Add folder and filename to tab title | |
| atom.workspace.observeTextEditors (editor) -> | |
| if editor.getTitle() isnt "untitled" | |
| sp = editor.getPath().split('/') | |
| title = sp.slice(sp.length-2).join('/') | |
| editor.getTitle = -> title | |
| editor.getLongTitle = -> title | |
| editor.emitter.emit "did-change-title", editor.getTitle() | |
| atom.workspace.onDidOpen (event) -> |
| #!/bin/bash | |
| # Example usage: sizes path/to/somewhere/ | |
| sizes () | |
| { | |
| ls -lrt -d -1 ${PWD}/${1}* | xargs du -sh | |
| } |
| #!/bin/bash -l | |
| # Recursively greps files for pattern match | |
| search() { | |
| usage='Usage: search PATTERN [directory]' | |
| search_dir='.' | |
| # Return usage if 0 or more than 2 args are passed |
| #!/bin/bash -l | |
| # Recursively performs a perl replace on files in current or specified directory | |
| # ...took me all afternoon to get it right. | |
| # Examples: | |
| # replace 's/stringtofind/stringtoreplacewith/g' | |
| # replace 's/foo/bar/g' path/to/dir | |
| replace() { |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
| /* Small Devices, Tablets */ | |
| @media only screen and (max-width : 768px) { | |
| .animated { | |
| /*CSS transitions*/ | |
| -o-transition-property: none !important; | |
| -moz-transition-property: none !important; | |
| -ms-transition-property: none !important; | |
| -webkit-transition-property: none !important; | |
| transition-property: none !important; | |
| /*CSS transforms*/ |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Stripe Getting Started Form</title> | |
| <!-- The required Stripe lib --> | |
| <script type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
| <!-- jQuery is used only for this example; it isn't required to use Stripe --> |
| grep -r --color --exclude-dir={custom,lib,scripts} --exclude={*.xml,error_log} "beta" . |
| sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
| sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
| // by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
| // Quartz Debug says. Who knows, maybe it's lying? | |
| // P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
| // back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |