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
/* ----- BOOKMARK BUTTONS ----- */ | |
toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button), | |
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder { | |
border: 0; | |
border-radius: 2.5px !important; | |
padding: 1px 8px !important; | |
margin: 0 0 1px; | |
font-weight: bold; | |
color: rgb(85, 85, 85); |
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 winston = require('winston'); | |
var logger = new(winston.Logger)({ | |
transports: [ | |
new(winston.transports.Console)({ | |
level: 'debug', | |
colorize: true, | |
timestamp: true | |
}), | |
new winston.transports.File({ |
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
ps -ylC apache2 | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' |
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
desc %{ Renders the contained block if online ordering is true} | |
tag 'location:ordering' do |tag| | |
location = tag.locals.location | |
if location.phone && (location.phone.starts_with?("713") || location.phone.starts_with?("281") || location.phone.starts_with?("972") || location.phone.starts_with?("214") || location.phone.starts_with?("469") || location.phone.starts_with?("817")) | |
tag.expand | |
elsif location.title && (location.title == "San Jacinto" || location.title == "Preston Forest") | |
tag.expand | |
end | |
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
var min = $('#carousel-canvas').width() | |
var max = $('#carousel-canvas > div').width(); | |
$('#carousel .right-arrow').click(function(event) { | |
event.preventDefault(); | |
var spot = $('#carousel-canvas').position().left + $('#carousel-canvas').width() - $('#carousel-canvas > div').position().left; | |
if (spot != max && !($(this).hasClass('animated'))){ | |
var link = $(this); | |
link.addClass('animated'); | |
$('#carousel-canvas > div').stop(true,true).clearQueue().animate({"left":"-=440px"},400, function() {link.removeClass('animated');}); | |
} |
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 | |
$playlistID = '9C700F98F6D01E47'; | |
$playlistURI = 'http://gdata.youtube.com/feeds/api/playlists/'; | |
$ytData = simplexml_load_file($playlistURI . $playlistID . '?v=2'); | |
echo "<br/><br/><br/>"; | |
foreach ($ytData->entry as $video) { | |
echo '<h3>'.$video->title . '</h3>'; |
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 | |
function add() { | |
if (!$this->Session->check('location')) { | |
$this->Session->setFlash(__('Need to enter your location ID and password first')); | |
$this->redirect(array('action' => 'signin')); | |
} else { | |
//set data from session to pre-populate form | |
$location = $this->Session->read('location.Segmentation'); | |
pr($location); | |
if (!empty($this->data)) { |
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 | |
function beforeFilter(){ | |
parent::beforeFilter(); | |
if ($this->action != 'index'){ | |
if (!$this->Session->check('location')) { | |
$this->Session->setFlash(__('Need to enter your location ID and password first')); | |
$this->redirect(array('action' => 'index')); | |
} | |
} | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<registration> | |
<status code="200">Ok</status> | |
<request> | |
<param name="unknown">1</param> | |
</request> | |
<data> | |
<locations> | |
<location> | |
<id type="practice|location">LOCA-123</id> |
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
Array | |
( | |
[Location] => Array | |
( | |
[doc_first_name] => Ryan | |
[doc_last_name] => Gibbons | |
[practice_name] => Ryan Gibbons | |
[address_1] => 9999 Ridglea Place | |
[address_2] => Suite 408 | |
[city] => Fort Worth |
OlderNewer