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
/* | |
http://bm98.yaneu.com/bm98/bmsformat.html | |
http://fileformats.wikia.com/wiki/Be-Music_Script | |
http://mrqqn.net/dotclear/public/beatmaker/bms-specification.txt | |
http://hitkey.nekokan.dyndns.info/cmds.htm | |
*/ | |
#include <malloc.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <SDL/SDL.h> |
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 <windows.h> | |
#include <GL/gl.h> | |
#include <GL/glext.h> | |
#include <GL/wglext.h> | |
#include <sys/time.h> | |
#define COUNT(A) (sizeof(A)/sizeof(A[0])) | |
#define BLOC_EXIST (1<<0) | |
#define BLOC_COLOR (1<<1) |
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 <string.h> | |
char* headers[]={ | |
"ID3", | |
"GIF89", | |
"‰PNG", | |
"OggS", | |
"ÿØÿà", | |
"BM6x", |
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 <alloca.h> /*needed (yet not included) by asoundlib in c99*/ | |
#include <alsa/asoundlib.h>/* build with -lasound */ | |
#include <stdint.h> | |
#define $(x) if ((x) < 0) { fprintf(stderr, "Error:%s", # x); return -1; } | |
#define MIN(A, B) ((A) < (B) ? (A) : (B)) | |
typedef struct { | |
char RIFF[4]; | |
uint32_t ChunkSize; | |
char WAVE[4]; | |
char fmt[4]; |
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 <json-c/json.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stddef.h> | |
typedef enum{ | |
diff_none, | |
diff_type, | |
diff_value, | |
diff_removed, |
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 <inttypes.h> | |
#include <stdio.h> | |
//#include "klist.h" | |
#include "khash.h" | |
#define kh_forall(h) for(khint_t __i=kh_begin(h);__i!=kh_end(h);++__i)if(kh_exist(h,__i)) | |
#define kh_diff(name, old, new, on_add, on_keep, on_del)\ | |
kh_forall(new){/*find added(exist in new, not in old) and kept(exist in both) entries */\ | |
khiter_t __j = kh_get(name, old, kh_key(new,__i));\ | |
if((__j==kh_end(old))||(!kh_exist(old,__j))){on_add;}else{on_keep;}\ |
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 <string.h> | |
#include <time.h> | |
#include <fcntl.h> | |
#include <netinet/in.h> | |
#include <ctype.h> | |
#include "miniwget.h" | |
#include "miniupnpc.h" | |
#include "upnpcommands.h" |
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
/* | |
* MIPS3K code generator for TCC | |
* | |
* Based on mips-gen.c by Daniel Glöckner & Thomas Preud'homme | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. | |
* |
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
#!/bin/bash | |
set -x | |
until sudo apt -y update && sudo apt -y upgrade ; do sleep 10; done | |
crontab -l | grep -q .wall || (echo '0 * * * * ID=$(curl -sL gist.githubusercontent.com/yne/729655bd0557bfde7a088e15b40b9e6d/raw/ | shuf -n 1);for t in jpg png; do curl -sfL nik.bot.nu/o$ID.$t -o "$HOME/.wall"; done') | crontab - | |
# MS-EDGE | |
REPO_EDGE='https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/' | |
LAST_EDGE=$(wget -qO- "$REPO_EDGE" | grep -o '[.a-z_0-9-]*.deb' | tail -n1) | |
wget -O /tmp/edge_amd64 "$REPO_EDGE/$LAST_EDGE" | |
# VSCode (will add itself to apt.list) |
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
python -c 'import openpyxl,sys,json; json.dump([[cell.value for cell in row] for row in openpyxl.load_workbook(sys.stdin.buffer).worksheets[int(sys.argv[1])].iter_rows()], sys.stdout)' 3 < my.xlsm | jq |
OlderNewer