Skip to content

Instantly share code, notes, and snippets.


Davis Silverman sinistersnare

Block or report user

Report or block sinistersnare

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sinistersnare /
Last active Feb 20, 2020
My opinions on 2020 candidates. Mostly why I dont like them, but for candidates I like I may try to give rebuttals to their common critiques.


When I watch candidates, sometimes I hear them say something that is patently false, or completely disengenuous. How am I expected to vote for such a person? They clearly only have their own interests at heart if they know they are lying, or they are incompetent, not knowing basic facts about their opponents.

This is a short list with stuff that I wanted to write down in case it comes up in an argument :P. Hopefully, I eventually get to all candidates, including ones I support.

Also, the list has kind of morphed. It was originally critiques on candidates, now its just general thoughts, idk.

sinistersnare / AutoSaveSceneOnPlay.cs
Last active May 14, 2018
Auto saves current Unity scene when entering play mode.
View AutoSaveSceneOnPlay.cs
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor;
using UnityEditor.SceneManagement;
public class AutoSaveSceneOnPlay: ScriptableObject {
static AutoSaveSceneOnPlay() {
EditorApplication.playModeStateChanged += OnStateChanged;
sinistersnare /
Last active Aug 29, 2015
Ellipses elision in patterns instead of double-dot.
  • Start Date: (fill me in with today's date, YYYY-MM-DD)
  • RFC PR: (leave this empty)
  • Rust Issue: (leave this empty)


Use ellipses ... instead of the current double dot notation .. for elision in patterns, such as in match expressions.


sinistersnare /
Created May 9, 2014
Multiple Traits per impl block in Rust
trait MyFirstTrait {
fn my_first_func() -> ();
trait MySecondTrait {
fn my_second_func() -> ();
fn my_third_func() -> ();
struct MyStruct;
sinistersnare /
Last active Dec 31, 2015
Markdown -> PDF Halp

% Creating Games With Python And Java % Davis Silverman

About Me

  • Ameteur programmer and game developer
  • High school now, College in the future
sinistersnare /
Created Nov 8, 2013
Showing a CS1 kid classes!
class Point(object):
def __init__(self,x,y):
self.x = x
self.y = y
def set(self,x,y):
self.x = x
self.y = y
def getx(self):
sinistersnare /
Last active Dec 26, 2015
Python libgdx wrapper ideas

Ideas about PyGdx, a pythonic wrapper for LibGDX Java library using Jython.


Sprite batches in java are used like so:

SpriteBatch batch = new SpriteBatch(); //init'd in create()
from com.badlogic.gdx import ApplicationListener, Gdx
from import SpriteBatch
from import Texture, OrthographicCamera, GL10
class GdxJython(ApplicationListener):
def __init__(self): = None
self.batch = None
View core.clj
(ns cljdx.core
(:require [cljdx.drop :as drop])
(:import (com.badlogic.gdx.backends.lwjgl LwjglApplication)))
(defn -main
"I don't do a whole lot."
[& args]
(cljdx.drop.) "Hello, Clojure!" 800 480 true))
sinistersnare /
Last active Feb 2, 2020
This is the gist for the "Extended Simple App" LibGDX tutorial found at:
package com.badlogic.drop;
import com.badlogic.gdx.Game;
public class Drop extends Game {
SpriteBatch batch;
BitmapFont font;
You can’t perform that action at this time.