Skip to content

Instantly share code, notes, and snippets.

View xu-chris's full-sized avatar
🕳️

Chris Xu xu-chris

🕳️
  • d.vinci HR-Systems
  • Hamburg
View GitHub Profile
@xu-chris
xu-chris / converter.py
Created February 19, 2022 13:31 — forked from Kronopath/converter.py
WeChat audio converter script. See http://kronopath.net/blog/extracting-audio-messages-from-wechat/ for more details.
# WeChat aud file converter to wav files
# Dependencies:
# SILK audio codec decoder (available at https://github.com/gaozehua/SILKCodec)
# ffmpeg
#
# By Gabriel B. Nunes (gabriel@kronopath.net)
# Adapted from another script by Nicodemo Gawronski (nico@deftlinux.net)
#
import os, argparse, subprocess
@not-a-feature
not-a-feature / impfTermin.js
Last active October 9, 2021 17:29
iOS Widget, welches anzeigt ob im lokalen Impfzentrum Vermittlungscodes verfügbar sind. (für die scriptable.app)
/*
Impftermin Widget
v 1.4.1 Workaround durch JavaScript eval innerhalb eines WebViews (Thanks to @Redna)
This Scriptable Widget will show you if there are any "Vermittlungscode" for vaccination appointments available.
The data is pulled from the impfterminservice.de api, which is neither publicly available nor documented.
Therefore everything may break.
The newest version, issues, etc. of this widget can be found here: https://github.com/not-a-feature/impfWidget
@fanningert
fanningert / tags_image.php
Last active August 29, 2015 14:12
Extended version of the original KirbyText image function.
<?php
/**
* Move this file to /site/tags/ and rename it image.php
*/
/**
* @param array['width'] Width in pixel of the image. When crop/resize active, this is the new image width. Default: null
* @param array['height'] Height in pixel of the image. When crop/resize active, this is the new image height. Default: null
* @param array['alt']
@lmccart
lmccart / gist:2273a047874939ad8ad1
Last active February 18, 2024 21:57
p5.js + p5.dom.js + clmtracker.js
<html>
<head>
<script src="clmtrackr.js"></script>
<script src="model_pca_20_svm.js"></script>
<script src="p5.js"></script>
<script src="p5.dom.js"></script>
<script>
var ctracker;
/*jslint continue:true*/
/**
* Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/}
* Changes:
* Ensures proper URL encoding of name as well as value
* Preserves element order
* XHTML and JSLint-friendly
* Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2}
* (as used in jQuery). Note: This does not serialize <object>
* elements (even those without a declare attribute) or