CSS animate a delete button
Forked from Mr Rogers's Pen CSS animate a delete button.
Directives man! While the they're literally the entry point into angular development (you can't get going without ng-app), many people starting out with Angular are hesistant to write their own because of the complexity associated with them. But once that initial hurdle is crossed their value as reusable components becomes indispensible.
Occasionally a complicated component will come along, one
<html> | |
<head> | |
</head> | |
<body> | |
</body> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
</html> |
source "https://rubygems.org" | |
gem 'git' |
Hop into a shell and to the root directory of your project and run | |
git ls-tree --name-only -z -r HEAD -- $1 | xargs -0 -n1 git blame --line-porcelain | grep "^author "|sort|uniq -c|sort -nr | |
Then wait a bit. You get a nice sorted list of lines of code and author name. | |
Add it to your bash profile like this | |
whodunit() { | |
git ls-tree --name-only -z -r HEAD -- $1 | xargs -0 -n1 git blame --line-porcelain | grep "^author "|sort|uniq -c|sort -nr | |
} |
SummitClock = { | |
twoDigits: function(v) { | |
return ("0" + v).slice(-2); | |
}, | |
updateTime: function() { | |
var c = document.getElementById('clock'); | |
var now = new Date(); | |
var hours = now.getHours(); | |
var minutes = now.getMinutes(); | |
var secs = now.getSeconds(); |
module MyProject | |
class S3 | |
def config | |
Rails.application.config.s3_config | |
end | |
def url_for_read(path, opts) | |
expire_date = (Time.zone.now + opts[:expires]).to_i | |
request_string = "GET\n\n\n#{expire_date}\n/#{config[:bucket]}/#{path}" | |
hmac = OpenSSL::HMAC.digest(digest, config[:secret_access_key], request_string) |
<div id="fixture"> | |
<div class="container"> | |
</div> | |
<div class="container"> | |
</div> | |
</div> |
__from_exercism_config() { | |
COMPREPLY=() | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
COMPREPLY=($(compgen -W 'current demo fetch login logout peek restore submit unsubmit whoami help' -- $cur)) | |
} | |
complete -F __from_exercism_config -o default exercism | |
# the hot stuff wrapper/presenter | |
class HotStuff | |
def items | |
@items ||= Stuff.hot.limit(5) | |
end | |
end |