Skip to content

Instantly share code, notes, and snippets.

View josephmcasey's full-sized avatar
🕶️
Collaboration is cool

Joseph Michael Casey josephmcasey

🕶️
Collaboration is cool
View GitHub Profile
@josephmcasey
josephmcasey / .about_my_dotfiles
Last active November 28, 2021 21:49
A script to setup my local Ubuntu environment for the purpose of development
# DEPENDENCY:
# - Requires OS of Ubuntu 21.04
# - Requires ethernet connection.
# This gist shows what is required from a simple script to setup a procedurally generate my local development environment from GitHub.
@josephmcasey
josephmcasey / anagramMapping.c
Last active April 16, 2024 04:15
LeetCode #760 - Find Anagram Mappings
int* anagramMappings(int* A, int ASize, int* B, int BSize, int* returnSize) {
int i,j=0;
returnSize=0;
int result=(int)malloc(sizeof(int)(ASize));
for(i=0;i<ASize;i++){
for(j=0;j<BSize;j++){
if((A+i)==(B+j)){
result[(*returnSize)++]=j;
@josephmcasey
josephmcasey / coderpad_template.js
Last active June 3, 2018 04:58
Coder Pad JavaScript Template
/* Imports & Setup */
const _ = require('lodash');
const Mocha = require('mocha')
const mocha = new Mocha()
const chai = require('chai')
const sinon = require('sinon')
const sChai = require('sinon-chai')
mocha.suite.emit('pre-require', this, 'solution', mocha) // Bit of a hack, sorry!
@josephmcasey
josephmcasey / .gitmessage
Last active July 19, 2018 17:52
LocusLabs Git Commit Message Template
# --
# 🎉 - INIT():
# 🎨 - FORMAT():
# ⚡️ - PERFORMANCE():
# 🔥 - DELETE():
# ✨ - FEAT():
# 📝 - DOCS():
# 🚀 - DEPLOY():
# 🏗 - ARCHITECTURE():
# 🔖 - VERSION():
@josephmcasey
josephmcasey / 3d.html
Created December 16, 2017 00:17
3D Letters
<div id="container">
<div id="cube-j" class="animate">
<!--0-->
<div id="p-2x-2">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
## My standbys:
What languages/frameworks to you usually work with?
What development tools- IDEs, Bug Trackers, Version Control, etc do you use?
What's your development methodology like (Agile, Waterfall, Scrum, Crystal, etc)?
Do you have dedicated QA personel? Even if so, do developers do some amount of their own unit testing?
## The Joel Test:
Do you use source control?
Can you make a build in one step?
Do you make daily builds?
@josephmcasey
josephmcasey / coordinates.js
Last active May 26, 2018 15:52
My obsolete solution for a PixiJS bug that uses a few mathematical concepts.
/**
* Given an origin and target, determine the x,y coordinate
* of a distance along the hypotenuse of a right triangle.
* @param {number} x0 The origin X
* @param {number} y0 The origin Y
* @param {number} x1 The target X
* @param {number} y1 The target Y
* @param {number} d0 A distance between the origin to target
* @return {[number, number]} [x,y] The desired x, y coordinate
*/
@josephmcasey
josephmcasey / privateClass.js
Last active August 11, 2017 18:31
Shows a basic implementation of a JavaScript class which can utilize private members while having a publicly accessible interface.
let Klass = (function () {
// To add private members using a WeakMap, check out the link below.
// https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Contributor_s_Guide/Private_Properties
function foo (params) {
// Code
}
class Klass {