Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
let output_command channel cmd = output_string channel (cmd ^ "\n") | |
let do_ssh_hostname () = | |
let oc_in, oc_out = Unix.open_process "ssh -T hostname" in | |
output_command oc_out "hostname"; | |
flush oc_out; | |
try | |
Printf.printf "%s\n" (input_line oc_in) | |
with | |
End_of_file -> (); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:9221e598320abd5d421920f5f48638d6bb36f9a03f5f437d516a11ccd5476f17" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"""Tools for working with Gaussian grids.""" | |
from __future__ import (absolute_import, division, print_function) | |
import functools | |
import numpy as np | |
import numpy.linalg as la | |
from numpy.polynomial.legendre import legcompanion, legder, legval | |
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
#include <stdio.h> | |
#include <udunits2.h> | |
int main(int argc, char *argv[]) | |
{ | |
ut_system* unitSystem = ut_read_xml(NULL); | |
ut_unit *unit0, *unit1, *unit2; | |
char unit0_str[128], unit1_str[128], unit2_str[128]; | |
unsigned format_opts = UT_ASCII; |
NewerOlder