Skip to content

Instantly share code, notes, and snippets.

View nint22's full-sized avatar

Jeremy Bridon nint22

View GitHub Profile
@nint22
nint22 / Keypad.pde
Created February 18, 2014 01:33
Stand-alone Arduino keypad solution; based on the official library (but inlined to fix compiler errors)
/* @file CustomKeypad.pde
|| @version 1.0
|| @author Alexander Brevig
|| @contact alexanderbrevig@gmail.com
||
|| @description
|| | Demonstrates changing the keypad size and key values.
|| #
*/
@nint22
nint22 / ClockSim.pde
Created February 17, 2014 03:23
A simple arduino-based clock / led matrix screen solution. Note that I've got such little stack space, I do my pong-ball simulation in two unsigned bytes (pongX, pongY). Lead to some crazy-fun bit-twiddling.
/***************************************************************
*
* Real-Time Clock - Core S2 Software Solutions - Copyright 2014
* Author: Jeremy Bridon jbridon@cores2.com
*
* Description:
*
* This is for a custom desktop clock that uses these two main
* components from Sparkfun, all tired together with an Arduino.
*
@nint22
nint22 / ScheduleAssistant.py
Created October 27, 2013 20:09
A very simple Python scripts that runs every 5 minutes on my machine, shouting at me my current Google calendar events. Note that it's quite hacky / copy-pasted from Google's gData Python API.
#!/usr/bin/python
#
# Copyright (C) 2013 CoreS2 - Core Software Solutions.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@nint22
nint22 / gist:6277612
Created August 20, 2013 06:09
[08/13/13] Challenge #136 [Easy] Student Management
#include <stdio.h>
int main()
{
int N, M;
scanf("%d %d", &N, &M);
char nameBuffer[512][512];
float avg[512];
float allSum = 0.0f;
@nint22
nint22 / gist:6214694
Created August 12, 2013 20:14
[08/13/13] Challenge #135 [Easy] Arithmetic Equations (2nd Attempt)
#include <stdlib.h>
#include <stdio.h>
#include <vector>
using namespace std;
struct ExpressionElement {
bool isValue;
union {
int value;
@nint22
nint22 / gist:6189974
Created August 9, 2013 00:00
Initial solution attempt for [08/08/13] Challenge #131 [Intermediate] Simple Ray-Casting at http://www.reddit.com/r/dailyprogrammer/comments/1jz2os/080813_challenge_131_intermediate_simple/
#include <stdio.h>
#include <math.h>
int main()
{
// World size
int N, M;
scanf("%d %d", &N, &M);
// World buffer (N: characters in row, M: number of rows)
@nint22
nint22 / gist:4083112
Created November 16, 2012 01:31
nint22's random number generator game (In C)
#include <stdio.h>
int main()
{
int r = rand() % 10; // 0 to 9
int a = -1;
while(r != a)
{
printf("Please enter a guess, from 1 to 10:");
scanf("%d", &a);
@nint22
nint22 / Post check
Created August 13, 2012 21:25
Issue with post
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<id />
<category term="recordmotion.db01Model1.RM.UserDetails" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/xml" >
<m:properties><d:UserID m:null="true" />
<d:Email>http://www.facebook.com/der.bro.3</d:Email>
<d:FirstName>Der</d:FirstName>
<d:LastName>Bro</d:LastName>
<d:DOB m:null="true" />
@nint22
nint22 / Play google's latest Doodle through a bot
Created August 9, 2012 18:40
Play google's latest Doodle through a bot
import GoogleDoodle
def main():
GoogleDoodle.Play()
main()