Skip to content

Instantly share code, notes, and snippets.

View achimbode's full-sized avatar

Achim Bode achimbode

  • Berlin, Germany
View GitHub Profile
@achimbode
achimbode / async.js
Created December 1, 2017 10:02 — forked from arol/async.js
Asynchronicity exercise
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
/*
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:
/*
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)
@achimbode
achimbode / x
Created February 20, 2009 17:25
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},
@achimbode
achimbode / x
Created February 20, 2009 17:24
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},
@achimbode
achimbode / x
Created January 31, 2009 14:15
/*
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)
@achimbode
achimbode / x
Created January 31, 2009 12:33
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},