Skip to content

Instantly share code, notes, and snippets.

@bennygit
bennygit / 0_reuse_code.js
Created April 18, 2016 08:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@bennygit
bennygit / read file.sh
Created March 13, 2014 07:21
bash read vom $temp file
while read line; do
echo "$line" >> ${EXTE}
done < "$TEMP"
@bennygit
bennygit / synctex vim qpdfview
Created February 13, 2014 16:29
synctex vim qpdfview
# qpdfview synctex vim synchronization
# for qpdfview
vim --servername LATEX --remote-silent +%2<Enter> %1
# for alias in .bashrc
alias vimtex='vim --servername LATEX'
@bennygit
bennygit / rootdocs.sh
Last active December 19, 2015 20:09 — forked from alexpearce/rootdocs.sh
Open Root class docu from command line.
#!/bin/bash
function bail {
echo You did not enter a valid ROOT class $1
exit 1
}
if [ -n "$1" ]; then
if [ `expr match $1 T` == 1 ]; then
status_code=`curl -o /dev/null -sIw "%{http_code}" http://root.cern.ch/root/html/$1.html`