- Early work by Ihab Awad (Google) and Kris Kowal (FastSoft)
- 2009-09: 2nd draft of module strawman, still very close to "closures as modules",
export x = 42
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
| import io.vertx.core.json.JsonArray; | |
| import rx.Observable; | |
| import rx.Single; | |
| /** | |
| * @author abner2 | |
| */ | |
| public class RxPlayground { | |
| public static void main(String[] args) { |
Some things that are "better" with this BetterPromise implementation:
-
BetterPromise # then(..)accepts aBetterPromise(orPromise) instance passed directly, instead of requiring a function to return it, so that the promise is linked into the chain.var p = BetterPromise.resolve(42); var q = Promise.resolve(10); p.then(console.log).then(q).then(console.log);
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
| #!/bin/bash | |
| ssh root@10.139.7.126 "cd /home/abner/target-folder; tar zc data-bkp --verbose" | tar zx |
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
| <link rel="shortcut icon" width=32px> | |
| <canvas style="display: none" id="loader" width="16" height="16"></canvas> | |
| <script> | |
| class Loader { | |
| constructor(link, canvas) { | |
| this.link = link; | |
| this.canvas = canvas; | |
| this.context = canvas.getContext('2d'); | |
| this.context.lineWidth = 2; |
This cheatsheet is for the following video that shows how to Install and Run the PostgreSQL Database server on your Andriod Phone. Watch this video for a complete Demo/Solution: https://youtu.be/7edutr-ALdc
- Google PlayStore: https://play.google.com/store/apps/details?id=com.termux
- Fdroid PlayStore(Recommended): https://f-droid.org/en/packages/com.termux
- Github (latest builds): https://github.com/termux/termux-app/releases
Once termux is installed open it and use the shell for below commands
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
| //! This uses `nsvg` to parse and rasterize an SVG image. | |
| //! | |
| //! Unfortunately `nsvg` does not preserve SVG size and aspect ratio :( | |
| use eframe::{egui, epi}; | |
| struct Svg { | |
| image: egui::ColorImage, | |
| /// original size of the svg | |
| svg_size: egui::Vec2, | |
| } |
OlderNewer