Skip to content

Instantly share code, notes, and snippets.

View martin12333's full-sized avatar

Martin Milan martin12333

View GitHub Profile

Writing template strings in Markdown

With template strings coming to ES6, the backtick (`) means something in Markdown and in JavaScript. If you write this:

To display a message, write `alert(`hello world!`)`.

it'll render like this:

To display a message, write alert(hello world!).

@martin12333
martin12333 / index.html
Created June 8, 2019 14:43
SymbolButtons version 0.0.2 + ASemtog38 font
<!--
-->
<div >Q
<span class=style1>Q
qQ
<button type="button" title='meaning1' class=style1 onClick=" myFunction(this);"> `Qi </button>
<button type="button" title='meaning1' onClick=" myFunction(this);"> `Qi </button>
</span>Q
@martin12333
martin12333 / chr-range-3.py
Created July 9, 2019 07:55
unicode chr range
# python3
#from __future__ import print_function
import sys
#f=open('/home/martin/Dropbox/unicode,h8/UnicodeData.txt' )
f=sys.stdin
#f
#rls=f.readlines()
#rls[:3]
#l=rls[40]
#for l in f:
@martin12333
martin12333 / index.html
Created July 29, 2019 11:21
jQuery tooltip gloss 0.0.2
(Esperanto)<span class=cl1 title=human> homo</span>, <span class=cl1 title=tom-cat> kato</span>, ...
@martin12333
martin12333 / README.txt
Created July 31, 2019 07:53
(a recorded "macro") ... openrefine ... rowsnotrecords-flagged-fontmap leftjoined to YACR leftjoined to 21 e1len meanings_n BCI AV_2018 04 16_updated_2018 0419 en sv no fi hu de nl af ru lv po fr es pt it dk derivations xls
OpenRefine kopie rowsnotrecords-pozorflagged-fontmap leftjoined to YACR leftjoined to 21 e1len meanings_n BCI AV_2018 04 16_updated_2018 0419 en sv no fi hu de nl af ru lv po fr es pt it dk derivations xls Permalink Open... Export Help
Facet / FilterUndo / Redo 45
Extract…Apply…
Filter:
0.Create project
1.Text transform on 0 cells in column Derivation - explanation: grel:value.replace(/\t/,' --- ')
2.Text transform on 0 cells in column Derivation - explanation: grel:value.replace(/\n/,' --- ')
3.Create new column loc_img based on column English by filling 5835 rows with grel:'http://127.0.0.1:3333/images/blissymbolics.org/bliss_h_transp_png/'+cells.English.value.escape('url')+'.png'
4.Move column loc_img to position 3
5.Rename column loc_img to local_img
@martin12333
martin12333 / merely-using-of-prettier-standalone-js-parser-yaml-js.markdown
Created October 31, 2019 18:30
merely using of prettier--standalone.js + parser-yaml.js
<div class="term"></div>
<textarea class="vi" style="display: none"></textarea>
@martin12333
martin12333 / browserfs-isomorphic-git-test.markdown
Created November 11, 2019 18:56
BrowserFS / isomorphic-git test
@martin12333
martin12333 / life.py
Created May 26, 2020 11:41 — forked from teoliphant/life.py
Array-oriented version of the game of life
from numpy.random import rand
from numpy import r_, ix_, uint8, roll
import matplotlib.pyplot as plt
import time
size = 200
GRID = (rand(size,size) > 0.75).astype(uint8)
# Rotate indices because the world is round
indx = r_[0:size]
up = roll(indx, -1)
martin@sdb3a45g:~$ ssh -p 2223 -L 8888:localhost:8888 [email protected]
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-15-generic x86_64)
martin@martin-VirtualBox:~$ export DISPLAY=:0
martin@martin-VirtualBox:~$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI