Skip to content

Instantly share code, notes, and snippets.

@postcasio
postcasio / BitmapFont.d.ts
Created September 14, 2019 22:31
BitmapFont
export default class BitmapFont {
fileName: string;
height: number;
constructor(path: string);
drawText(surface: Surface, x: number, y: number, text: string, color?: Color, wrap_width?: number): void;
getTextSize(text: string, wrap?: number): {
width: number;
height: number;
};
heightOf(text: string, wrap?: number): number;
{
"classes": {
"CommandRegistry": {
"name": "CommandRegistry",
"filename": "src/command-registry.coffee",
"srcUrl": null,
"sections": [],
"classMethods": [],
"instanceMethods": [{
"name": "add",
atomdoc = require 'atomdoc'
marked = require 'marked'
doc = "
Public: Add one or more command listeners associated with a selector.
## Arguments: Registering One Command
* `target` A {String} containing a CSS selector or a DOM element. If you
pass a selector, the command will be globally associated with all matching
|
abcd |
abcdefgh |
abcdefghijkl |
abcdefghijklmnop |
abcdefghijklmnopqr|
<?xml version="1.0" encoding="UTF-8"?>
<Entity version="2" CardID="EX1_365">
<MasterPower>5387f21c-5014-485e-a39f-3d05c5e1d592</MasterPower>
<Tag name="CardName" enumID="185" type="String">
<enUS>Holy Wrath</enUS>
<frFR>Colère divine</frFR>
<zhTW>神聖憤怒</zhTW>
<zhCN>神圣愤怒</zhCN>
<ruRU>Гнев небес</ruRU>
<ptBR>Ira Sagrada</ptBR>
{"type":"USER_UI","data":[10,10,8,0,16,0,24,0,32,0,40,0]}
{"type":168,"data":[8,207,132,168,5,18,6,103,71,78,67,70,104,24,171,242,78]}
{"type":113,"data":[8,1]}
{"type":"GAME_STARTING","data":[]}
{"type":"GAME_SETUP","data":{"board":"ORG","clients":[{"pieces":[1,2,3,4],"card_back":0},{"pieces":[1,2,3,4],"card_back":0}],"max_secrets_per_player":5,"max_minions_per_player":7}}
{"type":"START_GAMESTATE","data":{"game_entity":{"id":1,"tags":[{"name":49,"value":1},{"name":53,"value":1},{"name":202,"value":1},{"name":204,"value":1}]},"players":[{"id":1,"accountId":{"hi":1465140039,"lo":19609134},"entity":{"id":2,"tags":[{"name":27,"value":4},{"name":28,"value":10},{"name":29,"value":4},{"name":30,"value":1},{"name":31,"value":1},{"name":49,"value":1},{"name":50,"value":1},{"name":53,"value":2},{"name":176,"value":10},{"name":202,"value":2}]}},{"id":2,"accountId":{"hi":1465140039,"lo":18630186},"entity":{"id":3,"tags":[{"name":27,"value":36},{"name":28,"value":10},{"name":29,"value":4},{"name":30,"value":2},{"name":3
@postcasio
postcasio / personlist.js
Last active December 22, 2015 01:08 — forked from Radnen/personlist.js
(function(gpl, dp, cp, cm, me) {
var dirty = true, list = [];
GetPersonList = function() {
if (dirty) {
list = gpl();
dirty = false;
}
return list;
.vellip, .vellip::before, .vellip::after, .conversation-module > li::after, .conversation-module > li::before {
background: transparent;
}
.conversation-module li:not(.original-tweet-item) {
display: none;
}