Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Example of `adapter' design pattern | |
# Copyright (C) 2011 Radek Pazdera | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
#!/bin/bash | |
# | |
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box | |
# http://wildfish.com | |
# add the ubuntu gis ppa | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Lets download SDK to /tmp. I assume that Virtualenv is already installed.
unzip /tmp/google_appengine_<VERSION>.zip -d /usr/local
virtualenv ~/demo
db = { | |
person: { | |
save: function(obj){ | |
if(obj.id){ | |
return $http.post("/person", obj).then(function(res){ | |
var data = angular.extend({}, obj); // create copy of `obj` + `id` field | |
data.id = res.data.id; | |
return data; | |
}) | |
} else { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
import sys | |
import codecs | |
if len(sys.argv) < 3: | |
exit(1) | |
with codecs.open(sys.argv[2], 'w', 'utf-8') as f: | |
for line in codecs.open(sys.argv[1], 'r', 'cp932'): | |
f.write(line) |
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();