Skip to content

Instantly share code, notes, and snippets.

View RacZo's full-sized avatar
Turning caffeine into code

Oscar Salguero RacZo

Turning caffeine into code
View GitHub Profile
@RacZo
RacZo / VIN.java
Created June 11, 2020 07:43 — forked from ubergesundheit/VIN.java
VIN validator/decoder
public class VIN {
//from http://introcs.cs.princeton.edu/java/31datatype/VIN.java.html
public static boolean isVinValid(String vin) {
int[] values = { 1, 2, 3, 4, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 0, 7, 0, 9,
2, 3, 4, 5, 6, 7, 8, 9 };
int[] weights = { 8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2 };
@RacZo
RacZo / US Zip Codes from 2013 Government Data
Created April 26, 2017 21:35 — forked from erichurst/US Zip Codes from 2013 Government Data
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
00622,17.991245, -67.153993

Keybase proof

I hereby claim:

  • I am RacZo on github.
  • I am raczo (https://keybase.io/raczo) on keybase.
  • I have a public key whose fingerprint is 55A1 E2E4 6C63 1E9D B7EC 270B B2D7 E5B6 9F21 A929

To claim this, I am signing this object:

@RacZo
RacZo / touch.coffee
Last active August 29, 2015 14:12 — forked from davidstump/touch.coffee
@Touch=
horizontal_sensitivity: 22
vertical_sensitivity: 6
touchDX: 0
touchDY: 0
touchStartX: 0
touchStartY: 0
bind: (elements...) ->