Skip to content

Instantly share code, notes, and snippets.

View msikma's full-sized avatar
๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ

Michiel Sikma msikma

๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ
View GitHub Profile
/**
* Returns the days of the week from a given start day, indicated with a three-letter code.
* Normally, the start day is Monday, but any day is usable depending on locale.
*
* @param {String} startDay One of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'
* @returns {Array} List of days in the week starting from the indicated first day
*/
export const weekdayList = (startDay = 'mon') => {
const days = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']
const start = days.indexOf(startDay)
// found here: http://archive.rebeccablacktech.com/g/thread/39482493
// This supposedly extracts bmp files from microsoft comic chat AVB files
// ----
// AVBuster.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cstdlib>
#include <cstring>
#include "zlib.h"
jQuery(function(){
jQuery('.showSingle').click(function(){
jQuery('.targetDiv').hide();
jQuery('#div'+jQuery(this).attr('target')).show();
});
});
wordt:
$(function(){
// Here's a simple example reducer, a simplified form of what we're using.
// It loads a list of employees.
import * as types from '../actions/action-types'
const initialState = {
hasData: false,
isLoading: false,
entityList: [],
error: null
<entry>
<ent_seq>1060620</ent_seq>
<r_ele>
<reb>ใ‚ทใƒƒใ‚ฏใ‚นใƒŠใ‚คใƒณ</reb>
<re_pri>gai1</re_pri>
</r_ele>
<r_ele>
<reb>ใ‚ทใƒƒใ‚ฏใ‚นใƒปใƒŠใ‚คใƒณ</reb>
</r_ele>
<sense>

How to fix Vaughn Live on Livestreamer

Note: check whether you can use Streamlink instead of Livestreamer first. See the last section below.

This brief guide assumes you know the basics of Git, and that you have Python installed with setuptools. (Downloading the latest Python 3 from the main website should be sufficient.) You also need to make some changes to one of the files.

  1. Clone livestreamer from Github
  2. Fetch the PR with fixes: git fetch origin pull/1495/head:proposed-fixes-1.13
  3. Switch to the fixes branch: git checkout proposed-fixes-1.13
// compile command:
// /usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -O3 -c -o test.o test.c
// /usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -O3 -o test.exe test.o
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "src/utils/math.h"
@msikma
msikma / sintest2.c
Last active October 23, 2016 11:29
// compile command:
// /usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -c -o test.o test.c
// /usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -o test.exe test.o
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "src/utils/math.h"
@msikma
msikma / sintest.c
Last active October 23, 2016 11:05
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "src/utils/math.h"
// Sine lookup table for the range [0..180].
const float sin_table[] = {
0.0,
0.01745240643728351, 0.03489949670250097, 0.052335956242943835,