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
npm install | |
npm http GET https://registry.npmjs.org/uglify-js | |
npm http GET https://registry.npmjs.org/acorn/0.4.0 | |
npm http GET https://registry.npmjs.org/clean-css | |
npm http GET https://registry.npmjs.org/less | |
npm http GET https://registry.npmjs.org/stylus | |
npm http GET https://registry.npmjs.org/commonplace/0.2.4 | |
npm http 200 https://registry.npmjs.org/uglify-js | |
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz | |
npm http 200 https://registry.npmjs.org/acorn/0.4.0 |
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
django.request:ERROR Internal Server Error: /api/auth/sign-in/ :/opt/rh/python27/root/usr/lib/python2.7/site-packages/django/core/handlers/base.py:256 | |
Traceback (most recent call last): | |
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view | |
return view_func(*args, **kwargs) | |
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view | |
return self.dispatch(request, *args, **kwargs) | |
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/rest_framework/views.py", line 452, in dispatch | |
response = self.handle_exception(exc) |
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 | |
/* | |
* Podcast URL Extractor | |
* implemented at http://itunes.so-nik.com | |
* | |
* All code has been re-written by lasavior. | |
* Original code & inspiration from Michael Sitarzewski, zerologic.com | |
* | |
* Ex: http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/viewPodcast?id=269238657 |
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
i have key/value pairs stored via localforage by the main page, but i cant figure out how to bring up a list of keys for the about page. ng-repeat and ng-option dont seem to work, and i suspect it's because i'm not unwrapping my promises correctly? i dunno. | |
angular.module('scratchpadApp') | |
.controller('AboutCtrl', function ($scope, $localForage) { | |
var getKeys = function() { | |
localforage.keys() | |
.then(function(result) { | |
console.log(result); | |
$scope.getKeys = result; |
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
import DS from 'ember-data'; | |
var Checkin = DS.Model.extend({ | |
shout: DS.attr('string'), | |
user: DS.belongsTo('user'), | |
venue: DS.belongsTo('venue'), | |
createdAt: DS.attr('date') | |
}); | |
var User = DS.Model.extend({ |
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
Ember.Controller.extend({ | |
actions: { | |
resort: function(columnName) { | |
// do stuff with your data here | |
var stuff = STUFF(); | |
this.set('whatever', stuff); | |
} | |
} | |
}); |
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
class PostingsController < ApplicationController | |
after_action :verify_authorized, except: [:index, :archived] | |
after_action :verify_policy_scoped, only: [:index, :archived] | |
before_action :require_login | |
def index | |
@sortorder = params[:sort] | |
case @sortorder | |
when 'date-added' | |
@method = :order, 'created_at DESC' |
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
/*jshint forin:false, plusplus:false, sub:true */ | |
define([ | |
'zepto', | |
'underscore', | |
'backbone', | |
'app', | |
'collections/podcasts', | |
'models/podcast', | |
'views/dialogs', | |
'views/episode', |
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
{ | |
"version": "1.0", | |
"name": "IRCCloud", | |
"description": "SOME DESCRIPTION", | |
"icons": { | |
"32": "/img/icon-32.png", | |
"60": "/img/icon-60.png", | |
"64": "/img/icon-64.png", | |
"90": "/img/icon-90.png", | |
"120": "/img/icon-120.png", |
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
'use strict' | |
casper.test.begin "Testing Backbone data adapter", (test) -> | |
casper.start "#{casper.TEST_URL}test.backbone.html", -> | |
test.info "Testing using global scope (no require.js)" | |
test.assertEval -> | |
typeof Backbone.localforage is 'object' | |
, "localforage storage adapter is attached to Backbone.localforage" |