Skip to content

Instantly share code, notes, and snippets.

View jmahc's full-sized avatar
🏠
Working from home

Jordan McArdle jmahc

🏠
Working from home
View GitHub Profile
@jmahc
jmahc / gp.md
Created April 6, 2017 04:11
gmp

My Gameplan

  • [PostgreSQL] is where our database exists - service name: myDatabase
  • [heroku] hosts myDatabase via a push using the "heroku toolbar" - a command line/terminal tool
  • [heroku] allows [many technologies] to query their hosted databases, especially valuable to us thanks to a [NodeJS-friendly] API to query myDatabase - service name: herokuPostgreSQL
  • herokuPostgreSQL: ([express.js] built on top of [NodeJS]) MyWebApi queries herokuPostgreSQL to get data from database
  • MyWebApi is hosted on [heroku] - and connected with [our MyWebApi GitHub] repository for simple deployment
  • MyWebApi communicates with herokuPostgreSQL to verify user credentials, query the database and/or CRUD operations
@jmahc
jmahc / .bash_profile
Created April 4, 2017 05:53
bash profile as of 4/4/17
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along
# with this software.
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
# base-files version 4.2-2
# ~/.bash_profile: executed by bash(1) for login shells.
/* Mixin */
@mixin vertical-align($position: relative) {
position: $position;
top: 50%;
transform: translateY(-50%);
}
@jmahc
jmahc / createObjectUsingArrays.js
Created January 20, 2017 18:15
Create object with keys from an array of strings and values that are an array containing a specific string from the `key array`.
/*
* -----------------------------------------------------------------------------------------
* ==== End goal is to have an object, `myObject` look like this: =========================
* -----------------------------------------------------------------------------------------
* myObject: {
* 'firstKey': ['valueOne', 'valueTwo', 'valueThree', 'valueFour', 'value-firstKey'],
* 'secondKey': ['valueOne', 'valueTwo', 'valueThree', 'valueFour', 'value-secondKey'],
* 'thirdKey': ['valueOne', 'valueTwo', 'valueThree', 'valueFour', 'value-thirdKey']
* }
*/
@jmahc
jmahc / style.css
Last active September 6, 2017 15:05
Operator Mono Collection & Styling for Atom Text Editor (Operator Mono/Pro/ScreenSmart)
/* CSS for VS Code */
/*
Feel free to remove these comments - just documenting why we do what we do...
*/
/* This is the left-hand pane or "tree-view" */
.monaco-split-view,
/* These are for any `.js` or `.jsx` files */
.editor-container[data-mode-id~="javascript"],
.editor-container[data-mode-id~="javascriptreact"] {
@jmahc
jmahc / settings.json
Last active November 6, 2019 23:07
VS Code Solution for Fira Code and Flottflott - based on the Medium article: https://medium.com/@docodemore/an-alternative-to-operator-mono-font-6e5d040e1c7e#.jq6tb618c
// `File > Preferences > User Settings`(WINDOWS)
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 14,
"editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontWeight": "normal",
"editor.tabSize": 2,
"editor.formatOnSave": true,
@jmahc
jmahc / anagram-v2.js
Last active January 10, 2017 22:54
JavaScript method that determines if two string values are anagrams.
function anagram(wordOne, wordTwo) {
var isAnagram = false;
if (wordOne.split('').length === wordTwo.split('').length) {
wordOne.split('').sort().every(function(one, two) {
return isAnagram = one === wordTwo.split('').sort()[two];
});
}
return isAnagram;
}
console.log(anagram("jordan", "najorad"));
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
@jmahc
jmahc / autoexec.cfg
Created December 21, 2016 03:02
CSGO settings as of 12/20/2016 @9:02
//------------------------
// General/Matchmaking Settings (begin)
//------------------------
mm_dedicated_search_maxping “70″
cl_autowepswitch "0"
cl_loadout_colorweaponnames "1"
cl_mute_enemy_team "1"
cl_bob_lower_amt 0
cl_bobamt_lat 0
cl_bobamt_vert 0
@jmahc
jmahc / styles.less
Created December 14, 2016 20:21
Atom font-style settings found in Atom.io's configuration settings.
// ==== Ligature fonts for atom
// JM 12/14/2016
// Sources:
// - https://github.com/tonsky/FiraCode
// - http://www.dafont.com/flottflott.font
//
// Reference (original): https://medium.com/@docodemore/an-alternative-to-operator-mono-font-6e5d040e1c7e#.nm9fchwv1
// Reference (improved): https://gist.github.com/MattMcFarland/e41ef709b1d82adea800563a86805559#gistcomment-1835618
@fontsize: 16px;