Skip to content

Instantly share code, notes, and snippets.

In Love

Matthew Tanudjaja mrexmelle

In Love
View GitHub Profile
mrexmelle / TrackerMain.kt
Last active Apr 14, 2020
An example of how to track the percentage of multimedia file being played.
View TrackerMain.kt
import java.util.BitSet
const val MIN = 6
const val SEC = 11
fun countSec(m: Int, s: Int): Int {
return (60 * m) + s
mrexmelle / main_epoll.c
Created Jan 10, 2019
epoll simple demonstration
View main_epoll.c
// compile: gcc main_epoll.c -o main_epoll -std=c99
// run: ./main_epoll
// environment: Linux
#define MAX_EVENTS 5
#define READ_SIZE 5
#include <signal.h>
#include <stdio.h>
#include <string.h>
mrexmelle /
Created Mar 16, 2016
Python script to generate documentation using Grip
import getopt
import re, shutil, tempfile
import os
import subprocess
import sys
def sed_inplace(filename, pattern, repl):
You can’t perform that action at this time.