Skip to content

Instantly share code, notes, and snippets.


Coder of Salvation / Leon van Kammen coderofsalvation

View GitHub Profile
coderofsalvation /
Last active Oct 20, 2020
Flexibility in aframe_blender_exporter

Custom aframe tags/attributes:

Will turn into

<a-image id="#Logo"   scale="1 1 1" position="-0.004364235792309046 2.5867919921875 -4.709991931915283" visible="true" shadow="cast: false"  src="#logo" geometry="width:3; height:0.9"></a-image>
coderofsalvation / example.js
Created Jun 15, 2020
parse-server analytics alternative, which simply add `.metric(key,value)` function to Parse Objects.
View example.js
var id = '2m9fUAIFN3'
new Parse.Query("MyClass")
.then( (o) => {
o.metric( 'impressions', 1) // updates metric
o.metric( 'impressions', 1) // but does not
o.metric( 'impressions', 1) // save immediately
o.metric( 'impressions', 1) // to prevent race conditions
View _installing home-assistant server on (rooted)

installing home-assistant server on (rooted) android

$ wget
$ chmod 755
$ ./
coderofsalvation / _installing ALPINE LINUX on any (old) android device using
Last active May 22, 2020
installing ALPINE LINUX on any (old) android device using ssh-droid
View _installing ALPINE LINUX on any (old) android device using

installing ALPINE LINUX on any (old) android device using ssh-droid (tested: NEO G4 MINIX)

note: bit of unix-skills (vi e.g.) is needed (a very good investment for your future)

  1. install ssh-droid thru playstore, or download/open its .apk file after googling
  2. open ssh-droid
  3. on another laptop/computer ssh into your android device
  4. type mkdir alpine in your homefolder
  5. download the following shellscript below by typing:
coderofsalvation / gist:bb8a041cad0fe202d897f5f6baa493b2
Created Apr 1, 2020
simple standalone scheduled jobrunner for parse
View gist:bb8a041cad0fe202d897f5f6baa493b2
import cron from 'cron'
import moment from 'moment'
import Parse from 'parse/node'
import rp from 'request-promise'
const CronJob = cron.CronJob
let cronJobs = {}
View gist:83663350824948eb8e17af812cb00b4a
touchdesigner version:
w0ifi: boompje (pw: je moeder)
coderofsalvation /
Last active Feb 13, 2020
serialize google forms response-object with getFormItems()
function onFormSubmit(e) {
emailResponse( getFormItems(e.response) )
* Sends out respondent notification emails.
* @param {FormResponse} response FormResponse
function updateTriggers() {
coderofsalvation /
Last active Jan 8, 2020
wave trigger drip engine (forward statemachine in 1 function) #javascript

Waves & triggers

database-row(s) to save state in database

var wavestate = {'#':123,cta:1,wave:0,delay_next:3,data:{foo:123}}

database-row(s) to save wave-rules / configuration of a wave:

var waverules = [
  {'#':'a', active:1, description:'do foo',     cta:1, wave:0, delay_next:3 },
coderofsalvation /
Last active Oct 27, 2019
easiest autohotkey text-expansion using textfiles for windows


  • install autohotkey
  • put this script in a folder with a bunch of textfiles
  • add a shortcut to the .ahk-file to the startup-folder


coderofsalvation / skeleton.bat
Last active Oct 9, 2019
mshta hta example skeleton jscript windows 10
View skeleton.bat
mshta.exe %cd%/skeleton.hta
You can’t perform that action at this time.