Skip to content

Instantly share code, notes, and snippets.

@nathanathan
nathanathan / README.md
Last active December 11, 2015 18:58
A version of the howdoi code search tool that runs in a webpage.
howdoi.js
---------
[Based on the shell script here.](https://github.com/gleitz/howdoi)
YQL is used for getting search results.
Stack overflow has an excellent api that provides the answer bodies.
<!doctype html>
<head>
<meta charset="utf-8">
<title>Widget</title>
<base target="_blank" />
</head>
<body>
<h3>Example Language Queries</h3>
<ul>
<li><a href="https://language-nathanathan.rhcloud.com/?q=%28%2B+1+2+%28%2B+3+4+5%29%29">(+ 1 2 (+ 3 4 5))</a></li>

Cordova Enhanced Media API for Android spec

Extends the Cordova Media API

Has ability to choose output encoding/format: If you ever want to upload recorded audio to the cloud, there is no browser support for 3gp AMR-NB. AAC might be better? What are the trade-offs?

Has pauseRecording method implemented by concatenating multiple audio files on stopRecording. Unfortunately, the Android MediaRecorder class does not support just pausing the recording

I wrote this before I found out about bounty source, so nevermind.

Open Source Bounties

Open Source Bounties is a site where users can post open-source software programming tasks and offer money for their completion. It differs from outsourcing sites like freelancer.com in that it would be based on crowd funding where multiple people add to the the bounty for a particular project (being open source, projects may benefit many people). It would be a bit like Kickstarter except that anyone could complete a project and claim the bounty rather than only the project poster.

Feature ideas

Adding a prompt that gives the option to launch a subform:

type name label
launch_subform [subform_name] ? Press the button below to fill out the initial visit form.

Adding a prompt that shows all the subforms created so far, and gives the options to add/remove them.

type name label
@nathanathan
nathanathan / FavoriteBashCommands.md
Last active December 18, 2015 10:39
This is a list of random shell commands that solved problems for me.

Show processes and sub-processes in a tree:

pstree

Restart networking stuff in Ubuntu:

sudo /etc/init.d/networking restart
@nathanathan
nathanathan / FastieEmissionAbsorbtion.js
Last active December 28, 2015 07:18 — forked from jywarren/smooth.js
Implementation of Fastie's macro for identifying emission or absorption lines. see: https://github.com/jywarren/spectral-workbench/issues/184
//Implementation of Fastie's macro for identifying emission or absorption lines
//see: https://github.com/jywarren/spectral-workbench/issues/184
/*
Description:
To objectively determine the wavelengths of emission or absorption lines,
you have to separate signal from noise in a graph of wavelength intensities.
Especially when looking for peaks or valleys that disrupt a continuous (black body radiation) spectrum,
the low frequency (maybe > 20 nm) information becomes noise.
To eliminate it, fit a cubic spline or other easily adjustable curve to each color channel separately.
Compute the deviations of each channel from its curve and average the three new curves into a single curve,