Skip to content

Instantly share code, notes, and snippets.

View delneg's full-sized avatar
💭
Worck overflow

Denis delneg

💭
Worck overflow
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 28, 2024 21:36
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@bytemaster
bytemaster / hello.cpp
Created April 5, 2018 21:13
Hello World Contract for EOSIO
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;
struct hello : public contract {
using contract::contract;
void hi( name user ) {
print( “Hello, “, user );
}
type optionBuilder() =
member __.Bind(opt, f) = Option.bind f opt
member __.Bind(obj, f) = Option.bind f (Option.ofObj obj)
member __.Bind(obj, f) = Option.bind f (Option.ofObj (box obj))
member __.Bind(obj, f) = Option.bind f (Option.ofNullable obj)
member __.Return x = Some x
member __.ReturnFrom x = x
let option = optionBuilder()
@kean
kean / EnvironmentPicker.swift
Created November 21, 2021 03:06
Code from "Designing an API Client in Swift"
enum APIEnvironment: String, CaseIterable {
case dev
case test
case stage
case prod
}
struct ContentView: View {
@State private var selection: APIEnvironment? = env