alexherbo2

Activity Graph

Page 1 of 3 | Next »

2018-01-03

[01:34:41] alexherbo2: Quit: WeeChat 1.9
[07:54:30] alexherbo2: Quit: WeeChat 1.9
[14:33:05] alexherbo2: Quit: WeeChat 1.9

2017-12-30

[10:51:26] alexherbo2: Ping timeout: 272 seconds
[10:52:38] alexherbo2: has joined #ruby
[11:00:56] alexherbo2: Ping timeout: 272 seconds
[11:16:05] alexherbo2: has joined #ruby
[11:25:38] alexherbo2: Ping timeout: 272 seconds
[12:01:12] alexherbo2: has joined #ruby
[16:48:22] alexherbo2: Quit: WeeChat 2.0.1

2017-12-06

[20:32:15] alexherbo2: Quit: WeeChat 1.9.1

2016-07-27

[22:08:45] alexherbo2: Ping timeout: 244 seconds
[22:18:50] alexherbo2: has joined #ruby

2016-07-23

[06:51:01] alexherbo2: has joined #ruby
[21:17:25] alexherbo2: Ping timeout: 250 seconds
[21:30:45] alexherbo2: has joined #ruby

2016-07-21

[08:53:41] alexherbo2: Quit: WeeChat 1.4

2016-07-20

[14:37:19] alexherbo2: has joined #ruby

2016-07-16

[07:59:08] alexherbo2: Quit: WeeChat 1.4

2016-07-15

[18:53:42] alexherbo2: has joined #ruby

2016-07-11

[11:12:38] alexherbo2: Ping timeout: 258 seconds

2016-07-09

[18:21:53] alexherbo2: has joined #ruby

2016-07-07

[12:49:40] alexherbo2: Ping timeout: 264 seconds

2016-06-29

[07:19:50] alexherbo2: has joined #ruby

2016-06-24

[08:58:37] alexherbo2: Quit: WeeChat 1.4

2016-06-19

[22:08:43] alexherbo2: Ping timeout: 252 seconds
[22:22:56] alexherbo2: has joined #ruby
[22:32:26] alexherbo2: Ping timeout: 272 seconds
[22:47:30] alexherbo2: has joined #ruby

2016-06-13

[15:26:51] alexherbo2: has joined #ruby

2016-05-29

[12:16:01] alexherbo2: Quit: WeeChat 1.4

2016-05-24

[09:22:35] alexherbo2: has joined #ruby

2016-05-13

[08:44:33] alexherbo2: Quit: WeeChat 1.4

2016-05-10

[17:04:55] alexherbo2: has joined #ruby

2016-05-03

[10:28:42] alexherbo2: Quit: WeeChat 1.4

2016-05-02

[08:42:15] alexherbo2: has joined #ruby
[10:49:21] alexherbo2: Quit: WeeChat 1.4
[16:16:51] alexherbo2: has joined #ruby

2016-05-01

[22:10:20] alexherbo2: Quit: WeeChat 1.4

2016-04-30

[12:06:28] alexherbo2: *.net *.split
[12:13:04] alexherbo2: has joined #ruby

2016-04-29

[14:33:11] alexherbo2: *.net *.split
[14:37:13] alexherbo2: has joined #ruby

2016-04-27

[20:15:33] alexherbo2: Ping timeout: 240 seconds
[20:31:22] alexherbo2: has joined #ruby

2016-04-26

[08:32:24] alexherbo2: has joined #ruby
[13:32:43] alexherbo2: Ping timeout: 250 seconds
[14:23:32] alexherbo2: has joined #ruby
[21:32:49] alexherbo2: Ping timeout: 268 seconds
[21:48:08] alexherbo2: has joined #ruby

2016-04-25

[20:39:57] alexherbo2: Ping timeout: 276 seconds
[20:54:33] alexherbo2: has joined #ruby
[22:05:14] alexherbo2: Ping timeout: 260 seconds

2016-04-24

