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
    
  
  
    
  | import sublime | |
| import sublime_plugin | |
| import re | |
| class CompactExpandCssCommand(sublime_plugin.TextCommand): | |
| def run(self, edit, action='compact'): | |
| rule_starts = self.view.find_all('\{') | |
| rule_ends = self.view.find_all('\}') | 
  
    
      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
    
  
  
    
  | # bash/zsh completion support for core Git. | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
| # Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # The contained completion routines provide support for completing: | |
| # | |
| # *) local and remote branch names | |
| # *) local and remote tag names | 
  
    
      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
    
  
  
    
  | # bash/zsh git prompt support | |
| # | |
| # This script allows you to see repository status in your prompt. | |
| # | |
| # To enable: | |
| # | |
| # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). | |
| # 2) Add the following line to your .bashrc/.zshrc: | |
| # source ~/.git-prompt.sh | |
| # 3a) Change your PS1 to call __git_ps1 as | 
  
    
      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/sh | |
| # Run a command; post it and its standard input, output, and error to Slack. | |
| # | |
| # This program expects SLACK_WEBHOOK_URL in its environment. You can get one | |
| # by creating a new Incoming Webhook at <https://my.slack.com/services/new>. | |
| # | |
| #/ Usage: slack [--attach] [--channel=<channel>] [--stdin] ... | |
| #/ --attach post to Slack with an attachment (defaults to fixed-width text) | |
| #/ --channel=<channel> post to this Slack channel (defaults to the integration's default channel) | 
  
    
      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 | |
| # Usage: script.sh [-a|--alpha] [-b=val|--bravo=val] | |
| # Global Declarations | |
| BRAVO="" | |
| function usage(){ | |
| echo "That's not how it works, dummy!"; | |
| } | 
  
    
      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
    
  
  
    
  | // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); | 
  
    
      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
    
  
  
    
  | [Element].forEach(function(self){ | |
| self.prototype.activeListeners = {}; | |
| self.prototype._addEventListener = self.prototype.addEventListener; | |
| self.prototype.addEventListener = function(type, handle, useCapture) { | |
| useCapture = useCapture || false; | |
| node._addEventListener(type, handle, useCapture); | |
| var node = this; | 
  
    
      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
    
  
  
    
  | //https://forums.adobe.com/message/9552896#9552896 | |
| "use strict"; | |
| use(function () { | |
| var parent = resource.getParent(); | |
| var props = parent.adaptTo(Packages.org.apache.sling.api.resource.ValueMap); | |
| return props.get("jcr:createdBy",""); | |
| }); | 
  
    
      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 | |
| # Usage: | |
| # gig path_to_file path_to_other_file | |
| function gig(){ | |
| # Iterate the function arguments | |
| for item in "$@"; do | |
| # Append each to .gitignore at current folder level | |
| echo "$item" >> .gitignore; | |
| done | 
  
    
      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 | |
| # Usage: | |
| # gig path_to_file path_to_other_file | |
| function gittyup(){ | |
| # Iterate the function arguments | |
| for item in "$@"; do | |
| # Append a block comment to the end of the specified file. | |
| echo " /**/ " >> $item; | |
| done | 
OlderNewer