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
def icon(style) | |
raw "<i class='icon-#{style}'></i>" | |
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
source "https://rubygems.org" | |
gem 'rspec' |
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
wget --timeout=0 "http://www.overpass-api.de/api/xapi?map?bbox=-89.6037,42.9642,-89.1663,43.1799" -O madison-wi.osm |
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 | |
/** | |
* @version 0.2 | |
*/ | |
/** | |
* Some plugins create a session (Woo Commerce) | |
* so create a temporary session save path | |
*/ | |
$session_path = sys_get_temp_dir(); |
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
<ul> | |
<li><a href='vidal'>Vidal</a></li> | |
<li> | |
<a href='#subs'>Sub Vidals (TARGET ME)</a> | |
<ul class="children"> | |
<li><a>Test</a></li> | |
</ul> | |
</li> | |
</ul> |
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
menu = [ | |
{ | |
:title => 'Map Objects', | |
:link => admin_map_objects_path, | |
:controller => 'admin/map_objects', | |
:access => current_in_role(:admin) | |
}, | |
{ | |
:title => 'Tags', | |
:link => admin_tags_path, |
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
/** | |
* GO F&(@)(#) yourself CSS | |
*/ | |
function mapResize() { | |
var height = $(window).height(); | |
var width = $(window).width(); | |
console.log(height); | |
if ( width > 979 ) { | |
console.log('got here'); | |
$("#map-div").height(height+'px'); |
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
def current_user | |
@current_user ||= ( session[:user_id] and ( user = User.find_by_id(session[:user_id]) ) ? user : nil ) | |
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
<?php | |
/** | |
* Customise the events html for the <li> or each event | |
*/ | |
function my_uwmadison_events_html($html, $event, $opts) { | |
// do a bunch of logic with the $event object to determine the | |
// ticket link | |
$ticket_link = '...logic for ticket link generation ...'; | |
if ( $ticket_link ) { |
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 | |
class P { | |
public $user; | |
public function before() { | |
$this->user = 'bshelton2'; | |
} | |
} |
NewerOlder