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"
}
}
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
if nfs_setting
config.vm.synced_folder "./", "/vagrant-nfs", id: "vagrant-root", :nfs => nfs_setting
config.bindfs.bind_folder '/vagrant-nfs', '/vagrant'
else
config.vm.synced_folder "./", "/vagrant", id: "vagrant-root"
end
#drop_overlay {
display:none;
background: rgba(0,0,0,0.75);
color: #fff;
}
#drop_overlay span {
font-size: 35px;
text-align: center;
@dcousineau
dcousineau / afp.conf
Created October 29, 2013 00:17
Configuration files for my local ubuntu server for reference. Most tutorials I found were for netatalk 2.x, this is the configuration for 3.x. FILE LOCATIONS: /etc/afp.conf /etc/avahi/services/afpd.service This serves up the file systems via AFP. I am unsure how to do native time machine identification using smb3 at the moment, but to be honest …
;
; Netatalk 3.x configuration file
;
[Global]
; Global server settings
; [Homes]
; basedir regex = /home