Skip to content

Instantly share code, notes, and snippets.

@robbielynch
robbielynch / md5.js
Created May 3, 2018 10:21
Google crypto js
/*
CryptoJS v3.0.2
code.google.com/p/crypto-js
(c) 2009-2012 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
var CryptoJS=CryptoJS||function(o,q){var l={},m=l.lib={},n=m.Base=function(){function a(){}return{extend:function(e){a.prototype=this;var c=new a;e&&c.mixIn(e);c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.$super.extend(this)}}}(),j=m.WordArray=n.extend({init:function(a,e){a=
this.words=a||[];this.sigBytes=e!=q?e:4*a.length},toString:function(a){return(a||r).stringify(this)},concat:function(a){var e=this.words,c=a.words,d=this.sigBytes,a=a.sigBytes;this.clamp();if(d%4)for(var b=0;b<a;b++)e[d+b>>>2]|=(c[b>>>2]>>>24-8*(b%4)&255)<<24-8*((d+b)%4);else if(65535<c.length)for(b=0;b<a;b+=4)e[d+b>>>2]=c[b>>>2];else e.push.apply(e,c);this.sigBytes+=a;return th
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robbielynch
robbielynch / IErlang_Project_Demo
Created April 30, 2014 10:20
IErlang_Project_Demo
{
"metadata": {
"name": "",
"signature": "sha256:08250657796be295d72c628fd79fb4af4994ef463c8871d83ee7f5a91bd5ad96"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@robbielynch
robbielynch / IErlang
Last active August 29, 2015 13:59
IErlang Notebook - April 15, 2014
{
"metadata": {
"name": "",
"signature": "sha256:58714955d7aa791882dbb33fa58c40d18a9723a3a9f223aa113fd27fe4402a69"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@robbielynch
robbielynch / IErlangModules
Created April 11, 2014 22:09
Demonstration of creating modules inside of IErlang for IPython...
{
"metadata": {
"name": "",
"signature": "sha256:1449476fef8f91ca592601643d503a97a3dbf7e6c43570c93d7ebf229b1a24d1"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@robbielynch
robbielynch / IErlang Notebook Prototype
Created April 11, 2014 15:31
This is the first IErlang Notebook that I've created using my erlang language kernel backend for IPython. As it's the first prototype, some things work, some don't. The language key states it's python, but it's actually erlang... not sure why it hasn't changed to "erlang". Keep up to date with IErlang Notebook @ http://roblynch.info/category/ier…
{
"metadata": {
"name": "",
"signature": "sha256:5bcfb92c02773d33dd45462a40fd1012f4eb1a2bf0910015c3f65b0697a2556a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@robbielynch
robbielynch / cylinder.cpp
Created February 10, 2014 12:55
Cylinder in OpenGL with mesh.
/*
Robbie Lynch
*/
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include "stdafx.h"
#ifdef _DEBUG
#pragma comment(lib,"sfml-graphics-d.lib")
@robbielynch
robbielynch / pingpong.erl
Last active December 29, 2015 12:49
Erlang - Ping Pong Example of message sending in erlang.
%%% @author Robbie <[email protected]>
%%% @copyright (C) 2013, Robbie
%%% @doc
%%% Program to test message passing between two processes
%%% @end
%%% Created : 8 Nov 2013 by Robbie <[email protected]>
-module(pingpong).
-export([start/0, ping/0, pong/0]).
@robbielynch
robbielynch / gist:7115778
Created October 23, 2013 09:57
C++ Code to draw an isosagon using the SFML library.
int points = 20;
double totRads = 2 * 3.14159;
double angle = totRads / points;
int r = 200;
int pointNum = 1;
int originY = 300;
int originX = 300;
glBegin(GL_LINE_LOOP);
for(int i = 1; i <= points; i++){
@robbielynch
robbielynch / pom.xml
Last active December 18, 2015 01:09
Sample Android-Maven pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Information about your module -->
<groupId>com.company.name.goes.here</groupId>
<artifactId>AwesomeArtifactIdHere</artifactId>
<version>1.0</version>