Skip to content

Instantly share code, notes, and snippets.

View sawthinkar's full-sized avatar
🌏
NetworkState > NationState > CityState

Saw Thinkar Nay Htoo sawthinkar

🌏
NetworkState > NationState > CityState
View GitHub Profile

Ruby to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in Ruby and Rust so that programmers most comfortable with Ruby can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

Ruby:

@sawthinkar
sawthinkar / c#-to-rust.md
Created November 9, 2015 19:46 — forked from carols10cents/c#-to-rust.md
C# to Rust Cheat Sheet

Thanks to @seejee for making this for me!!!

C# to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in C# and Rust so that programmers most comfortable with C# can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

@sawthinkar
sawthinkar / frontendDevlopmentBookmarks.md
Created July 30, 2016 16:14 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@sawthinkar
sawthinkar / elixir.md
Created February 7, 2018 09:01 — forked from bmitch/elixir.md
elixir.md
@sawthinkar
sawthinkar / gale_shapley.ex
Created June 7, 2018 23:09 — forked from Lakret/gale_shapley.ex
Gale-Shapley stable matching algorithm implementation in Elixir
defmodule StableMatching.Preference do
@enforce_keys [:id, :prefers]
defstruct id: nil, prefers: []
end
defmodule StableMatching.GaleShapley do
alias StableMatching.Preference
@doc """
Solves [stable matching problem](https://en.wikipedia.org/wiki/Stable_marriage_problem#Algorithm)
@sawthinkar
sawthinkar / on.y.combinator.md
Last active June 17, 2018 12:58 — forked from houtianze/on.y.combinator.md
On Y Combinator

Hopefully this may speed your groking of the forking torturing Y Combinator a little bit.

Disclaimer: I don't assert what I say here is accurate, or even correct (I'm not authorative, obviously), but it's my understanding and I'm sharing in the hope that someone who also struggles on the Y Combinator may benefit a tad.

Prerequisite Understandings

  • In Lambda Caculus, everything is a Lambda Caculus (Anonymous function that takes one parameter). And the best thing is that, ... drump roll ..., it's Turing Complete. So theoretically, it can calculate anything a computer can.
  • In this note, I use the term function, which (I think) means Lambda Caculus, to sound (at least to myself) more accustomed.

The definition of Y Combinator

  • Y = λf.(λx.f (x x)) (λx.f (x x))

Keybase proof

I hereby claim:

  • I am sawthinkar on github.
  • I am sawthinkar (https://keybase.io/sawthinkar) on keybase.
  • I have a public key ASDoZe1vbjRbcDEfg_nUlKDz0cMNSud1XVqvvqq3m3COKgo

To claim this, I am signing this object:

@sawthinkar
sawthinkar / README-Template.md
Created May 6, 2020 11:50 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@sawthinkar
sawthinkar / GIF-Screencast-OSX.md
Created January 24, 2021 13:56 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: