This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use the scratch environment | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.ticker as ticker | |
import scipy as sp | |
# create figure and axes | |
fig = plt.figure(figsize=(8,6)) | |
ax = fig.add_subplot(1, 1, 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Author: Jean-Philippe Fleury | |
Copyright (C) 2011 Jean-Philippe Fleury <[email protected]> | |
Author: Zelphir Kaltstahl (improvements: | |
* mapping some styles to their own specific style in a gtksourceview style xml | |
* adding math block and inline supprt | |
* removing bias towards space and allowing tabs and changing some amounts to | |
arbitrary amounts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copyright (C) 2009 tm2gtksw2(Alexandre da Silva) | |
Author: Zelphir Kaltstahl (improvements: | |
* added markdown specific styles) | |
Copyright (c) 2016 Zelphir Kaltstahl <[email protected]> | |
This file was generated from a textmate theme named Tomorrow Night - Eighties | |
with tm2gtksw2 tool. (Alexandre da Silva) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Author: Paolo Borelli <[email protected]> | |
Copyright (C) 2006-2007 Paolo Borelli | |
Author: Zelphir Kaltstahl <[email protected]> | |
* further development | |
* corrections in regular expressions | |
* addition of functions and keywords | |
* simplification of keywords with regeular expressions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\[\033[38;5;78m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;203m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;74m\]\w\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]" | |
# simple | |
export PS1="[\[$(tput sgr0)\]\[\033[38;5;194m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\]]:[\[$(tput sgr0)\]\[\033[38;5;111m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]]: \[$(tput sgr0)\]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet def define procedure | |
define (${1:name} ${2:params}) | |
(${3:code}) | |
snippet define define procedure | |
define (${1:name} ${2:params}) | |
(${3:code}) | |
snippet defn define procedure | |
define (${1:name} ${2:params}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" automatically install vim-plug if git is available | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall | source $MYVIMRC | |
endif | |
call plug#begin('~/.vim/plugged') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% BETTER ERROR MESSAGES | |
\errorcontextlines 10000 | |
% DOCUMENT ATTRIBUTES | |
\documentclass[11pt, a4paper, parskip=full, openany, twoside]{book} | |
% 12pt : main font size | |
% a4paper : paper format | |
% parskip=full : ??? | |
% openany : no need for an additional (second) pagebreak after a chapter to move new chapters always to the right page | |
\usepackage[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% BETTER ERROR MESSAGES | |
\errorcontextlines 10000 | |
% DOCUMENT ATTRIBUTES | |
\documentclass[11pt, a4paper, parskip=full, openany, twoside]{book} | |
% 12pt : main font size | |
% a4paper : paper format | |
% parskip=full : ??? | |
% openany : no need for an additional (second) pagebreak after a chapter to move new chapters always to the right page | |
\usepackage[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define (Mb-to-B n) (* n 1024 1024)) | |
(define MAX-BYTES (Mb-to-B 64)) | |
(custodian-limit-memory (current-custodian) MAX-BYTES) | |
(define nil (list)) | |
(define (string-multiplier a-string factor) | |
(cond |
OlderNewer