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/env python | |
from xml.sax import ContentHandler, make_parser | |
from collections import defaultdict | |
class HPCToolKitHandler(ContentHandler): | |
def __init__(self, f): | |
self.f = f | |
self.metrics = {} | |
self.files = {} |
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
import unittest | |
import numpy | |
from numpy.testing import * | |
set_package_path() | |
from transformation import * | |
restore_path() | |
class TestDeformationCreation(NumpyTestCase): | |
def test_1DCreation(self): |
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/env python | |
def simulate_annuity(amount, annuity, month_mean_interest, month_scale_interest): | |
import numpy as np | |
months = [] | |
while amount > 0: | |
months.append(amount) | |
if month_scale_interest: |
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 "parallelpropertybroadcaster.h" | |
#include <iostream> | |
#include <cstdlib> | |
#include <unistd.h> | |
#include <fcntl.h> |
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
// You need to setup memory, how the parameter is updated | |
// you need to setup max_interval_process, the number of samples before the next update | |
class ProcessingClass | |
{ | |
double parameter_target; | |
double parameter_current; | |
int64_t interval_process; | |
public: |
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
# Almost copied entirely from http://www.clemens-sielaff.com/creating-your-own-python-3-redistributable-on-windows/ | |
import os, sys | |
from glob import glob | |
from shutil import copy, copytree | |
RELEASE = 1 | |
DEBUG = 2 | |
def find_visual_studio(): |
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
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="/static/main.css?lang=fr"> | |
</head> | |
<body> | |
<center><div id="map-canvas" style="width:70%;height:500px"></div></center> | |
<script src="/static/map.js?lang=fr" type="text/javascript"></script> | |
<script type="text/javascript"> |
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
import numpy as np | |
from scipy.signal import freqs | |
import matplotlib.pyplot as plt | |
c = 47.0e-9 | |
r1 = 2.2e3 | |
r2 = 100.0e3 | |
a1 = [1.] |
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
* | |
Vin Vin 0 AC 1 | |
* | |
* Put here your favorite amp model | |
Z3b 2 Vin Vout | |
R044 2 Vout 220k | |
* Gyrator | |
C034 2 3 0.027u |
OlderNewer