I'm seeling 2 out of my 3 mechanical keyboards. Email me at lukasz 🐹 korecki.me if you're interested.
I'm based in London, UK so picking up in person is prefered but I'm sure we can work something out.
This file contains hidden or 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
| define(function(require){ | |
| var App = {}; | |
| App.SomeView = require('some/view/view'); | |
| }) |
This file contains hidden or 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
| base = { op: 1 } | |
| settings1 = _.extend(base, { op2 : 2 }); | |
| settings2 = _.extend(base, { op2 : 3 }); |
This file contains hidden or 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
| ''.split(',') # => [''] |
This file contains hidden or 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
| "".split(',') # => [] |
This file contains hidden or 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 ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { | |
| r := strings.Split("", ",") | |
| fmt.Printf("%T\n%T\n", r, r[0]) |
This file contains hidden or 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
| # from https://github.com/etsy/statsd/issues/100#issuecomment-6355430 | |
| exec 3<> /dev/udp/statsd_ip_address/8125 | |
| # send data: | |
| echo "whatever|whatever" >&3 | |
| # close udp socket: | |
| exec 3<&- | |
| exec 3>&- |
This file contains hidden or 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
| ha = { | |
| a: 1, | |
| b: 2, | |
| c: 3 | |
| } | |
| # With default. | |
| s = [:a, :d, :c].map { |k| { k => ha.fetch(k, -1) } }.reduce(&:merge!) | |
| puts ha |
This file contains hidden or 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
| readonly user=wu | |
| readonly name=tang | |
| cat > /home/$user/.conf <<-EOF | |
| [init] | |
| name=$name | |
| EOF |
This file contains hidden or 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
| cat > mayfile.txt <<-EOF | |
| Wu-Tang Clan Ain’t Nothing to | |
| EOF |
