This file contains hidden or 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 flickr_api | |
import os | |
import random | |
import sys | |
from fractions import Fraction | |
import piexif | |
import piexif.helper | |
from iptcinfo import IPTCInfo | |
import urllib2 | |
import argparse |
This file contains hidden or 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
# Demonstrate data download from Emfit API | |
# Config | |
remember_token="XXXXXXXX" # token returned from API login | |
device_id=666 # Your own device id number | |
from_date = "2017-01-01" | |
to_date = "2017-01-14" | |
# End of config |
This file contains hidden or 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
#ifdef OLD_HEADER_FILENAME | |
#include <iostream.h> | |
#else | |
#include <iostream> | |
#endif | |
#include <string> | |
#include <vector> | |
#ifndef H5_NO_NAMESPACE | |
#ifndef H5_NO_STD |
This file contains hidden or 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
# Plot line per line, can be used as a serial plotter | |
import matplotlib.pyplot as plt | |
import numpy | |
import time | |
import math | |
import random | |
class OnlinePlotter: |
This file contains hidden or 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
/* | |
HB100 Microwave Doppler data analysis and display of max and current speed. | |
*/ | |
#include <LiquidCrystal.h> | |
int FoutPin = 13; | |
int resetPin = 12; |
This file contains hidden or 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
## Determine speed from frequency output of HB100 module | |
# Input file is logged with NI Datalogger | |
import sys | |
import numpy as np | |
from matplotlib import pyplot | |
from matplotlib.mlab import find | |
def speedFromTV(t, v): | |
# t = time array / list |
This file contains hidden or 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
%% According to the http://sound.eti.pg.gda.pl/papers/prediction_of_reverberation_time.pdf, eq. 20 | |
l = 5; % room length | |
w = 8; % room width | |
h = 5.5; % room height | |
alpha_w1 = 0.01; % absorption coeff for wall 1 | |
alpha_w2 = 0.01; % absorption coeff for wall 2 .. more to follow | |
alpha_c = 0.3; % absorption coeff for ceiling |
This file contains hidden or 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
function onOpen() { | |
// create menu entry for starting calFetch script | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var menuEntries = [{name: "Get calendar entries", functionName: "calFetch"}]; | |
ss.addMenu("Calendar", menuEntries); | |
} | |
function calFetch() { | |
// get calendar entries and show them and total times |
This file contains hidden or 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
# run in paraview programmable source | |
import math | |
pdo = self.GetOutput() | |
myPts = vtk.vtkPoints() | |
myData = vtk.vtkDoubleArray() | |
myData.SetName("MyData") | |
myData.SetNumberOfComponents(2) |
This file contains hidden or 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
/* | |
* File: main.cpp | |
* Author: vanne | |
* | |
* Created on December 22, 2010, 10:00 PM | |
*/ | |
#include <cstdlib> | |
#include <iostream> | |
#include <vector> |
NewerOlder