Skip to content

Instantly share code, notes, and snippets.

View bryanl's full-sized avatar
🚩
Out in the streets

Bryan Liles bryanl

🚩
Out in the streets
View GitHub Profile
This is bar.txt and it was added remotely.
@bryanl
bryanl / hello.html
Created July 21, 2008 17:00
this is where i get support
<html>
<head><title>Hello</title></head>
<body>
<h1>Hello</h1>
<p>This file was updated by Bryan from remote</p>
</body>
</html>
<?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" />
#!/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
def multi_cartesian(array)
array[1..-1].inject(array[0]) do |m,n|
m = m.product(n).map(&:flatten)
end
end
### 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:
~ ❯ 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"
@bryanl
bryanl / foo.go
Last active August 29, 2015 14:01
type Response struct {
*http.Response
}
func newResponse(r *http.Response) *Response {
response := &Response{Response: r}
return response
}
package main
import (
"crypto/md5"
"fmt"
"io/ioutil"
"code.google.com/p/go.crypto/ssh"
)