Skip to content

Instantly share code, notes, and snippets.

View bladnman's full-sized avatar

Matt Maher bladnman

View GitHub Profile
@bladnman
bladnman / README.md
Last active August 29, 2015 14:22
Auto Assignment Aligner

#Auto Assignment Aligner

This is a little script that will take in a file, rip through it aligning the assignment characters into a column.

"=", ":", "-=", "*=", "+=", "=~", ".="

Example:

var bob = {
@bladnman
bladnman / keymap.cson
Last active August 29, 2015 14:24
Atom Setup
## !
## ! Simply add in the items here to the
## ! atom keymap file -- not intended as complete
## ! file.
## !
'body':
'alt-cmd-right': 'pane:split-right'
'alt-cmd-left': 'pane:split-left'
'alt-cmd-up': 'pane:split-up'
@bladnman
bladnman / pipe.js
Created September 27, 2015 14:44 — forked from ada-lovecraft/pipe.js
Phaser 2.0 Tutorial: Flappy Bird (Part 4) :: Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-4/
/* Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-4/ */
'use strict';
var Pipe = function(game, x, y, frame) {
Phaser.Sprite.call(this, game, x, y, 'pipe', frame);
this.anchor.setTo(0.5, 0.5);
this.game.physics.arcade.enableBody(this);
this.body.allowGravity = false;
this.body.immovable = true;
@bladnman
bladnman / Bird.js
Created September 27, 2015 14:44 — forked from ada-lovecraft/Bird.js
Phaser 2.0 Tutorial: Flappy Bird (Part 3) :: Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-3/
/* Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-3/ */
'use strict';
var Bird = function(game, x, y, frame) {
Phaser.Sprite.call(this, game, x, y, 'bird', frame);
this.anchor.setTo(0.5, 0.5);
this.animations.add('flap');
this.animations.play('flap', 12, true);
@bladnman
bladnman / Bird.js
Created September 27, 2015 14:44 — forked from ada-lovecraft/Bird.js
Phaser 2.0 Tutorial: Flappy Bird (Part 2) : Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-2/
/* Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-2/ */
'use strict';
var Bird = function(game, x, y, frame) {
Phaser.Sprite.call(this, game, x, y, 'bird', frame);
this.anchor.setTo(0.5, 0.5);
// add flap animation and begin playing it
this.animations.add('flap');
this.animations.play('flap', 12, true);
@bladnman
bladnman / menu.js
Created September 27, 2015 14:44 — forked from ada-lovecraft/menu.js
Phaser 2.0 Tutorial: Flappy Bird (Part 1) : Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-1/
/* Full tutorial: http://codevinsky.ghost.io/phaser-2-0-tutorial-flappy-bird-part-1/ */
'use strict';
function Menu() {}
Menu.prototype = {
preload: function() {
},
create: function() {
// add the background sprite
import Ember from 'ember';
export default Ember.Component.extend({
fruitList : null,
init() {
this._super(...arguments);
let fruit = Ember.A();
fruit.addObject({name:'Apple'});
@bladnman
bladnman / main.dart
Last active November 6, 2019 00:33
Dart Pad example of String to RGB string
void main() {
test('bob');
test('Bob');
test('jimmy');
test('Hello there colorful world');
test('Help');
test('hell');
test('D0D0D0');
test('##@#!!#**#');
}
.lv : Print Variable
ANY → print(f"[M@] $expr$ = [{$expr$}]")$END$
@bladnman
bladnman / electron.js
Last active September 24, 2022 16:24
Electron launch file for React App
// ./public/electron.js
// ---------------
const PORT = 3000;
const WIN_WIDTH = 800;
const WIN_HEIGHT = 600;
const LAUNCH_FILE = '../build/index.html';
// ---------------
const path = require('path');