Skip to content

Instantly share code, notes, and snippets.

@sasha1sum
sasha1sum / title.rb
Last active December 18, 2015 00:18
Script to take a package name and return it's title from play.google.com. Also a script which takes a filename with a list of packages and uninstalls them.
#!/usr/bin/ruby
require 'nokogiri'
require 'open-uri'
class PlayEntry
def initialize(package)
@package = package
url = "https://play.google.com/store/apps/details?id=#{package}"
@sasha1sum
sasha1sum / comb.hs
Last active December 15, 2015 22:39
foldleach and comb
module Main where
-- fold an operation down a list of lists
foldleach :: (a -> b -> a) -> a -> [[b]] -> [a]
foldleach f b xs = map (foldl f b) xs
foldl1each :: (a -> a -> a) -> [[a]] -> [a]
foldl1each f xs = map (foldl1 f) xs
-- find combinations from list