Skip to content

Instantly share code, notes, and snippets.

View AndrewKiri's full-sized avatar

Andrew Kirichok AndrewKiri

View GitHub Profile
@AndrewKiri
AndrewKiri / index.js
Created May 22, 2019 15:42
Pavel - live coding
const inputString = 'cat has eaten big fat nimble fish, which made the cat fat';
const filter = (filterValue, input) => input.split(' ')
.reduce((acc, curr) => {
if (curr !== filterValue) acc.push(curr);
return acc;
}, []) // ['has', 'eaten' ...]
.join(' ')
;

Feature Flags Proposal

The targets that we want to achieve:

  • Detach feature flags from build process (which forces to have multiple deployment environments or instances)
  • Have the flexibility to have feature flags attached or detached to Grover site version
  • Be future ready in case the decision is made to develop an on-site configurator (in order to turn certain feature flags on/off according to the desire of the viewer) . The site can be launched with some /URL param/ that will turn dev mode on (which in turn will enable a gear-settings-overlay to control feature flags)
  • Be able to control from API level which features have a particular version of the site

Bonus items:

  • We can declare site version to be more strict than feature flags (eg. to have site version be decisive) & attach it to route param or URL
  • Once they are attached in redux, we can operate and toggle them (to allow for live toggle of any feature)
@AndrewKiri
AndrewKiri / test.py
Last active August 13, 2018 19:31
test py py py (first task)
def donate(monthly_profits):
def lowest(a, b, c):
if a > b > c:
return "C"
elif b > a > c:
return "C"
elif c > b > a:
return "A"
elif c > a > b:
return "B"

Keybase proof

I hereby claim:

  • I am andrewkiri on github.
  • I am andrewkiri (https://keybase.io/andrewkiri) on keybase.
  • I have a public key ASA0uD_ASnmfvzWRE9oDItq3izTHXxfYnvFjm3cKW2mrBgo

To claim this, I am signing this object: