Skip to content

Instantly share code, notes, and snippets.

View josephmisiti's full-sized avatar

Joseph Misiti josephmisiti

View GitHub Profile
@josephmisiti
josephmisiti / springer-free-maths-books.md
Created December 28, 2015 19:49 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
@josephmisiti
josephmisiti / README.md
Last active December 2, 2015 16:18 — forked from mbostock/.block
X-Value Mouseover

A line chart with mouseover so that you can read the y-value based on the closest x-value. The x-value is found using d3.mouse and scale.invert. The y-value is then found by bisecting the data.

Instructions

Starting with nothing ....

virtualenv --distribute nolearn
cd nolearn
source bin/activate
python setup.py install
  1. Launch an AMI with pre-installed libraries (ami-55deaf30)
  2. git clone https://github.com/andersbll/cudarray
  3. export CUDNN_ENABLED=1
  4. export INSTALL_PREFIX=/usr/local/
  5. export CUDA_PREFIX=/usr/local/cuda-7.5/
  6. cd cudarray; make; sudo make install; sudo python setup.py install
  7. git clone https://github.com/andersbll/deeppy; sudo python setup.py install
  8. export LD_LIBRARY_PATH='/home/ubuntu/cudarray/build/;/usr/local/cuda-7.5/targets/x86_64-linux/lib/'
(cinematique)JOSEPH-MISITI:cinematique josephmisiti$ bash test.sh
== Info: Trying 23.21.153.240...
== Info: Connected to cinematique.com (23.21.153.240) port 443 (#0)
== Info: TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
== Info: Server certificate: *.cinematique.com
== Info: Server certificate: Go Daddy Secure Certificate Authority - G2
== Info: Server certificate: Go Daddy Root Certificate Authority - G2
=> Send header, 160 bytes (0xa0)
0000: POST /api/touches HTTP/1.1
001c: Host: cinematique.com
# cinematique migrate analytics --database analytics
DEBUG 2015-09-21 21:05:31,393 Configuring Raven for host: http://DEADBEEFDEADBEEFDEADBEEFDEADBEEF:DEADBEEFDEADBEEFDEADBEEFDEADBEEF@localhost:9000:/2 [raven.contrib.django.client.DjangoClient]
Traceback (most recent call last):
File "/opt/envs/cinematique/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/opt/envs/cinematique/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/opt/envs/cinematique/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/envs/cinematique/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
@josephmisiti
josephmisiti / README.md
Last active September 10, 2015 03:52 — forked from joyrexus/README.md
time in go

Working with time in Go is pretty straightforward.

Times

Get the current local time:

now := time.Now()                                   // 02 Apr 15 14:03

Construct a time with Date(y, m, d, h, m, s, ns, loc):

@josephmisiti
josephmisiti / .tm_properties
Last active September 9, 2015 17:32
My global textmate 2 config
# Basic Settings
fontName = "Panic Sans"
fontSize = 15
# Extra files to include
myExtraIncludes = ".env,.gitignore,.htaccess,.pryrc,.rspec,.rspec_parallel,.rvmrc,.ruby-gemset,.ruby-version,.tm_properties,.travis.yml"
fileBrowserGlob = "{*,$myExtraIncludes}"
include = "{$include,$myExtraIncludes}"
includeInFileChooser = "{$includeInFileChooser,$myExtraIncludes}"
@josephmisiti
josephmisiti / README.md
Last active June 14, 2022 02:00 — forked from mango314/README.md
a map of all 2166 Census Tracts of New York City in Python Matplotlib

Census Tracts of New York City

Here at PyData NYC, I heard a tutorial of how to use numpy and iPython notebooks. In a previous gist, I wrote drew all the zip codes of the Bronx in d3.js

This would be great for reproducing inforgraphics like Educational Attainment in New York City -- Brooklyn which looks a bit like a jigsaw puzzle:

Where to Obtain the Data

create new video
  • email -> creator: video successfully uploaded ??
  • email -> success: video uploaded by creator
  • create Trello card for video and insert in appropriate list
  • add user email to trello description
creator starts the pinning process
  • email -> success: user has started pinning
  • previously created Trello card is moved to appropriate list