Skip to content

Instantly share code, notes, and snippets.

View hsigrist's full-sized avatar
👽
Cofusing

Hans Sigrist hsigrist

👽
Cofusing
View GitHub Profile
<snippet>
<content><![CDATA[
%!TEX program = xelatex
% ${1:filename}.tex--beamer+hytex class
% dblink--dropbox link
% Prof. Hans Sigrist--${2:date}, ${3:time}.
%______________________________________________________________________________
% GNU Free Documentation License
% Copyright (c) 2014 Hans Sigrist
% Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License".THER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@hsigrist
hsigrist / rake gen_deploy.sublime-snippet
Created July 19, 2014 01:42
rake genenerate deploy
<snippet>
<content><![CDATA[
rake gen_deploy
]]></content>
<tabTrigger>rgd</tabTrigger>
<scope>source.shell</scope>
<description>rake gen_deploy promt</description>
</snippet>
<snippet>
<content><![CDATA[
rake new_post["${1:title}"]
]]></content>
<tabTrigger>rnp</tabTrigger>
</snippet>
<snippet>
<content><![CDATA[
%!TEX program = xelatex
% ${1:filename}.tex--memoir+kjh class
% dblink--dropbox link
% Prof. Hans Sigrist--${2:date}, ${3:time}.
%______________________________________________________________________________
% GNU Free Documentation License
% Copyright (c) 2014 Hans Sigrist
% Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License".THER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<snippet>
<content><![CDATA[Non eram nescius, Brute, cum, quae summis ingeniis exquisitaque doctrina philosophi Graeco sermone tractavissent, ea Latinis litteris mandaremus, fore ut hic noster labor in varias reprehensiones incurreret. nam quibusdam, et iis quidem non admodum indoctis, totum hoc displicet philosophari. quidam autem non tam id reprehendunt, si remissius agatur, sed tantum studium tamque multam operam ponendam in eo non arbitrantur. erunt etiam, et ii quidem eruditi Graecis litteris, contemnentes Latinas, qui se dicant in Graecis legendis operam malle consumere. postremo aliquos futuros suspicor, qui me ad alias litteras vocent, genus hoc scribendi, etsi sit elegans, personae tamen et dignitatis esse negent.]]></content>
<tabTrigger>finibus</tabTrigger>
<description>De finibus bonorum et malorum</description>>
</snippet>
<snippet>
<content><![CDATA[
%!TEX program = xelatex
% ${1:filename}.tex--exam class
% dblink--pdf dropbox link
% Prof. Hans Sigrist--${2:date}, ${3:time}.
%______________________________________________________________________________
% GNU Free Documentation License
% Copyright (c) 2014 Hans Sigrist
% Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License".THER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@hsigrist
hsigrist / add_date.py
Created July 19, 2014 01:40
add date time
import datetime, getpass
import sublime, sublime_plugin
class AddDateCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command("insert_snippet", { "contents": "%s" % datetime.date.today().strftime("%d %B %Y (%A)") } )
class AddTimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command("insert_snippet", { "contents": "%s" % datetime.datetime.now().strftime("%H:%M") } )
% ************************************************************************* %
% ******** HYTEX 7.1 ******** %
% ******** By Rob Hyndman ******** %
% ************************************************************************* %
% %
% This style file contains some additions to the LaTeX document styles. %
% It is intended to be used with one of the common LaTeX classes such as %
% article, report, book or letter. %
% %
% Any suggestions, bugs, complaints or donations should be addressed to %
@hsigrist
hsigrist / beamerthemeHytex.sty
Created July 19, 2014 01:39
beamerthemehytex
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeHytex.sty,v 1.0 2005/12/08 08:00:00 hyndman Exp $
\mode<presentation>
\newif\ifbeamer@secheader
\beamer@secheaderfalse
\DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
\ProcessOptionsBeamer
@hsigrist
hsigrist / beamerouterthemehytex.sty
Created July 19, 2014 01:39
beamerouterthemehytex
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/outer/beamerouterthemehytex.sty,v 1.0 2005/12/08 09:48:48 tantau Exp $
% Modified from smoothtree.sty
\mode<presentation>
\setbeamercolor{frametitle}{parent=palette primary}
\AtBeginDocument{
{