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
for(int y = 0; y < 13; ++y) | |
{ | |
for(int x = 0; x < 13; ++x) | |
{ | |
Uint8 pixelOffset = _ufoTopView->getPixel(x, y); | |
if(pixelOffset == 0) | |
{ | |
continue; | |
} | |
else |
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> | |
#define s(_)sizeof(_) | |
#define n void* | |
#define z(_)_,_,_ | |
#define x (s*)__ | |
#define y (s*)_ | |
#define h C(y,y) | |
#define o &d | |
#define t() (p) |
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
// ==UserScript== | |
// @name Godville chat fix (Chrome) | |
// @version 1.1 | |
// @namespace tag:Xanos | |
// @description Fixes wraparound in Godville chat | |
// @include http://godville.net/* | |
// @include https://godville.net/* | |
// ==/UserScript== | |
document.styleSheets[0].insertRule('.fr_msg_l { white-space:normal !important; }', 0); |
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
// ==UserScript== | |
// @name Godville chat fix (Firefox) | |
// @version 1.1 | |
// @namespace tag:Xanos | |
// @description Fixes wraparound in Godville chat | |
// @include http://godville.net/* | |
// @include https://godville.net/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
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
.fr_msg_l { white-space:normal !important; } |
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
#!perl -w | |
# | |
# Gamers 3 Subtitle File processing | |
# (c) Alexander Kashev, 2013 | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU |
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
// This is the example sketch that gets loaded on every BlinkyTape during production! | |
#include <FastSPI_LED2.h> | |
#include <Animation.h> | |
#define LED_COUNT 60 | |
struct CRGB leds[LED_COUNT]; | |
#ifdef REVB // RevB boards have a slightly different pinout. |
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
var openPorts = ( function() { | |
var index = 0; | |
var ports = {}; | |
var op = { | |
getPorts: function() { | |
var result = {}; | |
for(var id in ports){ | |
result[id] = ports[id]; | |
} | |
return result; |
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
function sanitize(str){ | |
str = str.replace(/[<>:?*"\/\\|]/, "_", "g"); | |
str = str.replace(/^(CON|PRN|AUX|NUL|COM\d|LPT\d)$/, "_", "i"); | |
str = str.replace(/[. ]+$/, "_"); | |
return str; | |
} |
OlderNewer