Skip to content

Instantly share code, notes, and snippets.

View dok's full-sized avatar

Sean dok

View GitHub Profile
@dok
dok / app.js
Created May 7, 2014 05:20 — forked from dbainbridge/app.js
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, http = require('http');
var app = express();
var server = app.listen(3000);
@dok
dok / index.html
Created July 3, 2014 20:55
D3 - Quarter Circles
<!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">
@dok
dok / test.js
Created September 15, 2014 21:04
Tessel Keen
var Keen = require('keen.io');
var keen = Keen.configure({
projectId: "53fd0676e861701e17000001",
writeKey: "510a87bcaca6d22103d47cb364520700218e44e2c99542331baf91e2988e143a1b891561838af27a9e4466b8834939c14547402f610a1e9075448740e97fc8b82918da10f409ffbab761eb6e394cccb7db133ba935d22a1189d1f91d70eed76b8f05b16133c91417da5438b15d4327f7",
readKey: "e59871426c869471154eeebdf6e7feb02309f6d0d12574cd655fa8187d0dec5c16922b8a72364c3f192a5459e4debace4b70594fa8cd69e2af1f3b1c9d17d689677d20c806e7a690213122e8f022f496ee10c918013a07e246b3ae5247b66dc27167ee479f1d209c9f2aec115a5830a6"
});
// src colony modules tls.js
@dok
dok / index.js
Created September 23, 2015 04:48
Isomorphic module definition
(function() {
var root = this;
var name = 'dcss';
function dcss() {
}
var proto = {
};
@dok
dok / gist:40acd3495d92b1ca3261
Created February 8, 2016 16:57
Ckeditor logs
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 / react-input.js
Created March 20, 2017 06:29
simple react-input
import React, { Component } from 'react';
export default class Input extends Component {
props: {
value: React.PropTypes.string.isRequired
};
constructor(props) {
super(props);
this.state = {
@dok
dok / geckodriver.js
Created June 30, 2017 17:51
install, start, selenium-standalone with geckodriver
// 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 / cities.json
Created February 4, 2016 05:38
Cities of the world mapped by country, latitude, longitude
{
"HUMBERSIDE": [
[
"ENGLAND",
53.574444444444,
-0.35083333333333
]
],
"DAMBLAIN": [
[
# Copyright 2022 The Magenta Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,