As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| import nltk | |
| import sys | |
| from nltk.corpus import brown | |
| import random | |
| import re | |
| def only_tokens(paired_list): | |
| return [x[0] for x in paired_list] | |
| def clean(s): |
| function levenshtein(s1, s2) { | |
| // http://kevin.vanzonneveld.net | |
| // + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com) | |
| // + bugfixed by: Onno Marsman | |
| // + revised by: Andrea Giammarchi (http://webreflection.blogspot.com) | |
| // + reimplemented by: Brett Zamir (http://brett-zamir.me) | |
| // + reimplemented by: Alexander M Beedie | |
| // * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld'); | |
| // * returns 1: 3 |
| /* | |
| * Make RGB-Colors lighter / darker | |
| */ | |
| var color = function(c,n,i,d){for(i=3;i--;c[i]=d<0?0:d>255?255:d|0)d=c[i]+n;return c} | |
| /** | |
| * @param array RGB Colors | |
| * @param number Amount | |
| */ |
| #!/usr/bin/env ruby | |
| # | |
| # Convert blogger (blogspot) posts to jekyll posts | |
| # | |
| # Basic Usage | |
| # ----------- | |
| # | |
| # ./blogger_to_jekyll.rb feed_url | |
| # | |
| # where `feed_url` can have the following format: |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| /* | |
| * Normalized hide address bar for iOS & Android | |
| * (c) Scott Jehl, scottjehl.com | |
| * MIT License | |
| */ | |
| (function( win ){ | |
| var doc = win.document; | |
| // If there's a hash, or addEventListener is undefined, stop here | |
| if( !location.hash && win.addEventListener ){ |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/ | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| /* | |
| An implementation of the Bjorklund algorithm in JavaScript | |
| Inspired by the paper 'The Euclidean Algorithm Generates Traditional Musical Rhythms' | |
| by Godfried Toussaint | |
| This is a port of the original algorithm by E. Bjorklund which I | |
| found in the paper 'The Theory of Rep-Rate Pattern Generation in the SNS Timing Systems' by | |
| E. Bjorklund. |