Skip to content

Instantly share code, notes, and snippets.

View codercodingthecode's full-sized avatar

Andy codercodingthecode

  • Houston
View GitHub Profile
[
[{"card": "AA", "color": "white"}, {"card": "AKs", "color": "white"}, {"card": "AQs", "color": "white"}, {"card": "AJs", "color": "white"}, {"card": "ATs", "color": "white"}, {"card": "A9s", "color": "green"}, {"card": "A8s", "color": "green"}, {"card": "A7s", "color": "green"}, {"card": "A6s", "color": "blue"}, {"card": "A5s", "color": "blue"}, {"card": "A4s", "color": "blue"}, {"card": "A3s", "color": "blue"}, {"card": "A2s", "color": "blue"}],
[{"card": "AKo", "color": "white"}, {"card": "KK", "color": "white"}, {"card": "KQs", "color": "white"}, {"card": "KJs", "color": "white"}, {"card": "KTs", "color": "green"}, {"card": "K9s", "color": "green"}, {"card": "K8s", "color": "green"}, {"card": "K7s", "color": "blue"}, {"card": "K6s", "color": "blue"}, {"card": "K5s", "color": "blue"}, {"card": "K4s", "color": "blue"}, {"card": "K3s", "color": "blue"}, {"card": "K2s", "color": "blue"}],
[{"card": "AQo", "color": "white"}, {"card": "KQo", "color": "white"}, {"card": "QQ", "color": "white"}, {"ca
[ ["AA", "AKs", "AQs", "AJs", "ATs", "A9s", "A8s", "A7s", "A6s", "A5s", "A4s", "A3s", "A2s"],
["AKo", "KK", "KQs", "KJs", "KTs", "K9s", "K8s", "K7s", "K6s", "K5s", "K4s", "K3s", "K2s"],
["AQo", "KQo", "QQ", "QJs", "QTs", "Q9s", "Q8s", "Q7s", "Q6s", "Q5s", "Q4s", "Q3s", "Q2s"],
["AJo", "KJo", "QJo", "JJ", "JTs", "J9s", "J8s", "J7s", "J6s", "J5s", "J4s", "J3s", "J2s"],
["ATo", "KTo", "QTo", "JTo", "TT", "T9s", "T8s", "T7s", "T6s", "T5s", "T4s", "T3s", "T2s"],
["A9o", "K9o", "Q9o", "J9o", "T9o", "99", "98s", "97s", "96s", "95s", "94s", "93s", "92s"],
["A8o", "K8o", "Q8o", "J8o", "T8o", "98o", "88", "87s", "86s", "85s", "84s", "83s", "82s"],
["A7o", "K7o", "Q7o", "J7o", "T7o", "97o", "87o", "77", "76s", "75s", "74s", "73s", "72s"],
["A6o", "K6o", "Q6o", "J6o", "T6o", "96o", "86o", "76o", "66", "65s", "64s", "63s", "62s"],
["A5o", "K5o", "Q5o", "J5o", "T5o", "95o", "85o", "75o", "65o", "55", "54s", "53s", "52s"],
let g:vim_bootstrap_langs = "c,go,javascript,typescript"
call plug#begin("~/.vim/plugged")
"*****************************************************************************
"*****************************************************************************
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
Plug 'vim-scripts/CSApprox'
Plug 'Raimondi/delimitMate'
Plug 'majutsushi/tagbar'
let g:vim_bootstrap_langs = "c,go,javascript,typescript"
call plug#begin("~/.vim/plugged")
"*****************************************************************************
"*****************************************************************************
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
Plug 'vim-scripts/CSApprox'
"Plug 'Raimondi/delimitMate'
"Plug 'majutsushi/tagbar'
call plug#begin("~/.vim/plugged")
" Theme
" Plug 'dracula/vim'
Plug 'rakr/vim-one'
" Random
Plug 'tpope/vim-surround'
Plug 'jiangmiao/auto-pairs'
Plug 'mileszs/ack.vim'
Plug 'preservim/nerdcommenter'
@codercodingthecode
codercodingthecode / Sample Code
Created August 10, 2018 04:18
Sample Code from a project in golang
// THIS SNIPPET FETCHS THE EXISTING CURRENCIES FROM THE EXCHANGES THRU REST API CALLS
// THE PURPOSE IS TO BYPASS THE CALL TO DYNAMODB FROM WEBSOCKETS CODE AND HAVE A MORE ACCURATE LIST OF CURRENCY PER EXCHANGE.
//@todo:
// handle errors better
// export cL variable holding the current data from exchanges
package currencyfetch
import (
@codercodingthecode
codercodingthecode / Makefile
Created March 3, 2018 01:34 — forked from mhitza/Makefile
Programming Arduino Uno (ATmega386P) in assembly
%.hex: %.asm
avra -fI $<
rm *.eep.hex *.obj *.cof
all: $(patsubst %.asm,%.hex,$(wildcard *.asm))
upload: ${program}.hex
avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$<
monitor:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Prime Numbers </title>
</head>
<p> Enter Values Here </p>
n1 <input type = "number" id = "n1" value=20 />
n2 <input type = "number" id = "n2" value=20 />
n3 <input type = "number" id = "n3" value=20 />
@codercodingthecode
codercodingthecode / cipher.js
Created August 24, 2016 16:14
Caesars Cipher
function rot13(str) { // LBH QVQ VG!
var newArr = [];
var final = [];
for (var i = 0; i < str.length; i++) {
newArr[i] = (str.charCodeAt(i));
if (newArr[i] >= 65 && newArr[i] <= 77) {
newArr[i] += 13;
}