git config --global user.email "john_doe@example.com"
git config --global user.name "John Doe"
This file contains 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
<?php | |
header("Content-Type: text/html; charset=utf-8"); | |
function display_filesize($filesize) { | |
if (is_numeric($filesize)) { | |
$decr = 1024; | |
$step = 0; | |
$prefix = array('Byte','KB','MB','GB','TB','PB'); |
Due to Alan Stern [1].
[1] | http://marc.info/?l=linux-usb&m=121459435621262&w=2 |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Execute a child program in a new process""" | |
import os | |
import subprocess | |
def exec_binary(cmd_line_list, cwd=None, stdout=None, stderr=None, verbose=False): | |
"""Invoke an executable file. |
This file contains 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
/** | |
* Compute the (Moore-Penrose) pseudo-inverse of a libgsl matrix in plain C. | |
* | |
* Compile uding: | |
* | |
* gcc moore_penrose_pseudoinverse.c -lgsl -lblas | |
* | |
* Dependencies: | |
* - libgsl (GNU Scientific Library) | |
* - libblas (Basic Linear Algebra Subprograms) |
I initially had some problems installing on my laptop, so decided to boot Ubuntu 12.04.5 LTS, 3.13.0-32-generic from USB and work from there.
For an automated installation script, see gpib_install.sh (and gpib.conf) below. The rest of this document describes the actions of the installation script step-by-step.
First, get the packages that are necessary to support Python bindings:
Uses backward Euler integration (maxord=1
option), which can be very slow.
Set maximum iteration counts: DC iteration count limit (itl1
, default: 100), DC transfer curve iteration count limit (itl2
, default: 50), and transient analysis time point iteration count limit (itl4
, default: 10) [ltwiki]_.
.OPTIONS maxord=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer