Skip to content

Instantly share code, notes, and snippets.

View tmgriffiths's full-sized avatar

Tom tmgriffiths

  • UOW
  • Wollongong Australia
View GitHub Profile
@ZhengRui
ZhengRui / LiveReload.sublime-settings
Last active June 20, 2021 10:06
SublimeText3 Markdown Preview + LiveReload + Pandoc User Settings
{
"enabled_plugins": [
"SimpleReloadPlugin",
"SimpleRefresh"
]
}
!GAMESS input file for DFTB3/SMD optimization
$contrl runtyp=optimize icharg=1 nprint=-5 nzvar=1 $end
$system mwords=20 $end
$zmat dlc=.t. auto=.t. $end
$scf npunch=0 $end
$statpt nstep=200 opttol=0.0005 $end
$pcm solvnt=water smd=.t. $end
$system modio=31 $end
$basis gbasis=dftb $end
$dftb ndftb=3 dampxh=.t. dampex=4.0 $end
@tmgriffiths
tmgriffiths / Using-GistBox-Natively-on-Mac-OS.md
Last active September 21, 2017 04:01
Using GistBox Natively on Mac OS

Using GistBox Natively on MacOSX

So you've discovered Gists for organising and sharing (pseudo) code snippets, and you've discovered the beautiful GistBox as an interface for your gists. You feel like you just want it as a standalone app though, well...

1. Download and install Fluid

Download fluid to create a Site Specific Browser (SSB) (The free version is fine, but the paid version lets you anchor it in your menubar!). Fluid is an application that makes any web-app you commonly use into a standalone app. For those inclined you can install fluid via Homebrew cask with brew cask install fluid

Once you've installed fluid open the application and enter the following information to set up GistBox and click create.

@iksi
iksi / fluid-typography.css
Created January 14, 2016 11:45
Fluid typography between a min & max font-size and molten leading
/**
* Fluid typography between a min & max font-size and molten leading
* calc(minSize + (maxSize - minSize) * ((100vw - minPort) / (maxPort - minPort)));
*/
:root {
font-size: 100%;
}
body {
font-size: 1em;
@tamouse
tamouse / input.md-text
Last active May 25, 2023 13:46
Adding a class to a table in markdown (using kramdown processor as default in Jekyll).
# Let's try out a table with kramdown class tag
| A simple | table |
| with multiple | lines|
{: .my-class }
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 25, 2025 20:12
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@stared
stared / software_for_scientists.md
Last active July 4, 2025 04:21
Software for scientists: community-edited list of general-purpose software for scientists.

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

Background

Abbreviations (mostly for journal titles, but other fields need to be considered as well) are required by a number of citation styles and the rules or vocabularies for these abbreviations can vary from style to style. Thus, in order to provide correct citations, citation style language should include a way to indicate which abbreviation format should be used per style.

Styles requiring abbreviations

@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@samnang
samnang / gist:1759336
Created February 7, 2012 11:52
Install Bash version 4 on MacOS X
# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar xzf bash-4.2.tar.gz
cd bash-4.2
./configure --prefix=/usr/local/bin && make && sudo make install
# Add the new shell to the list of legit shells