A Dutch student of Man and Machine, Science and Faith, Philosophy and Life.
- Groningen, The Netherlands
- http://www.romkevandermeulen.nl
Pinned Loading
-
-
jekyll-share-links
jekyll-share-links PublicSocial media share buttons for Jekyll templates, no JavaScript
-
Vanilla JS code to have textareas wr...
Vanilla JS code to have textareas wrap text that exceeds the `col` value. Unlike browser wrapping it inserts newlines that are preserved when you copy that textarea contents. Tries to wrap on words if possible. 1Array.prototype.forEach.call(document.querySelectorAll("textarea.autowrap"), function(textarea) {
2function wrap() {
3var cursorPos = textarea.selectionStart;
4var newValue = textarea.value.split("\n").map(function(line) {
5var wrapped = "";
-
CSS for styling embedded gists in So...
CSS for styling embedded gists in Solarized Dark 1/* Solarized Dark for embedded gists
23http://ethanschoonover.com/solarized
4*/
5 -
How to change instance properties th...
How to change instance properties through decorators in TypeScript: http://romkevandermeulen.nl/2018/01/24/typescript-property-decorators.html 1function makePropertyMapper<T>(prototype: any, key: string, mapper: (value: any) => T) {
2const values = new Map<any, T>();
3Object.defineProperty(prototype, key, {
4set(firstValue: any) {
5Object.defineProperty(this, key, {
-
ttime
ttime 1alias ttime_green="sh -c \"sleep 180 && notify-send -u critical 'The tea is ready'\" &"
2alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is ready'\" &"
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.