Skip to content

Instantly share code, notes, and snippets.

🍺
public volatile void

Rémy F. yne

🍺
public volatile void
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
yne / gl_ring.js
Created Dec 31, 2015
WebGL Rotating Rings IIDX 20 style
View gl_ring.js
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,
@yne
yne / proxychan.go
Last active Jan 5, 2016
appengine as chan proxy
View proxychan.go
package main
import (
"fmt"
"bytes"
"regexp"
"encoding/json"
"io/ioutil"
"net/http"
"html/template"
@yne
yne / glx.c
Created Jan 11, 2016
X11+OpenGL Cube demo
View glx.c
#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){
uint8_t pixels[32*32*3];
FILE*f=fopen("sprite2.bmp","rb");
@yne
yne / web2fs.py
Last active Feb 27, 2016
Website as filesystem testing
View web2fs.py
#!/usr/bin/env python
import os,re,sys,json,errno,urllib2,urllib,threading
from fuse import FUSE, FuseOSError, Operations
class MyWebsite(Operations):
def __init__(self, root):
self.root = root
self.files = {}
self.cache = {}
View ecm.py
#!/usr/bin/env python
import fuse,sys,os,urllib,urllib2,time
#install fuse with `sudo pip install fusepy`
class ECM_Driver(fuse.Operations):
def __init__(self, username=None, password=None, root_node=21882922, *etc):# 2000 is the real root_node
import cookielib,getpass
self.session = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.CookieJar()))
self.cgi = "https://www-ecm.thalesaleniaspace.fr/ecm/"
self.cache_page = {}
@yne
yne / board.html
Created Feb 3, 2016
Scrum Board with DnD support
View board.html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<style>
@import url(http://fonts.googleapis.com/css?family=Gloria+Hallelujah);
*{
-moz-transition:-moz-transform .15s linear;
-o-transition:-o-transform .15s linear;
-webkit-transition:-webkit-transform .15s linear;
}
body {
font-family: "Lucida Grande", Verdana;
@yne
yne / wav_play.c
Created Jun 9, 2016
Play argv wavs using ALSA
View wav_play.c
#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];
@yne
yne / cli_chat.c
Created Jun 12, 2016
Console based Chat UI Mockup
View cli_chat.c
#include <sys/ioctl.h>
#include <stdio.h>
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
#define POS(ROW,COL) printf("\033[%i;%iH", ROW, COL)
struct winsize w;
@yne
yne / AutoCRA.user.js
Last active Sep 23, 2016
Automatically fill Viveris CRA from your absences
View AutoCRA.user.js
// ==UserScript==
// @name AutoCRA
// @namespace viveris/SaisieCRA
// @description Better CRA
// @include https://*intranet.viveris.fr/*
// @version 1.1
// @grant GM_xmlhttpRequest
// ==/UserScript==
var site = 'https://www.intranet.viveris.fr/absences'
var url = 'https://absences-intranet.viveris.fr/absences/afficheAbsences.jsp'
@yne
yne / mk_test.sh
Last active Jul 24, 2016
Execute commands from docx
View mk_test.sh
#!/bin/bash
#./runner example.docx | bash /dev/stdin ATP_SIMPLE
XML_PATH="word/document.xml"
STYLE_CODE="HTMLPreformatted"
STYLE_BODY="Normal"
STYLE_HEAD="Heading1"
IN_FILE=""
You can’t perform that action at this time.