Skip to content

Instantly share code, notes, and snippets.

View GwynethLlewelyn's full-sized avatar
👩
Learning Go

Gwyneth Llewelyn GwynethLlewelyn

👩
Learning Go
View GitHub Profile
~/go/src$ git -c core.sshCommand="ssh -vvvT" clone git@autonomy.gwynethllewelyn.net:GwynethLlewelyn/gosl-basics.git
17:01:38.040501 git.c:328 trace: built-in: git 'clone' 'git@autonomy.gwynethllewelyn.net:GwynethLlewelyn/gosl-basics.git'
Cloning into 'gosl-basics'...
17:01:38.051642 run-command.c:626 trace: run_command: 'ssh -vvvT' 'git@autonomy.gwynethllewelyn.net' 'git-upload-pack '\''GwynethLlewelyn/gosl-basics.git'\'''
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/gwyneth/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "autonomy.gwynethllewelyn.net" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to autonomy.gwynethllewelyn.net [176.31.245.207] port 22.
@GwynethLlewelyn
GwynethLlewelyn / foldmag-pt_PT.po
Created August 20, 2017 23:28
Translation for Magpress Foldmag
msgid ""
msgstr ""
"Project-Id-Version: foldmag\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-17 02:37+0800\n"
"PO-Revision-Date: \n"
"Last-Translator: Gwyneth Llewelyn <gwyneth.llewelyn@gwynethllewelyn.net>\n"
"Language-Team: Gwyneth Llewelyn <gwyneth.llewelyn@gwynethllewelyn.net>\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
@GwynethLlewelyn
GwynethLlewelyn / html2text-largetable-test.go
Last active August 13, 2017 22:18
Large table test for html2text
package main
import (
"fmt"
"github.com/jaytaylor/html2text"
)
func main() {
tableHTML := `<div class="table-responsive"><table class="table table-striped table-bordered table-hover"><caption>Population for agent 'Bot Controller - Semistupid Bot' [generation 2] after calculating fitness and ordering by fitness follows:</caption><thead><tr><th>Pop #</th><th>Fitness</th><th>Chromossomes</th></tr></thead><tbody>
<tr><td>0</td><td>817.7478</td><td>(70, 130, 22)<br>Distance: 1.0133<br>Obstacle: 0.1244<br>Angle: 0.0000<br>Smoothness 0.0000</td><td>(97, 130, 22)<br>Distance: 26.6781<br>Obstacle: 0.1173<br>Angle: 0.0000<br>Smoothness -27.5169</td><td>(97, 132, 22)<br>Distance: 26.6864<br>Obstacle: 0.1066<br>Angle: 1.5708<br>Smoothness -2.0206</td><td>(98, 129, 22)<br>Distance: 27.7276<br>Obstacle: 0.1252<br>Angle: -1.2490<br>Smoothness 2.0170</td><td>(102, 131, 22)<br>Distance: 31.6631<br>Obstacle: 0.1032<br>Angle: 0.4636<br>Smoothness -6.0720</td><td>(106, 132, 22)<br>Distance: 35.6800<br>Obstacle: 0.0000<br>An