Skip to content

Instantly share code, notes, and snippets.

/*
* Simple hash map using javascript objects and an ordered array.
* Repeated elements are not allowed.
*
* @param sort_method By default is ASC order, but you can specified whatever you want.
*
* The public methods are:
* -set
* -get
* -del

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@alixaxel
alixaxel / requirements.tsv
Last active August 29, 2015 14:02
Requirements Metadata for Compliance Chimp
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 4 columns, instead of 1. in line 1.
Requirement Priority SAQ Bitmask Validation
----------------------------------------------------------
1.1 6 000000011 N
1.1.1.a 6 000000011 C
1.1.1.b 6 000000011 N
1.1.1.c 6 000000011 N
1.1.2.a 1 000010011 Y
1.1.2.b 1 000010011 Y
1.1.3 1 000000011 C
1.1.4.a 2 010010011 N
var alphabet = 'ABCDEFGHJKMNPQRVWXY0123456789';
var base = alphabet.length;
function calculate_tt(lat, lon) {
lat += 90.0;
lon += 180.0;
lat *= 10000.0;
lon *= 10000.0;

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@alixaxel
alixaxel / damm.php
Last active August 29, 2015 14:04
Damm Algorithm
<?php
function Damm($string, $encode = true)
{
if ($encode > 0)
{
$encode += 1;
$string = str_split($string, 1);
$matrix = array_chunk(str_split('0317598642709215486342068713591750983426612304597836742095815869720134894536201794386172052581436790', 1), 10);

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment

\b
(?:
https?://
(?:[^.]+[.])?
)?
(?:
amazon[.][^/]+/
(?:
(?:[^/]+/)?dp/
|
  1. General Background and Overview

Easy handle interface

Options

Info