Skip to content

Instantly share code, notes, and snippets.

View westonal's full-sized avatar

Alan Evans westonal

View GitHub Profile
@westonal
westonal / FtpUploader.cs
Created July 10, 2015 09:06
Ftp upload async
using System;
using System.Net;
using System.Threading.Tasks;
namespace FtpTestConsoleApplication
{
public sealed class FtpUploader
{
private readonly string _root;
@westonal
westonal / SVG.md
Created August 5, 2015 14:13
SVG editor
@westonal
westonal / Projects.md
Created August 9, 2015 13:27
All my android apps status

Tax Zap

##Free

[Version][1] [Age][1] [Downloads][1] [Score][1] [Reviews][1]

@westonal
westonal / GitCommands.md
Created August 11, 2015 09:57
Useful git commands

List origin branches

git for-each-ref --sort=-committerdate refs/remotes/origin/ --format="%(authordate:short)%09%(color:yellow)%(authordate:relative)%09%(col or:white)%(refname:short)

2015-08-10      18 hours ago    origin/feature/larger-nd2-symbol-font
2015-08-07      4 days ago      origin/feature/Delete-unused-sp-groups
2015-08-06      5 days ago      origin/develop
2015-08-06 5 days ago origin/HEAD
// [SIG15] Mario World 1-1
// by Krzysztof Narkowicz @knarkowicz
//
// Intersting findings from original NES Super Mario Bros.:
// -Clouds and brushes of all sizes are drawn using the same small sprite (32x24)
// -Hills, clouds and bushes weren't placed manually. Every background object type is repeated after 768 pixels.
// -Overworld (main theme) drum sound uses only the APU noise generator
#define SPRITE_DEC( x, i ) mod( floor( i / pow( 4.0, mod( x, 8.0 ) ) ), 4.0 )
#define SPRITE_DEC2( x, i ) mod( floor( i / pow( 4.0, mod( x, 11.0 ) ) ), 4.0 )
@westonal
westonal / SingleDigit.ino
Last active November 27, 2015 01:06
Arduino Single Digit 7 segment display demo (using shift register)
//Pin connected to ST_CP of 74HC595
const int latchPin = 8;
//Pin connected to SH_CP of 74HC595
const int clockPin = 12;
////Pin connected to DS of 74HC595
const int dataPin = 11;
void setup() {
//set pins to output so you can control the shift register
pinMode(latchPin, OUTPUT);
@westonal
westonal / CameraIrControl.ino
Created December 30, 2015 19:07
Arduino Camera control via IR
#include <IRremote.h>
int RECV_PIN = 10;
int PIN_TAKE = 5;
int PIN_FOCUS = 2;
int PIN_TAKE_INDICATOR = 13;
#define Zero 0xFF6897
#define One 0xFF30CF
@westonal
westonal / Program.cs
Created February 25, 2016 05:49
Fast image merge profiler
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Diagnostics;
using System.Drawing.Imaging;
namespace FastMergeImage
{