I hereby claim:
- I am novemberkilo on github.
- I am novemberkilo (https://keybase.io/novemberkilo) on keybase.
- I have a public key whose fingerprint is B6C7 727D 0019 4955 25BF 3496 EC8F 5030 0828 2CA0
To claim this, I am signing this object:
## Sum the numbers in a column with header 'value' | |
cat data.csv | xsv select value | tail -n+2 | awk '{ SUM += $1} END { print SUM }' | |
## xargs with multiple ops -- here drop a column from all csv in this dir and store results | |
## in another directory | |
ls | xargs -L 1 -I 'file' sh -c "xsv select '\!original_area_code' 'file' > no_original_area_code/'file'" |
Stacked Bars in c3.js to spike TER representation | |
------ | |
Forked from [Akhil](http://codepen.io/akhilgkrish/)'s Pen [leaKq](http://codepen.io/akhilgkrish/pen/leaKq/). | |
A [Pen](http://codepen.io/novemberkilo/pen/dPywWg) by [Navin](http://codepen.io/novemberkilo) on [CodePen](http://codepen.io/). | |
[License](http://codepen.io/novemberkilo/pen/dPywWg/license). |
I hereby claim:
To claim this, I am signing this object:
set -g default-terminal "screen-256color" | |
set -g status-left-length 52 | |
set -g status-right-length 451 | |
set -g status-fg white | |
set -g status-bg colour234 | |
set -g window-status-activity-attr bold | |
set -g pane-border-fg colour245 | |
set -g pane-active-border-fg colour39 | |
set -g message-fg colour16 |
$(document).ready(function() { | |
$("#add_user").click(function(e) { | |
$("#user_details_base").clone().appendTo($(".user_details")).show(); | |
return false; | |
}); | |
}); |
#user_details_base.hide= render "invitee_form" | |
- form_tag invite_other_users_path(@user), | |
:method => :put, :id => "form1", :class => "user_invite" do | |
.user_details | |
= render "invitee_form" | |
.add_user_button | |
= link_to "Add another", "#", :id => "add_user" | |
%span |
- fields_for "recommendation[]" do |f| | |
.inviter | |
.field | |
= f.label :first_name, 'First Name:' | |
= f.text_field :first_name, :value => "" | |
.field | |
= f.label :last_name, 'Last Name:' | |
= f.text_field :last_name, :value => "" | |
.field | |
= f.label :recipient_email, 'Email:' |
require 'rubygems' | |
require 'mail' | |
mail = Mail.new do | |
to '[email protected]' | |
from '[email protected]' | |
subject 'Plain text email - constructed in Ruby' | |
end |
recent_activity = flickr.activity.userPhotos(:timeframe => timeframe) | |
recent_activity.each do |x| | |
message = '' | |
x.activity.event.each do |z| | |
case | |
when z.type == "comment" then | |
begin | |
unless @displayed_comments.include? z.commentid | |
@displayed_comments.push z.commentid |