Skip to content

Instantly share code, notes, and snippets.

View esmarkowski's full-sized avatar

Spencer Markowski esmarkowski

View GitHub Profile
@esmarkowski
esmarkowski / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This chart shows a histogram of a log-normal distribution of time durations. The data is randomly generated: each value is a number representing a duration measured in minutes. The values are then binned at regular intervals using D3’s histogram layout. A custom tick format for the x-axis converts these numbers to dates before passing them through a d3.time.format. The x-axis uses a linear scale, such that the tick values appear in-between bars; this provides better indication that each bar represents the count of values between its surrounding tick values.

See also this histogram of an Irwin–Hall distribution.

[{"age_range":"18-24","continent":"north_america","count":"131","country":"CA","gender":"female"},{"age_range":"13-17","continent":"north_america","count":"457","country":"US","gender":"female"},{"age_range":"13-17","continent":"north_america","count":"124","country":"US","gender":"male"},{"age_range":"18-24","continent":"north_america","count":"2498","country":"US","gender":"female"},{"age_range":"18-24","continent":"north_america","count":"1692","country":"US","gender":"male"},{"age_range":"25-34","continent":"north_america","count":"1631","country":"US","gender":"female"},{"age_range":"25-34","continent":"north_america","count":"1093","country":"US","gender":"male"},{"age_range":"35-44","continent":"north_america","count":"593","country":"US","gender":"female"},{"age_range":"35-44","continent":"north_america","count":"346","country":"US","gender":"male"},{"age_range":"45-54","continent":"north_america","count":"265","country":"US","gender":"female"},{"age_range":"45-54","continent":"north_america","count":
@esmarkowski
esmarkowski / gulpfile.json
Created January 22, 2016 00:52
Bootstrap Themes in Rails
var gulp = require('gulp')
var path = require('path')
var less = require('gulp-less')
var autoprefixer = require('gulp-autoprefixer')
var sourcemaps = require('gulp-sourcemaps')
var minifyCSS = require('gulp-minify-css')
var rename = require('gulp-rename')
var concat = require('gulp-concat')
var uglify = require('gulp-uglify')
var connect = require('gulp-connect')
require 'smartcard'
stop = false
until stop
begin
context = Smartcard::PCSC::Context.new
if context.valid?
readers = context.readers
if readers.empty?

Keybase proof

I hereby claim:

  • I am esmarkowski on github.
  • I am spemar (https://keybase.io/spemar) on keybase.
  • I have a public key ASAS8nhvNwdkNEFoDrmBFa7sAoz7S92p0IeWfQyNrGarYQo

To claim this, I am signing this object:

import torch
from torch import autocast
from diffusers import StableDiffusionPipeline
model_id = "CompVis/stable-diffusion-v1-4"
device = "cuda"
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=True)
pipe = pipe.to(device)
@esmarkowski
esmarkowski / ml-compose.yml
Created March 30, 2024 23:59
OpenSearch Docker Compose
version: '3'
services:
opensearch-node1:
image: opensearchproject/opensearch:latest
container_name: opensearch-node1
ulimits:
memlock:
soft: -1
hard: -1
nofile: