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 gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var minifyCss = require('gulp-minify-css'); | |
var sourceMaps = require('gulp-sourcemaps'), | |
path = require('path'); | |
gulp.task('styles', function() { | |
var designBase = 'src/main/resources/jcr_root/etc/slick/designs/'; | |
gulp.src('**/scss/*.scss', { base: designBase }) | |
.pipe(sourceMaps.init()) |
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
@mixin grid($count) { | |
display: flex; | |
// Add Gutters | |
&.Gutter { | |
margin: -1em 0 0 -1em; | |
>.Cell { | |
padding: 1em 0 0 1em; | |
} |
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 Promise = require('bluebird'); | |
var someAsyncFunction = Promise.promisify(someFunction); | |
function one() { | |
return someAsyncFunction(params) | |
.then(function one(results) { | |
console.log('one'); | |
}); | |
} |
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
$('.level1>.x-panel-bwrap>.x-panel-tbar, .level2>.x-panel-bwrap>.x-panel-tbar, .level3>.x-panel-bwrap>.x-panel-tbar').click(function(){ | |
parent = this.parentNode; | |
body = $(parent).children('.x-panel-body'); | |
xpanel = $(body).children('.x-panel'); | |
// I always specifically open and close because I've seen some issues with toggleClass. - CM | |
if($(this).hasClass('open')) { | |
$(this).removeClass('open'); | |
$(xpanel).removeClass('open'); | |
} else { | |
$(this).addClass('open'); |
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
public function getRecentEpisodes() | |
{ | |
$podcastid = Input::get('podcast_id'); | |
$podcast = Podcast::find($podcastid); | |
// If we don't have any epsisodes, we need to import them for the feed | |
$this->episodesController->importEpisodes($podcast); | |
// Now let's collect our episodes |
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
Subscription sub = new Subscription | |
{ | |
Title = "Accidental Tech Podcast", | |
Description = "Nerd stuff" | |
}; | |
var result = await App.db.InsertAsync(sub); | |
Debug.WriteLine("{0} : {1} {2}", sub.Id, sub.Title, sub.Description); |