Skip to content

Instantly share code, notes, and snippets.

{{$tablename:="table"}} {{ (printf "%s%s" "$.Page.Params." $tablename) }}
<table class=" rtable"> table table-striped table-sm
{{$count :=0}}
{{$colname := slice }}
{{ $.Page.Params}}
{{ range $.Page.Params.table }}
{{ if eq $count 0}}
<thead>
{{ range . }}
@fieldingtron
fieldingtron / replaceWordPressCharacters.py
Last active May 5, 2018 11:22
replace wierd wordpress characters in utf-8 in markdown files using python 3
#!/usr/bin/env python
filename = "filemarkdown.md"
## OPEN FILE READ TO FILEDATA
f = open(filename,'r', encoding="utf-8")
newdata = f.read()
f.close()
#REPLACE wierd characters
@fieldingtron
fieldingtron / bitport to dropbox mover script
Created August 17, 2017 16:12
Move BITPORT files to Dropbox Bash script
#!/usr/bin/env bash
# NEED TO configure
##uses dropbox_uploader script on github
BITPORT_USERNAME=email_address
BITPORT_PASSWORD=password
DROPBOX_FOLDER=foldername
URL=$1