This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Returns formatted time depending on the clock (e.g. 00:00 / 12:00am) | |
| * @param {number} hour - The hour of the day (0-24) | |
| * @param {number} minute - The minute of the the hour (0-59) | |
| * @param {string} clock - Either "12h" or "24h" | |
| * @returns The time as a well formated string or false in case of an error | |
| */ | |
| function formatTime(hour, minute, clock) { | |
| ( minute < 10 ) | |
| ? minute = '0' + minute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( function ( window, undefined ) { | |
| var Aloha = window.Aloha || ( window.Aloha = {} ); | |
| Aloha.settings = { | |
| logLevels: { 'error': true, 'warn': true, 'info': true, 'debug': false, 'deprecated': true }, | |
| errorhandling: false, | |
| ribbon: false, | |
| locale: 'en', | |
| floatingmenu: { | |
| width: 630, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env pytohn | |
| from flask import Flask, request, jsonify, abort | |
| import time | |
| app = Flask( __name__ ) | |
| notes = {} | |
| next_note_id = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <canvas id=c></canvas> | |
| <span>Try disturbing the particles with mouse</span> |
NewerOlder