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
/* derived from https://github.com/libretro/common-shaders/blob/master/Motionblur/Motionblur-blue.cg | |
to increase the effect, uncomment more PREVX lines in each color channel | |
*/ | |
struct previous | |
{ | |
uniform sampler2D texture; | |
float2 tex_coord; | |
}; |
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
void main_vertex( float4 position : POSITION, | |
out float4 oPosition : POSITION, | |
float2 texCoord : TEXCOORD0, | |
out float2 oTexCoord : TEXCOORD0, | |
uniform float4x4 modelViewProj ) | |
{ | |
oPosition = mul(modelViewProj, position); | |
oTexCoord = texCoord; | |
} |
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
#!/usr/bin/env python | |
# code derived from https://gist.githubusercontent.com/flibbertigibbet/8165881/raw/7f580b6735ad1f03c6e6060cd1c8571048afad6a/recurse_ftp.py | |
from ftplib import FTP | |
from time import sleep | |
import os | |
import sys | |
my_dirs = [] # global |
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
/* usage examples: | |
* | |
#include <bits/stdc++.h> | |
using namespace std; | |
#include "pythonic.hpp" | |
auto x = 4; | |
auto y = 3.37; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# derived from https://github.com/cnorlander/USB2VFD-Deck/ | |
import serial | |
import time | |
import pytz | |
from datetime import datetime, timezone |
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
package main | |
import ( | |
"fmt" | |
"strings" | |
"unicode" | |
"bufio" | |
"os" | |
"github.com/gojp/kana" |
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
import pyfirmata | |
import time | |
class SPI: | |
START_SYSEX = 0xF0 | |
END_SYSEX = 0xF7 | |
SPI_DATA = 0x68 | |
SPI_TRANSFER = 0x02 |