I hereby claim:
- I am danromero on github.
- I am dwr (https://keybase.io/dwr) on keybase.
- I have a public key whose fingerprint is 0E34 D0B8 3363 7A71 05BB C930 90C0 5556 AEF8 5DE7
To claim this, I am signing this object:
| function processInbox() { | |
| // get all threads in inbox | |
| var threads = GmailApp.getInboxThreads(); | |
| for (var i = 0; i < threads.length; i++) { | |
| // get current active Google Docs spreadsheet | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| // get subject, to, from and date of 1st message in thread | |
| sheet.appendRow([threads[i].getMessages()[0].getSubject(), threads[i].getMessages()[0].getTo(), threads[i].getMessages()[0].getFrom(), threads[i].getMessages()[0].getDate()]); | |
| Utilities.sleep(1000); | |
| } |
| pg_restore dumpfile >plaintext.sql | |
| iconv -c -f UTF-8 -t UTF-8 <plaintext.sql >plaintext-cleaned.sql | |
| psql dbname < plaintext-cleaned.sql | |
| COPY table TO 'data.csv' DELIMITER ',' CSV HEADER; |
| <ul> | |
| <% Stripe::Event.all(:type => "charge.succeeded").each do |stripe_event| %> | |
| <li><%= Stripe::Customer.retrieve(stripe_event.data.object.customer).description %></li> | |
| <li><%= number_to_currency(stripe_event.data.object.amount / 100.00) %></li> | |
| <% end %> | |
| </ul> |
| #! /bin/bash | |
| cd envoy-web/ | |
| git pull | |
| vagrant up | |
| vagrant ssh |
| curl -H "Content-Type: application/json" \ | |
| -X POST \ | |
| -d "{\"message\": \"hello\" }" \ | |
| https://api.hipchat.com/v2/user/433057/message?auth_token=4gZZzsXQY75pZHhfnnujKHT8F101LWzcwGPu4jUV |
| $("td.days").each(function() { | |
| $this = $(this) | |
| var value = $this.html(); | |
| if (value<2) { $this.addClass('success');} | |
| else if (value<5) { $this.addClass('warning');} | |
| else { $this.addClass('danger');} | |
| }); |
| =RIGHT(A2,LEN(A2)-FIND(" ",A2)) |
| Input: | |
| A1 | 301 Brannan St, San Francisco, CA 94107 | |
| Formulas: | |
| B1 | =left(A1,find(",",A1)-1) | |
| C1 | =MID(A1,find(",",A1)+1,find(",",A1)-1) | |
| D1 | =left(right(A1,8),2) | |
| E1 | =right(right(A1,8),5) | |
| Ouput: |
I hereby claim:
To claim this, I am signing this object:
| Verifying myself: My Bitcoin username is +dwr. https://onename.io/dwr |