Skip to content

Instantly share code, notes, and snippets.

View djjupa's full-sized avatar

Julio Angulo djjupa

  • G
  • Sweden
View GitHub Profile
@djjupa
djjupa / sifttter.rb
Last active August 29, 2015 14:28 — forked from craigeley/sifttter.rb
This script looks for text files in a specific folder that include completed tasks ('@done') and timestamps, and then collects them into a daily log for the Day One journaling application. It works especially well when it's connected to IFTTT. See more details at http://craigeley.com/tagged/sifttter
#!/usr/bin/ruby
# SIFTTTER 1.5: An IFTTT-to-Day One Logger by Craig Eley 2014 <http://craigeley.com>
# Based on tp-dailylog.rb by Brett Terpstra 2012 <http://brettterpstra.com>
# Multiple Date Function by Paul Hayes 2014 <http://paulrhayes.com>
#
# Notes:
# * Uses `mdfind` to locate a specific folder of IFTTT-generated text files changed in the last day
# * The location of your folder should be hardcoded in line 67, and the location of your Day One in line 66
# * Scans leading timestamps in each line matching the selected dates
# * Does not alter text files in any way
@djjupa
djjupa / 20130620trustnetwork.csv
Last active December 18, 2015 22:48
World Map of trust
TP_ID Language Longitude Latitude Country City Region TrustLevel PrivacyConcernScore
VF0ZGJ English 13.5 59.366699 Sweden Karlstad 22 1 8.5
7W8XHZ English 13.5 59.366699 Sweden Karlstad 22 2 8.5
NULL000 English 13.5 59.366699 Sweden Karlstad 22 3 7.75
63OIPW English 13.5 59.366699 Sweden Karlstad 22 1 3.25
6VHUI6 English 15 62 Sweden 2 8.5
4R9W4I English 13.5 59.366699 Sweden Karlstad 22 2 9
1RYUSX English 11.9667 57.716702 Sweden Göeborg 28 1 5.25
K6WJTG English 13.85 58.400002 Sweden Skövde 28 2 3.5
BC1B9J English 14.1167 59.333302 Sweden Kristinehamn 22 2 5
@djjupa
djjupa / ReadMe.md
Last active July 29, 2016 01:10
Collapsable force layout with nested selections

The json data has to have nested elements called "children"

@djjupa
djjupa / ReadMe.md
Last active December 17, 2015 18:29
Collapsible force layout with directed paths and images/text in the nodes.

Collapsible force layout with directed paths and images/text in the nodes.