Stefan Penner stefanpenner

View default_container_deprecation.md

This document aims to help aggregate issues and solutions around the defaultContainer deprecation.

The Error Message:

Using the defaultContainer is no longer supported. [defaultContainer#lookup]

breaux, where's my defaultContainer?

Well it is still there, and will continue to work for some time. Likely it will be gone by 1.0.0 final

View idea.js
1 2 3 4 5 6 7 8 9 10
var asdf = {
initialize: function(user, controller) {
 
var delegate = (function(){
retun function(statusFromApi){
// controller reference from outer function
// is retained
controller.statusUpdate(statusFromApi)
};
})();
View gist:3481177
1 2 3
function bct(){
bundle list --paths | xargs /usr/local/bin/ctags -R *
}
View gist:3170094
1 2 3 4 5 6 7 8 9 10
function git-web-compare(){
# Usage:
# cd <git_repo>
# git-web-compare <user/repo>
# -> copies url into clipboard
# -> opens browser window at url
#
# Example:
# cd rails
# git-web-compare rails/rails
View index.coffeescript
1 2 3 4 5 6 7 8 9 10
$ ->
window.App = Ember.Application.create()
$(document).bind('resize orientationChanged scroll', => $(window).trigger('viewportDidChange') )
App.BufferedView = Ember.View.extend
collection: []
offset: 0
limit: 4
bufferStateBinding: 'manager.currentState.name'
View quoter.html
1 2 3 4 5 6 7 8 9 10
<div id="instantquoter" class="reveal-modal">
 
<script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script>
 
<script>
$(function() {
$("ul.tabs").tabs("div.main > div.panes");
});
</script>
View gist:1507777

Cool things that make zsh appealing

  • Filename correction during completion

    • if dir1/x exists and dir2 exists, then "dir/x<TAB>" completes to dir1/x
    • if name1 is a file and name2 is a directory with files in it, "name/<TAB>" completes to "name2/"
  • Better ctrl-R behaviour

    • alerts you if your ctrl-R is failing
    • completes it right on the prompt line while showing you what you're searching for below
View gist:1337451
1
mkdir vendor && git clone https://github.com/sproutcore/sproutcore20.git vendor/ && bpm add sproutcore
View gist:1255659
1 2 3 4
{{view SC.TextField vlaueBinding="Sheduler.toolbarController.selectedDate"}}
 
Scheduler.toolbarController = SC.Object.create
selectedDate: <something>
View .bash_profile
1 2 3 4 5 6 7 8 9 10
# snip..
 
#unstable for prod but fine for development
# credit to @burkelibbey
function turbo(){
if [[ $RUBY_HEAP_MIN_SLOTS != 1000000 ]]
then
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
Something went wrong with that request. Please try again.