Skip to content

Instantly share code, notes, and snippets.

View 7yl4r's full-sized avatar

Tylar 7yl4r

View GitHub Profile
@7yl4r
7yl4r / javascript-stack.md
Created September 29, 2015 06:30
toolkit notes

=== Unit Testing - Mocha ===

example use: HBM-PoC

.travis.yml

language: node_js node_js:

  • 0.10 script: npm test notifications: email: on_success: change # default: change
@7yl4r
7yl4r / reusableExceptions.md
Last active July 27, 2021 17:26
info on Java built-in exceptions from perspective of developer looking to reuse built-in exceptions

organized by estimated utility

IllegalArgumentException

Thrown to indicate that a method has been passed an illegal or inappropriate argument.

IndexOutOfBoundsException

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.

ArithmeticException

Thrown when the requested mathematical operation is non-sensical or impossible.

@7yl4r
7yl4r / robot.js
Last active November 6, 2015 01:20
cylon loopback test
"use strict";
// set up robot
var Cylon = require("cylon");
Cylon.api();
Cylon.robot({
name: "cylon-test-bot",
@7yl4r
7yl4r / textureCreationGuide.md
Last active January 9, 2016 04:54
steps for creating a texture background for Pixelon Bridge
  1. create map using map editor
  2. screenshot map
  3. create new gimp file 1000x1000px
  4. add map, scale to fit
  5. draw bg texture using map as ref
  6. texture should be blurred (approx r=10 gaussian)
  7. export to png
  8. trianglify image using triangloid or similar (upload, trianglify w/ size=10, open dev console, copy outerhtml of svg that appears in console)
  9. paste svg xml into new .svg file
  10. open svg file in inkscape
ALLOWS:
1. copying and distribution of source-code (you can clone this)
2. improvements and modifcation of source code, IFF improvements/modifications are made available to original repo (copyleft?)
3.
PROHIBITS:
1. unauthorized distribution of binaries, .apk files, or other files which enable non-technical users to run the program.
2. use of art/sound/writing assets in other projects
3. commercial gain from re-distribution of source code (source code sharing must be free)
{"platforms":[{"index":[10,1],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":0,"y":0,"z":40},{"index":[10,2],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":4,"y":0,"z":40},{"index":[10,3],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":8,"y":0,"z":40},{"index":[10,4],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":12,"y":0,"z":40},{"index":[10,5],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":16,"y":0,"z":40},{"index":[10,6],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":20,"y":0,"z":40},{"index":[10,7],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":24,"y":0,"z":40},{"index":[10,8],"visible":false,"start":false,"binaryId":null,"teleportId":null,"state":0,"type":"default","x":28,"y"
@7yl4r
7yl4r / 00_datalog-change-suggestions.md
Last active February 1, 2016 18:02
puzzle nebula data log change suggestions
  1. datalog 2, line 1 (d2 l1) : We will try to provide you with an answers to some of the your questions you may be thinking
  2. d3 l7 : And it is not just your universe. There are theoretically infinite amounts of universes similar to yours stacked on top of each other. We made it so that no light can ever escape the boundaries of a single universe in an attempt to hide this fact from you. so you would never know it.
  3. d5 l1 : There were a few times our kind interfered with the natural order of the your simulation. One of the most notable incidents happened approximately 4700 years back in your time.
  4. d7 l3 : The single biggest common aspect in all of them was their self-destructivity proclivity for self-destruction. We have now concluded that it is an unfortunate side-effect of being sentient. Our kind, however, does not share this trait.
  5. d8 l1 : Our universe is very much like yours. The simulation had to be as accurate as possible, for otherwise we woul
@7yl4r
7yl4r / AvoiderCamera.java
Last active February 11, 2016 14:57
makes default libgdx camera follow the character around the scene while avoiding obstacles by applying a repulsing force from each obstacle and a pull towards the player..
package tests;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.math.Vector3;
import java.util.ArrayList;
/**
* Makes default libgdx camera follow the character around the scene
* while avoiding a list of obstacles.
@7yl4r
7yl4r / trickyErrors.md
Created September 22, 2016 15:49
Python errors that aren't what they say they are
@7yl4r
7yl4r / my-favorite-github-badges.md
Created October 12, 2016 02:12
List of my favorite github badges