Skip to content

Instantly share code, notes, and snippets.

@nathanathan
nathanathan / FavoriteBashCommands.md
Last active Dec 18, 2015
This is a list of random shell commands that solved problems for me.
View FavoriteBashCommands.md

Show processes and sub-processes in a tree:

pstree

Restart networking stuff in Ubuntu:

sudo /etc/init.d/networking restart
View SubformSpec.md

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
View OpenSourceBounties.md

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

View Cordova Enhanced Media.md

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

View index.html
<!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>
@nathanathan
nathanathan / README.md
Last active Dec 11, 2015
A version of the howdoi code search tool that runs in a webpage.
View README.md
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.
@nathanathan
nathanathan / index.html
Last active Dec 11, 2015
Ajax request example
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
</style>
<body>
@nathanathan
nathanathan / languageNode.json
Created Dec 19, 2012
recent queries language node
View languageNode.json
{
"category": "main",
"components": [
"recent queries"
]
}