This is a two-part stock. It starts as an umami-heavy kombu/mushroom dashi and then adds a meaty backbone and a delicious soy-barbecue tare.
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
from rpy2 import robjects | |
r = robjects.r | |
r.library("ggplot2") | |
robjects.r("p = ggplot(aes(price, carat), data=diamonds) + geom_point() + facet_grid(clarity ~ color, scales = 'free')") | |
r.ggsave('faceted_plot.jpeg') | |
robjects.r('print(p)') | |
r['dev.off']() |
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
MAKES 6 INDIVIDUAL CAKES | |
5 1/2 ounces imported bittersweet (not unsweetened) chocolate | |
such as Caillbotte or Valrhona | |
11 Tablespoons unsalted butter | |
3 large eggs | |
3 egg yolks | |
1/4 cup plus 2 Tablespoons sugar |
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 cqConfig = { | |
stateKey: "cqstate_v7", | |
clickTypes: [], | |
achievements: [{ | |
name: "SuperClicker", | |
thresholds: { | |
clicks: 20 | |
}, | |
description: "" | |
}, |
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
//listen for change event, call menuChanged func | |
dropDown.on("change", menuChanged }); | |
function menuChanged() { | |
var selectedValue = d3.event.target.value; | |
//get the name of the selected option from the change event object | |
countryData.indicators.forEach(function (d) { | |
//loop through your source data, however it happens to be organized (this is just an example) |
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 niceUnits(tspEquiv){ | |
var tblspEquiv; | |
if(tspEquiv < 3){ return tspEquiv + " teaspoon" + plural(tspEquiv);} | |
else{ | |
tblspEquiv = parseFloat(tspEquiv)/3.0; | |
if (tblspEquiv < 4){ | |
var remainder = (tspEquiv%3 == 0) ? "" : " and " + niceUnits(tspEquiv%3) | |
return Math.floor(tblspEquiv) + " tablespoon" + plural(Math.floor(tblspEquiv)) + remainder; | |
} else{ | |
cupEquiv = parseFloat(tblspEquiv/16.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
import json | |
from datetime import datetime | |
import time | |
def parse_date(date): | |
return datetime.strptime(date, "%Y-%m-%d").date() | |
count = 0 | |
leg_count = 0 | |
old_ends = [] |
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
Sherrod Brown | |
term N end 1996-10-04 | |
term N+1 start 1997-01-07 | |
gap % 365: 95 | |
Benjamin L. Cardin | |
term N end 1988-10-22 | |
term N+1 start 1989-01-03 | |
gap % 365: 73 |
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
#################################### | |
# diamond data bar chart | |
# Questions? Email feedback@plot.ly | |
# For more docs, see plot.ly/api | |
#################################### | |
library(plotly) | |
py <- plotly(username='USERNAME', key='API_KEY') | |
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
#################################### | |
# diamond data bar chart | |
# Questions? Email feedback@plot.ly | |
# For more docs, see plot.ly/api | |
#################################### | |
library(plotly) | |
py <- plotly(username='USERNAME', key='API_KEY') | |
OlderNewer