Skip to content

Instantly share code, notes, and snippets.

View scneptune's full-sized avatar

Stephen Neptune scneptune

  • Native Instruments Gmbh
  • Los Angeles, CA
  • X @scneptune
View GitHub Profile
@scneptune
scneptune / PLT-409.md
Last active April 26, 2018 21:06
Possible Spike on PLT-409

Bugfix PLT-409

Problem: When a user goes to save a new episode, there is a potential to double submit an episode/show/ancillary if the user double clicks fast enough

Notes :

  • Functionally Complex The current update function for writeEpisode (found in gulp/assets/javascripts/stores/actions/updateActions.js) is hopelessly too complex and not very legiable, and handles both contexts for updating and saving new episodes.
@scneptune
scneptune / bulkDeliveryState.md
Last active March 12, 2018 09:39
simple description of whats going on in the bulkDelivery Page.

How this state will work

An example state after making the appropriate get API request to /bulk_deliveries

{
     "deliveryLineItemIds": [
          "39773",
          "41046",
          "41201",
@scneptune
scneptune / 2018Goals.md
Last active January 17, 2018 00:31
2018 1st Quarter Goals

mvimg_20180108_151047

Seniority

  • Work Ethic / Attitude / People Skills
  • Organization, Convey
    • Communication, Architecture Docs
  • Consideration of Business Goals
  • Individual Contributions
@scneptune
scneptune / Elastic Search.md
Last active November 9, 2017 01:42
Discussion notes from 11-8 about moving off of algoliaSearchIndecies

Goals

Ticket Description This is the FE work to display the current search results using ES instead of Algolia.

  • This will be considered done when;
    • A user searches for an item anywhere in the app using global search and consistent results are displayed
    • Results are displayed in a component that matches production currently
  • Existing search attributes are returned as results

This will be considered done when:

  • In the "Screening Rooms" tab of the admin section of the Catalogue, there exists a dropdown to filter which type(s) of screening rooms are shown.
    • Drop-down options are: All, Full, Basic
    • If All is selected, then each screening room should have a label above the name of the screening room to indicate the type of screening room: Basic or Full
  • In the "Screening Rooms" tab of the admin section of the Catalogue, the search feature interacts with this screening room type drop-down menu (so I can search and filter simultaneously).
  • For basic screening rooms, admin users can do the following
    • Edit an existing screening room
    • Edit the name of the screening room
  • Edit the carousel order of videos in the screening room
@scneptune
scneptune / keybase.md
Created June 6, 2017 07:18
My own keybase data

Keybase proof

I hereby claim:

  • I am scneptune on github.
  • I am scneptune (https://keybase.io/scneptune) on keybase.
  • I have a public key ASBBIoL_3X8R-Vw7IBwMrhBTb94AcGd_2I3Wd6kOW2ucbwo

To claim this, I am signing this object:

@scneptune
scneptune / gist:df8017dd4e4116774cb1ef39fb620d29
Created September 19, 2016 22:22
How to manipulate Object data inside an array in redux.
// Existing response looks like
// from algolia after being indexed.
shows: [{
id: 232432,
type: 'show',
attributes: {
title: 'Awesomeness Cares',
atv_id: '322334asdfasdf',
eidr: 'asdf2r2r2rwfasdfasdf',
@scneptune
scneptune / pis_migration
Created August 5, 2016 01:26
RUN THIS ON THE PRODUCTION SERVER.
class ProjectInformationDetails < ActiveRecord::Migration
def change
add_column :campaigns, :air_date, :string, null: false, default: DateTime.now
add_column :campaigns, :approval_type, :text, array: true, null: false, default: []
add_column :campaigns, :campaign_department, :text, array: true, null:false, default: []
add_column :campaigns, :campaign_job_uid, :string
add_column :campaigns, :distribution_spending, :integer, null: false, default: 0
add_column :campaigns, :invoice_amount, :integer, null: false, default: 0
add_column :campaigns, :lead_marketer, :string
add_column :campaigns, :lead_producer, :string
@scneptune
scneptune / formater.js
Created April 7, 2016 23:35
A method to harmonize using the key property names for either featured videos or branded videos.
function findVideoContext(context) {
switch (context) {
case 'branded_videos':
case 'branded_video_ids':
return {
presenterContext: 'branded_videos',
viewContext: 'branded_video_ids'
};
case 'featured_videos':