Skip to content

Instantly share code, notes, and snippets.

@chrisportela
chrisportela / morsecode.html
Created Jun 14, 2020
Simple HTML Page to convert to/from morse code
View morsecode.html
<!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;
View gist:593c64ec37c518a4e9de
### 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 / MemoryTest.ino
Last active Dec 18, 2015
Tests to see how big of array the program can allocate.
View MemoryTest.ino
int connectionEstablished;
int counter;
int *array;
void setup()
{
connectionEstablished = 0;
counter = 0;
Serial.begin(115200);
@chrisportela
chrisportela / Sandbox.ino
Created Jun 20, 2013
Aurdino is C++ "Build Chain" v1.5.2 using Visual Micro on Visual Studio 2012
View Sandbox.ino
int connectionEstablished;
int counter;
void setup()
{
connectionEstablished = 0;
counter = 0;
Serial.begin(115200);
Serial.println("Initialize Channel");
@chrisportela
chrisportela / OAuth.cs
Created Apr 14, 2013
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.
View OAuth.cs
// 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.
//
View Zombies.c
#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 Nov 2, 2012
controller for main function
View main.js
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'
View 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: