Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean dok

View GitHub Profile
@dok
dok / geckodriver.js
Created Jun 30, 2017
install, start, selenium-standalone with geckodriver
View geckodriver.js
// npm install selenium-standalone@6.5.0
var selenium = require('selenium-standalone');
var webdriverio = require('webdriverio');
const version = '3.4.0';
const drivers = { chrome:
{ version: '2.30',
arch: 'x64',
@dok
dok / react-input.js
Created Mar 20, 2017
simple react-input
View react-input.js
import React, { Component } from 'react';
export default class Input extends Component {
props: {
value: React.PropTypes.string.isRequired
};
constructor(props) {
super(props);
this.state = {
View gist:40acd3495d92b1ca3261
Your branch is up-to-date with 'origin/master'.
➜ ckeditor-dev git:(master) which node
/Users/sean/.nvm/versions/v0.12.7/bin/node
➜ ckeditor-dev git:(master) ls
CHANGES.md README.md bender.js config.js core gruntfile.js node_modules plugins skins tests
LICENSE.md adapters ckeditor.js contents.css dev lang package.json samples styles.js
➜ ckeditor-dev git:(master) rm -rf node_modules
➜ ckeditor-dev git:(master) npm install
npm WARN package.json ckeditor-dev@4.5.7 license should be a valid SPDX license expression
npm WARN engine benderjs-sinon@0.3.1: wanted: {"node":">=4.0.0"} (current: {"node":"0.12.7","npm":"2.14.2"})
@dok
dok / cities.json
Created Feb 4, 2016
Cities of the world mapped by country, latitude, longitude
View cities.json
{
"HUMBERSIDE": [
[
"ENGLAND",
53.574444444444,
-0.35083333333333
]
],
"DAMBLAIN": [
[
@dok
dok / index.js
Created Sep 23, 2015
Isomorphic module definition
View index.js
(function() {
var root = this;
var name = 'dcss';
function dcss() {
}
var proto = {
};
@dok
dok / test.js
Created Sep 15, 2014
Tessel Keen
View test.js
var Keen = require('keen.io');
var keen = Keen.configure({
projectId: "53fd0676e861701e17000001",
writeKey: "510a87bcaca6d22103d47cb364520700218e44e2c99542331baf91e2988e143a1b891561838af27a9e4466b8834939c14547402f610a1e9075448740e97fc8b82918da10f409ffbab761eb6e394cccb7db133ba935d22a1189d1f91d70eed76b8f05b16133c91417da5438b15d4327f7",
readKey: "e59871426c869471154eeebdf6e7feb02309f6d0d12574cd655fa8187d0dec5c16922b8a72364c3f192a5459e4debace4b70594fa8cd69e2af1f3b1c9d17d689677d20c806e7a690213122e8f022f496ee10c918013a07e246b3ae5247b66dc27167ee479f1d209c9f2aec115a5830a6"
});
// src colony modules tls.js
@dok
dok / index.html
Created Jul 3, 2014
D3 - Quarter Circles
View index.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
<title>Quarter Circles</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<div id="container">
View app.js
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, http = require('http');
var app = express();
var server = app.listen(3000);
You can’t perform that action at this time.