This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
#RESULTS - 100k iterations | |
# user system total real | |
# 0.590000 0.000000 0.590000 ( 0.594802) <- create_id_num - int to radix | |
# 0.270000 0.000000 0.270000 ( 0.267420) <- create_id_str - choosing random characters | |
@radix = ('0'..'9').to_a + ('a'..'z').to_a + ['$','-','_','+','!','*','(',')',','] #URL safe, lowercase characters | |
def self.custom_radix_to_s val, digits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"terminal.integrated.shellArgs.linux": [ //login shell | |
"--login" | |
], | |
"files.associations": { | |
"*.html.md.erb": "markdown", #Middleman | |
// "*.jsx": "javascript" | |
} | |
} |
OlderNewer