Skip to content

Instantly share code, notes, and snippets.

View smackesey's full-sized avatar

Sean Mackesey smackesey

  • Dagster Labs
  • Reston, VA
View GitHub Profile
I like `open`. Here is PR:
https://github.com/dagster-io/dagster/pull/16894/files
That currently just modifies subprocess. If that approach looks reasonable to you then I will go ahead and convert the other clients.
I keep running into the issue that `open_pipes_session` needs to `__exit__` before we can guarantee all results are available. We need a way to execute this from the yielded `PipesSession`, otherwise it is difficult to find an appropriate place to start `open_pipes_session`.
There is a hack in the PR that accomplishes this that I think is sufficient for 1.5, but in order to better solve the problem I think we will need to fast-follow with a class-based context manager somewhere for the pipes session.
@smackesey
smackesey / gist:5f1c31d08f1e4bc5254506e8a505ed76
Created January 30, 2023 21:11
dagster-snowflake-pandas testenv deptree
buildkite-test-collector==0.1.6
- pytest [required: >=7, installed: 7.0.1]
- attrs [required: >=19.2.0, installed: 22.2.0]
- iniconfig [required: Any, installed: 2.0.0]
- packaging [required: Any, installed: 23.0]
- pluggy [required: >=0.12,<2.0, installed: 1.0.0]
- py [required: >=1.8.2, installed: 1.11.0]
- tomli [required: >=1.0.0, installed: 2.0.1]
- requests [required: >=2, installed: 2.28.2]
- certifi [required: >=2017.4.17, installed: 2022.12.7]
<template lang="pug">
div.c-container
template(v-if="i_subcomponents.form.include")
f-create-one-form(:type="type" v-bind="i_subcomponents.form.options")
component(:is="listComponent")
template(v-for="x in records")
v-hover(:key="x.id")
v-list-tile(slot-scope="{ hover }"
:to="getRoute ? getRoute(x) : null"
:class="hover ? 'active f-bg-secondary-500' : ''"
@smackesey
smackesey / spearmint_shunt.py
Created July 4, 2015 03:09
spearmint_shunt
#!/usr/bin/env python
import copy
import json
import numpy as np
import os
import os.path as osp
import sys
from spearmint.tasks.task_group import TaskGroup
from spearmint.choosers.default_chooser import DefaultChooser
#!/usr/bin/env Rscript
library("GenSA")
ntrials = 1
nparams = 22
bounds_vector <- c(
300000, 4000000,
40, 2000,
#!/usr/bin/env ruby
require 'csv'
require 'optparse'
# This script reads a CSV representation of the "Constraints" sheet of the
# Google Sheet at:
#
# https://docs.google.com/spreadsheets/d/1lJX_YRI-YKAxQs4C8q3ykws5it-zokSEXXq6yl6-xYg/edit#gid=0
#
# The path to the CSV file should be provided with the option -p or --path. The
# output is a string encoding the objective function derived from this sheet.
#!/usr/bin/env Rscript
library("GenSA")
ntrials = 60
nparams = 22
bounds_vector <- c(
300000, 4000000,
40, 2000,
import os
import time
config = {
#######################
# app
#
# outputDataDir -- directory where all application output will be written
# keyBindings -- a dictionary where the keys are 'quit', 'toggleStimulator',
@smackesey
smackesey / gist:10946309
Created April 17, 2014 01:08
kauferprosocial config file for windows
import os
import time
import cv2
config = {
'outputDataDir' : "C:\\Documents and Settings\\Kauferlab\\Desktop\\prosocial_output",
'audio': {

GistID: 9383275

Toast of Berkeley Videos

Videos of speeches each week are recorded and posted to the Toast of Berkeley YouTube channel. Additionally, individual table topics responses may be recorded at the request of the speaker, though they are not recorded by default to encourage people to take the risk of speaking.

All videos are uploaded to YouTube under the "toastofberkeley2009" YouTube account (password is available from s.mackesey@gmail.com), with "Unlisted" status. An unlisted video is a video that will not show up in search results but that is accessible to anyone with the link (Google account not required). “Private” videos are different. Toast of Berkeley videos should be posted as unlisted, not private.

How to Post Videos

Step 1: Record the Videos