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
$redis_host = $::ec2_placement_availability_zone ? { | |
'us-west-1a' => 'logging-redis-a.<redacted>.0001.usw1.cache.amazonaws.com', | |
'us-west-1b' => 'logging-redis-b.<redacted>.0001.usw1.cache.amazonaws.com' | |
} | |
logstash::output::redis { 'redis-shipper': | |
batch => true, | |
host => $redis_host, | |
key => 'logstash', | |
data_type => 'list' |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
int cmp( char a, char b); | |
int check_corners( uint8_t cur, char board[4][4]); | |
int check_stripes( uint8_t cur, char board[4][4]); | |
int check_ongoing( uint8_t cur, char board[4][4]); |
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
const int pitch = dst->GetPitch(PLANAR_U)/4; | |
const int myx = (dst->GetRowSize(PLANAR_U)+3)/4; | |
const int myy = dst->GetHeight(PLANAR_U); | |
int *srcpUV = (int*)dst->GetWritePtr(PLANAR_U); | |
for (int y=0; y<myy; y++) { | |
for (int x=0; x<myx; x++) { | |
srcpUV[x] = 0x80808080; // mod 8 | |
} | |
srcpUV += pitch; |
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
loadplugin("dither.dll") | |
loadplugin("debilinear.dll") | |
dither_convert_8_to_16() | |
ly = debilinear(1280, 720, lsb_inout=true) | |
lc = dither_resize16(1280*2, 720*2, src_left=0.25, kernel="blackman") | |
lu = lc.utoy() | |
lv = lc.vtoy() | |
ytouv(lu,lv,ly) |