Skip to content

Instantly share code, notes, and snippets.

View RemiBardon's full-sized avatar
🦀
Playing with a crab

Rémi Bardon RemiBardon

🦀
Playing with a crab
View GitHub Profile
@mayurchhapra
mayurchhapra / github-emoji-cheat-sheet.md
Last active September 14, 2025 09:59
🚀 GitHub Emoji Cheat Sheet

🚀 GitHub Emoji Cheat Sheet.

Unlock the expressive power of emojis on GitHub with our comprehensive Emoji Cheat Sheet! Easily enhance your repositories, pull requests, and issues with the perfect emojis for every situation.

From 👋 greetings to 🎉 celebrations, find the emojis that speak louder than words. Boost collaboration, add flair to your Markdown files, and make your GitHub experience more fun and engaging.

Explore the vast world of emojis and level up your communication game! 🌐✨

Table of Contents

@ZhangHanDong
ZhangHanDong / string-conversion.rs
Created October 12, 2020 22:08 — forked from jimmychu0807/string-conversion.rs
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@jarrodldavis
jarrodldavis / RawKeyedCodableDictionary.swift
Created September 26, 2019 04:38
A Swift property wrapper for encoding and decoding `RawRepresentable` enums as their raw values in `Dictionary` instances as keys
@propertyWrapper
struct RawKeyedCodableDictionary<Key, Value>: Codable where Key: Hashable & RawRepresentable, Key.RawValue: Codable & Hashable, Value: Codable {
var wrappedValue: [Key: Value]
init() {
wrappedValue = [:]
}
init(wrappedValue: [Key: Value]) {
self.wrappedValue = wrappedValue
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active August 2, 2026 17:51
set -e, -u, -o, -x pipefail explanation
@tkersey
tkersey / .2026.md
Last active August 4, 2026 13:57
For future reference but maybe not.
@JeOam
JeOam / Animation.md
Last active April 16, 2026 13:22
iOS Core Animation: Advanced Techniques, Part 1: The Layer Beneath

Author: https://www.cyanhall.com/

1. The Layer Tree

Core Animation's original name is Layer Kit

Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.

In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer. The only major feature of UIView that isn’t handled by CALayer is user interaction.

There are four hierarchies, each performing a different role:

@keeguon
keeguon / countries.json
Created April 5, 2012 11:11
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},