Skip to content

Instantly share code, notes, and snippets.

Gaza Trust Package

Because fear is the mind killer.


Warning: Some of the information here may be outdated (outdated software is vulnerable and dangerous). You should only use this document as a template (or ask a friend to do it for you, as explained below).


@thedod
thedod / README.md
Last active December 10, 2015 16:58
Proof of concept: cable2graph "search lite"

The "proper" way to do a "cable2graph" free-form text search would be a 3-stage process:

  1. Find the relevant MRNs
  2. Genrate a neighborhood graph for those MRNs (nbh)
  3. Create an html+svg from that graph (g2svg)

If we want to make a cable2graph web service that responds fast enough and doesn't use too many resources, the main concern would be stage 3.

This is a proof of concept for a "search lite" process that may not yield the best possible results,

@thedod
thedod / README.md
Last active April 17, 2022 22:30
White House petition sigs by state
@thedod
thedod / README.md
Last active December 11, 2015 04:58 — forked from mbostock/.block
Clickable US heat-map of petition signature count

https://gist.github.com/4544529 (demo) was my first d3 adventure, where I scraped signatures from a White House petition and showed them as a pie chart.

Here, I show them as a US heat map (based on one of Mike Bostock's map demos). You can click on a state, and see how many signatures came from it.

Darker color means more signatures, but since the numbers range from a few dozens to >4500, the scale is logarithmic. I don't know yet how to use log() interpolators (I promise to learn), so I just did it quick and dirty with linear() and masking tape.

@thedod
thedod / README.md
Last active December 11, 2015 10:48 — forked from mbostock/.block
Force-layout of Cable2Graph

Update: This prototype has turned into a bigger project: http://is.gd/CableWeaver


Here's a small gallery of Cable2Graph cable reference culsters (the graphs are named after countries, but they don't "represent" the entire body of cables related to them. It's just a handy naming convention). Each node (circle) represents a cable. Each link (line) represents reference between 2 cables.

Instructions

  • Hover over a node to see details of the cable it represents.
  • Click on a node to open the related cable in a new tab.
@thedod
thedod / FUD.LOL
Last active December 12, 2015 08:18
ZOMG! I CAN RITE LOLCODE!!1
HAI 1.2 BTW I DOAN KNOE Y I SAY STUPH LIEK 1.2 LOL
I HAS A FUD
I HAS A EMPTY ITZ FAIL
I HAS A STUPH ITZ MAEK EMPTY A NUMBR
I HAS A EATED ITZ "OM NOM NOM U HAZ NO :{FUD} I EATED IT"
IM IN YR KITCHEN NERFIN YR STUPH TIL EMPTY
VISIBLE "WUT DO U HAS?"
GIMMEH FUD
FUD, WTF?
OMG "NOTHING"
@thedod
thedod / WIKILEAKS-EVERYWHERE.md
Last active December 13, 2015 18:09
wikileaks https-everywhere ruleset

The problem

  • I live in █████████

  • Http connection to wikileaks is blocked, https connection isn't (so far)

  • If I click on an http wikileaks link in a tweet, here's what happens

    • In the browser's URL bar I see the shortened t.co link
    • Browser connects, gets redirected to a blocked url, and waits
    • [perhaps █████████ also monitors this, but let's assume I'm a fearless idiot for a moment]
  • Since browser can't connect to the long url, it never displays the "bad" url in the url bar (so that I could add the s to it manually)

@thedod
thedod / README.md
Last active December 15, 2015 22:49
"Fil Mish-Mish"
@thedod
thedod / README.md
Last active December 15, 2015 22:49
Cashless in Gaza

The initial version of this page was exported from a CableWeaver story line.

Possibly [and hopefully], additional information was added manually. If you have anything to add to this page, don't be shy. Fork us a scoop :)

@thedod
thedod / README.md
Last active December 15, 2015 22:49
Still cashless in Gaza

The initial version of this page was exported from a CableWeaver story line.

Possibly [and hopefully], additional information was added manually. If you have anything to add to this page, don't be shy. Fork us a scoop :)