Skip to content

Instantly share code, notes, and snippets.

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@fxfactorial
fxfactorial / ipc.ml
Last active April 23, 2020 00:19
Marshaling OCaml closures (functions), Unix Pipes, Lwt socket, Parent child forking
(* EXAMPLE 1 *)
let () =
let parent_pid = Unix.getpid () in
Printf.sprintf "EXAMPLE 1: Parent pid:%d" parent_pid |> print_endline;
let some_func () =
Printf.sprintf "Process: %d" (Unix.getpid ())
|> print_endline
in
let marshaled = Marshal.to_bytes some_func [Marshal.Closures] in
@baraldilorenzo
baraldilorenzo / readme.md
Last active June 13, 2024 03:07
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@ashenfad
ashenfad / titanic.csv
Created July 11, 2013 21:14
Titanic Survival Data
Name Age Class/Dept Fare Joined Job Survived
ALLEN, Miss Elisabeth Walton 29 1st Class 16,300 Southampton TRUE
ALLISON, Master Hudson Trevor 0.9 1st Class 11,700 Southampton TRUE
ALLISON, Miss Helen Loraine 2 1st Class 11,700 Southampton FALSE
ALLISON, Mr Hudson Joshua Creighton 30 1st Class 11,700 Southampton Businessman FALSE
ALLISON, Mrs Bessie Waldo 25 1st Class 11,700 Southampton FALSE
ANDERSON, Mr Harry 47 1st Class 2,050 Southampton Stockbroker TRUE
ANDREWS, Miss Kornelia Theodosia 62 1st Class 6,020 Cherbourg TRUE
ANDREWS, Mr Thomas 39 1st Class Belfast Shipbuilder FALSE
APPLETON, Mrs Charlotte 53 1st Class 3,980 Southampton TRUE