I googled around, especially with site:news.ycombinator.com
for backup recommendations.
Here are notes on the top hits.
- by prolific HN member; focus on encryption and deduplication
I googled around, especially with site:news.ycombinator.com
for backup recommendations.
Here are notes on the top hits.
// analog-plot | |
// | |
// Read analog values from A0 and A1 and print them to serial port. | |
// | |
// electronut.in | |
#include "Arduino.h" | |
void setup() | |
{ |
################################################################################ | |
# showdata.py | |
# | |
# Display analog data from Arduino using Python (matplotlib) | |
# | |
# electronut.in | |
# | |
################################################################################ | |
import sys, serial |
import email | |
def get_decoded_email_body(message_body): | |
""" Decode email body. | |
Detect character set if the header is not set. | |
We try to get text/plain, but if there is not one then fallback to text/html. | |
:param message_body: Raw 7-bit message body input e.g. from imaplib. Double encoded in quoted-printable and latin-1 |
This script processes VIIRS Nighttime Lights 2012 GeoTIFFs from the Earth Observation Group at NOAA National Geophysical Data Center to prepare them for rendering in TileMill and uploading to MapBox Hosting.
Read Lights of the Night on MapBox to learn more about NPP the functions of this script.
<!DOCTYPE> | |
<html> | |
<head> | |
<title>Dissecting Gmail's Email Attachments - Dropping Files</title> | |
<style> | |
.msg { | |
display: none | |
} | |
.dragging .msg { |
import numpy as np | |
def euler_rot(XYZ,phi,theta,psi): | |
'''Returns the points XYZ rotated by the given euler angles''' | |
ERot = np.array([[np.cos(theta)*np.cos(psi), | |
-np.cos(phi)*np.sin(psi) + np.sin(phi)*np.sin(theta)*np.cos(psi), | |
np.sin(phi)*np.sin(psi) + np.cos(phi)*np.sin(theta)*np.cos(psi)], | |
[np.cos(theta)*np.sin(psi), | |
np.cos(phi)*np.cos(psi) + np.sin(phi)*np.sin(theta)*np.sin(psi), |
#!/usr/bin/env bash | |
# | |
# Wrapper around gmvault binary that sets default options. | |
GMVAULT_DIR="$HOME/Dropbox/Applications/Utilities/gmvault-v1.7-beta/bin/" | |
DB_DIR="$HOME/Dropbox/.gmvault-db" | |
# Run in a sub-shell since we need to change directories: | |
( | |
cd $GMVAULT_DIR |
#!/bin/bash | |
function addnext { | |
NUM=$1 | |
sleep 1 | |
echo HI $NUM | |
NUM=$(expr $NUM + 1) | |
echo addnext $NUM >> $0 | |
} |
Since password managers are big and complicated and I currently am pretty bored since I am sitting in a car for a few hours, here is a simple algorithm to generate resource-specific, unique passwords using a master password and no password database.
As pointed out here: http://news.ycombinator.com/item?id=4374888 this method is broken.