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
# Local Dates: | |
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt | |
# ISO Dates: | |
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt |
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
Peer Review Questions: | |
Private feedback to the reviewee's manager: | |
1. If you started a new company tomorrow, would you hire this person? | |
2. Is there any other confidential feedback you would like to provide about this person? | |
Feedback to be shared verbatim with the peer: | |
1. Think about the projects you worked on with this individual this year. Where did they |
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
[user] | |
name = Brad Wilson | |
email = dotnetguy@gmail.com | |
[alias] | |
amend = commit --amend | |
bl = blame -w -M -C | |
br = branch | |
cat = cat-file -t | |
co = checkout | |
df = diff --word-diff |
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
#!/bin/sh | |
## | |
## Redhat / Linux / LSB | |
## | |
# chkconfig: 345 85 15 | |
# description: Startup script for Express / Node.js application with the \ | |
## forever module. | |
## | |
## A modification of https://gist.github.com/1339289 | |
## |
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
var async = require('async') | |
var git = require('util/git') | |
var misc = require('util/misc') | |
exports.get_deployedRevision = function(args, callback) { | |
git.revParse(this.config.program_creator_dir, 'HEAD', function(err, stdout) { | |
callback(null, stdout.replace(/^\s+|\s+$/g, '')) | |
}) | |
} |
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
$snapins = Get-PSSnapin -Registered | |
$snapins | Add-PSSnapin | |
Get-Module -ListAvailable | Import-Module | |
Get-PSSnapin | Format-Table -autosize PSVersion, Name | |
Get-Module | Format-Table -autosize ModuleType, Name | |
function ff ([string] $glob) { get-childitem -recurse -include $glob } |
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
<Types> | |
<Type> | |
<Name>System.String</Name> | |
<Members> | |
<ScriptProperty> | |
<Name>ToBase64</Name> | |
<GetScriptBlock> | |
[System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($this)) | |
</GetScriptBlock> | |
</ScriptProperty> |
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
<Types> | |
<Type> | |
<Name>System.String</Name> | |
<Members> | |
<ScriptProperty> | |
<Name>ToBase64</Name> | |
<GetScriptBlock> | |
[System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($this)) | |
</GetScriptBlock> | |
</ScriptProperty> |
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
(function(d) { | |
var dl = d.createElement('a'); | |
dl.innerText = 'Download MP3'; | |
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
dl.download = d.querySelector('em').innerText+".mp3"; | |
d.querySelector('.primary').appendChild(dl); | |
dl.style.marginLeft = '10px'; | |
dl.style.color = 'red'; | |
dl.style.fontWeight = 700; | |
})(document); |
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
public class ReducedController : Controller | |
{ | |
private readonly IContainProducts productRepository; | |
private readonly ISearchForProducts productsIndex; | |
private readonly IContainCustomers customerRepository; | |
private readonly IShipProducts productShipper; | |
private readonly ICoordinateSales salesCatalog; | |
public ReducedController( | |
IContainProducts productRepository, |
NewerOlder