Projects that entertain me in my spare time.
- i18n-editor
- superconvert
- Page: Decode base64.
- Page: Encode base64.
- Page: Generate random number (allow max/min values).
- Page: Generate random UUID.
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<data name="Common_AuthenicationFailed" xml:space="preserve"> | |
<value>Authentifikation fehlgeschlagen</value> | |
</data> | |
<!-- single line comment --> | |
<data name="Common_Billable" xml:space="preserve"> | |
<value>Verrechenbar</value> | |
</data> | |
<!-- multi |
import {Sql} from "../providers/Sql"; | |
export class ExamplePage { | |
constructor(private sql: Sql) { | |
//sql.query(...); | |
//... | |
} | |
} |
#!/usr/bin/env node | |
var fs = require('fs'), | |
path = require('path'), | |
cheerio = require('cheerio'), | |
revHash = require('rev-hash'); | |
var rootDir = path.resolve(__dirname, '../'); | |
var wwwRootDir = path.resolve(rootDir, 'platforms', 'browser', 'www'); | |
var buildDir = path.join(wwwRootDir, 'build'); |
/* description: Parses end executes mathematical expressions. */ | |
/* lexical grammar */ | |
%lex | |
%% | |
\s+ /* skip whitespace */ | |
[0-9]+("."[0-9]+)?\b return 'NUMBER' | |
"true" return 'TRUE' | |
"false" return 'FALSE' |
import {Component, ElementRef, OnInit, Renderer2, ViewChild} from '@angular/core'; | |
@Component({ | |
selector: 'app-transaction-condition', | |
styleUrls: ['./transaction-condition.component.css'] | |
template: ` | |
<div class="list" id="list" #list> | |
<div id="0" | |
class="item drop-zone" | |
draggable="true" |
import { Observable, timer } from "rxjs"; | |
import { map, takeWhile, take } from "rxjs/operators"; | |
export function countdown(minutes: number, delay: number = 0) { | |
return new Observable<{ display: string; minutes: number; seconds: number, finished: boolean }>( | |
subscriber => { | |
timer(delay, 1000) | |
.pipe(take(minutes * 60)) | |
.pipe(map(v => minutes * 60 - 1 - v)) | |
.pipe(takeWhile(x => x >= 0 && !subscriber.closed)) |
Projects that entertain me in my spare time.
<?php | |
// This file is NOT a part of Moodle - http://moodle.org/ | |
// | |
// This client for Moodle 2 is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
/// SETUP - NEED TO BE CHANGED |
'use strict' | |
const timeout = ms => new Promise(res => setTimeout(res, ms)) | |
function convinceMe (convince) { | |
let unixTime = Math.round(+new Date() / 1000) | |
console.log(`Delay ${convince} at ${unixTime}`) | |
} | |
async function delay () { |