Находки в опенсорсе
10.7K subscribers
11 photos
1 video
3 files
819 links
Привет!

Меня зовут Никита Соболев. Я занимаюсь опенсорс разработкой полный рабочий день.

Тут я рассказываю про #python, #c, опенсорс и тд.
Поддержать: https://boosty.to/sobolevn
РКН: https://vk.cc/cOzn36

Связь: @sobolev_nikita
Download Telegram
​​Introducing: storybook-addon-performance

An experimental storybookjs addon to help better understand and debug performance for #react components.

Features:
- Zero config (except for interactions): Generate performance information relating to server-side rendering and client-side mounting without any configuration
- Pin results: You can run some tasks, pin the result, make some changes, rerun the tasks and see what changed
- Interactions: Add your own custom user interactions to run as a parameter to your story. This lets you time how long interactions take. The API for this is super flexible and powerful!
- Control: Run all tasks for an overview, or run individual tasks to drill down on specific problems
- Marked: All tasks are marked with the User Timing API to allow for easy debugging of individual tasks in your browser's performance profiler

https://github.com/atlassian-labs/storybook-addon-performance

#ts #js
​​Terminal multiplexer inspired by i3 and tmux.

3mux is a terminal multiplexer with out-of-the-box support for search, mouse-controlled scrollback, and i3-like keybindings. Imagine tmux with a smaller learning curve and more sane defaults.

https://github.com/aaronjanse/3mux

#go
​​In a chord diagram (or radial network), entities are arranged radially as segments with their relationships visualised by arcs that connect them. The size of the segments illustrates the numerical proportions, whilst the size of the arc illustrates the significance of the relationships1.

Chord diagrams are useful when trying to convey relationships between different entities, and they can be beautiful and eye-catching.

https://github.com/shahinrostami/chord

#python
​​Compile #nim Extensions for #python On Import!

Pros:
- Performance: Nim compiles to C
- Reduce cloud computing costs without writing C
- Leverage both language's ecosystems: Python for breadth, Nim for performance.
- Seamless integration with existing Nim code by using the Nimpy library.
- Very low effort to create high-performance Python extensions using Nim.
- 100% transparent to end users (doesn't require Nim compiler).

https://github.com/Pebaz/nimporter
​​Contextualise is a simple and flexible tool particularly suited for organising information-heavy projects and activities consisting of unstructured and widely diverse data and information resources -- think of investigative journalism, personal and professional research projects, world building (for books, movies or computer games) and many kinds of hobbies.

> On a side note, an alpha version of Contextualise is already available at https://contextualise.dev. It is not advised, at this stage, to use Contextualise for anything other than testing purposes. Data could be irrevocably lost!

https://github.com/brettkromkamp/contextualise

#python #docops
​​The Axios API, as an 800 byte Fetch wrapper.

https://github.com/developit/redaxios

#js
​​A headless, GraphQL-first e-commerce platform delivering ultra-fast, dynamic, personalized shopping experiences. Beautiful online stores, anywhere, on any device.

Features:
- PWA: End users can shop offline for better sales and shopping experiences
- GraphQL API: Access all data from any web or mobile client using the latest technology
- Headless commerce: Build mobile apps, customize storefronts and externalize processes
- UX and UI: Designed for a user experience that rivals even the top commercial platforms
- Dashboard: Administrators have total control of users, processes, and products
- Orders: A comprehensive system for orders, dispatch, and refunds
- Cart: Advanced payment and tax options, with full control over discounts and promotions
- Payments: Flexible API architecture allows integration of any payment method. It comes with Braintree support out of the box.
- Geo-adaptive: Automatic localized pricing. Over 20 local languages. Localized checkout experience by country.
- SEO: Packed with features that get stores to a wider audience
- Cloud: Optimized for deployments using Docker
- Analytics: Server-side Google Analytics to report e-commerce metrics without affecting privacy

Built with #python and #react

https://github.com/mirumee/saleor
​​ZSH plugin that reminds you to use existing aliases for commands you just typed.

https://github.com/MichaelAquilina/zsh-you-should-use

#shell
​​themer.dev lets you generate matching themes for your code editor, terminal, Slack, and desktop wallpaper.

https://themer.dev/

Looks great! 🧑‍🎨
​​Introducing mdjs. Write Interactive Demos Using Markdown and #js.

Features:
- Works locally with es-dev-server
- Works with storybookjs
- Works on github

https://open-wc.org/mdjs/
​​A minimalist stylesheet for #html elements.
No class names, no frameworks, just semantic HTML and you're done.

Example: https://andybrewer.github.io/mvp/mvp.html

https://github.com/andybrewer/mvp/

#css
​​du + #rust = dust. Like du but more intuitive. Because I want an easy way to see where my disk is being used.

https://github.com/bootandy/dust
​​Organize #django settings into multiple files and directories. Easily override and modify settings. Use wildcards and optional settings files.

Read this blog post for more information: https://sobolevn.me/2017/04/managing-djangos-settings

This one was my first serious open-source project. I still have strong feels for it.

https://github.com/sobolevn/django-split-settings

#python
​​JSON CLI output utility

jc is used to JSONify the output of many standard linux cli tools and file types for easier parsing in scripts. See the Parsers section for supported commands and file types.

https://github.com/kellyjonbrazil/jc
​​View and control remote terminals from your browser with end-to-end encryption.

TermPair lets developers securely share and control terminals in real time. Before termpair sends terminal output to the server, it encrypts it using a secret key so the server cannot read it. The server forwards that data to connected browsers. When the browsers receive the data, they use the secret key to decrypt and display the terminal output.

Likewise, when a browser sends input to the terminal, it is encrypted in the browser, forwarded from the server to the terminal, then decrypted in the terminal by termpair and written to the terminal's input. The secret key is generated by termpair and embedded in a part of the url that is not sent to the server.

https://github.com/cs01/termpair

#python
pattern.css: #css only library to fill your empty background with beautiful patterns.

This library works with most of the frameworks including bootstrap. Supported by most browsers.

https://bansal.io/pattern-css
Functional Abstraction Layer for C++

Cefal is a C++20 header-only library with abstractions over basic functional programming concepts (and using C++20 concepts). It is more a research pet project than a production-ready library (especially keeping in mind it compiles only on GCC/master for now).

https://github.com/dkormalev/cefal

#cpp
​​Deal - #python library for design by contract (DbC) programming.

That's nice assert statements in decorators style to validate function input, output, available operations and object state. Goal is make testing much easier and detect errors in your code that occasionally was missed in tests.

Features:
- Automatic property-based tests.
- Static analysis.
- Generators and async coroutines support.
- External validators support.
- Type-annotated and mypy-friendly.
- Specify allowed exceptions for function.
- Invariant for all actions with class instances.
- Decorators to control available resources: forbid output, network operations, raising exceptions.
- You can disable contracts on production.

https://github.com/life4/deal/

Showcase of many existing decorators:
​​A syntax-highlighter for git and diff output written in #rust

Delta provides language syntax-highlighting, within-line insertion/deletion detection, and restructured diff output for git on the command line. All the syntax-highlighting color themes that are available with bat are available with delta.

https://github.com/dandavison/delta

Here's what git show looks like when git is configured to use delta as its pager: