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
<html><head> | |
</head><body> | |
<div style="text-align: center"> | |
<canvas width="640" height="360" id="canvas"> | |
</canvas> | |
<br>Click to change tiles. | |
</div> | |
<script type="text/javascript">(function() { |
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 <Windows.h> | |
#include <stdio.h> | |
#define dllx extern "C" __declspec(dllexport) | |
dllx double delay(double ms) { | |
Sleep((DWORD)ms); | |
return 1; | |
} |
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 i; | |
i := 0; | |
while (i < 10) begin | |
show_message("o rly"); | |
i := i + 1; | |
end; |
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 Discord: compact checkbox | |
// @namespace https://yal.cc | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author YellowAfterlife | |
// @match https://discord.com/* | |
// @grant none | |
// ==/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
{ | |
"name": "synext", | |
"description": "", | |
"scripts": ["synext.js"], | |
"stylesheets": [] | |
} |
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 terra; | |
import openfl.Lib; | |
import openfl.utils.ByteArray; | |
import openfl.utils.Endian; | |
import Ext.cfor; | |
using utils.ByteArrayTools; | |
/** | |
* ... |
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
class Main { | |
macro static function swap(a, b) { | |
return macro { var v = $a; $a = $b; $b = v; }; | |
} | |
static function main() { | |
var i = 10, j = 15; | |
trace(i, j); // 10, 15 | |
swap(i, j); | |
trace(i, j); // 15, 10 | |
} |
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
class Main { | |
static function parseProperties(text:String):Map<String, String> { | |
var map:Map<String, String> = new Map(), | |
ofs:Int = 0, | |
len:Int = text.length, | |
i:Int, j:Int, | |
endl:Int; | |
while (ofs < len) { | |
// find line end offset: | |
endl = text.indexOf("\n", ofs); |
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
using System; | |
using System.IO; | |
using System.Windows.Forms; | |
// ^ In a console application project you'll need to add a reference to this first. | |
namespace CSCoTest { | |
class Program { | |
static MemoryStream stringToMemoryStream(string value) { | |
return new MemoryStream(System.Text.Encoding.UTF8.GetBytes(value)); | |
} |
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() { | |
// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString | |
// default en-GB will give you DD/MM/YYYY hh:mm::ss | |
let dateLocales = "en-GB"; | |
let dateOptions = undefined; | |
// (making it easier to restart by pasting the edited snippet) | |
if (window.properTimes) { | |
clearInterval(window.properTimes); | |
for (let el of document.querySelectorAll(`time:not(.proper-time)`)) { | |
el.classList.remove(`proper-time`); |
NewerOlder