Skip to content

Instantly share code, notes, and snippets.

@stolksdorf
stolksdorf / vignette.css
Created November 23, 2011 04:18 — forked from jordandobson/vignette.css
Examples of adding a Vignette to Photos with CSS3 Gradients. Code sampled from: http://cl.ly/3Nxc
/* Border & Vignette Setup Test*/
figure{
position: relative;
display: block;
line-height: 0;
width: 500px;
height: 333px;
margin-bottom: 2em;
border: 1em solid #fff;
@stolksdorf
stolksdorf / MInecraft UHC Primer.md
Last active October 5, 2022 00:20
A primer for playing Minecraft UHC for players with little experience with Minecraft.

Minecraft UHC

Ultra Hardcore is amode of Minecraft that closely resembles the Hunger Games. Players are dropped randomly in a bounded landscape with nothing. From there you make scanvenge, build tools, and hunt down other players Battle Royal style.

The two major modifications to Vanilla Minecraft are firstly we're disabling the night/day cycle and secondly disabling health regeneration. The former to allow for more player interaction and less deaths from aggressive mobs. The latter so every point of damage is permanent, so running away to regen health is not viable, and small things, like fall damage, must be accounted for.

This primer will cover the basics, new additions to the game that are useful, PvP advice, and some more advance tactics yourself and other players may use.

Basics

@stolksdorf
stolksdorf / UHC Commands
Last active January 29, 2024 03:13
List of commands to setup UHC mode
/*
Run these comamnds as OP as you setup the server
The only need to be ran once and are not player specific
*/
//add "playing" team
/scoreboard teams add Playing
//add death counter
/scoreboard objectives add Deaths deathCount Deaths
<div arcBlock = 'todo_item'>
<input type='checkbox' arc-status='finished'></input>
<span arc-itemName = 'name'></span>
</div>
<script>
var newTaskModel = TaskModel.initialize({
@stolksdorf
stolksdorf / Test For gist.io
Created January 14, 2014 17:54
Just a test Gist
This is simply a test
== HOW DU
Archetype = archetype ={
initialize : function(){
return this;
},
create : function(){

Models

Models in XO are just plain Javascript objects with some functions attached.

extend

var ModelDefinition = xo.model.extend({ ... }) Create a new model definition, extend the existing model definition from XO. THis model can then be extended further, much like classes.

extend

var ModelDefinition = xo.model.extend({ ... })

(This is a brief summary of Ethereum's white paper)

Ethereum 101

What is Ethereum

Ethereum is a new cryptocurrency, like Bitcoin or Litecoin, that adds a number of new features. Most notably the inclusion of Agents (also known as Contracts); Independent Turing-complete programs that exist on the Ethereum blockchain. These Agents can receive Ether (Ethereum's currency) and other inputs, perform computations, hold balances, transfer Ether, and even activate other Agents.

Ethereum also attempts to fix some current issues with cryptocurenncy mining, such as rise of specialized hardware, large mining pools that aim to control the network, and the lack of reward for stale blocks, dissuading miners with weaker hardware.

Agents

What is the power output of a ZPM?

Zero Point Module (abbreviated ZPM) is an immensely strong and very long-lived energy source capable of powering entire cities and intergalactic spacecraft.

So how much power can it actually generate? Here are some quotes from the show.

"A ZPM is shaped like a rough cylinder, perhaps twelve to eighteen inches in length, and six to eight inches diameter."

"To get a sense of scale of the power generation provided by ZPMs, the following is known: one square centimeter of the space that is artificially contained within a ZPM (if the assumption made that the artificial space is identical to "normal" space), contains enough energy to boil all the world's oceans"

{
"start" : "Aug 27th, 2014",
"end" : "Sept 2nd, 2017",
"dayPixelRatio" : 500,
"events" : [
{
"name" : "MacMed Formal",
"desc" : "Such new friends. Much Excite.",
"date" : "Aug 29th, 2014",
# Week 9 - CSS Preprocessors
This week we will be super charging your stlying with CSS preprocessors. CSS is a pretty difficult language to work with, there's no variables, it's hard to group styles together, and reusing the same styles in different places requires you to edit your HTML. Not good. CSS preprocessors are a program (called a compiler) that takes styles written in a better language and translate them to regular CSS for you. There are a few different preprocessors out there, but we are going to be focusing on [LESS](http://lesscss.org/).
### What is LESS
LESS is a *super-set* of CSS, meaning it looks very similar to CSS but adds much more functionality. Here's an example of it:
@green : #2ecc71;