Skip to content

Instantly share code, notes, and snippets.

View test.puml
@startuml
alice -> bob
@enduml
View wkhtmltopdf-example-test
17:32 $ ./wkhtmltopdf-linux-x64 ~/Downloads/untitled.html test.pdf
Loading pages (1/6)
QSslSocket: cannot resolve CRYPTO_num_locks ] 10%
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num
QSslSocket: cannot resolve sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
@danyill
danyill / gnucsator_output.txt
Created Mar 7, 2020
gnucsator.sh on HAM_C1_Unbalance_COMTRADE_test21_was_fails.sch
View gnucsator_output.txt
Starting new simulation on Sat 07. Mar 2020 at 22:25:54:261
creating netlist... done.
Starting gnucsator.sh
default plugins: master 2017.10.03
;: already installed, replacing
stashing as ;:0
*: already installed, replacing
stashing as *:0
@danyill
danyill / HAM_C1_Unbalance_COMTRADE_test21_was_fails_with_qucs_0_0_20.netlist.txt
Created Mar 7, 2020
HAM_C1_Unbalance_COMTRADE_test21_was_fails_with_qucs_0_0_20.netlist.txt
View HAM_C1_Unbalance_COMTRADE_test21_was_fails_with_qucs_0_0_20.netlist.txt
# Qucs 0.0.20 /media/mulhollandd/KINGSTON/HAM_C1_Testing/qucs_models/20200306_Transient_Model/HAM_C1_Unbalance_COMTRADE_test21_was_fails_with_qucs_0_0_20.sch
IProbe:LegTLR _net0 _net1
R:RRS _net2 _net3 R="5 Ohm" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85"
IProbe:IR_Total _net2 _net4
Vac:VR _net3 _net5 U="69.86 kV" f="50 Hz" Phase="0" Theta="0"
C:CTR1R R_R _net6 C="12.05 uF" V=""
C:CTL3R1 R_L _net7 C="14.464 uF" V=""
IProbe:UnbalanceCurrentR R_L R_R
VProbe:CanVoltage1 _net1 _net7
@danyill
danyill / vega-example.adoc
Last active Feb 11, 2020
Asciidoctor-diagram and vega example
View vega-example.adoc

Test Vega

{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "width": 400,
  "height": 200,
  "padding": 5,
View build_tools__sectionTreeProcessor.js
// asciidoctor-pdf -r ./build_tools/sectionTreeProcessor.js --template-require ./build_tools/sectionConverter.js -a purpose=pdf P_and_A_Update.adoc
// console.log('Loaded SectionTreeProcessor')
function removeElement(arr, e) {
arr.splice(arr.indexOf(e), 1)
}
function last(array) {
View build_tools__sectionConverter.js
// const asciidoctor = require('asciidoctor.js')()
// console.log('Loaded SectionConverter')
class SectionConverter {
constructor() {
const self = this
self.baseConverter = Opal.Asciidoctor.Html5Converter.$new()
self.templates = {
section: (node) => SectionConverter.convertSection(node)
View rouge and asciidoctor
21:21 $ asciidoctor -v Asciidoctor 2.0.10 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
21:20 $ asciidoctor --trace -r ./lib/src-inline-macro.rb ./lib/src-inline-macro/sample.adoc
Traceback (most recent call last):
26: from /usr/bin/asciidoctor:15:in `<main>'
25: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in `invoke!'
24: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in `each'
23: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:128:in `block in invoke!'
22: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:in `convert_file'
@danyill
danyill / asciidoc-static.adoc
Created Jan 2, 2020 — forked from briandominick/asciidoc-static.adoc
Static Site Generators with AsciiDoc Support
View asciidoc-static.adoc

There are 19 static site generators that support AsciiDoc sourcing.

@danyill
danyill / defaults.adoc
Created Dec 30, 2019
Dan's defaults for asciidoc
View defaults.adoc
:figure-caption: Figure
:toc: left
:docinfo: shared
:docinfodir: {assetdir}
:docinfosubs: attributes
:safe-mode-unsafe:
:iconfont-remote!:
:stylesheet: asciidoctor.css
:scriptsdir: {assetdir}
:linkcss!:
You can’t perform that action at this time.