That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:
Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):
That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:
Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):
# == Schema Information | |
# | |
# Table name: videos | |
# | |
# id :bigint not null, primary key | |
# created_at :datetime not null | |
# updated_at :datetime not null | |
# title :text | |
# youtube_id :string | |
# leader_id :bigint |
trix-toolbar .trix-dialog--heading { | |
max-width: 190px; | |
} | |
.trix-content h1, .trix-content h2, .trix-content h3, .trix-content h4, .trix-content h5, .trix-content h6 { | |
line-height: 1.2; | |
margin: 0; | |
} | |
.trix-content h1 { |
if ("backgroundSize" in document.body.style) { | |
return; | |
} | |
var body = $$('body').first(), | |
img = body.getStyle('background-image').sub(/url\((.+?)\)/,'#{1}') || 'default.jpeg', | |
fill = new Element('img', {src: img,alt: ''}). | |
setStyle('position:absolute; top:0; left:0; width:100%; height:100%; z-index:-1'); | |
body.setStyle('background:none'); | |
body.insert(fill); |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
DEFAULT_RUBY_VERSION="1.9.3-p125" | |
sudo apt-get -y install curl git-core bzip2 build-essential zlib1g-dev libssl-dev autoconf | |
if [ -x /usr/local/rvm/bin/rvm ]; then | |
echo "RVM Found..nothing to do"; | |
else | |
echo "Installing RVM"; | |
curl -o /tmp/rvm-installer -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer |
<!-- PHP --> | |
<?php echo date('Y'); ?> |
var Marquee = Class.create({ | |
initialize: function(element) { | |
this.element = $(element); | |
this.paused = false; | |
// If everything fits don't bother with all this mess | |
if(this.element.scrollWidth == this.element.clientWidth) return; | |
// Defaults to scrolling through all content in 40 seconds. |