Reference(s):
http://www.sourcegear.com/diffmerge/downloads.php - get the installer version, NOT the dmg version
| 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" |
| # 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> |
| require 'cucumber/formatter/io' | |
| module Cucumber | |
| module Formatter | |
| # The formatter used for <tt>--format rerun</tt> | |
| # | |
| # This formatter keeps track of all failing features and print out their location. | |
| # Example: | |
| # | |
| # features/foo.feature:34 features/bar.feature:11:76:81 |
| #!/bin/bash | |
| # Functions ============================================== | |
| # return 1 if global command line program installed, else 0 | |
| # example | |
| # echo "node: $(program_is_installed node)" | |
| function program_is_installed { | |
| # set to 1 initially | |
| local return_=1 |
| require 'parser/current' | |
| require 'unparser' | |
| require 'byebug' | |
| module YourHelper | |
| def s(type, *children) | |
| Parser::AST::Node.new(type, children) | |
| end | |
| end |
| bash: | |
| export AWS_ACCESS_KEY_ID='...' | |
| export AWS_SECRET_ACCESS_KEY='...' | |
| export AWS_REGION='us-east-1' | |
| irb or ruby script: | |
| require 'aws-sdk' | |
| s3 = AWS::S3.new |
Reference(s):
http://www.sourcegear.com/diffmerge/downloads.php - get the installer version, NOT the dmg version
| import {inject} from 'aurelia-framework'; | |
| import {Session} from './session'; | |
| @inject(Session) | |
| export class Auth { | |
| // App specific | |
| userPoolId = 'us-east-1_fgCWraBkF'; | |
| appClientId = '57lq262n28o7ddt8i36jcjj7qd'; |
| var url ='https://www.google.de/search?q=Yahoo+logo&source=lnms&tbm=isch&sa=X'; | |
| var page = new WebPage() | |
| var fs = require('fs'); | |
| var vWidth = 1080; | |
| var vHeight = 1920; | |
| page.viewportSize = { | |
| width: vWidth , | |
| height: vHeight |
| const fs = require('fs') | |
| const path = require('path') | |
| const rewriteFile = (file, value, replacement) => { | |
| const data = fs.readFileSync(file, 'utf-8') | |
| const replaced = data.replace(value, replacement) | |
| fs.writeFileSync(file, replaced, 'utf-8') | |
| } | |
| const rewriteMinifyJs = () => { |