A small Webtask Cron script to monitor a Chrome Web Store Extension for new review and support comments.
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
@ECHO OFF | |
SETLOCAL | |
REM Speed up by checking for bin directory directly | |
IF NOT EXIST node_modules\.bin GOTO FINDBIN | |
SET BIN=.\node_modules\.bin | |
GOTO RUN | |
:FINDBIN | |
REM Find the current bin directory from npm, storing the result in 'BIN' |
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
# For use within a Flask application using 'app' | |
def static_for(filename, endpoint='.static'): | |
"""Gets the specified static file.""" | |
return url_for(endpoint, filename=filename) | |
app.jinja_env.globals.update(static_for=static_for) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>README.md - Grip</title> | |
<link rel="icon" href="/grip-static/favicon.ico" /><link rel="stylesheet" href="/grip-cache/github-8f609688881a4249463fd5c6862df2e8a30b3f83dd00f6d08bbb07aeaa2b1851.css" /> | |
<link rel="stylesheet" href="/grip-cache/github2-680b12df069daafad44834a7cfa6ee19c1239d3208aa6bcbe43f9cdaf55ae4e5.css" /> | |
<style> | |
/* Page tweaks */ | |
.preview-page { |
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
from flask import Flask, render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
# Expected value | |
ids = [u"one", u"two's", u'"three"'] |
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
### Keybase proof | |
I hereby claim: | |
* I am joeyespo on github. | |
* I am joeyespo (https://keybase.io/joeyespo) on keybase. | |
* I have a public key whose fingerprint is 22EB 13A9 C8CE E5A5 77A7 8AF2 657E 9678 83E5 2DB5 | |
To claim this, I am signing this object: |
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
$(element).click(function(e) { | |
// Allow the link to act normally when middle-clicking | |
// or clicking with a modifier key | |
if (e.which !== 1 || e.shiftKey || e.ctrlKey || e.altKey) { | |
return true; | |
} | |
// --YOUR CODE-- | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Example of Knockout Trimmed Observables</title> | |
<style> | |
h1 { font-size: x-large; } | |
h2 { font-size: large; } | |
p { margin: 32px; } | |
pre { padding: 32px; } |
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
<!-- Add this within the <body>, just before the first <script> or <%:Html.Script%> element --> | |
<script> | |
console.log('Capturing appendChild()'); | |
var base = document.body; | |
var appendChild = base.appendChild; | |
base.appendChild = function(element) { | |
console.log(element); | |
console.trace(); | |
return appendChild.apply(this, arguments); | |
}; |
NewerOlder