Skip to content

Instantly share code, notes, and snippets.

function [rtable, nr, nl, nj] = routhtable (T)
% Lagar og analyserer Routh-Hurwitz tabell.
% Author: Gaute Hope <[email protected]>
% Created: 2010-04-16
%
% Usage: [rtable, nr, nl, nj] = routhtable (T)
%
% T = Symbolsk transferfunksjon
%
# -*- coding: utf-8
# This syncs/gets the latest photos from your flickr photostream and saves them in
# a Django model (FlickrPhoto)
# Gaute Hope <[email protected]> (c) 2010
# Licenced under Creative Commons v3.0
# http://creativecommons.org/licenses/by/3.0/
# this goes in models.py:
from django.db import models
@gauteh
gauteh / changeofplan.cpp
Created July 7, 2009 11:18
Detects change of ~/.plan
/*
* Copyright (c) 2009 Gaute Hope <[email protected]>
* Distributed under the terms of the GNU General Public Licence v2
*
* Waits for change of ~/.plan
*
*/
# include <iostream>
# include <sys/inotify.h>
@gauteh
gauteh / countcats.sh
Created May 24, 2009 14:03
Counts resulting categories for Exherbo repositories using the namingschemes; first two chars, last two chars and first and last char.
#! /bin/bash
# Copyright 2009 Gaute Hope <[email protected]>
# Distributed under the GNU General Public Licence v2
#
# Counts resulting categories for Exherbo repositories
# using the namingschemes; first two chars, last two chars
# and first and last char.
repos=$(paludis --list-repositories | tr -d '*\n')