Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| // Google Forms Slack Notification | |
| // Andy Chase <github.com/andychase> | |
| // License: CC0 1.0 Universal <creativecommons.org/publicdomain/zero/1.0> | |
| // Install 1: This code goes in ( tools > script editor... ) of your google docs form | |
| // Install 2: ( resources > current project triggers ) ( [onSubmit], [from Form], [On form submit] ) | |
| // Setup 1: Put your slack api url below | |
| var POST_URL = "https://hooks.slack.com/services/"; | |
| function onSubmit(e) { |
| # Add Docker PPA and install latest version | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-get update | |
| sudo apt-get install lxc-docker -y | |
| # Install fig | |
| sudo sh -c "curl -L https://github.com/docker/fig/releases/download/1.0.0/fig-`uname -s`-`uname -m` > /usr/local/bin/fig" | |
| sudo chmod +x /usr/local/bin/fig |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
| from flask import Response | |
| RE_API_DOCS_BASE_PATH = re.compile(r'"basePath": "(.*)\/api\/') | |
| API_SANDBOX_URL = '"basePath": "http://localhost:5000/api/' | |
| @app.route('/api/v1/api-docs', methods=['GET']) | |
| def api_docs_index(): | |
| return Response(RE_API_DOCS_BASE_PATH.sub(API_SANDBOX_URL, | |
| open('./docs/api/v1/index.json').read()), | |
| mimetype='application/json') |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |