In order to run Xorg apps on macOS you will need to install xquartz
:
brew install --cask --no-quarantine xquartz
And then configure it
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
<script lang="ts" setup> | |
import "dockview-core/dist/styles/dockview.css"; | |
import {IContentRenderer, DockviewGroupPanel, GroupPanelContentPartInitParameters, PanelUpdateEvent, Parameters, DockviewComponent} from "dockview-core" | |
onMounted(() => { | |
const root = document.getElementById("root")!; | |
const app = document.getElementById("app")!; | |
const dockviewComponent = new DockviewComponent( { |
[ | |
{ | |
"bindings": { | |
// Built-in | |
"ctrl-g": "menu::Cancel", | |
"ctrl-x 5 2": "workspace::NewWindow", | |
"ctrl-x ctrl-c": "zed::Quit", | |
"ctrl-x ctrl-f": "workspace::Open", | |
"ctrl-x k": "pane::CloseActiveItem", | |
"ctrl-x o": "workspace::ActivateNextPane", |
defmodule RV32Sim.Register do | |
def new do | |
<<0::32-unit(32)>> | |
end | |
def get(_, 0), do: 0 | |
def get(registers, number) do | |
<<_::size(number)-unit(32), result::32, _::bytes>> = registers | |
result |
r""" | |
This requires to have the library (pkg) pre-installed. | |
Usage: | |
$ python ./py2mermaid.py --pkg pandas | |
$ python ./py2mermaid.py --pkg pandas --base-module pandas.core | |
$ python ./docs/diagrams/py2mermaid.py --pkg pandas --base-module pandas.core | |
$ python ./docs/diagrams/py2mermaid.py --pkg pandas --base-module pandas.core --raw | sed "s/\w\.\(\w\)/\U\1/g" | |
Note: based on https://gist.github.com/Zulko/e0910cac1b27bcc3a1e6585eaee60121 |
# npm i -g typescript | |
# change directory to your project | |
# Prints out tsconfig.json including extended options if there is any. | |
tsc --showConfig | |
# You can use this flag to discover where TypeScript is spending it’s time when compiling | |
# https://github.com/microsoft/TypeScript/wiki/Performance | |
tsc --extendedDiagnostics |
#!/bin/bash | |
#### | |
#### Copyright (C) 2019 wuseman <[email protected]> - All Rights Reserved | |
#### Created: 13/02/2019 | |
#### | |
#### A notice to all nerds. | |
#### If you will copy developers real work it will not make you a hacker. | |
#### Resepect all developers, we doing this because it's fun! | |
#### | |
# adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'|grep '/'|awk -F'u0' '{print $2}'|awk '{print $1}'|cut -d/ -f1 |
This gist tracks the creation of an almost fully functional sqlite3 server in Python 3, using only the multiprocessing.managers standard library module.
But why?