-
nimly - Lexer Generator and Parser Generator as a Library in Nim.
With nimly, you can make lexer/parser by writing definition in formats like lex/yacc. nimly generates lexer and parser by using macro in compile-time, so you can use nimly not as external tool of your program but as a library.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; direct_tty.ss | |
;; | |
;; This is a demonstration program using some of the Chez Scheme FFI to put the | |
;; terminal into "raw" mode, read a line of characters, possibly containing | |
;; control characters that would normally terminate input, without echoing | |
;; the characters typed. Once the user presses the line termination character, | |
;; (user defined), the program displays the line. | |
;; | |
;; The program shows how to obtain character-by-character input with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import strutils | |
import nimterop/[build, cimport] | |
const | |
baseDir = getProjectCacheDir("meow") | |
static: | |
gitPull( | |
"https://github.com/cmuratori/meow_hash", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS quickjs.nim | |
# | |
# FLAGS | |
# -d:quickjsGit | |
# -d:quickjsSetVer= | |
# -d:quickjsStatic | |
import os | |
import nimterop/[build, cimport] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import strutils | |
import tables | |
import algorithm | |
import httpcore | |
import unicode | |
import strformat | |
import times | |
import nimcrypto | |
import httpclient | |
import utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os: | |
- windows | |
- linux | |
- osx | |
language: c | |
env: | |
- BRANCH=0.19.6 | |
- BRANCH=0.20.2 |
This demo uses d3.layout.force()
to calculate the node positions and then passes those to webGL to render them on the GPU.
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style type="text/css" media="all"> | |
#main { | |
width: 300px; | |
height: 400px; | |
overflow: scroll; | |
} |
NewerOlder