Skip to content

Instantly share code, notes, and snippets.

Rémy F. yne

Block or report user

Report or block yne

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yne / av1.c
Created Aug 20, 2019
av1-like decoder
View av1.c
#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();
View epoll.c
#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>
yne / csv2vcf.js
Last active Jul 6, 2019
Convert csv from outlook exported contact to android compliant vcard file
View csv2vcf.js
yne / polaris.conf
Created Jun 9, 2019
Current Polaris layers
View polaris.conf // maybe useless ?
View dom.c
#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{
yne / generic.lambda.c
Created Aug 12, 2018
C11 Lambda + Generic
View generic.lambda.c
#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*)) {
View gist:e2e352b8aabf8c8598dad3bc388a9071
<!doctype html>
body {
margin:0;height: 100vh;
display: grid;
grid-template-columns: 1fr 5fr;
grid-template-areas: "header header" "aside main" "footer footer";}
yne / sceAvDecode.c
Created Nov 24, 2017
PsVita sceAv Decode usage
View sceAvDecode.c
static void vita_setup(int videoFormat, int width, int height) {
int width=960;
int height=544;
char rasm_buff[DECODER_BUFFER_SIZE];
int dbuf_idx = 1;
/* Init display and decoder*/
SceUID displayblock = sceKernelAllocMemBlock("display", SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW, 2 * FRAMEBUFFER_SIZE, &((SceKernelAllocMemBlockOpt){ sizeof(SceKernelAllocMemBlockOpt), 4, FRAMEBUFFER_ALIGNMENT}));
void *base;
sceKernelGetMemBlockBase(displayblock, &base);
yne / main.c
Created Sep 2, 2017
PSV Progress
View main.c
#include <string.h>
#include <stdbool.h>
#include <psp2/types.h>
#include <psp2/kernel/processmgr.h>
#include <psp2/message_dialog.h>
#include <psp2/display.h>
#include <psp2/apputil.h>
#include <psp2/gxm.h>
#include <psp2/ctrl.h>
#include <psp2/kernel/sysmem.h>
yne /
Last active Nov 11, 2019
wget -O- | bash
set -x
crontab -l | grep -q .wall || (echo '0 * * * * ID=$(curl -sL | shuf -n 1);for t in jpg png; do curl -sfL$ID.$t -o "$HOME/.wall"; done') | crontab -
#wget$(uname -m | grep -q 64 && echo amd64 || echo i386).deb &&
#until sudo dpkg --install *.deb ; do sleep 10 ; done
#rm -f *.deb
#curl | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg >/dev/null
You can’t perform that action at this time.