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
@ivanceras
ivanceras / NERDTree.mkd
Last active December 3, 2015 10:30 — forked from m3nd3s/NERDTree.mkd
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|

module Main exposing (..)
import Html.App as Html
import Html exposing (..)
import Json.Decode as Decode exposing (..)
type Msg = NoOp
#![feature(try_from)]
use std::fmt;
use std::convert::TryFrom;
use std::collections::btree_map::BTreeMap;
use std::error::Error;
#[derive(Debug,Clone)]
pub enum Value{
String(String),
Double(f64)
diff --git a/src/display.rs b/src/display.rs
index 1055944..ac1c1df 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -188,7 +188,7 @@ impl Display {
height: Pixels(height + 2 * config.padding().y as u32),
};
window.set_inner_size(&viewport_size);
- renderer.resize(viewport_size.width.0 as _, viewport_size.height.0 as _);
+ renderer.resize(false, viewport_size.width.0 as _, viewport_size.height.0 as _);

Input:

+-----------+                +---------+
| Alice $.a |*<--------------o Bob $.b |<---.
+-----------+                +---------+    |____

@ivanceras
ivanceras / Build redox.md
Last active May 18, 2018 03:22
Issue this command when your encounter error building redox

It seems redox has not updated their build instructions causing your build an error

Make sure your files is the same with the repo, not newly created files

git clean -f -d

If it looks like the Makefile is changed, restore the copy

Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
CPU Family: 0x6
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am ivanceras on github.
  • I am ivanceras (https://keybase.io/ivanceras) on keybase.
  • I have a public key whose fingerprint is 5C21 6619 48C4 53C2 A0D7 80C2 7335 45D5 7432 2528

To claim this, I am signing this object:

@ivanceras
ivanceras / Cargo.toml
Created April 12, 2022 13:56
Package definition
[package]
name = "counter"
version = "0.1.0"
edition = "2018"
[lib]
crate-type = ["cdylib"]
[dependencies]
sauron = "0.49"