- 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"
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
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. |
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
test('renders a whatever--visa class', function(assert) { | |
var component = this.subject(); | |
run(function() { component.set('type', 'visa'); }); | |
this.$().hasClass('whatever--visa'), | |
}); |
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.
- 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
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 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); | |
} |
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 { 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. |
- 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
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)
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
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', |
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
" 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 = @% |
NewerOlder