Skip to content

Instantly share code, notes, and snippets.

View ivanceras's full-sized avatar
💭
Keep learning, sharpen the saw

Jovansonlee Cesar ivanceras

💭
Keep learning, sharpen the saw
View GitHub Profile
@gampleman
gampleman / Main.elm
Created March 8, 2018 13:58
VDOM in Pure Elm + Ports
module Main exposing (main)
import MyHtml exposing (program, text, a, onClick, div)
type Msg
= Inc
| Dec
anonymous
anonymous / playground.rs
Created October 6, 2017 17:53
Rust code shared from the playground
#![feature(try_from)]
use std::collections::BTreeMap;
use std::fmt::Debug;
use std::convert::TryFrom;
#[derive(Debug, Clone, PartialEq)]
pub enum Value {
Double(f64),
Text(String),
anonymous
anonymous / playground.rs
Created October 6, 2017 15:14
Rust code shared from the playground
#![feature(try_from)]
use std::collections::BTreeMap;
use std::fmt::Debug;
use std::convert::TryFrom;
#[derive(Debug, Clone, PartialEq)]
pub enum Value {
Double(f64),
Text(String),

Build Rust with Emscripten support

For more up2date information: http://www.hellorust.com/emscripten/

Emscripten is the LLVM-based project to compile stuff into JavaScript. Luckily, Rust already uses LLVM and just recently got an upgrade to the used version of LLVM. Now emscripten uses a fork of LLVM, which is on the way to use more or less the same base LLVM as Rust. See the next-merge branch.

Simple 13 step recipe to build Rust with Emscripten support

@yang-wei
yang-wei / destructuring.md
Last active February 20, 2024 04:40
Elm Destructuring (or Pattern Matching) cheatsheet

Should be work with 0.18

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !

Tuple

myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
@korya
korya / Subfolder to git repo.md
Last active December 16, 2023 10:29
Convert subfolder into Git submodule
@m3nd3s
m3nd3s / NERDTree.mkd
Last active November 23, 2023 13:45
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@ticean
ticean / SVN_Git_Mirror.md
Created January 3, 2012 21:14
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References