This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
uint64_t sr; | |
uint8_t *srb = (uint8_t*) &sr; | |
uint8_t shift( ) | |
{ | |
//Taps at 64, 63, 61, 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Just paste into your browser javascript console while on https://www.messenger.com | |
Only requires right hand side menu with colors and nicknames to be opened. | |
I DO NOT TAKE ANY RESPONSIBILITY FOR POSSIBLE CONSEQUENCES OF USAGE OF THIS SCRIPT | |
Enjoy... | |
*/ | |
function pick( ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src=tgen.js></script> | |
<style> | |
canvas | |
{ | |
border: 1px solid black; | |
display: inline-block; | |
margin: 1px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <stdlib.h> | |
#include <util/delay.h> | |
#include <inttypes.h> | |
#include "comm328p.h" | |
//Version for atmega328 | |
uint8_t computc( uint8_t c ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <inttypes.h> | |
#include "adc.h" | |
void adcenable( ) | |
{ | |
//Enable ADC | |
ADCSRA = ( 1 << ADEN ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#If you are a Perl programmer | |
#Do not read this code... I beg you... | |
use Term::ANSIColor; | |
#Output sizes | |
my @sizes = ( 16, 22, 24, 32, 48, 64 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s/<i>gist(.*?)<\/i>/<script src="https:\/\/gist\1"><\/script>/gm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
#Sample list | |
#Milk <(2)[1][2.00]> | |
#Butter <(10)[2][1.00]> | |
#Basic init | |
BEGIN { | |
total = 0; | |
tokencnt = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include "../include/eeprom.h" | |
void eepromWrite( unsigned int address, unsigned char data ) | |
{ | |
//Wait for EEPROM to be ready | |
while ( EECR & ( 1 << EEPE ) ); | |
EEAR = address; | |
EEDR = data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <stdlib.h> | |
#include <util/delay.h> | |
#include "../include/uart.h" | |
//Version for atmega328 | |
//Not used, just declared for user | |
char *uartBuffer; | |
static unsigned int uartBaud; |