-
Go to ublock settings and select the "Filters" tab
-
In the box, copy the following filter rule in:
@@||google-analytics.com^
-
Click "Apply changes"
-
You're done
'use strict'; | |
const https = require("https"); | |
const querystring = require('querystring'); | |
/* | |
APOLOGY: | |
50% of this mess is because I'm lazy and don't want to package a | |
requests library up to Amazon, That should probably be fixed. |
""" | |
Synchronize Hue lights to music recorded in real-time from an external device. | |
""" | |
import warnings | |
import logging | |
import time | |
from threading import Thread | |
import phue |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import uuid | |
from django.db import migrations, models | |
def fill_mymodel_uuid(apps, schema_editor): | |
db_alias = schema_editor.connection.alias | |
MyModel = apps.get_model('myapp', 'MyModel') |
#/bin/sh | |
# ====================================================================== | |
# 1. Click the spotlight icon | |
# 2. Type "terminal" and press enter | |
# 3. In the new window, type "gcc" and press enter | |
# 4. If another dialog appears, click Install and wait for completion | |
# 5. Click the spotlight icon | |
# 6. Type "terminal" and press enter | |
# 7. Copy all of the lines below this block |
# Move config files to prevent conflicts with project | |
set :deploy_config_path, 'deploy/config/deploy.rb' | |
set :stage_config_path, 'deploy/config/deploy' | |
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Includes default deployment tasks | |
require 'capistrano/deploy' |
A primary goal of BarCamp Grand Rapids is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
We invite all those who participate in BarCamp Grand Rapids to help us create safe and positive experiences for everyone.
Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!
#!/usr/bin/env python2 | |
# This program shows off a python decorator( | |
# which implements tail call optimization. It | |
# does this by throwing an exception if it is | |
# it's own grandparent, and catching such | |
# exceptions to recall the stack. | |
import sys | |
class TailRecurseException: |
""" | |
Example of setting up CORS with Bottle.py. | |
""" | |
from bottle import Bottle, request, response, run | |
app = Bottle() | |
@app.hook('after_request') | |
def enable_cors(): | |
""" |