A ZSH theme optimized for people who use:
- Solarized
- Git
Adapted to work without powerline fonts from https://gist.github.com/agnoster/3712874 .
/* | |
Resolves a relative url | |
@param url Url to resolve | |
@param base Optional. Base url to use. | |
@param isDir Optional. If set to true, will return a directory name ending with a slash. | |
*/ | |
var resolve = function(url, base, isDir){ | |
var resolveWithBase = false; | |
var baseUrl, oldBase, newBase; |
/* | |
Loads external javascript files. | |
@param url Url(s) of script(s) to load. | |
@param callback Optional. Callback of script to load. | |
@param scope Optional. Scope of callback. | |
@param preLoadHack Optional. Function to call before loading a specific file. | |
*/ | |
var loadExternalJS = function(url, callback, scope, preLoadHack){ | |
var TIMEOUT_CONST = 15000; //timeout for bad links |
#!/usr/bin/env ipython | |
# | |
# Plots X/Y/T Data from a csv file | |
# (c) Tom Wiesing 2014 | |
# | |
from numpy import * | |
from scipy import * | |
from pylab import * |
Options -Indexes | |
RewriteEngine on | |
# Add Slashes | |
RewriteCond %{REQUEST_URI} !(/$|\.) | |
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] | |
# Force a domain - optional | |
# RewriteCond %{HTTP_HOST} . |
import numpy as np | |
# matrix-aware division | |
def mdiv(x, y): | |
# everything is float | |
x = 1.0*x | |
y = 1.0*y | |
# if y is a matrix, do matrix division |
#!/usr/bin/env python | |
""" | |
A script that makes sure that all github remotes are ssh. | |
Copyright (c) 2014 Tom Wiesing | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
A ZSH theme optimized for people who use:
Adapted to work without powerline fonts from https://gist.github.com/agnoster/3712874 .
class CaseClass(object): | |
""" | |
Class that implements all CaseClass methods. | |
""" | |
def __init__(self, *cargs, **kcwargs): | |
""" | |
Initialises case class parameters | |
""" |
I hereby claim:
To claim this, I am signing this object:
import re | |
def translatePath(pth, x, y): | |
is_x = True | |
def replacer(c): | |
nonlocal is_x | |
s = c.group() | |
print(is_x) |