Skip to content

Instantly share code, notes, and snippets.

View dcousineau's full-sized avatar
:shipit:
WORKING HARD OR HARDLY WORKING AHAHAHAH

Daniel Cousineau dcousineau

:shipit:
WORKING HARD OR HARDLY WORKING AHAHAHAH
View GitHub Profile
@dcousineau
dcousineau / nyc-closures.md
Created November 7, 2023 20:06
WeWork NYC closures
  • 1 Little W 12th St New York, NY 10014
  • 1 Union Square West New York, NY 10003
  • 10 East 38th Street, New York, NY 10016
  • 10 East 40th Street New York, NY 10016
  • 1156 6th Avenue, New York, NY 10036
  • 130 Madison Avenue, New York, NY 10016
  • 161 Avenue of the Americas New York, NY 10013
  • 1619 Broadway, 11th Floor, New York, NY 10019
  • 183 Madison Avenue, New York, NY 10016
  • 200 Broadway, New York, NY 10038
@dcousineau
dcousineau / redbeans.md
Last active April 6, 2020 20:19
Redbeans and Rice
  • 1 lb bag redbeans or red kidney beans
  • 1 finely chopped white onion
  • 2-3 stalks of finely chopped celery
  • 1 finely chopped small green bell pepper
  • (optional) cajun-style andouille sausage, smoked pork sausage acceptable
  • Rice or rice-like base (cauliflower rice is good)
  • Cayenne powder, cumin, paprika, parsley, salt, pepper

Night before:

@dcousineau
dcousineau / file-a.js
Created September 12, 2016 16:26
Grovo FE Pop Quiz #1
console.log('File A was executed');
// Autofill in iOS Chrome doesn't trigger a change or input event, so React
// doesn't know to update the props with the autofilled value. the props still
// have the pre-autofilled value of the input, and things break. This polyfill
// is based off of a Chrome-iOS JQuery/Angular specific fix:
// https://github.com/tbosch/autofill-event/blob/master/src/autofill-event.js
if (navigator.userAgent.match(`CriOS`)) {
const triggerInputEvent = element => {
const event = new Event(`input`, {bubbles: true});
element.dispatchEvent(event);
};

Initial proof of concept. Just swap api.js with this whole file in the latest master branch.

You can see a video of the code working in a minimal "perfect" case environment: http://ooh.dcousineau.sexy/3b3T360U0l1B

TODOs:

  • Pull new promise into separate function, swap behavior on CLI flag
  • Quadruple confirm error handling
  • Utilize .dispose in bluebird? (to ensure teardown lifecycle)
  • Test with the watcher
@dcousineau
dcousineau / additional_notes.md
Last active February 11, 2016 18:21
YAFT Recipes

I typed these up from memory which is not a humblebrag but a warning that there may be holes in the recipes and you may just have to make shit up as you go along. Best part about Cajun/Creole food is it's really receptive to that. Except rouxs. Rouxs are a fickle PITA.

Tony Chachere's Creole Seasoning is the greatest thing in the universe and you should always have some on hand to season your cajun food with: http://amzn.to/1Q9MjoL

Gumbo is typically made with filé (ground sassafrass leaves) which you can buy from Tony Chachere's as well http://amzn.to/1mv3XvE however the cumin and paprika and maybe ground thyme cover enough of the bases (I typically haven't used filé).

{
"devDependencies": {
"babel-cli": "^6.4.5",
"babel-core": "^6.4.5",
"babel-preset-es2015": "^6.3.13"
},
"dependencies": {
"canvas": "^1.3.9"
}
}
@dcousineau
dcousineau / index.html
Created October 7, 2015 21:58 — forked from anonymous/index.html
About Daniel // source http://jsbin.com/locawu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>About Daniel</title>
</head>
<body>
<h1>Daniel Cousineau</h1>
<p>
My name is Daniel Cousineau, I was born in <em><strong>Shreveport, Louisiana</strong></em>. I'm 28 and I get paid to sit in front of a computer all day.
@dcousineau
dcousineau / index.html
Created October 5, 2015 21:45 — forked from anonymous/index.html
Daniel's First Website // source http://jsbin.com/vipeye
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Daniel's First Website</title>
</head>
<body>
<h1>Hello World!</h1>
<h2>This is my first website</h2>
<img src="http://www.progarchives.com/progressive_rock_discography_band/290.png" alt="some_text">
class Line extends React.Component {
static contextTypes = {
xScale: React.PropTypes.func,
yScale: React.PropTypes.func
};
render() {
let path = d3.svg.line()
.interpolate("basis")
.x(d => this.context.xScale(d.x))