Skip to content

Instantly share code, notes, and snippets.

View bidiu's full-sized avatar

Henry bidiu

  • Archon Systems Inc.
  • Toronto, ON
  • 14:45 (UTC -04:00)
View GitHub Profile
const path = require('path');
const fs = require('fs');
const readline = require('readline');
const ROOT = './src/app/assets/css';
const FILE_NAME = 'styles.css';
const EXCLUDES = [
'bloomberg', 'example_dark', 'merrilledge_blue', 'merrilledge_dark', 'merrilledge_light', 'trademonster_dark', 'schwab_dark'
];
const NEW_LINE = '\n';
const fs = require('fs');
const readline = require('readline');
const FILE_PATH = './src/app/assets/css/phillip/styles.css';
const OUTPUT_PATH = './src/app/assets/css/phillip/styles.css';
const NEW_LINE = '\n';
const lineReader = readline.createInterface({
input: fs.createReadStream(FILE_PATH)
});
@bidiu
bidiu / introrx.md
Created May 18, 2017 20:39 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@bidiu
bidiu / full-page-screenshots-selenium-chrome.rb
Created March 2, 2017 02:39 — forked from elcamino/full-page-screenshots-selenium-chrome.rb
How to take full-page screenshots with Selenium and Google Chrome in Ruby
#!/usr/bin/env ruby
require 'selenium-webdriver'
wd = Selenium::WebDriver.for :remote, url: 'http://10.3.1.7:4444/wd/hub', desired_capabilities: :chrome
wd.navigate.to 'https://snipt.net/restrada/python-selenium-workaround-for-full-page-screenshot-using-chromedriver-2x/'
# Get the actual page dimensions using javascript
#
width = wd.execute_script("return Math.max(document.body.scrollWidth, document.body.offsetWidth, document.documentElement.clientWidth, document.documentElement.scrollWidth, document.documentElement.offsetWidth);")