Skip to content

Instantly share code, notes, and snippets.

View dzmitry-lahoda's full-sized avatar

dzmitry-lahoda dzmitry-lahoda

View GitHub Profile
@AaronPhalen
AaronPhalen / basic_vim_commands.md
Last active December 14, 2023 17:02
Useful Vi Editor Commands

Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]

#Useful Vi Editor Commands

  1. :w --> save to a file
  2. :q --> quit out of editor file
  3. :q! --> quit out of editor without saving file
  4. w --> move one word forward at a time in file
  5. b --> move one word back at a time in file
  6. :wq --> save file and quit editor
@vbelcik
vbelcik / ExtractExeNetStrings readme.txt
Created May 8, 2016 18:05
ExtractExeNetStrings2 - simple utility (or snippet) that extracts all user strings from a .NET assembly (.exe or .dll)
This program extracts all user strings stored in a .dll or an .exe .NET Framework binary file.
The project was originaly compiled and tested with .NET Framework 4.0 and Microsoft Visual C# 2010 Express.
usage: ExtractExeNetStrings.exe <ExeOrDllFilePath>
For a documentation look at "Chapter 24 - Metadata physical layout" in the "MS Partition II.pdf" document.
@mrange
mrange / json_transform.md
Last active January 23, 2017 06:53
Monadic JSON Transformers in F#
@mburbea
mburbea / Bits.cs
Last active February 24, 2019 12:51
namespace System {
// Little-Endian based approaches most likely do not work on big-endian hardware.
// Code based on examples found in
// Bit Twiddling hacks:
// https://graphics.stanford.edu/~seander/bithacks.html
// Chess programming wiki:
// https://chessprogramming.wikispaces.com/BitScan
public static class Bits
{
@sj26
sj26 / LICENSE.md
Last active April 7, 2025 21:12
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit

@JohnRoos
JohnRoos / Invoke-RestMethod with cookie and header.ps1
Last active June 19, 2024 18:30
Invoke-RestMethod with cookies and headers
@lluchs
lluchs / builder.rs
Last active November 14, 2020 10:57 — forked from anonymous/playground.rs
Rust builder pattern with lifetime on struct
struct Foo;
struct FooBuilder<'a> {
foo: &'a Foo,
}
impl Foo {
fn build(&self) -> FooBuilder {
FooBuilder { foo: &self }
}
}
@nick3499
nick3499 / filter_map_collect.rs
Last active May 26, 2020 13:10
Rust: Filter Range, Map, Collect
fn main() {
let rng = 0..30;
let rng_even_cubed = rng.filter(|n| is_even(*n))
.map(|n| n * n * n)
.collect::<Vec<i32>>();
println!("{:?}", rng_even_cubed);
}
fn is_even(n: i32) -> bool {
n % 2 == 0

[Know about it][Understanding][Clear understanding]

NOVICE

CONCEPTS

  • xxx Immutable Data
  • xxx Second-Order Functions
  • xxx Constructing & Destructuring
  • xxx Function Composition
  • xxx First-Class Functions & Lambdas