#whatever
you want here
#whatever
you want here
<?php | |
$list_to_check = array( | |
array(2,2), | |
array(2,3), | |
array(3,3), | |
array(3,2) | |
); | |
// var_dump($list_to_check); |
RUBY_VERSION=1.9.3 | |
APP_NAME=that_great_app | |
rvm $RUBY_VERSION@$APP_NAME --create && gem install rails --no-ri --no-rdoc && rails new $APP_NAME -d mysql && echo "rvm $RUBY_VERSION@$APP_NAME" > $APP_NAME/.rvmrc && echo ".rvmrc" >> $APP_NAME/.gitignore |
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($) { | |
var o = $({}); | |
$.subscribe = function() { | |
o.on.apply(o, arguments); |
ActiveAdmin.register Category do | |
extend CollectiveIdea::Acts::NestedSet::Helper | |
form do |f| | |
f.inputs do | |
f.input :name | |
f.input :parent_id, :as => :select, :collection => (nested_set_options(Category, @category) {|i, level| "#{'-' * level} #{i.name}" }) | |
end | |
f.buttons | |
end |
$ mysql -u root -p | |
Enter password: # <= but, this will be the last time | |
mysql> SET PASSWORD FOR root@localhost=PASSWORD(''); | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> exit | |
bye | |
$ mysql -u root # with no password, cause I know what i'm doing. |
Every programming language has some kind of way of doing numbers and math. Do not worry, programmers lie frequently about being math geniuses when they really aren’t. If they were math geniuses, they would be doing math, not writing ads and social network games to steal people’s money.
--
function rake { | |
if [ -e Gemfile ]; then | |
bundle exec rake $@ | |
else | |
`which rake` $@ | |
fi | |
} |
require 'logger' | |
class String | |
LOGGER = Logger.new($stderr) | |
def -@; LOGGER.info self; end | |
end | |
# Extracted earlier, hardcoded for speed | |
ENTITIES = %w(I-ORG O I-MISC I-PER I-LOC B-LOC B-MISC MO B-ORG) |