Skip to content

Instantly share code, notes, and snippets.

@secretgspot
secretgspot / timelapse.sh
Created September 22, 2020 01:50 — forked from aemkei/timelapse.sh
Create a Timelapse with ffmpeg
ffmpeg -framerate 25 -f image2 -pattern_type glob -i "*.JPG" -s:v 1920x1440 -c:v libx264 -r 25 ../timelapse.mp4
@secretgspot
secretgspot / filterArray.js
Created September 28, 2019 06:59 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple match-criteria.
/**
* Filters an array of objects by custom predicates.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria
* @return {Array}
*/
function filterArray(array, filters) {
const filterKeys = Object.keys(filters);
return array.filter(item => {
@secretgspot
secretgspot / geosyl.js
Created December 31, 2018 04:09 — forked from aemkei/geosyl.js
Geosyl.js – Convert Latitude longitude Pairs to Readable Words
// Geosyl.js – Convert Latitude longitude Pairs to Readable Words.
// based on David Troy's https://github.com/davetroy/hash-js
// also see: http://www.movable-type.co.uk/scripts/hash.html
// Distributed under the MIT License
geosyl = (function(){
var bits = [32, 16, 8, 4, 2, 1],
vocals = 'aeiou'.split(''),
consonants = 'kgsztdnhfpmyr'.split(''),
@secretgspot
secretgspot / Three Wise Monkeys.md
Created December 31, 2018 01:17
Three Wise Monkeys (NDA)

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@secretgspot
secretgspot / Contract Killer 3.md
Created January 15, 2018 07:26
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post