Skip to content

Instantly share code, notes, and snippets.

View lrlna's full-sized avatar

Iryna Shestak lrlna

View GitHub Profile
@lrlna
lrlna / monads.md
Created July 30, 2015 20:34
intro to monads
# define a construct
data Maybe a = Just a | Nothing

#define martist
martist :: Maybe String
martist = Just "Varen"

#define mtrack
mtrack :: Maybe String
@lrlna
lrlna / gist:06c25c7bb7096d50a1b5
Last active January 29, 2016 17:04
npm cli: ALL THE THINGS -- resources
@lrlna
lrlna / gist:74c2d18e6b7c152f7398
Last active August 29, 2015 14:18
node things to look at for learning purposes.

Keybase proof

I hereby claim:

  • I am ishestak on github.
  • I am irina (https://keybase.io/irina) on keybase.
  • I have a public key whose fingerprint is 5EBC 83B1 F568 57CF 0869 646C CBE8 5651 05E0 BEDE

To claim this, I am signing this object:

@lrlna
lrlna / sort.rb
Created August 6, 2014 00:14 — forked from aspyct/sort.rb
# Sample implementation of quicksort and mergesort in ruby
# Both algorithm sort in O(n * lg(n)) time
# Quicksort works inplace, where mergesort works in a new array
def quicksort(array, from=0, to=nil)
if to == nil
# Sort the whole array, by default
to = array.count - 1
end