This file contains 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
const randomNumber = () => { | |
return Math.random(); | |
} | |
// 1. Make it wait for 1 sec. with `setTimeout` | |
const timeoutRandomNumber = () => { | |
} | |
// 2. Now wrap the timeout version to work with promises |
This file contains 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
/* | |
Copyright (c) 2009 Achim Bode | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
This file contains 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
/* | |
Copyright (c) 2009 Achim Bode | |
For Copyright-Notice and Details pls see bottom of the script... | |
This Version is written for Ubiquity Version 0.5 with Parser 1 | |
This Script allows for easily kepping track of your research: | |
with one or two clicks it pastes all necessary context information into a wiki page opened in a different tab: | |
* what you found on the web page (text selection on the page) | |
* why you want to remember it (a comment you can optionally add behind the "know" command) |
This file contains 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
CmdUtils.CreateCommand({ | |
name: "copytest", | |
icon: "http://vfh30.tfh-berlin.de/4c4m/favicon.ico", | |
homepage: "http://www.achimbo.de/", | |
author: { name: "Achim Bode", email: "achimbode@gmx.net"}, | |
license: "MPL", | |
description: "Wat dat ding macht (desription)", | |
help: "Wie man dat anwendet (how to use your command)", | |
takes: {"input": noun_arb_text}, | |
This file contains 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
CmdUtils.CreateCommand({ | |
name: "copytest", | |
icon: "http://vfh30.tfh-berlin.de/4c4m/favicon.ico", | |
homepage: "http://www.achimbo.de/", | |
author: { name: "Achim Bode", email: "achimbode@gmx.net"}, | |
license: "MPL", | |
description: "Wat dat ding macht (desription)", | |
help: "Wie man dat anwendet (how to use your command)", | |
takes: {"input": noun_arb_text}, | |
This file contains 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
/* | |
Copyright (c) 2009 Achim Bode | |
For Copyright-Notice and Details pls see bottom of the script... | |
This Version is written for Ubiquity Version 0.5 with Parser 1 | |
This Script allows for easily kepping track of your research: | |
with one or two clicks it pastes all necessary context information into a wiki page opened in a different tab: | |
* what you found on the web page (text selection on the page) | |
* why you want to remember it (a comment you can optionally add behind the "know" command) |
This file contains 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
CmdUtils.CreateCommand({ | |
name: "copytest", | |
icon: "http://vfh30.tfh-berlin.de/4c4m/favicon.ico", | |
homepage: "http://www.achimbo.de/", | |
author: { name: "Achim Bode", email: "achimbode@gmx.net"}, | |
license: "MPL", | |
description: "Wat dat ding macht (desription)", | |
help: "Wie man dat anwendet (how to use your command)", | |
takes: {"input": noun_arb_text}, | |