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
// Drafts 4 script step to create custom tags | |
// using the a line or a default value if that line is empty or missing | |
// split draft into an array of lines | |
var lines = draft.content.split('\n'); | |
// reusable function to define tag based on line or default string | |
function createLineTag(lineNumber,default) { | |
var tagName = "line"+(lineNumber+1).toString(); | |
if(lines[lineNumber] && lines[lineNumber].length > 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
#!/usr/bin/python | |
import Image | |
import base64, zlib | |
# Jay Parlar convinced me to turn this data structure | |
# from a dictionary into an object. | |
class PackedImage(object): | |
def __init__(self, mode, size, data): | |
self.mode = mode |
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
{ | |
"rules": { | |
"indent": [2, 2], | |
"quotes": [2, "single"], | |
"linebreak-style": [2, "unix"], | |
"semi": [2, "always"], | |
"no-underscore-dangle": 0, | |
"curly": 0, | |
"no-use-before-define": [2, "nofunc"], | |
"spaced-comment": [2, "always"], |
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/python | |
import Image | |
import base64, zlib | |
# Jay Parlar convinced me to turn this data structure | |
# from a dictionary into an object. | |
class PackedImage(object): | |
def __init__(self, mode, size, data): | |
self.mode = mode |
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 objc_util import * | |
from Foundation import NSBundle | |
NSBundle.bundleWithPath_('/System/Library/Frameworks/ReplayKit.framework').load() | |
RPScreenRecorder = ObjCClass('RPScreenRecorder') |
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
############################## | |
## Kirby configuration | |
############################## | |
location /kirby/ { | |
include /etc/nginx/mime.types; | |
index index.php; | |
root /var/www/addons88/; | |
if (!-e $request_filename){ |
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
''' | |
Pythonista Find and Replace | |
=========================== | |
Notices | |
------- | |
Copyright 2013 Harry Jubb. | |
This program is free software: you can redistribute it and/or modify |
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
(function () { | |
var perfBar = function(budget) { | |
window.onload = function() { | |
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; | |
var timing = window.performance.timing, | |
now = new Date().getTime(), | |
output, loadTime; |
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 Vue from 'vue'; | |
export const Suspense = Vue.extend({ | |
name: 'Suspense', | |
data: () => ({ | |
resolved: false, | |
}), | |
async created() { | |
const setupMethod = (this.$parent as any).setup; | |
if (!setupMethod) { |
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
/** | |
* World's simplest express server | |
* - used to serve index.html from /public | |
*/ | |
var express = require('express'); | |
var serveStatic = require('serve-static'); | |
var app = express(); | |
app.use(serveStatic(__dirname + '/public')); |
OlderNewer