Skip to content

Instantly share code, notes, and snippets.

View corasaurus-hex's full-sized avatar

Cora Sutton corasaurus-hex

View GitHub Profile
@mpeuster
mpeuster / orgmode.gcemode
Created August 2, 2017 14:19
Highlights headings, TODOs, checkboxes, and links in Emacs Orgmode files
{
// GoCoEdit demo mode - visit http://gocoedit.com/docs/custommodes for more information
"name": "orgfile", // The name of the Mode
"ext":[
// An Array of file extensions to associate with your mode
"org", "ORG", "Org",
],
"dash_docsets": "", // Docsets to search if you are using the dash app
"tokenizer":[
// Cascading and Mutability cause pain
// and all sorts of trouble for your brain
// so quit being pedantic
// those styles are gigantic
// and Functional CSS is quite sane
// http://mrmrs.io/writing/2016/03/24/scalable-css/
// https://marcelosomers.com/writing/rationalizing-functional-css/
// https://blog.colepeters.com/building-and-shipping-functional-css/
@telent
telent / gist:9742059
Last active May 8, 2024 11:36
12 factor app configuration vs leaking environment variables
App configuration in environment variables: for and against
For (some of these as per the 12 factor principles)
1) they are are easy to change between deploys without changing any code
2) unlike config files, there is little chance of them being checked
into the code repo accidentally
3) unlike custom config files, or other config mechanisms such as Java
@ykarikos
ykarikos / png2svg.sh
Created June 7, 2012 22:17
Convert png to svg using imagemagick and potrace
#!/bin/bash
if [ "$1" == "" ]; then
echo Usage: $0 pngfile
exit 0;
fi
FILE=`basename $1 .png`
if [ ! -e $FILE.png ]; then