Skip to content

Instantly share code, notes, and snippets.

@hemulin
hemulin / search.py
Created August 3, 2018 14:17
Youtube data api v3 playlist keyword generator POC. WIP
#!/usr/bin/python
###########################################
# Don't forget to pip install --upgrade google-api-python-clien
#
### USAGE: python search.py --q beatles ###
###########################################
import json
@hemulin
hemulin / readMode.js
Last active July 13, 2018 08:04
Bookmarklet for hiding DOM header, footer and cookies based on simple regex match
var patterns = [
/.*?[hH]eader[\s\S]?/,
/.*?[fF]ooter[\s\S]?/,
// /.*?[Nn]av[\s\S]?/,
/.*?[Cc]ookie[\s\S]?/
]
// (?<![cC]ontext).*?[hH]eader[\s\S]*(?![Cc]ontext)
// (?<![cC]ontext).*?[hH]eader[\s\S]*?(?![Cc]ontext)
var contextPattern = /[cC]ontext/
[
{
"item": {
"score_global": 2.7631,
"player_type": "EXPERT",
"country_code": "NL",
"player_name": "Bosch Peter",
"player_id": 127095673,
"score_preference": 0.4,
"player_sub_type": [
[
{
"item": {
"web_link": "https://en.wikipedia.org/?curid=231364",
"topic_id_orig": null,
"nb_docs": 14,
"image_link": "http://commons.wikimedia.org/wiki/Special:FilePath/Robert_Bosch_mit_Hut_1888_-_10031.jpg?width=300",
"term": "Robert Bosch GmbH",
"language_code_orig": null,
"term_orig": null,
[
{
"item": {
"web_link": null,
"topic_id_orig": null,
"nb_docs": 1,
"image_link": null,
"term": "Bosch Ltd",
"language_code_orig": null,
"term_orig": null,
@hemulin
hemulin / _.md
Last active November 11, 2015 09:19
concentric gauges
@hemulin
hemulin / _.md
Last active August 29, 2015 14:24
net map
@hemulin
hemulin / _.md
Created April 15, 2015 21:42
color wheel
@hemulin
hemulin / _.md
Last active August 29, 2015 14:13
polygon
@hemulin
hemulin / _.md
Last active August 29, 2015 14:13
cows_riddle