Skip to content

Instantly share code, notes, and snippets.

View gcman105's full-sized avatar

Gary Cheeseman gcman105

View GitHub Profile
@gcman105
gcman105 / nvim.scpt
Last active May 25, 2020 12:16 — forked from cinakyn/Vim.scpt
Open files with iTerm nvim
on run {input, parameters}
-- If run without input, open random file at $HOME
try
set paths to ""
repeat with i from 1 to length of input
set cur to item i of input
set paths to paths & " " & quote & POSIX path of cur & quote
end repeat
on error
@gcman105
gcman105 / TrueColour.md
Created July 20, 2017 18:51 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@gcman105
gcman105 / Google Tag Manager on Genesis Framework
Last active August 29, 2015 14:21 — forked from anandkumar/GTM on Genesis Framework
Add Google Tag Manager script to a Genesis Framework Child Theme
/**
* Add Google Tag Manager script to a Genesis Framework Child Theme
*
* @author Gary Cheeseman (Forked from Anand Kumar)
* @link http://www.garycheeseman.me.uk/
*
*/
add_action('genesis_before', 'google_tag_manager');
function google_tag_manager() { ?>
@gcman105
gcman105 / js2cs.rb
Created November 25, 2012 13:57 — forked from unamashana/js2cs.rb
Converting project files from Javascript to CoffeeScript
SRC_BASE_DIR = "."
DEST_BASE_DIR = "."
JS2COFFEE = "~/node_modules/js2coffee/bin/js2coffee"
dirs = []
files = []
Dir.glob("#{SRC_BASE_DIR}/**/*.js").each do |file|
files << file
dir = File.dirname(file).split(SRC_BASE_DIR)[1]
@gcman105
gcman105 / 960gs.scss
Created December 6, 2011 00:17 — forked from jmblog/960gs.scss
SCSS: 960gs.scss
/*-----------------------------------------------------
960 Grid System ~ Core CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
-------------------------------------------------------*/
/* Grid Settings
---------------------------*/
// 12-column grid