Skip to content

Instantly share code, notes, and snippets.

View kotarovivino's full-sized avatar

Kotaro Shima kotarovivino

  • Vivino
  • Copenhagen, Denmark
View GitHub Profile
{%- if not contact.user_id -%}
{{ skip_action('no user_id') }}
{%- endif -%}
<!--Set API Variables-->
{%- set user_id = contact.user_id -%}
{%- set parameters = {'user_id': user_id, 'count': 1} -%}
{%- if not lookups.real_time_production_recommendations[parameters] -%}
{{ skip_action('no recs for user') }}
{%- endif -%}

Keybase proof

I hereby claim:

  • I am kotarovivino on github.
  • I am kotaroshima (https://keybase.io/kotaroshima) on keybase.
  • I have a public key ASBQyFly2LOtEUsCTyc3H7Po__ye7NSK16m4LHiwBCJFJwo

To claim this, I am signing this object:

javascript:(function(){ const sum = Array.from(document.querySelectorAll('.dropdown-actor-title SPAN')).reduce((memo, span, index) => { if (index % 2 == 1) { return memo } let count = parseInt(span.title); if (isNaN(count)) { count = 0; } return memo + count; }, 0); console.log(sum);})();
const list1 = [1,2,3]
const list2 = [3,6,8,2]
const list3 = []
const list4 = [3]
expect(intersect(list1,list2).toBe([2,3])
expect(intersect(list1,list3).toBe([])
expect(intersect(list2,list4).toBe([3])
// we shouldn't give this upfront,
@kotarovivino
kotarovivino / keybase.md
Created February 24, 2020 13:24
keybase

Keybase proof

I hereby claim:

  • I am kotarovivino on github.
  • I am kotaro (https://keybase.io/kotaro) on keybase.
  • I have a public key ASAsWuQCdiRk8ECqwe5mouN8mKPhTQ2XWEF5zulopNx_qgo

To claim this, I am signing this object: