Skip to content

Instantly share code, notes, and snippets.

View phish108's full-sized avatar

Christian Glahn phish108

View GitHub Profile
var Fragen = {};
// der datenFeed kommt aus $.ajax()
for (var i = 0; i < datenFeed.length; i++) {
var fID = datenFeed[i].id,
aID = datenFeed[i].agent.id;
if (!(fID in Fragen)) {
// initialisiere den Eintrag
Fragen[fID] = {};
[
{
"object" : {
"id" : "http://hornet.ethz.ch/scorm_editor/tla/restservice/content/course.php/12345"
},
"timestamp" : "2014-10-06T06:06:06+0200",
"verb" : {
"id" : "http://ilias.org/vocab/course/participate"
},
"stored" : "2014-10-07T23:52:42+0200",
@phish108
phish108 / README.md
Created July 19, 2017 19:25
Mustache Templates with Dot Notation

Mustache and cross referrencing the context

Sometimes it is useful to have distinct pointers to an element in a different part of the context but don't want to start a new section. In this case the dot notation is your friend.

The dot-notation allows to reference a sub entries that are reachable without traversing a list.

This GIST has been tested with javascript mustache.

@phish108
phish108 / module
Last active April 18, 2024 23:15
Excel AFE Module Primer
// to be used with Excel's Advanced Formula Editor
// @lang=de-ch
GlobalConstant = "foo bar"
FooBar = LAMBDA(foo; bar; foo & bar);;
BarFoo = LAMBDA(foo; bar; bar & foo);;
@phish108
phish108 / README.md
Last active June 5, 2024 07:42
Update ubuntu with docker

Updating to ubuntu 24.04 with docker installed

Ubuntu 24.04 uses a new apt repo metadata-format. This caused some headaches. The following steps solved the problem.

Notes when updating Ubuntu 23.10 to 24.04 with docker installed.

  1. sudo apt update
  2. sudo apt upgrade -y
  3. sudo do-release-upgrade