I hereby claim:
- I am danielmoore on github.
- I am danielmoore (https://keybase.io/danielmoore) on keybase.
- I have a public key ASDrqR5dC6B8FfySbM9Z6iLWlPudZtPgBPAj7eHkiFE3dAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| gitRootDir=$(dirname $(git --info-path))/.. | |
| source $(find $gitRootDir -name git-completion.bash) | |
| source $(find $gitRootDir -name git-prompt.sh) |
Why does this work...
$ curl http://[email protected]/-/user/org.couchdb.user:isaacs
{"_id":"org.couchdb.user:isaacs","_rev":"93-157a5d9f44f3ef8fe6b21380632becf1","name":"isaacs","email":"[email protected]","type":"user","roles":[],"date":"2013-12-25T20:42:32.599Z","fullname":"Isaac Z. Schlueter","fields":[{"name":"fullname","value":"Isaac Z. Schlueter","title":"Full Name","show":"Isaac Z. Schlueter"},{"name":"email","value":"[email protected]","title":"Email","show":"[email protected]"},{"name":"github","value":"isaacs","title":"Github","show":"isaacs"},{"name":"twitter","value":"izs","title":"Twitter","show":"@izs"},{"name":"appdotnet","value":"isaacs","title":"App.net","show":"isaacs"},{"name":"homepage","value":"http://blog.izs.me","title":"Homepage","show":"http://blog.
| var array = [-3 , -6, -2, -56, -32, -5, -89, -32]; | |
| function max1(array) { | |
| var largest = array[0]; // start with the first item | |
| for (i = 1; i < array.length; i++) // changed i to start at 1, to avoid extra work | |
| if (array[i] > largest) { | |
| largest = array[i]; | |
| } | |
| return largest; |
| function Get-Hash { | |
| [CmdletBinding(DefaultParameterSetName='file:sha1')] | |
| param( | |
| [Parameter(ParameterSetName='file:md5')] | |
| [Parameter(ParameterSetName='string:md5')] | |
| [Switch] | |
| $MD5, | |
| [Parameter(ParameterSetName='file:sha1')] | |
| [Parameter(ParameterSetName='string:sha1')] | |
| [Switch] |
| function Find-File { | |
| [CmdletBinding(DefaultParameterSetName = 'Count')] | |
| param( | |
| [Parameter(Mandatory = $true, Position = 0)] | |
| [string]$Name, | |
| [Parameter(Position = 1)] | |
| [string]$Directory = '.', | |
| [Parameter(ParameterSetName = 'Count')] | |
| [int]$MaxResults = 1, | |
| [Parameter(ParameterSetName = 'All')] |
| Add-Type -Namespace PowershellPlatformInterop -Name Clipboard -MemberDefinition @" | |
| [DllImport("user32.dll", SetLastError=true)] | |
| public static extern bool EmptyClipboard(); | |
| [DllImport("user32.dll", SetLastError=true)] | |
| public static extern IntPtr SetClipboardData(uint uFormat, IntPtr hMem); | |
| [DllImport("user32.dll", SetLastError=true)] | |
| public static extern IntPtr GetClipboardData(uint uFormat); |
I used to own a Logitech MX 5500 which was great, but difficult to use without SetPoint installed.
I also looked at the Logitech Wireless Keyboard K270 and the Logitech Wireless Illuminated Keyboard K800. Illumination didn't seem too necessary, since, well, I can touch-type. But it's a nice keyboard regardless.
| void Main() | |
| { | |
| Test(PerformIfBlocks).Dump("If blocks"); | |
| Test(PerformLogicalAnd).Dump("Logical AND"); | |
| Test(PerformLogicalOr).Dump("Logical OR"); | |
| } | |
| private int Test(Func<int, int, bool> test) { | |
| var cancel = false; | |
| var task = Task.Factory.StartNew(() => { |
| let rec processMethodCalls (rule : IRule) (processor : MethodCall -> Option<Problem>) (mbr : Member) : ProblemCollection = | |
| let problems = new ProblemCollection(rule) | |
| let rec processMbrs mbrs = Seq.iter processMbr mbrs | |
| and processMbr (mbr : Member) = | |
| let rec processStmts stmts = Seq.iter processStmt stmts | |
| and processStmt (stmt : Statement) = | |
| let rec processExprs exprs = Seq.iter processExpr exprs | |
| and processExpr (expr : Expression) = | |
| match expr with |