Skip to content

Instantly share code, notes, and snippets.

@rahatarmanahmed
rahatarmanahmed / README.md
Created August 28, 2016 16:29
Imports Letterboxd scores into taste.io

Letterboxd -> Taste.io import script

This script imports your Letterboxd ratings into taste.io.

Usage

Too lazy to make this into an npm package so here's how you could use it. You'll need nodejs and npm.

  1. Save the script
  2. Run npm i through2 JSONStream got cookie x-ray in the script's directory
@coquer
coquer / validate_cpr.php
Last active March 14, 2020 11:35
Validate danish CPR using PHP
/**
* Internally validate CPR numbers
* CPR nummer skal udfyldes i rækkefølgen dag-måned-år. Er du f.eks.
* født 2. januar 1965, skal du skrive: 020165. Derudover skal du indtaste
* de sidste 4 cifre i dit cpr. nr. Du skal være fyldt 18 år for at oprette dig som kunde.
* Kontroller venligst oplysningerne en ekstra gang før du fortsætter til næste trin.
* @param $cpr
* @return bool
*/
function validate_cpr_number( $cpr ) {