Skip to content

Instantly share code, notes, and snippets.

View krazylegz's full-sized avatar

Vikram Dighe krazylegz

  • Clipper Magazine
  • Lititz, PA
View GitHub Profile
<script type="text/javascript">
$(function () {
var eventDate = new Date(2013, 2-1, 1);
if (eventDate - (new Date()) <= 0) {
$('.countdown-<?php the_id(); ?>').countdown({until: eventDate});
}else{
$('.countdown-<?php the_id(); ?>').html('Married on ' + eventDate.getMonth() + '/' + eventDate.getDay() + '/' + eventDate.getFullYear())
}
});
</script>
The Balvenie
Bruichladdich
Caol Ila
Glenfiddich
Glenlivet
Glenmorangie
Lagavulin
Laphroaig
Abefeldy
Aberlour
[root@cramp ~]# irb
irb(main):001:0> @foo = Struct.new(:foo, :bar)
=> #<Class:0x2b40c83d5bb0>
irb(main):002:0> def create_structure(arr)
irb(main):003:1> f = @foo.new(arr[0], arr[1])
irb(main):004:1> puts f.foo
irb(main):005:1> end
=> nil
irb(main):006:0> create_structure(["foo", "bar"])
NameError: undefined local variable or method `foo' for main:Object
<script type="text/javascript">
$(function() {
noty({"text":"Hi!","layout":"top","type":"error","textAlign":"center","easing":"swing","animateOpen":{"height":"toggle"},"animateClose":{"height":"toggle"},"speed":"500","timeout":false,"closable":true,"closeOnSelfClick":true});
});
</script>
section: screens
linux-server:
linux-client:
mac:
alt = super
super = alt
end
section: links
linux-server:
left = linux-client
<?php
if (!$post->post_parent) {
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
} else {
$p = end(get_post_ancestors($post->ID));
$children = wp_list_pages('title_li=&child_of='.$p.'&echo=0');
}
if ($children):
$parent_title = end(get_post_ancestors($post));
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) && gem install vagrant && vagrant init && vagrant up && vagrant ssh && gem install bundler rails && rails new Zoo && cd Zoo && echo "gem 'fastercsv'" >> Gemfile && echo "gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'" >> Gemfile && && bundle install && rails g monkey name:string age:integer && rake db:migrate && rails s
!!! 5
%html{:class => 'no-js', :lang => 'en'}
%head
-# To render a different stylesheet partial inside the head (i.e. for admin layout)
-# just copy _stylesheets.html.haml, and point to that partial instead.
= render "layouts/head", :stylesheet_partial => "layouts/stylesheets"
%body{ :class => "#{controller.controller_name}" }
#container
%header#header
source 'http://rubygems.org'
gem 'rails', '~> 3.0.5'
gem 'devise', '~> 1.1.3'#, :git => 'git://github.com/plataformatec/devise.git'
gem 'cancan', '~> 1.5'
gem 'omniauth'
gem 'haml'
gem 'maruku'
bash-3.2$ brew upgrade
Error: undefined method `include?' for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
/usr/local/Library/Homebrew/formula.rb:393:in `canonical_name'
/usr/local/Library/Homebrew/formula.rb:425:in `factory'
/usr/local/Library/Contributions/examples/brew-upgrade.rb:7
/usr/local/Library/Contributions/examples/brew-upgrade.rb:7:in `map'
/usr/local/Library/Contributions/examples/brew-upgrade.rb:7
/usr/local/bin/brew:46:in `require'