Skip to content

Instantly share code, notes, and snippets.

View joshperry's full-sized avatar
😝

Joshua Perry joshperry

😝
View GitHub Profile
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())
@joshperry
joshperry / _grid.scss
Last active September 15, 2015 22:44 — forked from auniverseaway/_grid.scss
Flexbox Grid System
@mixin grid($count) {
display: flex;
// Add Gutters
&.Gutter {
margin: -1em 0 0 -1em;
>.Cell {
padding: 1em 0 0 1em;
}
var Promise = require('bluebird');
var someAsyncFunction = Promise.promisify(someFunction);
function one() {
return someAsyncFunction(params)
.then(function one(results) {
console.log('one');
});
}
$('.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');
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
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);