This file contains hidden or 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
# Enter this into URL: | |
data:text/html,<h1 id="welcome">Hello, World!</h1><form>Name: <input type="text" id="name" required><br>Notes: <input type="text" id="notes"><input type="submit" id="submit_form"></form> | |
# Modified: | |
data:text/html,<h1 id="welcome">Hello, World!</h1><form>Name: <input type="text" id="name" required><br>Notes: <input type="text" id="notes"><input type="submit" id="new_submit"></form> |
This file contains hidden or 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' | |
require 'smarter_csv' | |
require 'bigdecimal' # using BigDecimal instead of Float | |
require 'bigdecimal/util' | |
# modify these variables | |
filename = "new_statement_detail_Yorck_Eysel_10942_Q12014.txt" # put the real path to your .txt file here | |
rows_per_chunk = 10000 # processes this many rows in each "chunk" | |
name_of_column = "Label Share Net Receipts" | |
number_format = "EU" # set this to "EU" or "US" |
NewerOlder