Skip to content

Instantly share code, notes, and snippets.

View tsabat's full-sized avatar

Tim Sabat tsabat

View GitHub Profile
function gpush() {
gc .; gp origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
}
function gpull() {
gc .; git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
}

Let's not talk about Rachael for now. She's still with her current employer.
So, let's keep this specific to Tim or generic.

  • who are you, about you, where, what
  • what circumstances did we need you for?
  • can you explain the "apply on foreign soil" weirdness?
  • can you explain why we had to give Tim more money?
  • what specific problems did you encounter while working with us?
  • can you do this yourself, without lawyer? Why not?
  • what did you think about slack?
@tsabat
tsabat / key
Created September 7, 2015 15:35
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD7ZSsTWvnfxd06u4JYx5G0fH2Z5VQWTmdWytyHgdgCerHYK/YnCdNiWZgLn9PSHyLQtohj/298j/Vp/+LQETXzR0+MwzisgNGvlrZghkvoWmim72/5/IQ2tzxF4czBOXEUDByYqACFwyDLlnxS0LbqLz14nwnSUN8Z2Hytx3cWXIijhpsXV1RP64QpDjkXdeGVASLrbXJEu/1kOrOEYUDWVciW5tT2DdSk3VS+EuIv4d0o4HJHTWBoDcfD+69/sXsvni7CC/Dg9aBTSp3VS3lEuiPBdxfn9CPmp1XdlzpNOSKM7PiWAHmGaZzd2RfAaopxMjKGR45J17XJhGMXgc4/ timothysabat@Timothys-MacBook-Pro.local

HTML5 Audio Player w/ Responsive Playlist

I changed this!

This is an HTML5 audio player that detects the user agent of your device/browser/OS and applies styling that matches the native audio player. The playlist responds to the width of your screen and features basic UI controls.

Feel free to fork this pen and add your own user agent styles for different browsers, devices and operating systems.

OK, so the real gotcha with Stripe subscriptions has to do with historical data, as we discussed. There is no easy way to retrieve data about a subscription once it has been deleted. Here’s our use-case:

user flow

  1. customer created
  2. subscription added to user
  3. subscription canceled
  4. maybe user resubscribes

Brigade is looking for a disciplined and entrepreneurial front-end developer to join our team. We need someone bent on crafting unique web experiences and who approaches every project as a potential awards piece. We strive to deliver innovative websites that rely on expressive animated and interactive components. To be considered, you must have a minimum of three years’ experience and a strong portfolio of work to share.

Primary Responsibilities:

The key to success is building an entertaining website. Crafting smooth animations and clever transitions from state to state are a must. Your code must be clean and you always leverage grid systems, frameworks, preprocessors and third-party libraries to get the job done efficiently. You have a discerning eye for motion and design and are careful to preserve these elements when developing an awesome web experience. You are mindful of writing code so it will work on all modern browsers and devices. You have no fear of taking ownership of a project to ensure accur

<html><head>
<meta charset="UTF-8">
<meta name="google" value="notranslate">
<title>CodePen Overloaded</title>
<link rel="stylesheet" href="/assets/reset/normalize.css">
@tsabat
tsabat / solr.md
Last active August 29, 2015 14:21

It seems we were committing index too often. I was calling commitWithin=4000, on new/update of document. The old value had been working great for years, but I guess the volume of change was overwhelming the box. I've switched to a commitWithin=30000 and we've not had any timeout issues.

I think that having our index being up-to-date within 30 seconds is fine. If this begins to overwhelm things again, I see a few possiblities:

  • put nxinx in front of Solr with a quick timeout so web requests won't hold. We were getting lots of Resource temporarily unavailable - read would block errors. Maybe there's a way to do that with jetty, but i'm treating the solr install like a black box. Java scares me. :)
  • move to higher iops on the disk holding the index
  • create a read slave
  • move to elastisearch, or SolrCloud

What's interesting to me is that this was a shot in the dark. I got no good error messaging out of solr or apache. I just read some docs and they suggested commiting less frequently. It'd

.flexgroup-fullsize.flexgutter
.flexcol
.flexcell-header.flexrow
.flexcell qerqwerqwre
.flexcell qerqwerqwre
.flexcell adqwoeuqweru
.flexcell-footer.flexrow
.flexcell qerqwerqwre
.flexcell qerqwerqwre