Skip to content

Instantly share code, notes, and snippets.

View bladnman's full-sized avatar

Matt Maher bladnman

View GitHub Profile
@bladnman
bladnman / .bashrc
Last active December 12, 2024 19:55
```curl -fsSL <RAW_GIST_URL> -o ~/.bashrc && source ~/.bashrc``` Quick install of `.bashrc` for new systems
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
{
"public_identifier": "nshadebe-64a36667",
"profile_pic_url": "https://media.licdn.com/dms/image/D5603AQE86r1ctXN_Uw/profile-displayphoto-shrink_400_400/0/1684497813558?e=1689811200&v=beta&t=-3uFPLGGLhAjiyFsTaQGzE_S9GzibpYBy_IsERIIzv8",
"background_cover_image_url": null,
"first_name": "Elon",
"last_name": "Musk",
"full_name": "Elon Musk",
"follower_count": null,
"occupation": "Draughting Coordinator at Anglo American",
"headline": "Entrepreneur And Disruptive Technology Enthusiast, Chief Executive Officer OF Tesla Motors",
@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');
.lv : Print Variable
ANY → print(f"[M@] $expr$ = [{$expr$}]")$END$
@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('##@#!!#**#');
}
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 / 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
@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 / 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 / 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;