This file contains hidden or 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 | |
/** | |
* Wrapper for WP_Query | |
* Interacts directly with WP_Query_Manager to ensure | |
* only unique posts are ever returned. | |
* | |
* Known issues: | |
* Won't work with offset values | |
*/ | |
class Unique_WP_Query extends WP_Query { |
This file contains hidden or 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
<!-- Main Area --> | |
<div id="main_area"> | |
<!-- Slider --> | |
<div class="row"> | |
<div class="span12" id="slider"> | |
<!-- Top part of the slider --> | |
<div class="row"> | |
<div class="span8" id="carousel-bounding-box"> | |
<div id="myCarousel" class="carousel slide"> | |
<!-- Carousel items --> |
This file contains hidden or 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
//Modified version of sprite-grid.jsx by Filip Van Tendeloo | |
//Fixed for earlier versions of Photoshop based on guideLine function from | |
//http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=3493&start=0 | |
//None of this code is mine | |
// check for document | |
if(app.documents.length > 0){ | |
// get active document | |
var psDoc = app.activeDocument; |
This file contains hidden or 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
<!--- Try to read the file ---> | |
<cftry> | |
<cffile | |
action = "read" | |
file = "C:\weatherCache.txt" | |
variable = "readWeather" /> | |
<!--- In the event on an error (usually the file is missing) ping google weather and get the data ---> | |
<cfcatch type="Any"> |
This file contains hidden or 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
/** | |
* SocketManager - Singleton to manage multi-channel socket 'routing', need a way to merge with socket.io so client sessions aren't stored twice in memory, | |
* | |
* Requires Socket.IO-node and Socket.IO client libraries. | |
* | |
* Usage: | |
* in your main app.js file (or whereever you create the server) | |
* | |
* var io = require('socket.io'), | |
* sm = require('socketmanager'); |