Skip to content

Instantly share code, notes, and snippets.

@teetteet
teetteet / ethpyramid.sol
Created February 6, 2018 07:45 — forked from qwtel/ethpyramid.sol
ETH Pyramid Contract
contract Pyramid {
struct Participant {
bytes desc;
address etherAddress;
bytes bitcoinAddress;
}
Participant[] public participants;
uint public payoutIdx = 0;
@teetteet
teetteet / 0_reuse_code.js
Created July 10, 2016 20:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@teetteet
teetteet / dabblet.css
Created November 7, 2013 18:46 — forked from giuseppeg/dabblet.css
Dead Center an element with display: inline-block
/**
* Dead Center an element with display: inline-block
*/
html,
body { margin: 0; height: 100%; }
.container {
letter-spacing: -0.31em;
text-rendering: optimizespeed;
@teetteet
teetteet / dabblet.css
Created September 13, 2013 11:52 — forked from KrofDrakula/dabblet.css
Untitled
body { font-size: 120%; }
td, th { font: inherit; }
td { padding: 0.2em 0.5em; border: 1px solid black; }
@media screen and (max-width: 240px) {
table, tbody, tr, td { display: block; }
tr:nth-child(2n) { background: #ccc; }
}
@teetteet
teetteet / dabblet.css
Created September 13, 2013 11:52 — forked from anonymous/dabblet.css
Untitled
body {
background:
linear-gradient(45deg, #92baac 45px, transparent 45px)64px 64px,
linear-gradient(45deg, #92baac 45px, transparent 45px,transparent 91px, #e1ebbd 91px, #e1ebbd 135px, transparent 135px),
linear-gradient(-45deg, #92baac 23px, transparent 23px, transparent 68px,#92baac 68px,#92baac 113px,transparent 113px,transparent 158px,#92baac 158px);
background-color:#e1ebbd;
background-size: 128px 128px;
}
@teetteet
teetteet / dabblet.css
Created September 13, 2013 11:50
Pure CSS Real Spinning Square Antiprism
/**
* Pure CSS Real Spinning Square Antiprism
* http://en.wikipedia.org/wiki/Square_antiprism
* get triangular faces using this method http://dabblet.com/gist/3805071
*
* Related
* -------
* Pure CSS Real Spinning Truncated Cube http://dabblet.com/gist/4543683
* Pure CSS Real Spinning Octahedron http://dabblet.com/gist/4540517
* Pure CSS Real Spinning Cuboctahedron http://dabblet.com/gist/4548435
@teetteet
teetteet / dabblet.css
Created September 13, 2013 11:50 — forked from anonymous/dabblet.css
Pure CSS Real Spinning Square Antiprism
/**
* Pure CSS Real Spinning Square Antiprism
* http://en.wikipedia.org/wiki/Square_antiprism
* get triangular faces using this method http://dabblet.com/gist/3805071
*
* Related
* -------
* Pure CSS Real Spinning Truncated Cube http://dabblet.com/gist/4543683
* Pure CSS Real Spinning Octahedron http://dabblet.com/gist/4540517
* Pure CSS Real Spinning Cuboctahedron http://dabblet.com/gist/4548435
@teetteet
teetteet / gist:4031776
Created November 7, 2012 14:02 — forked from idan/gist:3135754
A Sample Post

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

@teetteet
teetteet / Contract Killer 3.md
Created November 7, 2012 13:44
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@teetteet
teetteet / dabblet.css
Created October 23, 2012 18:22 — forked from lensco/dabblet.css
box-shadow vs filter: drop-shadow 2
/**
* box-shadow vs filter: drop-shadow 2
*/
body {
background: #ddd;
font: 16px/1 sans-serif;
margin: 50px;
}