Skip to content

Instantly share code, notes, and snippets.

landing*
resolve user*
has token -> authentication
does not have token -> create anonymous user
authentication
valid token -> ttt
invalid token -> create anonymous user
create anonymous user
@grancalavera
grancalavera / fatal-gistfile5.txt
Last active March 24, 2019 12:02
HIE Errors Log in Visual Studio Code
2019-03-24 11:33:18.509716527 [ThreadId 4] - run entered for hie-wrapper(hie-wrapper) Version 0.7.0.0 (2473 commits) x86_64 ghc-8.6.4
2019-03-24 11:33:18.523038535 [ThreadId 4] - Current directory:/home/grancalavera/Desktop/labyrinth
2019-03-24 11:33:18.676041435 [ThreadId 4] - Cradle directory:/home/grancalavera/Desktop/labyrinth
2019-03-24 11:33:18.676619168 [ThreadId 4] - Using stack GHC version
2019-03-24 11:33:18.797533273 [ThreadId 4] - Project GHC version:8.6.3
2019-03-24 11:33:18.803700145 [ThreadId 4] - hie exe candidates :["hie-8.6.3","hie-8.6","hie"]
2019-03-24 11:33:18.804299727 [ThreadId 4] - found hie exe at:/home/grancalavera/.local/bin/hie-8.6.3
2019-03-24 11:33:18.804737198 [ThreadId 4] - args:["--lsp"]
2019-03-24 11:33:18.805031016 [ThreadId 4] - launching ....
@grancalavera
grancalavera / SketchSystems.spec
Last active September 29, 2018 14:15
Station Race*
Station Race*
Begin*
setup new game -> Setup
Setup
register player -> Setup
start -> Has Enough Players?
Has Enough Players?
has enough players -> Turn
does not have enough players -> Setup
Turn

Keybase proof

I hereby claim:

  • I am grancalavera on github.
  • I am grancalavera (https://keybase.io/grancalavera) on keybase.
  • I have a public key ASCMsNCIda3Qfj3jsSulFFKOzVZWl9qC_QCqOimUKAww9go

To claim this, I am signing this object:

@grancalavera
grancalavera / trello-css-guide.md
Last active September 10, 2015 09:25 — forked from bobbygrace/trello-css-guide.md
Trello CSS Guide

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@grancalavera
grancalavera / scrambled-integers.py
Created May 25, 2014 18:23
Creates files with scrambled unique integers
import sys
from random import shuffle
import argparse
"""
usage:
~ python scrambled-integers.py 1200
1200 scrambled integers written to "1200.txt"
"""
@grancalavera
grancalavera / unicorn.sublime-snippet
Created June 4, 2013 13:26
Unicorn Sublime Text snippet ^.^
<snippet>
<content><![CDATA[
console.log(" /");
console.log(" .7");
console.log(" \\\ , //");
console.log(" |\\\.--._/|//");
console.log(" /\\\ ) ) ).'/");
console.log(" /( \\\ // /");
console.log(" /( J`((_/ \\\");
console.log(" / ) | _\\\ /");
@grancalavera
grancalavera / index.html
Created March 3, 2013 18:39
A CodePen by Leon Coto. Second Cube - Infinite sequences The faces of the cube are represented by an infinite object sequence, which contains five diferent objects: floor left back right front Each one of these objects sets its own state, and has the ability to return the next object in the sequence. The relevant difference in each object's stat…
<header>
<h1>Second Cube</h1>
<p>An experiment on infinite sequences and CSS animations.</p>
<p>Based on <a href="http://ffffound.com/image/15cca3c0766a634da538fb4bc8b23e2f5a4fe8a7">this image</a> from ffffound.</p>
</header>
<div id="viewport">
<div id="tower">
<div id="cubes"></div>
</div>
</div>
@grancalavera
grancalavera / rAF.js
Created September 24, 2012 13:07 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {