- 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
var remapArray = | |
[ | |
[';', 'R'], // One tab right | |
['l', 'E'], //One tab left | |
[',', 'S'], //History back | |
['t', 'on'], // New Tab | |
['z', 'X'], // Restore closed tab | |
['.', 'D'], // History forward | |
['<', '<<'], // Move tab left | |
['>', '>>'], // Move tab right |
#include <string> | |
#include <iostream> | |
struct Test { | |
std::string word; | |
Test& operator()() { return *this; } | |
std::string operator()(float f) { return word; } | |
Test& operator[](std::string w) { | |
word.append(w); | |
return *this; |
ColumnLimit: 75 | |
IndentWidth: 4 | |
AlignAfterOpenBracket: AlwaysBreak | |
AlignConsecutiveAssignments: 'true' | |
AllowAllParametersOfDeclarationOnNextLine: 'true' | |
Cpp11BracedListStyle: 'true' | |
IndentWrappedFunctionNames: 'true' | |
IndentPPDirectives: AfterHash | |
KeepEmptyLinesAtTheStartOfBlocks: 'false' | |
SpacesInParentheses: 'false' |
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
set autowrite | |
set ignorecase | |
set incsearch | |
set mouse=a | |
set nocompatible | |
set number | |
set showcmd | |
set showmatch | |
set showmode | |
set smartcase |
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 |
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 |
#! /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 |
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 |
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( |