This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name activesg - single court for 2 hrs | |
// @namespace blah | |
// @version 0.6.5 | |
// @description activesg court booking | |
// @match https://members.myactivesg.com/* | |
// @copyright 2017+, naresh,Gavin,Kent | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##################################################### | |
# Python Library for 4x4 matrix keypad using | |
# 7 of the avialable GPIO pins on the Raspberry Pi. | |
# | |
# This could easily be expanded to handle a 4x4 but I | |
# don't have one for testing. The KEYPAD constant | |
# would need to be updated. Also the setting/checking | |
# of the colVal part would need to be expanded to | |
# handle the extra column. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
etcd0: | |
image: quay.io/coreos/etcd | |
ports: | |
- 2379 | |
volumes: | |
- etcd0:/etcd_data | |
command: | |
- /usr/local/bin/etcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func openbrowser(url string) { | |
var err error | |
switch runtime.GOOS { | |
case "linux": | |
err = exec.Command("xdg-open", url).Start() | |
case "windows": | |
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
case "darwin": | |
err = exec.Command("open", url).Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func openbrowser(url string) { | |
var err error | |
switch runtime.GOOS { | |
case "linux": | |
err = exec.Command("xdg-open", url).Start() | |
case "windows": | |
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
case "darwin": | |
err = exec.Command("open", url).Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"container/list" | |
"errors" | |
"fmt" | |
"strings" | |
) | |
var stackNumber list.List |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
from worker import add | |
# add.apply_async((1, ), priority=1) | |
# add.apply_async((1, ), priority=1) | |
add.apply_async((7, ), priority=7) | |
add.apply_async((6, ), priority=6) | |
add.apply_async((5, ), priority=5) | |
add.apply_async((8, ), priority=8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from flask import Flask, jsonify | |
app = Flask(__name__) | |
# 跨域支持 | |
def after_request(resp): | |
resp.headers['Access-Control-Allow-Origin'] = '*' | |
return resp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
confdir /etc/privoxy | |
actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on. | |
actionsfile default.action # Main actions file | |
actionsfile user.action # User customizations | |
filterfile default.filter | |
filterfile user.filter # User customizations | |
logfile logfile | |
listen-address 127.0.0.1:8118 | |
enable-remote-toggle 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
python: | |
- 3.5 | |
install: | |
- pip install sphinx sphinx_rtd_theme | |
script: make html | |
after_success: | |
- ./push.sh | |
env: | |
global: |
NewerOlder