Skip to content

Instantly share code, notes, and snippets.

npm install --save-dev gulp-postcss autoprefixer
window.history.back();
'use strict';
const Nightmare = require('nightmare');
const nightmare = new Nightmare();
// showにtrueをセットすると可視化されます。
// const nightmare = new Nightmare({show:true});
main();
@t-okushima
t-okushima / file0.txt
Last active November 11, 2018 09:58
Google ChromeがHeadlessで使える様なのでnode.jsから動かしてみる ref: http://qiita.com/t-okushima/items/1e9f736abcfc5ca47b6c
npm install chrome-launcher
npm install chrome-remote-interface
@t-okushima
t-okushima / file0.js
Last active January 19, 2019 12:26
util.promisify()でcallbackスタイルの関数をpromise化 ref: https://qiita.com/t-okushima/items/fbca67541003576997cc
'use strct';
const fs = require('fs');
const util = require('util');
const readFileAsync = util.promisify(fs.readFile);
const filePath = './test.txt';
async function promisifyTest() {
'use strict';
let util = require('util');
let aws = require('aws-sdk');
aws.config.loadFromPath('./config/credentials.json');
let dynamodb = new aws.DynamoDB({apiVersion: '2012-08-10'});
// 格納データ作成
let writeFuncs = new Array();
@t-okushima
t-okushima / file0.java
Created August 26, 2015 13:20
enumでコードの集まりを作ってみる ref: http://qiita.com/t-okushima/items/fb76b4ea28423b8c69ff
public static final int SAFARI = 10;
public static final int CHROME = 20;
public static final int FIREFOX = 30;
public static final int OTHER = 99;