I hereby claim:
- I am longman on github.
- I am alxgsv (https://keybase.io/alxgsv) on keybase.
- I have a public key ASCD7HxHBziLmGPwsH2Cvyp8y6EK8lWL3Lw12qWOcJOm8go
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am alxgsv on github. | |
| * I am alxgsv (https://keybase.io/alxgsv) on keybase. | |
| * I have a public key ASB1vhP5bShQR8cC3pbIrxcoqgiHnhSNKYeq4aYG2SNotgo | |
| To claim this, I am signing this object: |
| import os | |
| import re | |
| import sys | |
| from collections import Counter | |
| import emoji | |
| def is_emoji(s): | |
| return s in UNICODE_EMOJI | |
| def extract_emojis(s): |
| $ ruby test.rb | |
| 40.268058 | |
| 0.046918 |
I hereby claim:
To claim this, I am signing this object:
| function bytes2string(bytes) { | |
| var ix = 0; | |
| if( bytes.slice(0,3) == [239, 187, 191]) { | |
| ix = 3; | |
| } | |
| var string = ""; | |
| for( ; ix < bytes.length; ix++ ) { | |
| var byte1 = bytes[ix]; |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| require "rubygems" | |
| require "nokogiri" | |
| require "typograf" | |
| content = File.open(ARGV[0]).read.force_encoding("cp1251").encode('UTF-8') | |
| doc = Nokogiri::HTML(content) |
| #!/bin/bash | |
| # | |
| # Watch current directory (recursively) for file changes, and execute | |
| # a command when a file or directory is created, modified or deleted. | |
| # | |
| # Written by: Senko Rasic <senko.rasic@dobarkod.hr> | |
| # | |
| # Requires Linux, bash and inotifywait (from inotify-tools package). | |
| # | |
| # To avoid executing the command multiple times when a sequence of |