Taken from here: https://www.finecooking.com/recipe/mexican-tomato-rice-beans
- 1 cup uncooked medium-grain white rice
- 1 14-1/2-ounce can diced tomatoes (preferably “petite-cut”)
- 2 Tbs. extra-virgin olive oil
- 6 medium cloves garlic, finely chopped
| import json | |
| def arena_card_db(): | |
| carddb = dict() | |
| with open("AllCards.json", 'r') as mtgjsonf: | |
| carddb = json.load(mtgjsonf) | |
| arena_cards = list() | |
| for card_name, card in carddb.items(): |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "os" | |
| "strings" |
| #! /usr/bin/env python3 | |
| # Downloaded from here: https://gist.github.com/lelandbatey/64e7c7d3d86b4a1b455a93f593562d68 | |
| from collections import Sequence | |
| from operator import itemgetter | |
| from codecs import escape_encode | |
| import argparse | |
| import json | |
| import math | |
| import sys |
| #!/usr/bin/env python3 | |
| ''' | |
| Treeify takes a file (on stdin or passed as the first argument) and converts | |
| it's indentation into a 'tree' representation. As an example: | |
| what | |
| is | |
| this | |
| thing | |
| that's |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| "strings" | |
| ) | |
| // The goal: allow assignment to a go struct field based on the name that field | |
| // is tagged with (specifically it's json-tagged name). |
Taken from here: https://www.finecooking.com/recipe/mexican-tomato-rice-beans
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script> | |
| <body style="margin: 0;"> | |
| <div> | |
| <canvas id='canvas1' width='800' height='200'></canvas> | |
| </div> | |
| <div> |
Taken from here: https://cooking.nytimes.com/recipes/10228-stir-fry-peppers-and-onions
| ''' | |
| A toy example to calculate the probability of a mine existing on any particular square. | |
| Runs slowly and is organized like spaghetti, but it does currently work! | |
| Note that for this to work, it depends on a slightly modified defusedivision; | |
| inside defuse_division the _create_foothold function in game.py has to be | |
| modified to be public, instead of private like in the public version. |
| // I implemented poisson disk selection from this paper: http://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf | |
| // This was very fun, I highly recommend it to anybody! | |
| function create_draw(ctx) { | |
| return { | |
| line: (start, end) => { | |
| let [sx, sy] = start; | |
| let [ex, ey] = end; | |
| ctx.beginPath(); |