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 <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 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> | |
#define fn(c) ({int _ c;_;}) | |
#define list(c) sizeof(c)/sizeof(*c),c | |
#define map(LIST, CB) _Generic( (CB), int(*)(int, int, int*): map_arr, int(*)(int): map_val)(list(LIST), CB) | |
int map_val(size_t total, int *array, int (*cb)(int)) { | |
for(int i = 0; i < total; i++) | |
array[i] = cb(array[i]); | |
} | |
int map_arr(size_t total, int *array, int (*cb)(int, int, int*)) { |
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 <stdint.h> | |
#include <termios.h> | |
#define LEN(ARR) ARR,sizeof(ARR)/sizeof(*ARR) | |
#define RGBA(R,G,B,A) ((R<<24) | (G<<16) | (B<<8) | A) | |
#define RGB(R,G,B) RGBA(R,G,B,255) | |
typedef enum{ | |
RULE_NOP, | |
RULE_TEXT_COLOR, |
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
csv.split('\n').slice(1).filter(e=>e).map(l=>l.split(',')).map(a=>['BEGIN:VCARD','VERSION:2.1','N:'+[a[2],a[0],a[1]].join(';'),...a.slice(11,24).map(m=>`TEL;CELL:`+m),...a.slice(8,11).map(m=>'EMAIL;HOME:'+m),'END:VCARD'].filter(l=>!l.endsWith(':')).join('\n')).join('\n\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
#include <errno.h> | |
#include <fcntl.h> | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/epoll.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <unistd.h> |
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 <math.h> | |
#include <stdio.h> | |
#define e(a, d) for(a=0;a<d;a++) | |
int YUV[3][1 << 20], tmpyuv[2048], scratch[166], width; | |
int p = 0, r = 1;//reader accu | |
int lumaRatio = 0, satuRatio = 0;//decode default | |
void read8b() { | |
int b = getchar(); |
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
/* | |
* 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 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
//c99 main.c -o ../main -lX11 -lGL -lGLU && cd .. && ./main | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <X11/X.h> | |
#include <GL/gl.h> | |
#include <GL/glx.h> | |
GLuint texture[1]; | |
int initGL(GLfloat width,GLfloat height){ | |
typedef uint8_t Sprite[32*32*3]; |
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
Что такое осень ДДТ - Актриса весна | |
В последняя осень ДДТ - Актриса весна | |
Звезда по имени Солнце Kino - Звезда по имени Солнце | |
Дыхание Nautilus Pompilius - Крылья | |
Моё сердце Splean - 25 кадр | |
Просвистела ДДТ - Просвистела | |
Родина ДДТ - Актриса весна | |
Это всё ДДТ - Это всё | |
Ветер ДДТ - Это всё | |
Метель ДДТ - Мир номер ноль |
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
function Ring(n,size,width,tex,repeat,speed){ | |
v=[],t=[]; | |
for(var i=0;i<n;i++){ | |
var rad=2*Math.PI*i/n; | |
v.push( | |
size*Math.cos(rad), | |
size*Math.sin(rad), | |
0, |