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 boto.mturk.connection | |
| sandbox_host = 'mechanicalturk.sandbox.amazonaws.com' | |
| real_host = 'mechanicalturk.amazonaws.com' | |
| mturk = boto.mturk.connection.MTurkConnection( | |
| aws_access_key_id = 'XXX', | |
| aws_secret_access_key = 'XXX', | |
| host = sandbox_host, | |
| debug = 1 # debug = 2 prints out all requests. but we'll just keep it at 1 |
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
| #!/usr/bin/python | |
| """ | |
| Author: Jeremy M. Stober | |
| Program: GP.PY | |
| Date: Thursday, July 17 2008 | |
| Description: Example of Gaussian Process Regression. | |
| """ | |
| from numpy import * | |
| import pylab |
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
| #include <immintrin.h> | |
| #include <intrin.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| union Mat44 { | |
| float m[4][4]; | |
| __m128 row[4]; | |
| }; |
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
| #include <cstring> | |
| #include <numeric> | |
| #include <functional> | |
| /** | |
| * Hackers Delight: http://www.hackersdelight.org/HDcode/nlz.c.txt | |
| */ | |
| int pop(unsigned x) { | |
| x = x - ((x >> 1) & 0x55555555); | |
| x = (x & 0x33333333) + ((x >> 2) & 0x33333333); |
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
| #!/bin/bash | |
| # A simple test script to demonstrate how to find the | |
| # "absolute path" at which a script is running. Used | |
| # to avoid some of the pitfals of using 'pwd' or hard- | |
| # coded paths when running scripts from cron or another | |
| # directory. | |
| # | |
| # Try it out: | |
| # run the script from the current directory, then |
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
| """ | |
| Measure the distance between two microphones based on the delay of a | |
| clap from a point that is collinear with the two microphones. | |
| Make sure your signal isn't clipping. | |
| First test: | |
| 2 electrets 26 cm apart, hand clap | |
| Distance: -25.72 cm | |
| Sub-sample distance: -26.02 cm |
NewerOlder