Skip to content

Instantly share code, notes, and snippets.

@biscuitvile
biscuitvile / artichoke
Created January 5, 2017 20:13
artichoke dip
Preheat oven to 400 degrees
1 box thawed, frozen spinach
1 can artichokes
2/3 cup tofutti better than sour cream
Full container of tofutti better than cream cheese
1 tbsp minced garlic (slightly less if freshly minced)
1 tsp salt
pepper to taste
Dump all that good stuff in a casserole dish and mix to combine. Over the top, spread a layer of daiya (I don't usually like daiya but its good here i swear), and a hearty sprinkling of breadcrumbs.
Put that sucker in the oven and bake till it starts to bubble and the daiya browns ever so slightly.
@biscuitvile
biscuitvile / remote-pairing.md
Last active February 9, 2018 00:06
Improved Remote Pairing with Vim, Tmux and Tmate (IMO)

Improved Remote Pairing with Vim, Tmux and Tmate

Goals

  • Spin up tmux sessions for each app automatically
  • Have vim started in each tmux session
  • Have a console successfully started for Rails apps, regardless of Rails version
  • Tail the pow logs for Rails apps
  • Start Ember server and test runner for Ember apps
  • Maintain vim sessions automatically so vim is always "as we left it"
test('renders a whatever--visa class', function(assert) {
var component = this.subject();
run(function() { component.set('type', 'visa'); });
this.$().hasClass('whatever--visa'),
});
@biscuitvile
biscuitvile / pizza.md
Last active October 10, 2019 00:03
Pizza Recipe

This pizza is a life-changer. If it's not already I highly recommend promoting homemade vegan pizza to a first class fixture in your life. The secret to this recipe is the sauce; it's a good idea to make extra as it keeps well in the freezer.

Vegan Dad Sausage:

  • 1/2 cup pinto beans
  • 1 cup vegetable broth
  • 1 T. olive oil
  • 2 T. soy sauce
  • 2 cloves garlic minced
  • 1 1/4 cup vital wheat gluten
import DS from "ember-data";
import Ember from "ember";
import ENV from "frontent/config/environment";
function formatAttributeName(attr) {
if (ENV['ember-cli-mirage'].enabled) {
return Ember.String.camelize(attr);
} else {
return Ember.String.decamelize(attr);
}
import Ember from 'ember';
import { pluralize } from './utils/inflector';
import Pretender from 'pretender';
import Db from './db';
import controller from './controller';
/*
Given a variable number of arguments, it generates an array of with
[path, handler, code, options], `path` and `options` being always defined,
and `handler` and `code` being undefined if not suplied.
@biscuitvile
biscuitvile / zsh_tips.md
Last active August 29, 2015 14:23
Tips for zsh

Tips for zsh

  • Cycle backwards through your command history with Ctrl+p
  • Cycle forwards through your command history with Ctrl+n
  • Search backwards through your command history with Ctrl+r, search a term and hit Enter to run that command
  • Clear a whole line you've typed on the Ctrl+u, you can also use this to get out of searching your history
  • Jump to the beginning of a line of text with Ctrl+a
  • Jump to the end of a line of text with Ctrl+e
  • Cut text from the cursor position to the end of the line with Ctrl+k
  • Jump back a word with Escape+b
@biscuitvile
biscuitvile / up_an_running.md
Last active July 8, 2020 07:15
Up and Running with iTerm, Tmux, Vim, and vim-rails

Up and Running with iTerm, Tmux, Vim, and vim-rails

Make it a point to be able to use the keyboard as much as you can. In OS X the spotlight is great for this. By default the spotlight hotkey is Cmd+Space. Make it a point to try and always use iTerm in fullscreen. Remember that your tmux prefix is set to Ctrl+z

  • Open iTerm with spotlight with Cmd+Space search iTerm and open with Enter
  • Fullscreen iTerm with Cmd+Enter
  • Pop out of iTerm with the hotkey you added Ctrl+Enter
  • Pop back into iTerm with Ctrl+Enter again
  • Nagivate to your intended project directory
  • Check for running tmux sessions with tmux ls (Failed to connect to server just means no tmux sessions yet)
beforeEach: function() {
application = startApp();
var order = server.create('order', {
id: 'EFGH-123456',
customerFirstName: 'Dana',
customerLastName: 'Scully',
customerEmail: '[email protected]',
shippingAddress1: '411 Walnut St.',
shippingAddress2: '#6534',
" Hat tip to vicramon/vim-qunit and jgdavey/vim-turbux
function! OpenQUnit(params)
let url = "http://localhost:7357/tests/index.html?filter=" . tolower(a:params)
let url = shellescape(url, 1)
silent! exec "silent! !open " . url | redraw!
endfunction
function! RunQunitFile()
let file_name = @%