Skip to content

Instantly share code, notes, and snippets.

View tjclement's full-sized avatar

Tom Clement tjclement

  • The Netherlands
View GitHub Profile
.////////. ://////++.
.oo+/::/+os. so+/::/+oo
:s+/:--:/+s- s+/:--:/+s
:s+/:--:/+s- s+/:--:/+s
:so++++++os- `so++++++os`
`..../+/////////:...............-:+////////+:....`
`-+ooooooooooooooooooooooooooooooooooooooooooooooooo:`
-so++++++++++++++++++++++++++++++++++++++++++++++++os/
-o+::----....................................---:::/o/
-o/:-----....................................-----:/o/
@tjclement
tjclement / ultibot_ascii_inverted.txt
Created September 8, 2021 08:04
Ultibot inverted
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNx;.. ';.;KMMMMMMMMMMMMMMMMMMMW0l;....,.:KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0' .x0,.OMMMMMMMMMMMMMMMMMMMNc lO;.kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO' .lo. ,cccllllooodddxxkkOOk, ck,.xMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO' . 'cdONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO' .';cc::;;;,,,'''........ .,dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0c. .cONWMMWWWWWWWNNNNNXXXKK000OOOkkxdl;. ,OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKd;. :XMMMWXOkO0KXWMMMMMMMMMMMMMMWWWWMMWNO, ,0MMMMMMMMMM
@tjclement
tjclement / ultibot_ascii.txt
Created September 8, 2021 08:02
Ultibots never die!
``..-.` .-. ``--`.:-..--.-
:- sds o .. -so` +.
/` hMd` o /MN` +.
/` hMh` /::::. `````...---. `. /NN` +.
/` /:. ```````.` ```.. -so` /:``
/*
* See documentation at https://nRF24.github.io/RF24
* See License information at root directory of this library
* Author: Brendan Doherty (2bndy5), Tom Clement (tjclement)
*/
/**
* A modified example from the NRF24 library, that cycles through brightness levels of Neewer NL660-2.4 light panels.
*/
#include <SPI.h>
@tjclement
tjclement / WebViewObject.m
Created December 15, 2016 14:05
Unity-webview rendering technique
- (void)update:(int)x y:(int)y deltaY:(float)deltaY buttonDown:(BOOL)buttonDown buttonPress:(BOOL)buttonPress buttonRelease:(BOOL)buttonRelease keyPress:(BOOL)keyPress keyCode:(unsigned short)keyCode keyChars:(const char*)keyChars
{
// [..] Updates internal state, sends through click events to user agent etc.
@synchronized(self) {
if (bitmap == nil)
bitmap = [[webView bitmapImageRepForCachingDisplayInRect:webView.frame] retain];
memset([bitmap bitmapData], 0, [bitmap bytesPerRow] * [bitmap pixelsHigh]);
[webView cacheDisplayInRect:webView.frame toBitmapImageRep:bitmap];
needsDisplay = YES; // TODO (bitmap == nil || [view needsDisplay]);
@tjclement
tjclement / electron_socks5_repro.js
Created January 8, 2016 20:08
A regression repro for Electron v0.34.1 and above ignoring proxy settings
var app = require('app');
var BrowserWindow = require('browser-window');
require('crash-reporter').start();
var mainWindow = null;
app.on('window-all-closed', function () {
if (process.platform != 'darwin') {
app.quit();
@tjclement
tjclement / test_systemjs_build_caching.js
Created January 6, 2016 11:42
Example repro for a SystemJS build issue when using Babel
/**
* Assumes jspm's config.js contains configs to use Babel as the transpiler.
*/
var DevBuilder = require('jspm-dev-builder');
var path = require('path');
var ipc = require('ipc-light');
var fs = require('fs');
var appBuilder = new DevBuilder({