Skip to content

Instantly share code, notes, and snippets.

@robbielynch
robbielynch / NKueen.java
Created July 23, 2012 13:38
N Kueen - HackerRank Code Sprint - Interviewstreet.com
import java.util.ArrayList;
import java.util.Scanner;
public class NKueen {
private static ArrayList<Integer> kueens = new ArrayList<Integer>();
static int N = 0;
public static void main (String args[]){
@robbielynch
robbielynch / CaesarCipher.java
Created July 23, 2012 13:53
Caesar Cipher - I made this caesar cipher decrypter to solve hackerrank.com puzzles.
import java.util.Scanner;
public class CaesarCipher {
private static char []letters =
{ 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'
,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'
,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'
};
@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>
@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 / 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 / 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 / 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 / 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
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 / IErlang_Project_Demo
Created April 30, 2014 10:20
IErlang_Project_Demo
{
"metadata": {
"name": "",
"signature": "sha256:08250657796be295d72c628fd79fb4af4994ef463c8871d83ee7f5a91bd5ad96"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [