Skip to content

Instantly share code, notes, and snippets.

var ustVariants = map[string]map[string]string{
"Amateur Auteur": map[string]string{
"ravnica": "3a",
"innistrad": "3b",
"theros": "3c",
"zendikar": "3d",
"version 1": "3a",
"ravnica silver": "3a",
"innistrad blue": "3b",
"theros red": "3c",
Sakura-Tribe Elder
PJAS: unset tcgproductid
PJJT: unset tcgproductid
PJSE: no change
PSUS: unset tcgproductid
Serra Avatar
PSUS: no change

TL:DR; I'm not sure if it just a data problem or i'm tackling the problem wrong

Introduction

What i'm trying to do is getting a list of entries with variable properties mapped to a well known list of entries with fixed properties

In other words i have a variable textual entry composed of {"ABC (test)" "wrongdata"} which needs to be mapped to to a fixed entry {"ABC" "test"}

Problem statement

There are a variety of data providers that output entries with different combinations of fields and values that need to possibly be mapped to the same final entry.

func LoadAllPrintings(allPrintingsPath string) error {
allPrintingsReader, err := os.Open(allPrintingsPath)
if err != nil {
return err
}
defer allPrintingsReader.Close()
dec := json.NewDecoder(allPrintingsReader)
_, err = dec.Token()
if err != nil {
javascript:(function() {
var card = prompt("Card Name");
if (!card || card == "") {
return;
}
trimmedCard = card.trim();
var sites = [];
/* Buylists */
javascript:(function() {
var card = prompt("Card Name");
var sites = [];
sites.push("https://www.cardkingdom.com/catalog/search?search=header&filter%5Bname%5D=");
sites.push("https://store.channelfireball.com/products/search?q=");
sites.push("https://www.coolstuffinc.com/main_search.php?pa=searchOnName&page=1&resultsPerPage=25&q=");
sites.push("https://www.miniaturemarket.com/searchresults?q=");
sites.push("https://www.starcitygames.com/results?name=");
sites.push("https://shop.tcgplayer.com/productcatalog/product/show?IsProductNameExact=false&ProductName=");
diff --git a/common/base.h b/common/base.h
index 28fc6524..38769d33 100644
--- a/common/base.h
+++ b/common/base.h
@@ -49,6 +49,31 @@
#include <limits.h>
#include "x264.h"
+
+x264_t *x264_8_encoder_open( x264_param_t * );
vimeo.com/111797745/pwnd
vimeo.com/111799496/pwnd
vimeo.com/112047398/pwnd
vimeo.com/112250751/pwnd
vimeo.com/112510311/pwnd
vimeo.com/113031094/pwnd
vimeo.com/113046701/pwnd
vimeo.com/113737656/pwnd
vimeo.com/114156141/pwnd
vimeo.com/115272477/pwnd
$ ./configure
generating config.mak ...
usage: tr [-Ccsu] string1 string2
tr [-Ccu] -d string1
tr [-Ccu] -s string1
tr [-Ccu] -ds string1 string2
SRCDIR = .
DESTDIR =
@kodawah
kodawah / file.c
Last active February 10, 2017 17:11
uint32_t max_coord = (uint32_t) -1;
size_t orig_width = (size_t) sc->width * max_coord / (max_coord - r - l);
size_t orig_height = (size_t) sc->height * max_coord / (max_coord - b - t);
sc->spherical->left_bound = ceil(orig_width * l / max_coord);
sc->spherical->top_bound = ceil(orig_height * t / max_coord);
sc->spherical->right_bound = orig_width - sc->width - sc->spherical->left_bound;
sc->spherical->bottom_bound = orig_height - sc->height - sc->spherical->top_bound;