This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include this in your ~/.zshrc or ~/.bashrc | |
pconsole () { | |
if [[ $1 == production ]]; | |
then RAILS_ENV=production bundle exec pry -r ./config/environment.rb -r rails/console/app -r rails/console/helpers; | |
elif [[ $1 == test ]]; | |
then RAILS_ENV=test pry -r ./config/environment.rb -r rails/console/app -r rails/console/helpers; | |
else bundle exec pry -r ./config/environment.rb -r rails/console/app -r rails/console/helpers; | |
fi } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@glimmer/component'; | |
export default class extends Component { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Authors: Robert Jackson, Jonathan Jackson | |
# the formatting of this file has been altered in | |
# order to fit on this website. Check out | |
# https://gist.github.com/1233581 if you care | |
require 'chunky_png' #or 'oily_png' | |
class Hough | |
def initialize(image_path, options={}) | |
@image = ChunkyPNG::Image.from_file(image_path) | |
@image_path = image_path |
Syntastic setup:
Install:
vim-syntastic/syntastic
Add the following to ~/.eslintrc
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! SelectaCommand(choice_command, vim_command) | |
try | |
silent! exec a:vim_command . " " . system(a:choice_command . " | selecta") | |
catch /Vim:Interrupt/ | |
endtry | |
redraw! | |
endfunction | |
let g:selecta_command = 'find * ' . | |
\ '-type f ' . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/utilities/inline-svg/helper.js | |
// @ts-ignore: | |
import { svgs } from '../../../utils/svgs'; | |
function dottify(path) { | |
return (path || '').replace(/^\//g, '').replace(/\//g, '.'); | |
} | |
export default function inlineSvg([path]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import { inject as service } from '@ember/service'; | |
import { getOwner } from '@ember/application'; | |
export default Ember.Controller.extend({ | |
routerService: service('router'), | |
appName: 'Ember Twiddle', | |
actions: { | |
actionOne() { | |
this.get('routerService').transitionTo('foo.bar.my-route', 1, { queryParams: { foo: 1 }}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
NewerOlder