THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| " Assumption: This script is executed by gVim. | |
| function! s:css_property_from(vim_attribute) | |
| if a:vim_attribute ==# 'bold' || a:vim_attribute ==# 'standout' | |
| return 'font-weight: bolder;' | |
| elseif a:vim_attribute ==# 'underline' | |
| return 'text-decoration: underline;' | |
| elseif a:vim_attribute ==# 'undercurl' | |
| return 'border-bottom: thin dashed;' |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| -- Ask the user to select an app | |
| set theApp to choose file of type "app" default location (path to applications folder) | |
| -- Get the app name | |
| tell application "System Events" | |
| set theAppName to name of theApp | |
| if theAppName ends with ".app" then set theAppName to text 1 thru -5 of theAppName | |
| -- Determine whether the app is a package, and notify the user if it's not | |
| set isPackage to (package folder of theApp) |
| javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/5834741/raw/grablinks.js?x="+(Math.random());})(); |
| (* | |
| A [native solution][1] exists but it suffers from a major flaw: it right-clicks where the cursor is, not what on the selection. | |
| This code addresses that limitation, though it only works on Finder windows and not the Desktop. | |
| You can install it as a [Finder Service, and later asign it a keyboard shortcut][2]. | |
| [1]: http://stackoverflow.com/questions/9171613/right-click-shortcut-for-mac-lion-os | |
| [2]: http://www.macosxautomation.com/services/learn/tut01/index.html | |
| *) |
| #!/usr/bin/env ruby | |
| # | |
| # Shorten a GitHub URL to a git.io URL | |
| # v1.2.0 - Copyright (c) 2016 Ryan Sobol - The MIT License | |
| # | |
| # Usage: gitio URL [code] | |
| # | |
| # Examples: | |
| # $ gitio https://github.com/ryansobol ryansobol | |
| # https://git.io/ryansobol |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/usr/bin/python | |
| # encoding: utf-8 | |
| # | |
| # Copyright (c) 2013 <deanishe@deanishe.net>. | |
| # | |
| # MIT Licence. See http://opensource.org/licenses/MIT | |
| # | |
| # Created on 2013-11-01 | |
| # |
| #!/usr/bin/python | |
| # encoding: utf-8 | |
| # | |
| # Copyright (c) 2013 deanishe@deanishe.net. | |
| # | |
| # MIT Licence. See http://opensource.org/licenses/MIT | |
| # | |
| # Created on 2013-11-01 | |
| # |