Skip to content

Instantly share code, notes, and snippets.

View monkeycycle's full-sized avatar

Michael Pereira monkeycycle

View GitHub Profile
@monkeycycle
monkeycycle / gif_maker.sh
Created February 15, 2017 03:02 — forked from yanofsky/gif_maker.sh
How to Make a gif from a folder of images
# requirement! install imagemagick
# brew install imagemagick
# or build from source here http://www.imagemagick.org/script/binary-releases.php
#navigate to folder of the images
cd folderofmyimages/
# take every jpg in the folder and smash into a gif with a frame rate of 0.5 sec
convert -delay 50 *.jpg gif_of_my_images.gif
@monkeycycle
monkeycycle / Makefile
Created February 15, 2017 03:02 — forked from yanofsky/Makefile
This is workflow for downloading, processing, and mosaicing Landsat scenes, as a Makefile
# lansatutil directory
LANDSAT = ~/landsat
# scenes to target
LANDSAT_IDS = \
LC81220442016038LGN00 \
LC81220452016038LGN00 \
LC81210442014281LGN00 \
LC81210452014281LGN00
@monkeycycle
monkeycycle / tweet_dumper.py
Created February 15, 2017 03:01 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@monkeycycle
monkeycycle / README.MD
Created February 13, 2017 21:10 — forked from 1wheel/README.MD
you-draw-it
@monkeycycle
monkeycycle / .block
Last active March 27, 2017 20:18 — forked from mbostock/.block
Stacked Bar Chart
license: gpl-3.0
@monkeycycle
monkeycycle / README.md
Created July 21, 2016 20:07 — forked from kpq/README.md
Line charts with dot annotation

Line charts with circles and labels. A demonstration of the technique for a student.

@monkeycycle
monkeycycle / datawrapper-install-instructions-detailed.md
Created July 14, 2016 16:14 — forked from greglinch/datawrapper-install-instructions-detailed.md
Datawrapper set up instructions: Below is a detailed, step-by-step guide for setting up your own installation of Datawrapper, an open-source data visualization tool. Questions? Suggestions? Please let a comment below. Happy installing!
@monkeycycle
monkeycycle / index.html
Created April 2, 2016 04:53 — forked from cool-Blue/index.html
stacked bar chart with dynamic axes and labels
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>http://stackoverflow.com/questions/32057842/d3-js-highlighting-stacked-bar-and-getting-selected-values/32079517#32079517</title>
<style>
body {
position: relative;
}
#vis {
/**
* Installed `jest`, `jest-cli`; ran test with `--no-watchman`
*/
describe('Helpers', function() {
jest.autoMockOff();
var Helpers = require('../helpers');
describe('isFloat', function() {
it('has isFloat as an export', function() {
expect(Helpers.isFloat).not.toBeNull();
@monkeycycle
monkeycycle / no-select.scss
Created March 5, 2016 02:22 — forked from nathos/no-select.scss
Sass (SCSS) mixin to disable user-select on an element
@mixin no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}