Skip to content

Instantly share code, notes, and snippets.

Andy codercodingthecode

  • Houston
Block or report user

Report or block codercodingthecode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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:

You can’t perform that action at this time.