Skip to content

Instantly share code, notes, and snippets.

View quangbuule's full-sized avatar

Buu Le quangbuule

  • Atlassian
  • Australia
View GitHub Profile
@quangbuule
quangbuule / main.js
Created August 15, 2017 01:26
Headless Chrome window size issue
const path = require('path');
const fs = require('fs');
const CDP = require('chrome-remote-interface');
function loadPage(client, url) {
const { Page } = client;
return Page.navigate({ url })
.then(Page.loadEventFired());
}
@quangbuule
quangbuule / 0_reuse_code.js
Created May 6, 2016 09:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
import when from 'store-util/when';
import { Spinner, Campaign } from 'components';
[...]
render() {
var campaign = this.state.campaign;
return (
<div>