Skip to content

Instantly share code, notes, and snippets.

CO2 equivalent Action References
0.015 lbs Make a soda can out of recycled aluminum https://www.climateaction.org/news/carbon-footprint-of-recycled-aluminium
0.3 lbs Make a soda can out of virgin aluminum https://www.climateaction.org/news/carbon-footprint-of-recycled-aluminium (can weighs 0.03 lbs)
0.9 lbs Produce 1 pound of lentils https://www.ewg.org/meateatersguide/a-meat-eaters-guide-to-climate-change-health-what-you-eat-matters/climate-and-environmental-impacts/
0.9 lbs Produce 1 pound of concrete https://www.ecori.org/climate-change/2019/10/4/global-warming-has-a-co2ncrete-problem
1 lb Leak 1 pound of R-1234yf refrigerant into atmosphere (from leaky car air conditioner) https://www.racplus.com/news/un-climate-body-accepts-gwp-of-r1234yf-refrigerant-is-lower-than-co2-10-02-2014
12 lbs Burn 1 therm of natural gas https://uuaa.org/images/CarbCalc7-11a.pdf
19 lbs Burn 1 gallon of gasoline https://www.eia.gov/environment/emissions/co2_vol_mass.php
22 lbs Burn 1 gallon of diesel https://www
@forresti
forresti / 2015-23-08-14-51-02_trainval.prototxt
Last active August 29, 2015 14:28
caffe-with-spearmint:
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
mirror: true
@forresti
forresti / halide_blur.cpp
Created May 5, 2013 23:45
debugging halide_blur with GPU code generation
#include <Halide.h>
using namespace Halide;
int main(int argc, char **argv) {
UniformImage input(UInt(16), 2);
Func blur_x("blur_x"), blur_y("blur_y");
Var x("x"), y("y"), xi("xi"), yi("yi");
// The algorithm
@forresti
forresti / blur_main.cpp
Last active December 16, 2015 22:19
Halide Blur -- Print GFLOPS/s and GB/s
int main(int argc, char **argv) {
int imgWidth = 6400; int imgHeight = 4864;
Image input(imgWidth, imgHeight);
for (int y = 0; y < input.height(); y++) {
for (int x = 0; x < input.width(); x++) {
input(x, y) = rand() & 0xfff;
}
}