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
var els = document.querySelectorAll('.text.words') | |
var total = 0 | |
Array.from(els).forEach(el => { | |
var string = el.textContent.replace(/ words/g, '').replace(/,/, '') | |
var number = parseInt(string) | |
if (isNaN(number)) return | |
total += number | |
}) | |
console.log(total / els.length) |
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
var els = document.querySelectorAll('.text.words') | |
var total = 0 | |
Array.from(els).forEach(el => { | |
var string = el.textContent.replace(/ words/g, '').replace(/,/, '') | |
var number = parseInt(string) | |
if (isNaN(number)) return | |
total += number | |
}) | |
console.log(total / els.length) |
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
Mar 1 23:26:30 alex-M52AD-M12AD-A-F-K31AD kernel: [ 3520.481995] IPv6: ADDRCONF(NETDEV_UP): enx769406a7283b: link is not ready | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpuset | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpu | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpuacct | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Linux version 4.2.0-30-generic (buildd@lgw01-60) (gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) ) #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 (Ubuntu 4.2.0-30.36-generic 4.2.8-ckt3) | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-30-generic.efi.signed root=UUID=73a42283-d39a-40a8-bbcc-5e66492880e4 ro quiet splash acpi=force vt.handoff=7 | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] KERNEL supported cpus: | |
Mar 2 01:35:35 alex-M52AD-M12AD-A- |
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
Mar 1 23:26:30 alex-M52AD-M12AD-A-F-K31AD kernel: [ 3520.481995] IPv6: ADDRCONF(NETDEV_UP): enx769406a7283b: link is not ready | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpuset | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpu | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpuacct | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Linux version 4.2.0-30-generic (buildd@lgw01-60) (gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) ) #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 (Ubuntu 4.2.0-30.36-generic 4.2.8-ckt3) | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-30-generic.efi.signed root=UUID=73a42283-d39a-40a8-bbcc-5e66492880e4 ro quiet splash acpi=force vt.handoff=7 | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] KERNEL supported cpus: | |
Mar 2 01:35:35 alex-M52AD-M12AD-A- |
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
Mar 1 23:26:30 alex-M52AD-M12AD-A-F-K31AD kernel: [ 3520.481995] IPv6: ADDRCONF(NETDEV_UP): enx769406a7283b: link is not ready | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpuset | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpu | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Initializing cgroup subsys cpuacct | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Linux version 4.2.0-30-generic (buildd@lgw01-60) (gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) ) #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 (Ubuntu 4.2.0-30.36-generic 4.2.8-ckt3) | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-30-generic.efi.signed root=UUID=73a42283-d39a-40a8-bbcc-5e66492880e4 ro quiet splash acpi=force vt.handoff=7 | |
Mar 2 01:35:35 alex-M52AD-M12AD-A-F-K31AD kernel: [ 0.000000] KERNEL supported cpus: | |
Mar 2 01:35:35 alex-M52AD-M12AD-A- |
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
posts/show.html.erb: | |
<p><%= raw @post.tags.map { |t| link_to t.name, tag_path(t.name) }.join(', ') %></p> | |
post_pages_spec.rb: | |
it { find("p").should have_content(post.tags.map { |t| t.name }.join(", ")) } | |
Failures: |
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
posts/show.html.erb: | |
<p><%= raw @post.tags.map { |t| link_to t.name, tag_path(t.name) }.join(', ') %></p> | |
post_pages_spec.rb: | |
it { find("p").should have_content(post.tags.map { |t| t.name }.join(", ")) } |