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
foo |
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
This is bar.txt and it was added remotely. |
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
<html> | |
<head><title>Hello</title></head> | |
<body> | |
<h1>Hello</h1> | |
<p>This file was updated by Bryan from remote</p> | |
</body> | |
</html> | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<targets> | |
<target name="coloredConsole" xsi:type="ColoredConsole" useDefaultRowHighlightingRules="false" | |
layout="${longdate}|${pad:padding=5:inner=${level:uppercase=true}}|${message}"> | |
<highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" /> | |
<highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" /> |
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
#!/usr/bin/env ruby | |
a = [ [1,2,3], [2,3,4], [4,5,6] ] | |
b = [] | |
a[0].each do |i| | |
a[1].each do |j| | |
a[2].each do |k| | |
b << [i,j,k] | |
end |
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
def multi_cartesian(array) | |
array[1..-1].inject(array[0]) do |m,n| | |
m = m.product(n).map(&:flatten) | |
end | |
end |
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
### Keybase proof | |
I hereby claim: | |
* I am bryanl on github. | |
* I am bryanl (https://keybase.io/bryanl) on keybase. | |
* I have a public key whose fingerprint is CA55 17A0 3803 2465 D693 20D2 F822 E666 80B5 5FFF | |
To claim this, I am signing this object: |
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
~ ❯ pry | |
[1] pry(main)> class Foo | |
[1] pry(main)* def is_pub | |
[1] pry(main)* puts "is public" | |
[1] pry(main)* end | |
[1] pry(main)* private def is_private | |
[1] pry(main)* puts "is private" | |
[1] pry(main)* end | |
[1] pry(main)* def wtf | |
[1] pry(main)* puts "wtf" |
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
type Response struct { | |
*http.Response | |
} | |
func newResponse(r *http.Response) *Response { | |
response := &Response{Response: r} | |
return response | |
} |
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
package main | |
import ( | |
"crypto/md5" | |
"fmt" | |
"io/ioutil" | |
"code.google.com/p/go.crypto/ssh" | |
) |
OlderNewer