This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- | |
# 🎉 - INIT(): | |
# 🎨 - FORMAT(): | |
# ⚡️ - PERFORMANCE(): | |
# 🔥 - DELETE(): | |
# ✨ - FEAT(): | |
# 📝 - DOCS(): | |
# 🚀 - DEPLOY(): | |
# 🏗 - ARCHITECTURE(): | |
# 🔖 - VERSION(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |