Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am igoratron on github.
  • I am igoratron ( on keybase.
  • I have a public key ASCSXSj7eS_fdG2lWD8aWI8bh3miWJSug3MLf0csj2v_ggo

To claim this, I am signing this object:

igoratron / exercise.js
Created Apr 20, 2018
Change case kata
View exercise.js
function changeCase(identifier, targetCase){
if(!isSupportedCase(targetCase)) {
if(!isValid(identifier)) {
const words = tokenise(identifier);
View gist:48f900d3d22f5bb49a134b7f6c123cd2
"exclude": [
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
igoratron /
Last active Mar 7, 2016
My notes from EnhanceConf 2016

Designing for a hostile environment

Nat Buckley


tl;dr: think about what you're building and who you're building it for

Browser is a very hostile environment to program against because lots of things are outside of our control, the network connection, the browser/runtime environment, screen size, etc...

What does it mean then when we say "a site doesn't work"? It means you can't complete a task, the reason why you came to the website in the first place. There are multiple reasons why that could be:

View gist:25aa72a0f992ca226f84
var generators = {
range: function *rangeGenerator(start, end, step) {
for(var i = start; i < end; i += step) {
console.log('generating', i);
yield i;
take: function *takeGenerator(iter, n) {
for(var i = 0; i < n; i += 1) {
View test-case
<!doctype html>
<title>Test case</title>
.test-case {
background-color: white;
border-radius: 20px;
width: 40px;
height: 40px;