(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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) | |
}); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/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);") |