Controlled Bursts | TDD | TCR | 100% Coverage | Emergent Design | Extreme Ownership
Red → Green → TCR → Refactor → TCR → Done
TCR: test && commit || revert
- Pass → commit → continue
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
Get Git log in JSON format
git log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},'The only information that aren't fetched are:
%B: raw body (unwrapped subject and body)%GG: raw verification message from GPG for a signed commit| 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 |
| #news { background: #666; color: #fff; padding: 4px 0; width: 100%; height: 30px; line-height: 30px; overflow: hidden; } | |
| #news .container { float: left; } | |
| #news .overflow { width: 900000px; } | |
| #news .item { padding: 0 20px; } |
| #!/bin/bash | |
| ## v1.0.6 | |
| ## this script will gernerate css stats | |
| ### example output | |
| # CSS STATS | |
| # ---------- | |
| # Floats: 132 |
| module.exports = function(app) { | |
| app.helpers({ | |
| getJS: function(key) { | |
| var output = ''; | |
| app.configure('development', function(){ | |
| try { | |
| var files = app.set('masher_config').JAVASCRIPT[key]; | |
| for(var i = 0, c = files.length; i < c; i++) { | |
| var file = files[i].replace('./public', ''); | |
| output += '<script src="'+file+'"></script>'; |
| setInterval(function() { | |
| console.log([s = [86400000, 3600000, 60000, 1000]][0].map(function(t) { | |
| return ("0" + [(t===s[0] && (remaining = (future - ~~(+new Date()/1000))*1000)), left = ~~(remaining/t), remaining -= left*t][1]).slice(-2); | |
| }).join(':')); | |
| }, [1000, future = +new Date()/1000 + 100000][0]); |