Skip to content

Instantly share code, notes, and snippets.

View Playfloor's full-sized avatar
💤
Colorless green ideas sleep furiously.

Iftah ya Simsim Playfloor

💤
Colorless green ideas sleep furiously.
View GitHub Profile
diff -r 661e95466448 src/screen.c
--- a/src/screen.c Sun Nov 23 15:57:49 2014 +0100
+++ b/src/screen.c Wed Nov 26 14:19:18 2014 +0900
@@ -2994,7 +2994,7 @@
int syntax_flags = 0;
int syntax_seqnr = 0;
int prev_syntax_id = 0;
- int conceal_attr = hl_attr(HLF_CONCEAL);
+ int conceal_attr = 0;
int is_concealing = FALSE;
diff --git a/src/channel.c b/src/channel.c
index 2d68287..859a7d0 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4649,6 +4649,83 @@ job_check_ended(void)
}
}
+#ifndef USE_ARGV
+ char_u *
@Playfloor
Playfloor / factorial.elm
Created May 6, 2022 18:03 — forked from johnwesonga/factorial.elm
Factorial in Elm
import Html exposing (text)
fact : Int -> Int
fact n =
case n of
0 -> 1
1 -> 1
_ -> n * fact(n-1)
factorial : Int -> Int
@Playfloor
Playfloor / gist:363d06cd0394204f4338eb98c69a6e5e
Created April 22, 2022 17:41 — forked from cdown/gist:1163649
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
@Playfloor
Playfloor / frp.md
Created April 22, 2022 17:29 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@Playfloor
Playfloor / ArabicFakeMinimalPairGenerator.go
Created April 21, 2022 18:45 — forked from elsanussi-s-mneina/ArabicFakeMinimalPairGenerator.go
Generates fake Arabic words with two differing consonants. (for purpose of pronunciation practice)
package main
import "fmt"
const nilVowel string = "ْ"
var consonants []string = []string{"أ",
"ب",
"ت",
"ث",
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@Playfloor
Playfloor / install_Jupyter.sh
Created October 6, 2021 16:35 — forked from gatopeich/install_Jupyter.sh
Install Jupyter iPython Notebook on Android via Termux
pkg upgrade
# Install runtime deps
pkg install python libzmq libcrypt
# Add build deps
pkg install python-dev libzmq-dev libcrypt-dev clang
pip3 install -U pip
pip3 install pyzmq --install-option="--zmq=/usr/lib"
pip3 install jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.