This file contains hidden or 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 std/[os, strformat] | |
import Nim / compiler / | |
[ idents, options, modulegraphs, passes, lineinfos, sem, pathutils, ast, | |
astalgo, modules, condsyms, passaux | |
] | |
let file = "/tmp/ee.nim" | |
file.writeFile(""" | |
proc test*(arg: int) = echo arg |
This file contains hidden or 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
#!/usr/bin/env fish | |
function find-match-in-parent-dir -a "find_match" | |
set -l path "$PWD" | |
while [ '/' != "$path" ] | |
find "$path" -maxdepth 1 -mindepth 1 -name "$find_match" | |
set path (readlink -f "$path/..") | |
end | |
end |
This file contains hidden or 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 times, stats, strformat, os, strutils | |
import compiler/[parser, llstream, idents, options, pathutils, astalgo, ast] | |
var pars: TParser | |
let cache: IdentCache = newIdentCache() | |
let config: ConfigRef = newConfigRef() | |
proc parsefile(file: string): PNode = | |
openParser( |
This file contains hidden or 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 times, stats | |
import compiler/[parser, llstream, idents, options, pathutils, astalgo] | |
var pars: TParser | |
let cache: IdentCache = newIdentCache() | |
let config: ConfigRef = newConfigRef() | |
var parseTime: RunningStat |
This file contains hidden or 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
#! /bin/sh | |
# | |
# qucsdigi - wrapper script for digital simulation | |
# | |
# Copyright (C) 2005 Michael Margraf <[email protected]> | |
# Copyright (C) 2005, 2006, 2008, 2009 Stefan Jahn <[email protected]> | |
# Copyright (C) 2005 Raimund Jacob <[email protected]> | |
# | |
# This is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains hidden or 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 macros, tables, strformat, strutils, sequtils | |
import strutils | |
proc truncate(value: string, length = 9, ellipsis = "..."): string = | |
if value.len > length: | |
value[0..length - 1] & ellipsis | |
else: | |
value |
This file contains hidden or 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
err_file=$HOME/usb_setup_err | |
echo "Time: $(date -Ins)" >> $err_file | |
echo 'Running setup script' >> $err_file | |
{ | |
##= Create usb gadget | |
cd /sys/kernel/config/usb_gadget/ | |
mkdir -p hax_usb |
This file contains hidden or 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
set autowrite | |
set ignorecase | |
set incsearch | |
set mouse=a | |
set nocompatible | |
set number | |
set showcmd | |
set showmatch | |
set showmode | |
set smartcase |
- Install qt
To build on debian you need to execute
sudo apt-get install qt5-default git curl make g++ libboost-dev libgraphicsmagick-dev graphicsmagick-libmagick-dev-compat
qmake with-magick.pro
make