This is code used to control the playback speed of a video playing in Quicktime Player. Upload arduino_read_potentiometer.cpp on your Arduino and run processing_control_video.pde in Processing. See video demo at http://www.youtube.com/watch?v=UfDRINiV4Kg
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
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |
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 bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
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
> module Main | |
> where | |
> import Data.List | |
Entnimmt einer Liste solange ein Element, bis das Quadrat des Elementes über- | |
geben an die Funktion f False ergibt. | |
> takeWhileSquare :: Num a => (a -> Bool) -> [a] -> [a] | |
> takeWhileSquare f (x:xs) | f (x^2) = x:takeWhileSquare f xs | |
> | otherwise = [] |
Unofficial documentation to internal Riot Games APIs for LOL eSports.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r67/three.min.js"></script> | |
</head> | |
<body> | |
<script id="mandelbrot-vertex" type="x-shader/x-vertex"> | |
precision highp float; | |
uniform float zoom; | |
varying vec2 pos; |
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
/*-----------------------------------------------------------. | |
/ ColorBlind correction / | |
'-----------------------------------------------------------*/ | |
// Daltonize (source http://www.daltonize.org/search/label/Daltonize) | |
// Modified to simulate color blindness. | |
float4 Daltonize( float4 input, float2 tex ) | |
{ | |
// RGB to LMS matrix conversion | |
float3 L = (17.8824f * input.r) + (43.5161f * input.g) + (4.11935f * input.b); | |
float3 M = (3.45565f * input.r) + (27.1554f * input.g) + (3.86714f * input.b); |
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 bash | |
0x0() { | |
case "${1}" in | |
"s") | |
shift | |
local url=`curl --silent -F"shorten=${1}" https://0x0.st | sed 's/\n//'` | |
echo -n "${url}" | |
;; | |
"u") |
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
contract Database{ | |
mapping(uint => uint) public _data; | |
mapping(address => bool) _owners; | |
function Database(address[] owners){ //Called once at creation, pass in initial owners | |
for(uint i; i<owners.length; i++){ | |
_owners[owners[i]]=true; | |
} | |
} | |
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
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
-- -- | |
-- mysql -- | |
-- -- | |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
-- | |
-- mysql <http://sqlfiddle.com/#!9/91afb5/2> | |
-- note: sqlfiddle is very stupid |
OlderNewer