Skip to content

Instantly share code, notes, and snippets.

@alxjrvs
alxjrvs / article.rb
Created April 12, 2012 15:47 — forked from Achillefs/article.rb
Sample Article class posting to a Wordpress blog via wp-json-api
require 'rubygems'
require 'open-uri'
require 'json'
require 'net/http'
# Please note that the vanilla wp-json-api plugin does not support user authentication for create_post.
# Check out my fork for authentication support: https://github.com/Achillefs/wp-json-api
class Article
API_URI = 'http://lf.alxjrvs.com/api/'
API_USER = 'alxjrvs'
# Stattr includes some basic functions that could be used in a Tabletop RPG application
#
# @author Alex Jarvis
module Stattr
# How many sides the most common die has - rewrite to fit your game.
#
DICE_SIDES = 6
.sidebar-nav-fixed {
position:fixed;
top:100;
left:0;
}
@alxjrvs
alxjrvs / gist:3780261
Created September 25, 2012 06:12
GITenberg
II$II7$Z$7$ZOO8ZO77III$$??7IDIZ?=NNNNMMN777ZZ8OO$$II$77II$$Z7Z$$$$$Z$Z$7$777$8ON
Z$I+?I7$$I7$ZOZZO$Z77III+I+MD,D$::+Z8N8NMM8MOI???II7II???77????I77777II+I77$$77O
$77III7III7I777ZOOZ$7IIII7D8=,ZO:=~:I7DODMMMMN7I?+++?I7$I7I?+7$7ZZ$7?I$I7?+?+?7$
I?I????IIII$$77I7IZ$77II?8$==:7$,~?:,=7ZZ?ZMMMM8$+++?7III?II?I==?I+??+II?I?+I+77
II$77+I7$$ZZZ7IIIII????+MD+::=7$::+7=:~I888NMMMNMM~++I7Z??+I+I??+?I+?II?????$$Z7
Z$$$$$7$?I7ZO$7??+I???7?N7~=:~III,+:$8,~NMNMNMMMNMMIZ=++?+???+=+++==++?I777$I+I7
7$ZZ7II$$$ZI??+=??7?I7=DD7~=.=Z7I8I?7NDO88OOMMN8NDNDDM?7?+?+???+777??I?7?I7777$Z
??I7I?$$Z$7I?I7$II?+??=MN$~:,7DNDDOD8D$$N87MDDNNNONND888I?I?77IIII7II77II7?I++??
Z8DO$ZZ$$$?++?77I7I7$7+NM7NOMZZODIZOZZ$7~8D$I8MMMDZ88ND++?=++???I???I$III??+?II7
@alxjrvs
alxjrvs / NeatGutter
Created December 8, 2012 01:46
Neat Gutter Problem
Graphic Example => http://imgur.com/yeOpJ
Relevant CSS:
div.shelves {
9 background-color:rgba(51,51,51,0.2);
10 @include span-columns(12);
11 margin: 20px 0 150px 0;
12 -webkit-border-radius: 15px;
13 -moz-border-radius: 15px;

### How would your project help to further humanities research?

(e.g. it will make more content and data openly available for researchers to use, it will produce novel insights into humanities data through visualisations...) *

GITenberg will improve the quality of Public Domain transcriptions of books by treating books like open source code. The GITenberg project has compiled an archive of 40,000 public domain ebooks, and by applying open source software tools and techniques to these texts,

class Rock
attr_accessible :color, :density, :weight, :size, :texture;w
def initialize(color, density, weight, size, texture)
@color = color
@density = density
@weight = weight
@size = size
@texture = texture
end
class Adder
#we create a getter and setter for the left_side and ride_side variables
attr_accessor :left_side, :right_side
# So we set the base values for each instance here.
def initialize(left_side, right_side)
@left_side = left_side
@right_side = right_side
end
1. 'invest now' in hero section
2. video link just under hero
3. 'See all partner Funds' under partner funds
4. 'All Areas of Focus' under Impact Sectors
5. All hexagons in Impact Sectors (9 total)
6. 'explore topics' in impact lab (3 total)
7. 'Learn more at impact lab' in impact lab
def test_the_thing
num = rand(40000)
binding.pry
puts num
end