-ci'
- change inside the single quotes
-ciw
- change inside a word
-ci(
- change inside parentheses
-dit
- delete inside an HTML tag, etc
-80i * ^[
make a line of 80*
-fn12 = nohls
-:FZF
to bring FuzzyFile
-^N
to open NerdTree
This file contains hidden or 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
#!/bin/bash | |
set -x #echo on | |
set -e | |
### vars | |
CI_BUILD_NUMBER=${CI_BUILD_NUMBER:=0} | |
BUILD_TARGET=${BUILD_TARGET:='staging'} | |
CI_FABRIC_UPLOAD=${CI_FABRIC_UPLOAD:='NO'} # YES | NO | |
WORK_DIR=${HOME}/work |
This file contains hidden or 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 getHexValue(range) { | |
return SpreadsheetApp.getActive().getRange(range).getBackground(); | |
} |
This file contains hidden or 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 bash | |
# Usage notes | |
# =========== | |
# | |
# proxy_watermark.png needs to be in the same directory as the script | |
# download from here: http://whoismatt.com/images/2016/7-july/adobe_proxy_logo.png | |
# | |
# on OSX, both pv and ffmpeg will need to be installed via homebrew |
This file contains hidden or 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
<link rel="stylesheet" href="http://leaverou.github.io/awesomplete/awesomplete.css"> | |
<script src="http://leaverou.github.io/awesomplete/awesomplete.js"></script> | |
<script> | |
document.addEventListener('DOMContentLoaded', () => { | |
const input = document.querySelector('input.blah'); | |
const awesomplete = new Awesomplete(input); | |
input.addEventListener("awesomplete-selectcomplete", (ev) => console.log(ev.text)); | |
input.addEventListener('keyup', (e) => { | |
var code = (e.keyCode || e.which); | |
if (code === 37 || code === 38 || code === 39 || code === 40 || code === 27 || code === 13) { |
I needed to add CORS headers so that client-side JavaScript could upload images directly to an S3 bucket.
I used the Amazon S3 console tool https://console.aws.amazon.com/s3/home?region=us-east-1#&bucket=name-of-bucket&prefix=
Permissions -> Add CORS Configuration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 fs = require('fs') | |
const path = require('path') | |
const Remarkable = require('remarkable') | |
const picturePlugin = require('./picture-plugin') | |
const md = fs.readFileSync(path.join(__dirname, 'demo.md'), {encoding: 'utf8'}) | |
const remarkable = new Remarkable({ |
This file contains hidden or 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
blobToDataURL(blob, function(url){ | |
$('ol.convertedList') | |
.append('<li><strong> recording_' + | |
(new Date()) + | |
'_.mp3</strong><br/>' + | |
'<audio controls src="' + url + '"></audio>' + | |
'</li>'); | |
}) |