Skip to content

Instantly share code, notes, and snippets.

View SorenPeterson's full-sized avatar

Soren Peterson SorenPeterson

View GitHub Profile
@axic
axic / swarmdemo.js
Created July 15, 2016 16:24
Web3 demo code for Swarm
//
// Needs web3.js from https://github.com/axic/web3.js/tree/swarm
//
var Web3 = require('web3')
var url = require('url')
var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'))
try {
web3.eth.defaultAccount = web3.eth.coinbase
@raym
raym / xyzprinting-da-vinci-1.0-calibration.md
Last active September 28, 2021 14:11
XYZprinting Da Vinci 1.0 Calibration

#TL;DR

- given that the "ideal" numbers are +255, +255, +255
- adjust screw A til #1 is close to +255
- adjust screw B til #2 & #3 are close to equal
  - this may require adjusting screw C if #2 or #3 start +ERR-ing
- adjust screw C til #2 & #3 are close to #1

@jperl
jperl / Sizes.md
Created October 30, 2014 17:40
Meteor App Icon and Launch Screen Size Guide

###Icons

Name Size
iphone_2x 120x120
iphone_3x 180x180
ipad 76x76
ipad_2x 152x152
android_ldpi 36x36
android_mdpi 48x48
@henrik
henrik / rules.md
Last active May 23, 2022 12:31
Sandi Metz' four rules from Ruby Rogues episode 87. Listen or read the transcript: http://rubyrogues.com/087-rr-book-clubpractical-object-oriented-design-in-ruby-with-sandi-metz/
  1. Your class can be no longer than 100 lines of code.
  2. Your methods can be no longer than five lines of code.
  3. You can pass no more than four parameters and you can’t just make it one big hash.
  4. When a call comes into your Rails controller, you can only instantiate one object to do whatever it is that needs to be done. And your view can only know about one instance variable.

You can break these rules if you can talk your pair into agreeing with you.

@jldailey
jldailey / asetniop.coffee
Created November 6, 2012 20:19
ASETNIOP bindings for VIM
# Generates the text of asetniop.vim
singles =
a: "a"
s: "s"
e: "d"
t: "f"
n: "j"
i: "k"
o: "l"
p: ";"