Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy codercodingthecode

  • Houston
View GitHub Profile
View cipher.js
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;
}
View index.html
<!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 / Makefile
Created Mar 3, 2018 — forked from mhitza/Makefile
Programming Arduino Uno (ATmega386P) in assembly
View Makefile
%.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:
@codercodingthecode
codercodingthecode / Sample Code
Created Aug 10, 2018
Sample Code from a project in golang
View Sample Code
// 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 / update-golang.md
Created Jul 7, 2019 — forked from nikhita/update-golang.md
How to update the Go version
View update-golang.md

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

View gist:1a79f8a68ca7dd318c73691f5bd7b02b
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'
View vim_v2
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'
View vim_v3
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'
You can’t perform that action at this time.