Skip to content

Instantly share code, notes, and snippets.

View PhoenixWright's full-sized avatar

Christopher Horenstein PhoenixWright

View GitHub Profile
@PhoenixWright
PhoenixWright / Java.java
Created October 7, 2019 23:23
Java Notes
// everything you do in java is inside a class
class MyClass {
// this is a java "method" or "function"
public static void main(String[ ] args) {
// anything to the right of two slashes // is a java "comment"
// it's for writing notes or messages to others reading your code
// a string stores text
@PhoenixWright
PhoenixWright / .irbrc
Last active July 10, 2018 05:32
Interactive Ruby Initialization File
require 'irb/completion'
IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:AUTO_INDENT_MODE] = false
@PhoenixWright
PhoenixWright / vscode_settings.json
Created June 26, 2018 17:37
Visual Studio Code Settings
// Place your settings in this file to overwrite the default settings
{
// Editor
// Controls how the editor should render whitespace characters, posibilties are 'none', 'boundary', and 'all'. The 'boundary' option does not render single spaces between words.
"editor.renderWhitespace": "boundary",
// Files
@PhoenixWright
PhoenixWright / .gitignore_global
Last active August 20, 2018 00:22
My personal .gitignore_global
# .gitignore_global
# git config --global core.excludesfile '~/.gitignore_global'
# MacOS Files
.DS_Store
# IntelliJ
.idea
*.iml
@PhoenixWright
PhoenixWright / Kivy - Tiled Example.md
Last active August 27, 2023 05:58
A collection of Kivy-based Tiled code snippets in python.

Kivy - Tiled Example

  • KivyTiledMap.py - inherits from the TiledMap class and loads the TiledMap images
  • TileGrid.py - creates a Kivy grid and puts the tiles from a KivyTiledMap in it for rendering
  • Character.py - example of a character widget that can move via user input on a TileGrid
@PhoenixWright
PhoenixWright / .gitconfig
Last active October 2, 2018 18:13
Git Settings Files
# .gitconfig
[credential]
helper = osxkeychain
[user]
name = Christopher Horenstein
email = chris.horenstein@gmail.com
[core]
excludesfile = /Users/chris/.gitignore_global
@PhoenixWright
PhoenixWright / starfield.py
Last active August 29, 2015 13:59
A randomly generated scrolling starfield in Kivy.
import random
from kivy.app import App
from kivy.clock import Clock
from kivy.graphics import Rectangle
from kivy.graphics.texture import Texture
from kivy.lang import Builder
from kivy.properties import ListProperty, NumericProperty
from kivy.uix.widget import Widget
@PhoenixWright
PhoenixWright / chatmap.py
Last active August 29, 2015 13:58
A ChatMapper ChatMap loader in Python.
import re
import simplejson as json
first_cap_re = re.compile('(.)([A-Z][a-z]+)')
all_cap_re = re.compile('([a-z0-9])([A-Z])')
def convert(name):
# eliminate spaces
name = name.replace(' ', '')
@PhoenixWright
PhoenixWright / Preferences.sublime-settings
Last active May 25, 2017 19:46
My Sublime Text 3 preferences.
{
"always_show_minimap_viewport": true,
"auto_complete_triggers":
[
{
"characters": ".@",
"selector": "source.coffee, source.litcoffee, source.coffee.md"
}
],
"close_windows_when_empty": true,