Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / Alphabet Sentences.txt
Created October 20, 2018 05:28
Alphabet Sentences
Alphabet Sentences
@jasonm23
jasonm23 / text-property-api.org
Last active August 31, 2022 10:08 — forked from Fuco1/text-property-api-org
Text property api for emacs

All these operations are very natural for buffer objects as well as strings, which leads me to the conclusion we should provide two flavours for each function, for buffers and for strings. The way emacs does it is by specifying an object argument. I find this suboptimal, but it is also possible solution (and would reduce the number of functions in half). Note that there are also different indexing conventions, see the Question below.

All functions come in buffer and string flavours. The “current position” is called point in buffer versions and offset in string

@jasonm23
jasonm23 / README.md
Last active September 10, 2020 20:00 — forked from hamann/gist:39371c46806e14ab3853
Elixir mix oh-my-zsh completion plugin

Elixir Mix Oh-My-Zsh plugin

Copy the folder ./elixir_mix/ to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list. e.g.

Example:

plugins=(
  autojump
 git
@jasonm23
jasonm23 / sample .json
Last active May 22, 2018 23:58 — forked from jonfuller/status.json
Transmission RPC
{"arguments":{"torrents":[{"id":5,"name":"60.Minutes.S50E37.1080p.WEB.x264-CookieMonster[rarbg]","percentDone":0.4061},{"id":6,"name":"Elementary.S06E04.1080p.HDTV.X264-DIMENSION[rarbg]","percentDone":0.1815},{"id":7,"name":"Stephen.Colbert.2018.05.21.Zachary.Quinto.1080p.WEB.x264-TBS[rarbg]","percentDone":0.1827}]},"result":"success"}
@jasonm23
jasonm23 / scopelist.txt
Last active May 16, 2016 22:36 — forked from anonymous/scopelist.txt
A list of Sublime Scopes scraped from all themes listed by Aziz' tmTheme Editor
active_guide
argument-name
block_cursor
brackethighlighter.curly
brackethighlighter.tag
class
class-inheritance
class-name
comment
comment.block
@jasonm23
jasonm23 / rails_3_template.rb
Last active December 23, 2015 18:49 — forked from anonymous/Gemfile
Rails Template (target ver.3.2.14) - Slim + Coffee + Sass + Bootstrap + Markdown (views and partials as name.html.md) and TDD/BDD with Guard/Spork and RSpec; FactoryGirl; Capybara; Poltergeist (PhantomJS) and nice HTML5 Test reports via rspec-formatter-webkit. (-o tmp/spec_results.html) + Syntax Highlighting, Rails Entity Diagramming (railsERD) …
# Remove unnecessary files that rails creates for us.
remove_file "public/index.html"
remove_file "public/images/rails.png"
remove_file "public/javascripts"
empty_directory "public/javascripts"
create_file "public/javascripts/application.js"
gem_group :assets do
gem 'twitter-bootstrap-rails'
gem 'less'
@jasonm23
jasonm23 / .slate
Last active December 20, 2015 23:18 — forked from trishume/.slate
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config keyboardLayout qwerty
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
module MyModule
# Regenerating code
end unless __FILE__ == $0
if __FILE__ == $0
require 'savon'
split_on = "#" + " Regenerating code"
code = File.read(__FILE__).split(split_on).last
wsdl_file_path = File.join(File.dirname(__FILE__), ARGV.first || raise("Gimme file!"))
#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)
@jasonm23
jasonm23 / script.md
Created June 6, 2012 14:31 — forked from tomoconnor/script.md
Redis 2.2 Install on Ubuntu 10.04

Installation commands:

wget http://redis.googlecode.com/files/redis-2.2.2.tar.gz
tar xvfz redis-2.2.2.tar.gz 
cd redis-2.2.2/
mkdir -p /opt/redis
make PREFIX=/opt/redis install
cp redis.conf /opt/redis/redis.conf
sudo useradd redis