[21:33:51] alexherbo2: Ping timeout: 250 seconds
[21:49:16] alexherbo2: has joined #ruby
[22:16:19] alexherbo2: Ping timeout: 250 seconds
[22:23:50] alexherbo2: has joined #ruby

2016-04-22

[11:51:40] alexherbo2: How get named arguments in a hash form?, and convert hash to named arguments.
[11:52:18] alexherbo2: Use case is to implement a bind method with named argument support.
[11:52:25] alexherbo2: https://gist.github.com/alexherbo2/fe575ed40aae72f9d9f8c96ba6c2bfee
[11:53:54] alexherbo2: apeiros: I guess foo **{ bar: 1, baz: 2 } will convert hash to named arguments?
[11:57:10] alexherbo2: apeiros: What is the built-in equivalent of #bind I try to implement?
[11:59:23] alexherbo2: Yes currying
[12:03:37] alexherbo2: apeiros: There is no Boost-like implemention?
[12:03:44] alexherbo2: http://boost.org/doc/libs/1_49_0/libs/bind/bind.html#Purpose
[13:58:52] alexherbo2: apeiros: is there a built-in method to detect if arguments are named?
[14:05:37] alexherbo2: `derpy: Thanks!

2016-04-21

[00:38:50] alexherbo2: Ping timeout: 252 seconds
[00:53:07] alexherbo2: has joined #ruby

2016-04-19

[21:29:52] alexherbo2: Ping timeout: 264 seconds
[21:44:37] alexherbo2: has joined #ruby

2016-04-17

[08:57:40] alexherbo2: has joined #ruby

2016-04-15

[16:53:29] alexherbo2: has joined #ruby
[17:01:15] alexherbo2: Ping timeout: 276 seconds
[17:02:03] alexherbo2: has joined #ruby
[19:22:52] alexherbo2: Ping timeout: 276 seconds

2016-04-10

[09:41:46] alexherbo2: has joined #ruby

2016-04-09

[15:09:30] alexherbo2: has joined #ruby
[20:29:30] alexherbo2: Quit: WeeChat 1.4

2016-04-08

[00:56:16] alexherbo2: Ping timeout: 264 seconds
[00:58:15] alexherbo2: has joined #ruby
[18:55:13] alexherbo2: Quit: WeeChat 1.4

2016-04-05

[07:32:11] alexherbo2: has joined #ruby

2016-04-04

[08:37:11] alexherbo2: Quit: WeeChat 1.4

2016-04-03

[19:47:33] alexherbo2: Ping timeout: 240 seconds
[20:03:39] alexherbo2: has joined #ruby

2016-04-02

[07:41:13] alexherbo2: has joined #ruby

2016-04-01

[05:00:14] alexherbo2: Ping timeout: 244 seconds

2016-03-31

[08:58:06] alexherbo2: Ping timeout: 248 seconds
[17:55:45] alexherbo2: has joined #ruby
[20:53:48] alexherbo2: Ping timeout: 276 seconds
[22:46:12] alexherbo2: has joined #ruby

2016-03-29

[08:07:54] alexherbo2: has joined #ruby

2016-03-25

[15:09:18] alexherbo2: Ping timeout: 248 seconds

2016-03-24

[14:41:53] alexherbo2: Ping timeout: 244 seconds
[16:48:00] alexherbo2: has joined #ruby

2016-03-23

[19:43:26] alexherbo2: has joined #ruby

2016-03-22

[10:39:53] alexherbo2: Quit: WeeChat 1.4

2016-03-18

[00:35:55] alexherbo2: Ping timeout: 244 seconds
[00:37:26] alexherbo2: has joined #ruby
[12:49:26] alexherbo2: Ping timeout: 268 seconds
[14:43:19] alexherbo2: has joined #ruby
[15:48:37] alexherbo2: Ping timeout: 252 seconds
[16:05:39] alexherbo2: has joined #ruby

2016-03-15

[21:31:21] alexherbo2: adaedra: done https://github.com/alexherbo2/dotfiles/blob/master/bin/explorer :D
[21:32:29] alexherbo2: explorer is surely misnomer but I don’t find a proper name / description
[21:37:40] alexherbo2: adaedra: ? :O
[21:39:54] alexherbo2: I achivied my goal, thanks :D
[21:41:15] alexherbo2: Is &[ planned ?
[21:42:56] alexherbo2: (I refer to the safe navigation operator)
[21:43:10] alexherbo2: There is &. syntax but no &[ syntax
[21:43:39] alexherbo2: &[ could be added?
[21:46:04] alexherbo2: aegis3121: thanks
[21:47:13] alexherbo2: looks cumbersome though

2016-03-14

[19:08:33] alexherbo2: How capture stdout of system command?
[19:09:07] alexherbo2: (I need a TTY to run my editor in the terminal)
[19:09:36] alexherbo2: shevy: I will look at thanks
[19:11:43] alexherbo2: shevy: `` will no work I need stdout as a tty
[19:15:23] alexherbo2: adaedra: a file editor which reads on stdin.
[19:16:04] alexherbo2: find . | fe sed s/' '/_/g
[19:16:26] alexherbo2: rename all files with space by _
[19:17:06] alexherbo2: `fe` run sed which reads stdin, i need capture its output
[19:17:29] alexherbo2: I would `fe` works interactively too
[19:17:33] alexherbo2: with my editor
[19:17:40] alexherbo2: find . | fe kak
[19:18:07] alexherbo2: Kakoune can read on stdin and output to stdout juste like sed
[19:18:54] alexherbo2: `kak` it the editor
[19:19:31] alexherbo2: it works with: system "kak"
[19:19:40] alexherbo2: but not with `kak`
[19:20:34] alexherbo2: How deal with that?
[19:22:36] alexherbo2: not sure to understand xD
[19:22:46] alexherbo2: I want simply do
[19:23:02] alexherbo2: find . | fe kak
[19:23:07] alexherbo2: kak reads stdin
[19:23:25] alexherbo2: `fe` is the script I try to write
[19:23:57] alexherbo2: kak reads stdin in a buffer
[19:24:04] alexherbo2: then when :write
[19:24:27] alexherbo2: I want capture kak output
[19:25:40] alexherbo2: adaedra: https://github.com/mawww/kakoune
[19:26:16] alexherbo2: adaedra: I do not realise no :(
[19:27:02] alexherbo2: I could use a tempfile but I want avoid :/
[19:27:59] alexherbo2: tubbo: Kakoune is not a Vim clone
[19:29:46] alexherbo2: adaedra: yes
[19:30:22] alexherbo2: `script` to capture its output
[19:30:38] alexherbo2: I would like kak could be used interactively :/
[19:35:53] alexherbo2: find . | fe kak
[19:36:06] alexherbo2: start: https://gist.github.com/alexherbo2/2044e06aba2cb8b00c86
[19:36:16] alexherbo2: end: https://gist.github.com/alexherbo2/7d1ffacdcbfa06b109d2
[19:36:28] alexherbo2: runned commands: https://gist.github.com/alexherbo2/41e719835b79bd20b44b
[19:39:36] alexherbo2: I would like to use as well non interactive commands like sed as filter, than my favorite editor
[19:40:32] alexherbo2: give stdin to my command
[19:40:42] alexherbo2: capure its output
[19:40:54] alexherbo2: then rename/delete/link files
[19:41:04] alexherbo2: by default it renames
[19:41:14] alexherbo2: but you can add directives like [link]
[19:42:12] alexherbo2: like with git rebase --interactive there is drop, etc. directives
[19:43:00] alexherbo2: it would be so cool for mass renaming @_@
[19:43:28] alexherbo2: adaedra: impossible otherwise?
[19:44:25] alexherbo2: > stdout is not a tty
[19:45:58] alexherbo2: it’s empty
[19:52:46] alexherbo2: I will do then
[19:52:55] alexherbo2: Thanks for all your help :)
[19:59:33] alexherbo2: Hey guys, how about this sprintf / _%_ builtin to handle alignment?
[19:59:36] alexherbo2: https://gist.github.com/alexherbo2/c246f85c633602a8436e
[20:00:59] alexherbo2: Currently sprintf can take string or hash, I added Array support
[20:02:23] alexherbo2: print "# %{filename } |%{ line}│%{ column}| %{text}\n" % [{filename:"foo.txt", line:"91", column:"1", text:"foo"}, {filename:"foo-bar.txt", line:"1991", column:"1", text:"foo bar"}]
[20:02:36] alexherbo2: # foo.txt | 91│1| foo
[20:02:38] alexherbo2: # foo-bar.txt |1991│1| foo bar
[20:05:10] alexherbo2: adaedra: does not handle alignment
[20:07:29] alexherbo2: %{var} you can puts space for padding
[20:08:15] alexherbo2: I used it to build text interface
[20:08:29] alexherbo2: https://github.com/alexherbo2/dotfiles/blob/master/bin/interface
[20:08:43] alexherbo2: http://i.imgur.com/UN0c0I5.png
[20:09:57] alexherbo2: and for scan? to handle named captures?
[20:10:16] alexherbo2: also, tap method is not functional :/
[20:10:41] alexherbo2: string.scan → https://gist.github.com/alexherbo2/5f080fb4015289188464
[20:10:59] alexherbo2: enumerable.hash_map → https://gist.github.com/alexherbo2/c920e04277f6dd8d589a
[20:11:08] alexherbo2: object.as → https://gist.github.com/alexherbo2/5dbb6ddf624d2aa8698a
[20:11:16] alexherbo2: I would like them in core :(
[20:23:47] alexherbo2: It is recent?
[20:24:33] alexherbo2: Thanks for the tips :D
[20:28:02] alexherbo2: and for Object#tap?
[20:28:08] alexherbo2: is there a functional equivalent?

2016-03-12

[12:04:24] alexherbo2: Quit: WeeChat 1.4
[13:15:29] alexherbo2: has joined #ruby
[17:54:52] alexherbo2: How get unicode value?
[17:55:08] alexherbo2: from ✓ to U2713
[17:59:41] alexherbo2: tobiasvl: Thanks :O
[17:59:50] alexherbo2: What means 16?

2016-03-11

[19:16:38] alexherbo2: in run_on_{event}s(events) method, events is an array now
[19:19:25] alexherbo2: havenwood: I can do Hash[*events]
[19:19:54] alexherbo2: But I was surprised events gets converted…
[19:35:20] alexherbo2: havenwood: how call a stringified lambda?
[19:35:58] alexherbo2: https://gist.github.com/alexherbo2/3068ef2be9b5ea491a6c
[19:36:20] alexherbo2: The lambda is converted to string lol
[19:38:18] alexherbo2: havenwood: {"modification"=>"#<Proc:0x007f97f8009988@/home/alex/root/dev/dotfiles/ruby/rhizome/lib/Guardfile:19 (lambda)>"}
[19:39:37] alexherbo2: Holy shit xD
[19:40:31] alexherbo2: havenwood: I guess eval(stringyfied_proc).call will not work?
[19:45:23] alexherbo2: havenwood: no way?
[19:47:02] alexherbo2: I will end up using plain inotifywait @_@
[20:07:07] alexherbo2: havenwood: any_return: true solve all my problems
[20:07:16] alexherbo2: https://github.com/guard/guard/wiki/Understanding-Guard#another-bad-example
[20:07:30] alexherbo2: > This is because Guard expects you to return paths (unless you provide the any_return option).
[20:10:07] alexherbo2: havenwood: is there something builtin like https://gist.github.com/alexherbo2/5f080fb4015289188464 ?
[20:11:44] alexherbo2: I would like String#scan would have this behaviour
[20:11:54] alexherbo2: with named captures