This file contains 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/python | |
import random; | |
import sys; | |
Words = [Word.rstrip( '\n' ) for Word in open( "/usr/share/dict/american-english") ]; | |
Length = raw_input( "How many words should Your xkcd like password have? " ); | |
try: |
This file contains 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/python3 | |
import subprocess; | |
import time; | |
import os; | |
import sys; | |
try: | |
Address = sys.argv[1]; | |
except: | |
Address = input( "Give me server IP: " ); |
This file contains 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 <inttypes.h> | |
int main(){uintmax_t step=0; | |
long double pi=4.0L;while(1) | |
{pi+= 4.0/ ( | |
3.0L+ step * | |
2.0L) *( ( | |
step% 2==0 ) | |
?-1:1 );step |
This file contains 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> | |
#ifndef _DEBUG_HEADER | |
#define _DEBUG_HEADER | |
#ifndef DEBUG_ENABLED | |
#define DEBUG_ENABLED 0 | |
#endif | |
#ifndef DEBUG_OUT |
This file contains 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> | |
#define SQ(x) ((x)*(x)) | |
#define DIA 200.0L | |
int main( ){uintmax_t step = 0, | |
cir= 0; double x, y;long double | |
pi; while ( 1 ) { x = ( double) | |
rand()/RAND_MAX*DIA- DIA / 2.0; |
This file contains 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
#!/bin/bash | |
#Records selected screen region, with GUI | |
#This is combined version of GIF recording scripts, that can be found here: http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast | |
#Thanks to Rob W, and the other author (unmentioned), for creating this lovely scripts | |
#I do not own any rights to code I didn't write | |
# ~Jacajack |
This file contains 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 "../include/uart.h" | |
//Version for atmega8 | |
//Not used by default, just declared for user | |
char *uartBuffer; | |
void uartSendChar( char c ) |
This file contains 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; |
This file contains 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 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; |
OlderNewer