This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Manage Tags Capability | |
Description: This plugin adds a bit more functionality to the manage_categories capability. If a user cannot manage categories, then they will see a custom box for post tags that lists all existing post tags for selection but does not allow the user to add new post tags. | |
Version: 1.0 | |
Author: B.J. Allen, Leia Scofield | |
Author URI: http://rd2inc.com | |
Requires: WordPress Version 2.6 or above | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ci="mvn clean install" | |
alias qi="mvn clean install -Dmaven.test.skip=true -Dfindbugs.skip=true" | |
alias cl="mvn clean" | |
alias junit="mvn clean compiler:compile compiler:testCompile resources:resources resources:testResources surefire:test" | |
alias jcover="mvn clean compiler:compile compiler:testCompile resources:resources resources:testResources cobertura:check -Dfindbugs.skip=true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert('the javascript embed feature is working'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="arrow_box"><h1 class="logo">css arrow please!</h1></div> | |
.arrow_box { | |
position: relative; | |
background: #91cad5; | |
border: 1px solid #1bf5df; | |
} | |
.arrow_box:after, .arrow_box:before { | |
right: 100%; | |
border: solid transparent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Point | |
attr_accessor :lat, :lon, :title, :content | |
def initialize(lat, lon, title, content) | |
@lat = lat | |
@long = lon | |
@title = title | |
@content = content | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code I found (i.e. not mine) | |
class Module | |
def metaclass(&block) | |
meta = class << self; self; end | |
meta.module_eval(&block) if block_given? | |
meta | |
end | |
def const_delegate(to,*methods) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DatePicker = (function($, Kalendae) { | |
var DatePicker = function(id, format) { | |
var $dateField = $('#' + id); | |
var $icon = $('<i class="cal"></i>'); | |
$dateField.after($icon); | |
// the blurInProgress flag is needed to handle the various scenarios | |
// where the user focuses and blurs the dateField via keyboard or mouse | |
// and if it was the mouse, did they click on the icon or elsewhere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see what the confidence code means here: | |
# http://www.mapquestapi.com/geocoding/geocodequality.html | |
Web::Address.from_params({ :street => "Canal Road", :city => "Orleans", :state => "MA", :country => "US" }) | |
[{"country_name"=>"United States", | |
"city"=>"Orleans", | |
"@name"=>"location", | |
"latitude"=>41.796795, | |
"country"=>"US", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Don't forget to run this vagrant command first | |
# vagrant ssh-config >> ~/.ssh/config | |
set :user, 'vagrant' | |
set :run_method, :sudo | |
role :app, '33.33.33.10' | |
ssh_options[:keys] = `vagrant ssh_config | grep IdentityFile`.split.last |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.define :app do |app_config| | |
app_config.vm.customize ["modifyvm", :id, "--name", "app1", "--memory", "512"] | |
app_config.vm.box = "precise64_with_ruby_193" | |
app_config.vm.host_name = "app1" | |
app_config.vm.forward_port 22, 2222, :auto => true | |
app_config.vm.forward_port 80, 4567 |
OlderNewer