Skip to content

Instantly share code, notes, and snippets.

@almog
almog / RayV_list
Last active August 29, 2015 14:07
RayV serendip list
# $ egrep -oh "href=\"https?://((\w+).)?(youtube|soundcloud|vimeo|dailymotion|bandcamp).*?\"" export_sd_4ed12435bcfe756bf51992a7.html | grep -oh "http.*[^\"]" > RayV_list
http://youtube.com/watch?v=KMRACkJGW1Y
http://youtube.com/watch?v=clibKrEDBhU
http://youtube.com/watch?v=ZiOI2y5007k
https://yuvalsaartheveryveryband.bandcamp.com/track/blackbird
http://youtube.com/watch?v=WXLM865u5bM
http://youtube.com/watch?v=-zAHs6wrz64
http://youtube.com/watch?v=kUvIdEWiQms
http://youtube.com/watch?v=Q5J0y-EbkII
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFK3DOoBEADquhi1AuQFTlHn6RXO7ELZIQAVZAD7HuoGcyq+WhSU/Y5k17kX
rsXyxGKrWfE4rkICBPWPnOxolAYFAAfJKoh6hEO6cqip8tbWygJjH4VrjDRGyeXZ
jhQAKnzSte+QSmllprebx7CjFBMQJ4OFepo78Vjr9piGEfZZ9egu19ZsJBHlnS6J
aT+jaCO8dYErFIV7htK012f68DP0DHKmRj7NxQ5pqBbNY5aejWm7j0DoE6ckzxWC
GojsThXqJni6+oGuT/YkYELBuFDJLYOGG/yQGsqAZtfKl0paO8oZTqOk5B1Nt3Za
GbHDIjvSJAXYQO74lAxQV7fhcqr3c7mUB1X0d8OeU8Lb0/lmjxOe1JNyDZ1pd/k3
izkIi2nWEy8RCb8tgw/+Vb84sN4dQkZdNMs2TkPzmZuXk49LJ6mWK6iHD59hQFFW
@almog
almog / high_volume_sellers.js
Last active August 4, 2019 15:50
Extract list of high volume ebay sellers
// Run this script on a search page to get a list of large sellers (>1000)
// Use &_saslop=2&_sasl=<comma separated list to exclude sellers>
let sellerNameAndSalesMapper = (elem) => {
let sellerAndSalesText = elem.innerText.match(/Seller: ([-.\w]*) \(([\d,]*)\)/).slice(1)
return { seller: sellerAndSalesText[0], sales: parseInt(sellerAndSalesText[1].replace(',', ''), 10) }
}
let bigSellersFilter = (sellerAndSales) => {
const LARGE_SELLER_CAP = 1000
@almog
almog / gcj_template
Last active April 25, 2021 11:12 — forked from ydm/gcj_template.py
Google Code Jam Python template
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import bisect
import collections
import collections.abc
import itertools
import math
import operator