Skip to content

Instantly share code, notes, and snippets.

View futpib's full-sized avatar

futpib

View GitHub Profile
magic: policeman_ruleset
version: 0.1
id: "captcha_services"
l10n:
en-US:
name: "Allow various captchas"
description: ""
rules:
magic: policeman_ruleset
version: 0.1
id: "scheme_magnet"
l10n:
en-US:
name: "Allow Magnet Links"
description: "This allows clicking in magnet links"
magic: policeman_ruleset
version: 0.1
id: "deny_requests_from_files"
l10n:
en-US:
name: "Deny requests from files"
description: ""
magic: policeman_ruleset
version: 0.1
id: "deny_requests_for_files"
l10n:
en-US:
name: "Deny requests for files"
description: ""
rules:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox style="background-color:midnightblue; -moz-box-flex: 1;" flex="1">
<vbox orient="vertical" flex="1" style="background-color:skyblue; overflow:auto;" height="1">
<button label="Red"/>
<button label="Blue"/>
<button label="Green"/>
<button label="Yellow"/>
<button label="Orange"/>
magic: policeman_ruleset
version: 0.1
id: "allow_my_very_special_script"
l10n:
en-US:
name: "Allows a script at http://a.b/cde/script.js"
description: ""
magic: policeman_ruleset
version: 0.1
id: "allow_styles_same_site"
l10n:
en-US:
name: "Allow styles from same and same second-level domain"
description: ""
magic: policeman_ruleset
version: 0.1
id: "https_half_open_sandbox"
l10n:
en-US:
name: "HTTPS sandbox"
description: "Reject non-HTTPS requests from HTTPS pages"
@futpib
futpib / bimap.coffee
Last active August 29, 2015 14:13
Bidirectional map in CoffeeScript (on top of Harmony Map)
class WrappedMap
# We need a wrapper because you can't just extends Map:
# TypeError: Method Map.prototype.set called on incompatible receiver #<BiMap>
constructor: ->
@_map = new Map arguments...
# clone and wrap Map.prototype properties
Object.getOwnPropertyNames(Map::).forEach (name) =>
desc = Object.getOwnPropertyDescriptor Map::, name
bash -x ./build.sh -p
+ source_root=src
+ build_root=build
+ do_build=true
+ do_pack=false
+ do_svg=true
+ main -p
++ getopt -o hcips:b: -l help,clean-only,keep-icons,pack,source-dir:,build-dir: -- -p
+ args=' -p --'
+ eval set -- ' -p --'