I hereby claim:
- I am resonious on github.
- I am resonious (https://keybase.io/resonious) on keybase.
- I have a public key ASDSjFzqNbO_JlieMX706Ahfo70lvmivZkVaeH2y0SKugwo
To claim this, I am signing this object:
import sublime, sublime_plugin, os.path, string | |
class GoToSpecCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
file_name = self.view.file_name() | |
if not ('/app/' in file_name or ('/lib/' in file_name and not '/spec/lib/' in file_name)): | |
if '/spec/lib/' in file_name or '/spec/' in file_name: | |
file_path = "" | |
if '/spec/lib/' in file_name: |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
" colorscheme spink | |
colorscheme phoenix | |
set expandtab | |
let s:tabwidth=4 |
PATH=$PATH:$HOME/neovim/build/bin # nvim! | |
export VIM=$HOME/neovim/runtime # direct neovim to syntax files and such | |
alias vim='nvim' # replace vim with NEOVIM |
execute pathogen#infect() | |
set t_Co=256 | |
syntax on | |
filetype plugin indent on | |
" Tabs are 2 spaces by default | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 |
MRuby::Build.new('emscripten') do |conf| | |
toolchain :gcc | |
conf.cc.command = "emcc" | |
# NOTE the _MSC_VER is so that mruby won't define the 'round' function | |
conf.cc.compile_options = "%{infile} %{flags} -D_MSC_VER=2000 -o %{outfile}" | |
conf.linker.command = "emcc" | |
conf.linker.flags << "-O3" | |
conf.linker.link_options = "%{objs} %{libs} %{flags} -o %{outfile}" |
// MACOS: | |
[ | |
{ "key": "shift+cmd+[", "command": "workbench.action.previousEditor", | |
"when": "editorTextFocus" }, | |
{ "key": "shift+cmd+]", "command": "workbench.action.nextEditor", | |
"when": "editorTextFocus" }, | |
{ "key": "ctrl+y", "command": "scrollLineUp", | |
"when": "!terminalFocus" }, | |
{ "key": "ctrl+e", "command": "scrollLineDown", | |
"when": "!terminalFocus" }, |
#/bin/bash | |
# | |
# Source this file and use these functions | |
# | |
install_neovim() { | |
echo "========= NEOVIM: =========" | |
sudo add-apt-repository ppa:neovim-ppa/unstable | |
sudo apt-get update |
I hereby claim:
To claim this, I am signing this object:
def by_order_production_deadline_then_customer(list) | |
by_deadline = sort_order(:production_deadline) | |
by_customer = sort_order(:customer_name) | |
list.sort do |a, b| | |
primary_sort_order = by_deadline[a, b] | |
secondary_sort_order = by_customer[a, b] | |
if primary_sort_order != 0 | |
primary_sort_order |
begin | |
require 'nokogiri' | |
require 'faraday' | |
require 'io/console' | |
require 'byebug' | |
rescue LoadError => e | |
STDERR.puts e | |
STDERR.puts "please execute" | |
STDERR.puts " $ gem install nokogiri faraday byebug" | |
exit 3 |