Skip to content

Instantly share code, notes, and snippets.

View gregorynicholas's full-sized avatar
💀
alter.

gregory nicholas gregorynicholas

💀
alter.
View GitHub Profile
@chudnyi
chudnyi / react-native-ios-build.sh
Last active September 19, 2018 06:02
React Native iOs build script
#!/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
@pachadotdev
pachadotdev / getHexValue.gs
Created May 18, 2018 19:41
extract cells background color
function getHexValue(range) {
return SpreadsheetApp.getActive().getRange(range).getBackground();
}
@charleslouis
charleslouis / cheatsheet.md
Last active October 12, 2019 06:37
Cheat sheet CLI Zsh bash

Vim

-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

@kevinwright
kevinwright / proresproxy.sh
Last active March 12, 2025 21:27
Use ffmpeg to build prores proxies for Premiere Pro
#!/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
@simonw
simonw / awesomplete-ajax.html
Created April 27, 2018 06:47
Awesomplete ajax example.
<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) {
@simonw
simonw / configuring_cors_s3.md
Last active June 29, 2021 08:03
Configuring CORS on Amazon S3 for direct image upload from JavaScript
@derhuerst
derhuerst / wrapping-libraries.svg
Last active March 28, 2018 17:36
how to wrap libraries most of the time
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@derhuerst
derhuerst / 01-demo.js
Last active May 11, 2021 21:06
remarkable picture plugin
'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({
@mhawksey
mhawksey / snip01.js
Last active November 17, 2019 07:53
Code snippets for Recording .mp3 audio in Google Add-ons/Google Apps Script to Google Drive https://mashe.hawksey.info/?p=17916
blobToDataURL(blob, function(url){
$('ol.convertedList')
.append('<li><strong> recording_' +
(new Date()) +
'_.mp3</strong><br/>' +
'<audio controls src="' + url + '"></audio>' +
'</li>');
})
@derhuerst
derhuerst / helpers.md
Created March 14, 2018 23:45
helpers to create a new hafas-client profile