Skip to content

Instantly share code, notes, and snippets.

View idan's full-sized avatar
💫
Prototypin'

Idan Gazit idan

💫
Prototypin'
View GitHub Profile
@idan
idan / gist:5344261
Created April 9, 2013 09:13
author entry
{
_id: ObjectId("512cf408245e16470a251cc9"),
author: "ctalkington <chris@talkington.info>",
parsed_emails: [
"chris@talkington.info"
],
repos: [
{
"twitter/bootstrap": 4
}
@idan
idan / README.md
Last active December 15, 2015 21:48
US Foreign Military Aid

Shenkar IxDP • Spring 2013

Assignment #2: Data Visualization of US Foreign Military Funding

This terrible visualization depicts foreign military aid given by the United States to 180 countries in 2011. The X axis is the amount of money given, in US$ (adjusted for inflation), bubble size is the country population.

Hey there,

I tried looking around the site for a photo of the "EU adaptor" that I can add to the usb power supply, but couldn't find one.

I live in Israel, which has plugs like: https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets#Israel_SI32_.28Type_H.29

But they also accomodate type C plugs ("europlug") like: https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets#CEE_7.2F16_Europlug_.28Type_C.29

However the europlugs are, by design, ungrounded. Not sure how important that is for an adapter that only powers the pi (and possibly a 2.5" spinning-platter HD.)

@idan
idan / gist:5133728
Created March 11, 2013 11:53
Markdown plus test

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@idan
idan / gist:5131000
Created March 10, 2013 23:33
2d array showing the contributions of one language's authors to other languages
OrderedDict([('JavaScript', OrderedDict([('JavaScript', 8343), ('Ruby', 2796), ('Java', 249), ('Python', 724), ('Shell', 533), ('PHP', 910), ('C', 665), ('C++', 339), ('Perl', 197), ('Objective-C', 155)])), ('Ruby', OrderedDict([('JavaScript', 1642), ('Ruby', 18026), ('Java', 435), ('Python', 1035), ('Shell', 1111), ('PHP', 703), ('C', 1248), ('C++', 394), ('Perl', 441), ('Objective-C', 511)])), ('Java', OrderedDict([('JavaScript', 271), ('Ruby', 663), ('Java', 5184), ('Python', 301), ('Shell', 305), ('PHP', 131), ('C', 442), ('C++', 155), ('Perl', 67), ('Objective-C', 67)])), ('Python', OrderedDict([('JavaScript', 629), ('Ruby', 1079), ('Java', 269), ('Python', 8785), ('Shell', 579), ('PHP', 309), ('C', 1113), ('C++', 292), ('Perl', 215), ('Objective-C', 158)])), ('Shell', OrderedDict([('JavaScript', 789), ('Ruby', 2375), ('Java', 332), ('Python', 638), ('Shell', 3946), ('PHP', 424), ('C', 924), ('C++', 241), ('Perl', 145), ('Objective-C', 127)])), ('PHP', OrderedDict([('JavaScript', 716), ('Ruby', 562), ('J
@idan
idan / sparselist.py
Created March 4, 2013 20:05
SparseList
class SparseList(list):
def __init__(self, fill=0):
super(SparseList, self).__init__()
self._fill = fill
def __setitem__(self, index, value):
missing = index - len(self) + 1
if missing > 0:
self.extend([self._fill] * missing)
list.__setitem__(self, index, value)
def __getitem__(self, index):
@idan
idan / aws_bootstrap.sh
Created February 24, 2013 20:11
user-data.sh
#!/bin/bash
set -e -x
# update and install various bits we need
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential python2.7-dev git libxml2 libxml2-dev libxml2-utils libxslt1.1 libxslt1-dev libzmq1 libzmq-dev tmux
# setup python and pip requirements
curl -O http://python-distribute.org/distribute_setup.py
@idan
idan / gist:4761551
Last active December 12, 2015 10:49
Hear me, O Developers!

There’s an amazingly useful course being offered right now, but the description doesn’t do it justice, because we had to write it in a certain format.

You should take the Interaction Design Patterns Course. Here’s why:

THE PITCH

You are a more valuable and effective developer if you understand design.

The startups that make noise today—Instagram, Tumblr, Pinterest, etc—were all founded by teams of developers and designers working closely. They were able to build beautiful and functional products quickly because their developers and designers understood how the other side works.

@idan
idan / Procfile.dev
Created February 4, 2013 10:09
Procfile
web: ./manage.py runserver 0.0.0.0:8000
sass: sass --watch pushpin/static/sass:pushpin/static/css -r ./pushpin/static/sass/bourbon/lib/bourbon.rb
coffee: coffee --watch --compile --output pushpin/static/js pushpin/static/coffee
mongod: mongod

Better Products Through Typography

If you’re building a product, a little bit of good typography can have a lot of impact. We invest a ton of effort engineering solutions that improve our products—better caching, more efficient databases, partial pageloads for faster rendering. As developers, we often ignore the non-engineering improvements we can make to our products because we don’t know enough about them.

Design is a discipline, and every developer should know a little bit about it—just like you know a little bit about many topics that impact the products you are building. Design is just another tool in your development toolbox.

Whether you are building products for the screen or for print, type is often the main channel of communication between your product and your users. Modern typography has a rich history dating back to the invention of movable type in 1450 A.D., but many lessons were lost when type made the jump to the screen. The talk will be a mix of theory and practical advice on using typ