This is a SCRIPT-8 cassette.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import sqlite3 | |
from tkinter import * | |
conn = sqlite3.connect(':memory:') | |
cursor = conn.cursor() | |
cursor.execute('create table names (name text)') | |
def add_name(name): | |
cursor.execute('insert into names values (?)', (name,)) |
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
'use strict' | |
const http = require('https') | |
function request(options, body) { | |
return new Promise((resolve, reject) => { | |
const req = http.request(options, (res) => { | |
let data = '' | |
res.setEncoding('utf8') | |
res.on('data', (chunk) => (data += chunk)) |
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
# mh theme | |
# Modified by Joseph Post | |
# features: | |
# path is autoshortened to ~25 characters | |
# displays git status, short SHA, and clean/dirty | |
# displays node/npm versions | |
# displays docker machine name if active. | |
# prompt |
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
// Live markdown preview w/ jquery and marked.js | |
// https://github.com/chjj/marked | |
// HTML: | |
//<textarea rows=5 id="input"></textarea> | |
//<div id="output"></div> | |
$(document).ready(function () { | |
$("#input").keyup(function () { | |
var text = $(this).val(); |
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
const Ajv = require('ajv'); | |
function errFormat(obj) { | |
return ({ dataPath, message }) => | |
`Type Error: '${obj.schema.title}${dataPath}' ${message}.\n`; | |
} | |
function validator(ajvOptions = {}) { | |
return (acc, schema) => | |
Object.assign(acc, { |
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
{ | |
"manifest_version": 2, | |
"name": "Doku-To-Markdown", | |
"description": "Convert Doku Page to markdown", | |
"version": "1.0", | |
"browser_action": { | |
"default_popup": "popup.html" | |
}, | |
"permissions": [ |
NewerOlder