Skip to content

Instantly share code, notes, and snippets.

@potomak
potomak / connected_actual.log
Created November 27, 2013 18:09
FB.getLoginStatus Chromium error
FB.getLoginStatus Object {authResponse: undefined, status: "unknown"}
FB.login Object {authResponse: Object, status: "connected"}
@potomak
potomak / Rinkeby.md
Created August 11, 2017 21:40 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@potomak
potomak / 01.markdown
Last active June 2, 2021 02:35
gist-txt @ Manhattan.js
state
next prev
02
index

What is gist-txt?

gist-txt is an adventure game engine

@potomak
potomak / example.go
Created April 11, 2018 14:22
Go interface example
// Run at https://play.golang.org/p/gYCGtWOHGci
package main
import (
"fmt"
)
// Define an interface
type Foo interface {
@potomak
potomak / README.markdown
Last active February 3, 2018 13:06
An interactive story
@potomak
potomak / FacebookL.jpg
Last active November 15, 2017 11:01
The daily routine
FacebookL.jpg
0x95BcA9Cf2C4984978D658bDc1aA22cf447Cdb33f
@potomak
potomak / hello-world.txt
Last active January 29, 2017 22:30
Hello World!
Hello World!Foo
Bar
main :: IO ()
main = scotty 8080 $ do
get "/hello" $ do
let content = "Hello world!"
respondTo $ do
formatJson $
json $ object ["content" .= content]
formatText $
text content
format "application/vnd.chess-pgn" $ do
@potomak
potomak / _flash.html.erb
Created January 12, 2012 14:35
Rails flash messages using Twitter bootstrap
<% [:notice, :error, :alert].each do |level| %>
<% unless flash[level].blank? %>
<div class="alert-message <%= flash_class(level) %>">
<a class="close" href="#">×</a>
<%= content_tag :p, flash[level] %>
</div>
<% end %>
<% end %>