Skip to content

Instantly share code, notes, and snippets.


Francis Kim franciskim

Block or report user

Report or block franciskim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View puppeteer-test.js
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
headless: false
const page = await browser.newPage();
await page.goto('');
await page.screenshot({path: 'example.png'});
View index.js
const YahooFinanceAPI = require('yahoo-finance-data')
// fill in Yahoo Finance API keys here
const api = new YahooFinanceAPI({
key: null,
secret: null
const talib = require('talib')
console.log("TALib Version: " + talib.version)
View melbourne-magento-devs.js
var Promise = require('bluebird');
var MongoDB = Promise.promisifyAll(require("mongodb"));
var MongoClient = Promise.promisifyAll(MongoDB.MongoClient);
var cheerio = require('cheerio');
var http = require('http');
var urls = [
franciskim / validateUrl.js
Last active Sep 20, 2015
Validate URL with JavaScript
View validateUrl.js
function validateUrl(value)
var expression = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi
var regexp = new RegExp(expression);
return regexp.test(value);
franciskim / slackWeatherBot.js
Created Jul 21, 2015
Weather Bot for Slack
View slackWeatherBot.js
// please leave this notice intact, otherwise do as you please :)
// by
// get more info at
var express = require('express');
var app = express();
var http = require('http');
var Slackhook = require('slackhook');
var slack = new Slackhook({
domain: 'yoursubdomain',
You can’t perform that action at this time.