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
/* Instantiate the global sp object; include models & views */ | |
var sp = getSpotifyApi(1); | |
var auth = sp.require('sp://import/scripts/api/auth'); | |
var permissions = ['user_actions.music']; | |
var app_id = '126891607432106'; | |
var request_url = 'https://graph.facebook.com/me/music.listens'; | |
auth.authenticateWithFacebook(app_id, permissions, { | |
onSuccess : function(accessToken, ttl) { |
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 | |
add_action('init', 'hero_story_init'); | |
function hero_story_init() { | |
$args = array( | |
'label' => __('Hero Stories'), | |
'singular_label' => __('Hero Story'), | |
'public' => true, |
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
<div id="hero" class="loading"> | |
<ul class="slides"> | |
<?php query_posts(array( | |
'post_type' => 'herostory', | |
'posts_per_page' => '-1' | |
)); | |
while(have_posts()): the_post(); | |
?> | |
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 | |
query_posts( | |
array( | |
'showposts' => 20, | |
'post_parent' => $page_id, | |
'post_type' => 'page', | |
'order' => 'ASC' | |
) | |
); |
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 | |
function childtheme_override_index_loop() { | |
// Count the number of posts so we can insert a widgetized area | |
$count = 1; | |
$alt = 0; | |
while ( have_posts() ) : the_post(); | |
// action hook for insterting content above #post | |
thematic_abovepost(); |
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
var mongoose = require('mongoose') | |
, Schema = mongoose.Schema | |
, crypto = require('crypto') | |
/** | |
* User Schema | |
*/ | |
var UserSchema = new Schema({ | |
createdAt: { type: Date, default: Date.now, required: true }, |
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
<section id="efficiencyIncluded" class="parallax"> | |
<div class="container"> | |
<div class="col span_7"> | |
<h1>Efficiency <span>Included</span></h1> | |
<p>Advanced technology to connect healthcare providers and drive EFFICIENCY.</p> | |
<p class="more"><a href="#" class="button">Find Out More</a></p> | |
</div> | |
</div> | |
</section> |
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
<section id="{{ID}}" class="parallax"> | |
<div class="container"> | |
<div class="col span_7"> | |
<h1>{{§ion_title}}</h1> | |
<p>{{paragraph}}</p> | |
<p class="more"><a href="{{link_to}}" class="button">{{button}}</a></p> | |
</div> | |
</div> | |
</section> |
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
exports.addCarPhoto = function(req, res) { | |
var userID = req.user._id; | |
var carsBaseURI = "http://sobrioapp.blob.core.windows.net/cars/"; | |
// setup photo meta data | |
var type = req.files.photo.type; | |
var filename = req.params.id + "-" + req.files.photo.name; | |
var path = req.files.photo.path; |
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
$(window).resize(function() { | |
var w = $(window).width(); | |
if(w > 1024) { | |
fixDivsHeight(); | |
} else { | |
// do whatever mobile wants here... | |
} | |
}); | |
function fixDivsHeight() { |
OlderNewer