Netstandard | .NET | .NET Framework | Mono |
---|---|---|---|
1.0 | |||
1.1 | |||
1.2 | |||
1.3 | |||
1.4 | |||
1.5 |
|
This file contains 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
using System.Buffers; | |
using System.Diagnostics; | |
using System.Threading.Channels; | |
namespace System.Buffers; | |
/// <summary> | |
/// Queues non-blocking synchronous writes to an asynchronous only <see cref="Stream"/>. | |
/// </summary> | |
/// <remarks> |
This file contains 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
internal sealed class PooledChunks<T> : IDisposable, IReadOnlyList<T>, ICollection<T> | |
{ | |
private readonly List<ArraySegment<T>> _chunks = new(); | |
private int _count; | |
public PooledChunks() : this(null) { } | |
public PooledChunks(ArrayPool<T>? pool) | |
{ |
This file contains 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
import pandas as pd | |
import requests | |
def get_listings() -> list: | |
# load json https://poe.ninja/api/data/itemoverview?league=Crucible&type=SkillGem&language=en | |
# format: | |
# { | |
# "lines": [ | |
# {"id":96951,"name":"Awakened Enlighten Support","icon":"https://web.poecdn.com/gen/image/WzI1LDE0LHsiZiI6IjJESXRlbXMvR2Vtcy9TdXBwb3J0L1N1cHBvcnRQbHVzL0VubGlnaHRlbnBsdXMiLCJ3IjoxLCJoIjoxLCJzY2FsZSI6MX1d/7ec7d0544d/Enlightenplus.png","levelRequired":80,"variant":"5/23c","itemClass":4,"sparkline":{"data":[],"totalChange":0},"lowConfidenceSparkline":{"data":[0,0,9.56,9.56,63.25,83.88,47.33],"totalChange":47.33},"implicitModifiers":[],"explicitModifiers":[{"text":"This Gem gains 115% increased Experience","optional":false}],"flavourText":"","corrupted":true,"gemLevel":5,"gemQuality":23,"chaosValue":69159.71,"exaltedValue":4749.98,"divineValue":309.29,"count":3,"detailsId":"awakened-enlighten-support-5-23c","listingCount":3} | |
# ], |
This file contains 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
# types are infered by default | |
let variable = "string \n with escapes" | |
# variables are immutable | |
let variable = 'string without escaped' | |
# variables shadow eachother localized to the scope | |
let variable = `string with ${variable} $interpolation` | |
# anonymous object | |
# type can be specified aswell | |
let variable: Any = { } | |
# cast of a Any variable is either the target Str or Nil |
This file contains 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
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00 |
This file contains 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
module Edgerunning.System | |
import Edgerunning.Logging.* | |
public class LaunchCycledRecoverHumanityRequest extends ScriptableSystemRequest {} | |
public class EdgerunningRecoverySystem extends ScriptableSystem { | |
// ------------------------------------------ | |
// Fields | |
// ------------------------------------------ |
This file contains 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
#!/bin/bash | |
# usage: ./arch_install.sh <cpu> <gpu> <install_disk> <swapfile [y/n]> | |
trap "exit" INT | |
# Set for different systems | |
if [[ $1 == "amd" ]]; then | |
ucode=amd-ucode | |
elif [[ $1 == "intel" ]]; then | |
ucode=intel-ucode |
This file contains 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
#!/usr/bin/env python3 | |
import typing as t | |
import click | |
import lxml.html as xaml | |
import pandas as pd | |
import requests as req | |
import sqlite3 | |
def extract_csv(db_file: str) -> pd.DataFrame: | |
conn=sqlite3.connect(db_file) |
This file contains 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
using System; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
Benchmark.RngSeed = Environment.TickCount; | |
BenchmarkRunner.Run<Benchmark>(); | |
NewerOlder