Skip to content

Instantly share code, notes, and snippets.

View DR-DinoMight's full-sized avatar
💻
Developing like crazy!

Matthew Peck-Deloughry DR-DinoMight

💻
Developing like crazy!
View GitHub Profile
const SPRITE_INCREMENT = 48,
SPRITE_SIZE = 96,
MOVEMENT_SPEED = 1,
MIN_ANIMATION_TIME = 3000;
class AvatarObject {
constructor(spriteImageLocation, direction = 'down', x = 0, y = 0, width = 16, height = 16, timePerFrame = 150, numberOfFrames = 2) {
this.spriteImageLocation = spriteImageLocation
@DR-DinoMight
DR-DinoMight / keymapping.json
Last active July 28, 2020 17:09
Discipline keymap
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"coseyfannitutti/discipline","keymap":"coseyfannitutti_discipline_layout_65_ansi_mine","layout":"LAYOUT_65_ansi","layers":[["KC_GESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_GRV","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","KC_DEL","HYPR(KC_NO)","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_PGUP","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_
<div class="wrapper">
<img class="site-header" src="https://www.wearepixl.com/images/logo-b660e3e2.svg" alt="Pixl">
<h2>Great Apps, Great Websites, Great Results</h2>
</div>
require "xbox-api"
require 'time'
require "byebug"
client = XboxApi::Client.new("xxx")
puts 'Xbox gamer tag?'
name = gets
user = client.gamer(name.chomp)
@DR-DinoMight
DR-DinoMight / hipchat-v2.sh
Created September 9, 2016 09:56 — forked from danriti/hipchat-v2.sh
HipChat API v2 - Send a message to a room using cURL
#!/bin/bash
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
@DR-DinoMight
DR-DinoMight / gist:6da5f9e9c674ec33fd4dfdd5aa37df63
Last active September 5, 2016 13:03 — forked from trcarden/gist:3295935
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
openssl genrsa -des3 -out localhost.orig.key 2048
openssl rsa -in localhost.orig.key -out localhost.key
openssl req -new -key localhost.key -out localhost.csr
openssl x509 -req -days 365 -in localhost.csr -signkey localhost.key -out localhost.crt
thin start -p 3000 -e development
thin start -p 3001 --ssl --ssl-verify --ssl-key-file ~/.ssl/localhost.key --ssl-cert-file ~/.ssl/localhost.crt -e development
@DR-DinoMight
DR-DinoMight / frontendDevlopmentBookmarks.md
Created August 18, 2016 07:43 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.