Skip to content

Instantly share code, notes, and snippets.

@johnpolacek
johnpolacek / .gitconfig
Last active July 9, 2024 12:14
My current .gitconfig aliases
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brD = branch -D
merged = branch --merged
st = status
aa = add -A .
@dagon666
dagon666 / Makefile
Created September 21, 2013 21:09
Pure C Arduino generic Makefile
TARGET=blink
SOURCES=blink.c
DEPS=
COBJ=$(SOURCES:.c=.o)
CC=avr-gcc
OBJC=avr-objcopy
MCU=atmega328p
CFLAGS=-I. -Wall -Os -DF_CPU=16000000UL
LDFLAGS=
#include <stdio.h>
int dev_atoi(char *pStr)
{
int n; char g = 0;
if (*pStr == '-') { g = 1; pStr++; }
for(n=0;*pStr >= '0' && *pStr <= '9';pStr++) {
n *= 10;
n += *pStr - '0';
}