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 <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <string.h> | |
#pragma pack(1) | |
typedef unsigned int u32; | |
typedef unsigned short u16; |
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 <SPI.h> | |
typedef struct { | |
uint8_t r; | |
uint8_t g; | |
uint8_t b; | |
} LED; | |
LED leds[68]; | |
void sendleds(RGB *data) { | |
int i; | |
for(i=0;i<68;i++) { |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
int main(int argc,char **argv) { | |
int devmem = -1; | |
unsigned int addr = 0; | |
unsigned int val = 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
#include <stdio.h> | |
int main() { | |
const int x=5; | |
int y=6; | |
(&y)[1]=4; | |
printf("%d\n",x); | |
return 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
# Maintainer: Claudio Kozicky <claudiokozicky@gmail.com> | |
# Contributor: Yann Kaiser <kaiser.yann@gmail.com> | |
pkgname=jamestown | |
pkgver=1.0.2 | |
_pkgver=1_0_2 | |
pkgrel=1 | |
pkgdesc="A neo-classical top-down shooter for up to four players set on 17th-century British Colonial Mars." | |
arch=(i686 x86_64) | |
url="http://www.finalformgames.com/jamestown/" |
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
# Maintainer: Claudio Kozicky <claudiokozicky@gmail.com> | |
# Contributor: mr1337357 <mr1337357@gmail.com> | |
pkgname=jamestown | |
pkgver=1.0.2 | |
_pkgver=1_0_2 | |
pkgrel=1 | |
pkgdesc="A neo-classical top-down shooter for up to four players set on 17th-century British Colonial Mars." | |
arch=(i686 x86_64) | |
url="http://www.finalformgames.com/jamestown/" |
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
#too short to license, so public domain | |
from wavegen import wavegen | |
from sys import stdout | |
import random | |
def tochar(sample): | |
sample = sample * 127 | |
sample = sample + 127 | |
sample = int(sample) | |
return chr(sample) | |
a = wavegen(440,44100) |
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
#too short to license, so public domain | |
from wavegen import wavegen | |
from sys import stdout | |
import random | |
def tochar(sample): | |
return chr(int(sample * 127 + 127)) | |
a = wavegen(440) | |
ash = wavegen(466.16) | |
b = wavegen(493.88) |
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
def fib(n,cache={0:1,1:1}): | |
try: | |
return cache[n] | |
except: | |
cache[n]=fib(n-1)+fib(n-2) | |
return cache[n] |
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
. /etc/lsb-release | |
if [ "$DISTRIB_ID" = "Arch" ]; then | |
DISTRIB_ID="Debian" | |
fi | |
echo $DISTRIB_ID IS WORST DISTRO |
OlderNewer