How to Build Linux Kernel with Android
This guide shows how to build Linux on a Android Device and was made for people that doesn't have s Computer.
- 4GB of free space (2GB if delete the temp files)
- Android 5.0
You need to install Termux
This guide shows how to build Linux on a Android Device and was made for people that doesn't have s Computer.
You need to install Termux
ro.secure=0 | |
ro.allow.mock.location=1 | |
ro.debuggable=1 | |
persist.sys.usb.config=adb | |
ro.adb.secure=0 |
// Auto-pilot for docking with the International Space Station | |
// | |
// The program uses Artificial Intelligence and Decision Trees (i.e. basic kinematics and a bunch of if statements) | |
// to perform docking with the ISS from any starting position. | |
// | |
// To use it: | |
// - open the SpaceX simulation website: https://iss-sim.spacex.com/ | |
// - open the Developer's console and paste the contents of this file | |
// | |
// Demo: https://youtu.be/jWQQH2_UGLw |
[ | |
{ | |
"name": "Afghanistan", | |
"flag": "🇦🇫", | |
"code": "AF", | |
"dial_code": "+93" | |
}, | |
{ | |
"name": "Åland Islands", | |
"flag": "🇦🇽", |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
class DarkTransition extends StatefulWidget { | |
const DarkTransition( | |
{required this.childBuilder, | |
Key? key, | |
this.offset = Offset.zero, | |
this.themeController, | |
this.radius, | |
this.duration = const Duration(milliseconds: 400), | |
this.isDark = false}) | |
: super(key: key); |
std::string png_image_path = "sample.png"; | |
// Prepare buffer for result (in symbols, len_byte = length * sizeof(wchar_t)) | |
const size_t leng = 4096; | |
wchar_t bffr[leng] = { 0 }; | |
// Perform OCR on Page | |
size_t size = aspose::ocr::page(png_image_path.c_str(), bffr, leng); | |
//Print result |
import 'dart:isolate'; | |
void main() async { | |
final recvPort = ReceivePort(); | |
await Isolate.spawn<SendPort>((port) { | |
print('[2] received port'); | |
final recvMsg = ReceivePort(); |
In the following gist I'm going to guide you through the process of installing and booting an entire linux distribution with full desktop environment just like you would have with a classical VM, but with much better performance and much worse isolation :)
The reason why I did this was mainly because it's cool, but also to test new distros with decent graphics performance without actually booting them on my PC.
If you "try this at home" just keep in mind a container is not as secure as a VM, and some of the option we're going to explore will weaken container isolation from "a bit risky" to "totally unsafe" depending on what you choose.
Also, we're going to use systemd-nspawn for containers as it's probably the best fit for our use case and can also boot any linux partition without needing to prepare an apposite container image.
Less go!
This file contains some of the basic syntax for Google Carbon as well as some info and how to get set up.
The official repo and docs can be found at: https://github.com/carbon-language/carbon-lang
Carbon is an experimental successor to C++
. It is NOT ready for production and will not be for a while. This crash course and document were made to explore some of the basic syntax.