I hereby claim:
- I am jameslzhu on github.
- I am jzhu (https://keybase.io/jzhu) on keybase.
- I have a public key ASDr_JqMh89-_K9jO02VgOoA5wiYf1zZQcFAQ5VJugCVIAo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Convert svg to png with inkscape | |
| inkscape --export-type=png -o assets/images/favicon.png -w 64 -h 64 \ | |
| --export-background-opacity=0 \ | |
| ./assets/images/favicon.svg | |
| # Convert png to ico with imagemagick | |
| convert ./assets/images/favicon.png \ | |
| \( -clone 0 -resize 16x16 \) \ |
| # .editorconfig | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 4 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
| var OPACITY_DURATION = 500; | |
| var DEFAULT_HEIGHT = 700; | |
| var generateChart = function(info, loc, department_id) { | |
| var nodes = []; | |
| var prereqs = []; | |
| var classHash = {}; | |
| var type_ids = [] | |
| var types = {} | |
| var max_depth = 0; |
| # .gitconfig - jameslzhu | |
| [user] | |
| name = James Zhu | |
| email = [email protected] | |
| [core] | |
| editor = vim | |
| autocrlf = input | |
| filemode = false |
| #include<math.h> | |
| #include <Adafruit_NeoPixel.h> | |
| #ifdef __AVR__ | |
| #include <avr/power.h> | |
| #endif | |
| #define LED_PIN 0 | |
| #define NUM_LEDS 60 | |
| #define BRIGHTNESS 127 |
I hereby claim:
To claim this, I am signing this object:
| /#!/usr/bin/bash | |
| # Recrops images in working directory to 16:9 resolution. | |
| # Picks the smallest resolution which fits the image with minimal cropping. | |
| OUTPUT_DIR="recropped" | |
| EXT="jpg" | |
| mkdir -p "$OUTPUT_DIR" |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Learn a variety of programming paradigms:
| # FRACTRAN - jzhu98 | |
| # See bottom for license. | |
| from fractions import Fraction | |
| # Input FRACTRAN code here | |
| code = "455/33,11/13,1/11,3/7,11/2,1/3" | |
| def parse_input(string): | |
| """Return a list of fractions from the code.""" |
| #!/usr/bin/env python2 | |
| # | |
| # chaos - jzhu98 | |
| # See bottom for license. | |
| # | |
| from __future__ import division | |
| from enum import Enum |