Skip to content

Instantly share code, notes, and snippets.

@chrisportela
chrisportela / morsecode.html
Created June 14, 2020 20:38
Simple HTML Page to convert to/from morse code
<!DOCTYPE html>
<html>
<head>
<title>Morse Code</title>
</head>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
### Keybase proof
I hereby claim:
* I am 0xcmp on github.
* I am cmp (https://keybase.io/cmp) on keybase.
* I have a public key ASCQaLgltfSW8AnluF5ca1gAgvN0TYq65GDx8sTD1goIVQo
To claim this, I am signing this object:
@chrisportela
chrisportela / keybase.md
Last active September 1, 2015 18:08
keybase.md

Keybase proof

I hereby claim:

  • I am cmpis on github.
  • I am cmp (https://keybase.io/cmp) on keybase.
  • I have a public key whose fingerprint is 0879 C481 3801 389B 3B56 55B9 198E 82B0 6AC9 3077

To claim this, I am signing this object:

@chrisportela
chrisportela / MemoryTest.ino
Last active December 18, 2015 17:39
Tests to see how big of array the program can allocate.
int connectionEstablished;
int counter;
int *array;
void setup()
{
connectionEstablished = 0;
counter = 0;
Serial.begin(115200);
@chrisportela
chrisportela / Sandbox.ino
Created June 20, 2013 00:16
Aurdino is C++ "Build Chain" v1.5.2 using Visual Micro on Visual Studio 2012
int connectionEstablished;
int counter;
void setup()
{
connectionEstablished = 0;
counter = 0;
Serial.begin(115200);
Serial.println("Initialize Channel");
@chrisportela
chrisportela / OAuth.cs
Created April 14, 2013 04:49
Creates OAuth request using Dino Chiesa's class. It then uses Json.net to deserialize the json from twitter in to a tweet object which is then printed to screen.
// TwitPic/OAuth.cs
//
// Code to do OAuth stuff, in support of a cropper plugin that sends
// a screen snap to TwitPic.com.
//
// There's one main class: OAuth.Manager. It handles interaction with the OAuth-
// enabled service, for requesting temporary tokens (aka request tokens), as well
// as access tokens. It also provides a convenient way to construct an oauth
// Authorization header for use in any Http transaction.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Dictionary {
void * next;
char word[1];
} DICT, *PDICT;
// Declare function prototype
@chrisportela
chrisportela / main.js
Created November 2, 2012 02:21
controller for main function
var Main = function () {
this.index = function (req, resp, params) {
var self = this;
var data;
geddy.model.Locations.all(function(err, locations) {
data.locations = locations;
geddy.model.Recorders.all(function(err, recorders) {
data.recorders = recorders;
self.respond({params: params, data: data}, {
format: 'html'