Skip to content

Instantly share code, notes, and snippets.

View gist:9684155
#!/bin/bash
set -x
case $1 in
setup)
echo SETUP
rm -rf .gnome2 .cache .config
mkdir -p ~/.gnome2/keyrings/
echo default >~/.gnome2/keyrings/default
View gist:0dd80e12870366d5f51f
!config
# Pull bibliography from zotero as part of build
# author: Emiliano Heyns
# last edited by: eeh, Dec 2nd 2013
# requires arara 3.0+
#
# Sample usage
#
# % arara: zoterobib
# % arara: zoterobib: {format: biblatex}
View gist:7b2d4351d4aa12595ffc
% Better BibLaTeX: generated
@article{deOliveira2010,
doi = {10.1016/j.jct.2010.06.007},
issn = {00219614},
pages = {1379-1385},
title = {{(Liquid+liquid) equilibrium of \{water+phenol+(1-butanol, or 2-butanol, or tert-butanol)\} systems}},
url = {http://linkinghub.elsevier.com/retrieve/pii/S0021961410002107},
View gist:fd068f9775db755a3f98
// http://journal-abbreviations.library.ubc.ca/dump.php
// http://www.ncbi.nlm.nih.gov/books/NBK3827/table/pubmedhelp.pubmedhelptable45/
// http://jabref.sourceforge.net/journals/journal_abbreviations_general.txt
// http://jabref.sourceforge.net/journals/journal_abbreviations_ams.txt
// https://github.com/timstaley/jabref-astro-abbreviations
// https://raw.github.com/jrnold/jabref-econ-journal-abbrevs/master/aea-abbrevs.txt
// http://jabref.sourceforge.net/journals/journal_abbreviations_entrez.txt
// http://jabref.sourceforge.net/journals/journal_abbreviations_ieee.txt
// http://jabref.sourceforge.net/journals/journal_abbreviations_medicus.txt
// http://people.su.se/~alau4517/jabref.wos.txt
View Install error
npm http 200 https://registry.npmjs.org/readable-stream
npm ERR! Error: ENOENT, open 'C:\Users\emile\AppData\Local\Temp\apm-install-dir-115011-9052-1bo25ex\node_modules\markdown-preview-plus\node_modules\pathwatcher\node_modules\iconv-lite\encodings\tables\cp936.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Users\\emile\\AppData\\Local\\atom\\app-0.165.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\emile\\AppData\\Local\\atom\\app-0.165.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\emile\\AppData\\Local\\atom\\app-0.165.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\emile\\.atom\\.apmrc" "install" "C:\\Users\\emile\\AppData\\Local\\Temp\\d-115011-9052-7nqrc7\\package.t
View gist:71bac09c0cbd468e94e6
1431369104553 addons.manager WARN Exception calling callback: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIZipReader.getInputStream]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: chrome://zotero/content/xpcom/schema.js :: _updateBundledFilesCallback :: line 596" data: no] Stack trace: _updateBundledFilesCallback()@schema.js:596 < _updateBundledFilesCallback()@schema.js:509 < Zotero.Schema</this.updateBundledFiles/</<()@schema.js:469 < safeCall()@resource://gre/modules/AddonManager.jsm:173 < getAddonByID_safeCall()@resource://gre/modules/AddonManager.jsm:2015 < getAddonByID_getVisibleAddonForID()@resource://gre/modules/addons/XPIProvider.jsm:3815 < makeSafe/<()@resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:145 < completeAddon()@resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:134 < getAddon()@resource://gre
@retorquere
retorquere / gist:540afe23e704b0bd301f
Created Jul 17, 2015
Trying to get that backslash
View gist:540afe23e704b0bd301f
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@online{zotero-1855286-1414,
title = {Faster \symbol{`\\} unfolding{} of communities: speeding up the Louvain algorithm},
url = {http://www.patanalyse.com/sample-analysis.html}
}
\end{filecontents*}
View startup log
(process:14150): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Failed to load the Python module: '/usr/lib/komodo-edit/mozilla/components/koFinder.py'
Traceback (most recent call last):
File "/usr/lib/komodo-edit/mozilla/python/xpcom/server/loader.py", line 13
View MWE.tex
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@online{zotero-1855286-1414,
title = {Patent Landscape analysis: sample from {S}40RTS},
url = {http://www.patanalyse.com/sample-analysis.html},
timestamp = {2014-10-18 17:04:22},
urldate = {2014-10-18},
file = {Patent Landscape analysis\: sample from PatAnalyse:/Users/jeff/Zotero_data/storage/AQRPC353/sample-analysis.html:text/html}
View gist:229853
jQuery("#treegrid2").jqGrid({
treeGrid: true,
treeGridModel : 'adjacency',
ExpandColumn : 'name',
datatype: "local",
mtype: "POST",
colNames: ["id","Account","Acc Num", "Debit", "Credit","Balance"],
colModel:[
{name:'id',index:'id', width:1,hidden:true,key:true},
{name:'name',index:'name', width:180},