Skip to content

Instantly share code, notes, and snippets.

View jicksta's full-sized avatar

Jay Phillips jicksta

View GitHub Profile
@jicksta
jicksta / eladrin.rb
Last active March 19, 2018 21:22
Script to roll d4s on the D&D Eladrin (UA) tables for determining dynamic personality trait and flaw by season
#!/usr/bin/env ruby
require 'active_support/all'
SEASONS = {
autumn: {
description: "Autumn is the season of peace and goodwill, when summer’s harvest is shared with all. Eladrin adopt this personality when overcome with contentment.",
traits: [
"If someone is in need, you never withhold aid.",
"You share what you have, with little regard to your own needs.",
@jicksta
jicksta / keybase.md
Created October 31, 2016 15:58
Keybase Verification

Keybase proof

I hereby claim:

  • I am jicksta on github.
  • I am jayp (https://keybase.io/jayp) on keybase.
  • I have a public key ASBI5eIAWloE4JO6YpdHc-4Jhsc64QJ-6d820YWiTnewLAo

To claim this, I am signing this object:

@jicksta
jicksta / application.controller.js
Created January 26, 2016 07:27 — forked from kevinkucharczyk/application.controller.js
Contextual Popover Component
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@jicksta
jicksta / keybase.md
Created December 8, 2015 04:55
keybase.md

Keybase proof

I hereby claim:

  • I am jicksta on github.
  • I am jayp (https://keybase.io/jayp) on keybase.
  • I have a public key whose fingerprint is 1E3F 1E92 E471 2281 3872 FEBE 58FF A5D7 2029 AF83

To claim this, I am signing this object:

@jicksta
jicksta / Dockerfile
Last active August 29, 2015 14:13
Dockerfile for installing Ruby via ruby-install (with GPG / SHA256 verification)
FROM ubuntu
MAINTAINER Jay Phillips
RUN sudo apt-get -q -y update
RUN sudo apt-get -q -y upgrade
RUN sudo apt-get -q -y install wget
RUN sudo apt-get -q -y install build-essential
# Install Ruby:
RUN wget -L -nv -O /tmp/ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz
@jicksta
jicksta / designer.html
Created August 20, 2014 17:46
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="note-editor">
<template>
<style>
:host {
@jicksta
jicksta / designer.html
Created August 11, 2014 19:26
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="note-editor">
<template>
<style>
:host {
@jicksta
jicksta / application.html.haml
Created November 14, 2012 21:17
My way of initializing JavaScript unobtrusively
%html{:lang => "en"}
%head= render "shared/head"
%body.app{"data-events" => yield(:body_events)}
= yield
@jicksta
jicksta / gist:2243919
Created March 29, 2012 21:20
Create origin lines in ThreeJS
function v(x, y, z) {
return new THREE.Vertex(new THREE.Vector3(x, y, z));
}
var lineGeo = new THREE.Geometry();
lineGeo.vertices.push(
v(-50, 0, 0), v(50, 0, 0),
v(0, -50, 0), v(0, 50, 0),
v(0, 0, -50), v(0, 0, 50)
);
@jicksta
jicksta / gist:2231068
Created March 28, 2012 22:23
Experimenting with Collada support for Physijs
// Physijs.MeshMixin, used to convert a THREE.Mesh into a Physijs.Mesh. Direct use of
// this mixin is not necessary if you're instantiating Physijs.Meshes directly.
// Returns the given THREE.Mesh with Physijs mesh behavior and metadata mixed in.
Physijs.MeshMixin = function(mesh, mass, params) {
var index;
params = params || {};
Eventable.call(this);
if (!mesh.geometry.boundingBox) {