Skip to content

Instantly share code, notes, and snippets.

View RyanTG's full-sized avatar

Ryan TG RyanTG

View GitHub Profile
@RyanTG
RyanTG / post-pull-staging-log.txt
Created October 28, 2017 22:45
post-pull-staging-log.txt
10-28 15:44:05.505 7482-7482/com.pbm D/com.pbm: STARTING APP???????????
10-28 15:44:05.532 7482-7482/com.pbm W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
10-28 15:44:05.758 7482-7554/com.pbm W/System: ClassLoader referenced unknown path: /system/framework/tcmclient.jar
10-28 15:44:08.061 15452-15452/? D/wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
10-28 15:44:08.077 15452-15452/? D/wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=11 sndbuf=163840 outq=0 send_len=48
10-28 15:44:08.079 2164-4142/? D/ConnectivityService: updateNetworkScore for NetworkAgentInfo [WIFI () - 125] to 60
10-28 15:44:08.584 359-359/? I/Gobi: vendor/qcom/proprietary/RIDL/RIDLClient/RIDLSQL.cpp:2500: GetTran
@RyanTG
RyanTG / pre-pull-staging-log.txt
Created October 28, 2017 22:41
pre-pull-staging-log.txt
10-28 15:37:32.396 770-770/com.pbm D/com.pbm: STARTING APP???????????
10-28 15:37:32.420 770-770/com.pbm W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
10-28 15:37:32.639 770-845/com.pbm W/System: ClassLoader referenced unknown path: /system/framework/tcmclient.jar
10-28 15:37:33.606 5001-5029/? V/QcrilMsgTunnelSocket: After reading offset = 0 remaining = 4 countRead = 4
10-28 15:37:33.606 5001-5029/? D/QcrilMsgTunnelSocket: messageLength extracted from first 4 inputStream reads = 30
10-28 15:37:33.606 5001-5029/? V/QcrilMsgTunnelSocket: offset = 0 remaining = 30 countRead = 0
10-28 15:37:33.606 5001-5029/? V/QcrilMsgTunnelSocket: offset = 0 remaining = 30 countRead = 30
10-28 15:37:33.607 5001-5029/? D/Qcri
@RyanTG
RyanTG / switrs-decode.txt
Created October 17, 2017 19:52
Excel function to turn SWITRS / TIMS violcat field into plain English
=IF(I2=1, "DUI", IF(I2=2, "Impeding Traffic", IF(I2=3, "Unsafe Speed", IF(I2=4, "Following Too Closely", IF(I2=5, "Wrong Side of Road", IF(I2=6, "Improper Passing", IF(I2=7, "Unsafe Lane Change", IF(I2=8, "Improper Turning", IF(I2=9, "Automobile Right of Way", IF(I2=10, "Pedestrian Right of Way", IF(I2=11, "Pedestrian Violation", IF(I2=12, "Traffic Signals and Signs", IF(I2=13, "Hazardous Parking", IF(I2=14, "Lights", IF(I2=15, "Brakes", IF(I2=16, "Other Equipment", IF(I2=17, "Other Hazardous Violation", IF(I2=18, "Other Than Driver (or Pedestrian)", IF(I2=19, "", IF(I2=20, "", IF(I2=21, "Unsafe Starting or Backing", IF(I2=22, "Other Improper Driving", IF(I2=23, "Pedestrian Under the Influence", IF(I2=24, "Fell Asleep", IF(I2=0, "Unknown", IF(I2="-", "Not Stated"))))))))))))))))))))))))))
@RyanTG
RyanTG / diner.txt
Last active August 25, 2017 22:41
Diner
region_name | location_id | location_name | machine_name | machine_id
----------------+-------------+-------------------------------------------+--------------+------------
phoenix | 4777 | Long Wong's | Diner | 765
kansascity | 6783 | Westport Flea Market-Bar-Grill | Diner | 765
lasvegas | 4506 | Pinball Hall of Fame | Diner | 765
chicago | 3043 | Emporium Arcade Bar | Diner | 765
tucson | 6814 | Tucson Indoor Sports Center | Diner | 765
rochester | 3698 | Fantasy Raceways | Diner | 765
bayarea | 1697 | Valley Inn | Diner | 765
southflorida | 7352 | Silverball Museum Delray Beach | Diner | 765
{
"user_submissions":[
{
"id":131,
"submission_type":"remove_machine",
"submission":"Four Seasons Bowling Center\nTerminator 3: Rise of the Machines\nportland",
"region_id":1,
"created_at":"2015-10-23T19:23:25.109Z",
"updated_at":"2015-10-23T19:23:25.109Z"
},
@RyanTG
RyanTG / pinball-machine-list.js
Last active August 29, 2015 14:05
Iterating through json using PHP and jQuery - for displaying pinball machines on your website using the Pinball Map API
//jQuery
jQuery(document).ready(function() {
jQuery.getJSON("http://pinballmap.com/api/v1/locations/4845/machine_details.json", function(data) {
jQuery.each(data.machines, function(i, obj) {
var machineName = data.machines[i].name;
var link = data.machines[i].ipdb_link;
var year = data.machines[i].year;