Skip to content

Instantly share code, notes, and snippets.

@taylanpince
taylanpince / aventri_attendee_generator.py
Created June 26, 2019 19:01
Aventri Attendee List Generator
#!/usr/bin/env python3
import csv
import re
import sys
from faker import Faker
fake = Faker()
Verifying my Blockstack ID is secured with the address 1J2KtCYgzLynUjY1ckaT6GFNRWdcNSeJQv https://explorer.blockstack.org/address/1J2KtCYgzLynUjY1ckaT6GFNRWdcNSeJQv
#include <LCD5110_Basic.h>
LCD5110 LCDScreen(8,9,10,11,12);
extern uint8_t logoHipo1[] ; // for picture 1
extern uint8_t logoHipo2[] ; // for picture 2
extern uint8_t MediumNumbers[];
extern uint8_t SmallFont[];
@taylanpince
taylanpince / read_write.py
Created May 4, 2016 19:58
Python read/write
f = open("doc.txt", "r+")
contents = f.read()
contents = contents.replace("word", "another")
f.seek(0)
f.write(contents)
f.truncate()
f.close()
@taylanpince
taylanpince / sign-and-upload.sh
Created June 30, 2015 13:26
Travis CI: Check for tag, generate release notes, sign binary and upload to Tryouts for release distribution
#!/bin/sh
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
echo "This is a pull request. No deployment will be done."
exit 0
fi
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
echo "Testing on a branch other than master. No deployment will be done."
exit 0
fi
@taylanpince
taylanpince / gist:d1b1a5b03dd9cb1c58a8
Last active September 30, 2015 07:46
OV7670 Arduino MEGA SRAM
#include <avr/io.h>
#include <avr/interrupt.h>
#include <HardwareSerial.h>
#include <SPI.h>
#include "SimpleI2C.h"
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#include <HardwareSerial.h>
#include "SimpleI2C.h"
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
@taylanpince
taylanpince / gist:4c22a780080ed9923b69
Created January 1, 2015 23:11
OV7670 Arduino SPI
#include <Wire.h>
#include <SPI.h>
#define OV7670_address 0x21
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
@taylanpince
taylanpince / gist:67e7bc40baba0a27b430
Created December 30, 2014 13:27
OVR7670 FIFO Read to Serial
#include <avr/io.h>
#include <avr/interrupt.h>
//
// RCLK 2
// VSYNC 3
// D0-D4 A0-A3
// D5-D8 4-7
// WE 8
// WRST 9
@taylanpince
taylanpince / gist:a30199647af85698b10b
Created December 24, 2014 18:04
OV7670 Arduino Serial Integration
#include <Wire.h>
#define OV7670_address 0x21
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#define vga 0