Skip to content

Instantly share code, notes, and snippets.

View mardix's full-sized avatar

Mardix mardix

View GitHub Profile
mardix /
Created June 29, 2023 03:35 — forked from PARC6502/
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services
mardix /
Created September 16, 2020 01:13 — forked from jedp/ - redis autocompleter
A redis autocomplete example for multi-word phrases.
Based on:
Ruby original:
Python original:
See options below for usage
Install Dokku
# must have dokku as username
git remote add dokku
# Edit Procfile
# Push
Remove culprit server
ssh-keygen -R remote-server-name-here
mardix / gist:00fa3606f56fa9e5ab87b1f4d30e4bc6
Created August 25, 2019 19:12
To release pypi package
# To release pypi package
alias pypi-publish='python register -r pypi && python -m twine upload dist/*'
mardix / relift-example-stars-wars-simple.html
Last active April 21, 2019 00:57
<div class="row">
<div class="column" id="starWarsWidget">
<div class="center">
<span r-if="(this.loadingStatus === 'pending')">
<div class="spinner">Loading...</div>
<h4 r-else>Welcome to Star Wars</h4>
mardix / relift-example-todo.html
Last active April 19, 2019 20:31
<div class="column" id="todoAppWidget" style="display:none">
<div class="center">
<div>Enter your item</div>
<input type="text" id="todo-input" />
<button @click="add">Save</button>
<li r-for="item,i in this.todos">
mardix / relift-example-counter.html
Last active April 19, 2019 20:02
<div class="column center" id="counterWidget">
<button @click="down" class="button-outline">DOWN</button>
<button @click="up" class="button-outline">UP</button>
mardix / gist:c96e1ce96ba0f544d7dd21b50867d91f
Last active April 24, 2019 06:14
Python Package Development
## Create virtualenv
> mkvirtualenv $name
> workon $name
## Develop
To install
> python develop
* Produces a function which uses template strings to do simple interpolation from objects.
* Usage:
* var makeMeKing = generateTemplateString('${name} is now the king of ${country}!');
* console.log(makeMeKing({ name: 'Bryan', country: 'Scotland'}));
* // Logs 'Bryan is now the king of Scotland!'
var generateTemplateString = (function(){