Skip to content

Instantly share code, notes, and snippets.

View AmilKey's full-sized avatar
🏠
Working from home

DekkoSecure 2 AmilKey

🏠
Working from home
View GitHub Profile
@AmilKey
AmilKey / gist:a86e357d2d7114f2616a
Created June 29, 2015 13:55 — forked from stuart11n/gist:9628955
rename git branch locally and remotely - Gists - GitHub
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@AmilKey
AmilKey / gist:b5b0009f8cea9f445e34
Created May 19, 2015 09:41
component as collectionView
{{#list-block content=widgets}}
item value {{value}}
{{/list-block}}
to
<ul class='list-block'>
<li class='list-block__item'>
item value drawer-value
</li>
<li class='list-block__item'>
item value hot-drawer-value
@AmilKey
AmilKey / gist:5abaa44e39e755d36b3b
Created May 5, 2015 14:45
hooks of ember view
/// HOOKS
var noop = function () {};
Renderer.prototype.willCreateElement = noop; // inBuffer
Renderer.prototype.createElement = noop; // renderToBuffer or createElement
Renderer.prototype.didCreateElement = noop; // hasElement
Renderer.prototype.willInsertElement = noop; // will place into DOM
Renderer.prototype.didInsertElement = noop; // inDOM // placed into DOM
Renderer.prototype.willRemoveElement = noop; // removed from DOM willDestroyElement currently paired with didInsertElement
Renderer.prototype.willDestroyElement = noop; // willClearRender (currently balanced with render) this is now paired with createElement
@AmilKey
AmilKey / gist:d4be8bd20d10d0a067ec
Created April 29, 2015 11:17
add permission to .npm
sudo chown -R $USER /usr/local
sudo chown -R `whoami` ~/.npm