Skip to content

Instantly share code, notes, and snippets.

View billylindeman's full-sized avatar

Billy Lindeman billylindeman

View GitHub Profile
@billylindeman
billylindeman / TextureAtlas.java
Created June 24, 2011 18:24
This is a TextureAtlas class for AndEngine that will load in a Zwoptex Generic plist file (requires android-plist-parser)
//TextureAtlas for andengine
// Billy Lindeman ([email protected])
// 2011 Protozoa, LLC
//loads texture atlas from Zwoptex Generic plist file
//you pass it the name of the asset (without extension)
//it will load .plist as the coordinates and .png as the texture
//requires https://github.com/tenaciousRas/android-plist-parser
package org.anddev.andengine.opengl.texture.atlas;
@billylindeman
billylindeman / pltojs.py
Created June 24, 2011 21:08
plist to json converter
#!/usr/bin/env python
import plistlib
import json
import sys
def main():
if (len(sys.argv) < 2):
print str(sys.argv[0] + " <plist file>")
sys.exit(1)
@billylindeman
billylindeman / main.asm
Created September 21, 2011 15:07
Quadratic Solver in HC12 Assembly
;*******************************************************************
;* author: Billy Lindeman & Christine Martin *
;* date: 8-23-2011 *
;* purpose: The purpose of this lab is to create a subroutine that *
;* calculates the real roots of a second order equation using the *
;* quadratic formula *
;* inputs: a,b,c as 8-bit signed integers *
;* outputs: both real roots of the quadratic equation *
;*******************************************************************
; Include derivative-specific definitions
@billylindeman
billylindeman / eclipse.sh
Created November 25, 2013 15:25
This is a fix for the weird spacing in Android Developer Tools bundle on Ubuntu 13.10
#!/bin/bash
GTK2_RC_FILES=/opt/adt/eclipse/gtkrc.eclipse /opt/adt/eclipse/eclipse

Keybase proof

I hereby claim:

  • I am billylindeman on github.
  • I am billylindeman (https://keybase.io/billylindeman) on keybase.
  • I have a public key whose fingerprint is B05E E554 13BC 0642 A940 4A7D 4A17 F8B9 D0B7 7529

To claim this, I am signing this object:

@billylindeman
billylindeman / KeyboardStatusDetector.java
Created October 17, 2014 15:58
This is a KeyboardStatusDetector for android that uses a globalLayoutListener to dispatch events if a Softkeyboard is shown or hidden
import android.app.Activity;
import android.app.Fragment;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
/**
* Detects Keyboard Status changes and fires events only once for each change
*/
;; org-gcal wrappers to only sync with a timeout
(defvar org-gcal-fetch-last-run (current-time)
"Timestamp of the last time org-gcal-fetch-store-time was run")
(defun org-gcal-fetch-with-timeout (timeout)
(interactive)
"Runs org-gcal-fetch only if the last time this function was called is > the timeout"
(let ((time-since-last-run
(float-time (time-subtract (current-time) org-gcal-fetch-last-run))))
(when (> time-since-last-run timeout) ;; was the last run longer than our timeout
(org-gcal-fetch)
@billylindeman
billylindeman / chrome.json
Created October 7, 2022 20:07 — forked from meets2tarun/chrome.json
Copy the file in /etc/chromium-browser/policies/managed and make required changes in chromium-browser
// Policy template for Linux.
// Uncomment the policies you wish to activate and change their values to
// something useful for your case. The provided values are for reference only
// and do not provide meaningful defaults!
{
// Cross-origin HTTP Basic Auth prompts
//-------------------------------------------------------------------------
// Controls whether third-party sub-content on a page is allowed to pop-up an
// HTTP Basic Auth dialog box. Typically this is disabled as a phishing
// defense. If this policy is not set, this is disabled and third-party sub-
127.0.0.1 us.rdx2.lgtvsdp.com
127.0.0.1 us.info.lgsmartad.com
127.0.0.1 us.ibs.lgappstv.com
127.0.0.1 us.lgtvsdp.com
127.0.0.1 ad.lgappstv.com
127.0.0.1 smartshare.lgtvsdp.com
127.0.0.1 ibis.lgappstv.com
# added after fork
# from https://www.reddit.com/r/pihole/comments/6qmpv6/blacklists_for_lg_webos_tvs/ and others