Setup Windows Subsystem 2 for Linux
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |
| input: | |
| broker: | |
| copies: 1 | |
| inputs: | |
| - http_client: | |
| url: "https://mas.to/api/v1/streaming/public" | |
| stream: | |
| enabled: true | |
| reconnect: true | |
| codec: "delim:\n\n" |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
| """ | |
| This *fake* module is for windows only | |
| Based on: | |
| - https://github.com/facebook/tornado/blob/master/tornado/win32_support.py | |
| - https://github.com/typecode/wikileaks/blob/23a6243df473102a9a1b84f5dde66173df3132b5/lib/tornado/win32_support.py | |
| - https://raw.githubusercontent.com/twisted/twistedmatrix.com-trac-attachments/0a05e3294e7488d8864a73666a007db842c9633e/ticket/bc1/bc1a1f5e1875e3916492b3b509f58cd420eba1d5/b683c2d57b5d19e4fb24a78b44e76ad9129fe19f.patch | |
| - https://github.com/yt-dlp/yt-dlp/blob/1fc089143c79b02b8373ae1d785d5e3a68635d4d/yt_dlp/utils.py#L2095-L2150 | |
| """ |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
struct foo {
struct bar {
int x;In this repository you will find a collection of teeworlds binds, configs and scripts which you can use in your
settings_ddnet.cfg
If you feel like a bind is missing please contribute.
B8 ?? ?? ?? ?? mov eax, ??
BA 00 03 FE 7F mov edx, 7FFE0300h
| # Load | |
| Split-Path $MyInvocation.MyCommand.Path -Parent | Push-Location | |
| Get-ChildItem poco_*.ps1 | %{. $_} | |
| Pop-Location | |
| function Select-Poco | |
| { | |
| Param | |
| ( | |
| [Object[]]$Property = $null, |
| public static class IQueryableExtensions | |
| { | |
| public static IQueryable<TQuery> In<TKey, TQuery>( | |
| this IQueryable<TQuery> queryable, | |
| IEnumerable<TKey> values, | |
| Expression<Func<TQuery, TKey>> keySelector) | |
| { | |
| if (values == null) | |
| { |
This is a list of C++ operators that can be overloaded and their normal signatures(a.k.a what an int would do). The order is the preffered order to use them(The first one listed is often preffered)
operator+ additionT operator+( T const & lhs, T const & rhs )T operator+( T const & rhs ) constoperator+ unary plusT operator+( ) const