-
Install Homebrew The Missing Package Manager for macOS (or Linux) — Homebrew
-
Download Miniforge3
-
Install Miniforge3 and restart your terminal as soon as the installation finishes:
Use prebuild system.img and get the ubports edge rootfs from here.
Boot into TWRP and install it with the JBB's halium-install script.
./halium-install -p ut ubports-touch.rootfs-xenial-edge-armhf.tar.gz system.img
adb push halium-boot.img /tmp
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
| // (Buffer is available in Node.js as a global, but we require it this way for compatibility) | |
| // See: https://nodejs.org/api/buffer.html#buffer_buffer | |
| const { Buffer } = require('buffer'); | |
| const crypto = require('crypto'); | |
| const keyPair = crypto.createECDH('secp256k1'); | |
| keyPair.generateKeys(); | |
| // Print the PEM-encoded private key |
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
| #include <stdio.h> | |
| #include <lua.h> | |
| #include <lualib.h> | |
| #include <lauxlib.h> | |
| #include "luajit.h" | |
| int main(int argc, char *argv[]) | |
| { | |
| int status; | |
| lua_State *L; |
This article has been updated and is available here.
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
Related to issue for building the Neo4j Koans jimwebber/neo4j-tutorial#33 Unable to downlaod Neo4j due to a bug with the Compress lib in Ant 1.9.4. https://issues.apache.org/bugzilla/show_bug.cgi?id=56641
brew unlink ant
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
| /** | |
| * A mixin which helps you to add depth to elements according to the Google Material Design spec: | |
| * http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality | |
| * | |
| * Please note that the values given in the specification cannot be used as is. To create the same visual experience | |
| * the blur parameter has to be doubled. | |
| * | |
| * Adapted from a LESS version at https://medium.com/@Florian/freebie-google-material-design-shadow-helper-2a0501295a2d | |
| * | |
| * Original Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp) |
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
| def miller_rabin(n, k=10): | |
| if n == 2: | |
| return True | |
| if not n & 1: | |
| return False | |
| def check(a, s, d, n): | |
| x = pow(a, d, n) | |
| if x == 1: | |
| return True |
NewerOlder