Skip to content

Instantly share code, notes, and snippets.

View typeoneerror's full-sized avatar
🤠
iOS, Capacitor, Ember, Vue, Rails

Benjamin Borowski typeoneerror

🤠
iOS, Capacitor, Ember, Vue, Rails
View GitHub Profile
From 2b5c9988688ab2d7fddfc2f80bfeb6a343edccd7 Mon Sep 17 00:00:00 2001
From: Benjamin Borowski <[email protected]>
Date: Thu, 31 Mar 2016 12:18:57 -0700
Subject: [PATCH] [REDACTOR] adds video param options to convertVideoLinks
[REDACTOR] adds video embed options to video plugin
---
vendor/redactorII/lib/redactor.js | 19 ++++++++++++++++---
vendor/redactorII/plugins/video.js | 12 ++++++++----
2 files changed, 24 insertions(+), 7 deletions(-)
From 63443cb0583523c81f1f88be73cd095aea936419 Mon Sep 17 00:00:00 2001
From: Benjamin Borowski <[email protected]>
Date: Thu, 31 Mar 2016 11:53:50 -0700
Subject: [PATCH] [REDACTOR] adds wistia support to videos
---
vendor/redactorII/lib/redactor.js | 12 +++++++++---
vendor/redactorII/plugins/video.js | 12 ++++++------
2 files changed, 15 insertions(+), 9 deletions(-)
@typeoneerror
typeoneerror / stacktrace.txt
Last active March 21, 2016 16:38
EOFError: end of file reached
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/protocol.rb:153 read_nonblock
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/protocol.rb:153 rbuf_fill
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/protocol.rb:134 readuntil
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/protocol.rb:144 readline
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:945 recv_response
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:555 block in do_start
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:955 critical
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:555 do_start
/app/vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:520 start
/app/vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112 deliver!
{
"name": "doki",
"dependencies": {
"ember": "2.4.1",
"ember-cli-shims": "0.1.0",
"ember-cli-test-loader": "0.2.2",
"ember-qunit-notifications": "0.1.0",
"animate.css": "3.5.0",
"bootstrap-sass-official": "3.3.6",
"fontawesome": "4.5.0",
var app = new EmberApp(defaults, {
vendorFiles: {
'ember.js': 'bower_components/ember/ember.prod.js'
}
});
@typeoneerror
typeoneerror / component.js
Last active March 9, 2016 02:26
link-to-if component ala rails's link_to_if helper
import Ember from 'ember';
const {
Component,
computed
} = Ember;
const LinkToIfComponent = Component.extend({
condition: null,
var isDevelopmentLikeBuild = env.indexOf('development') > -1;
var fingerprintOptions = {
enabled: true,
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg'],
generateAssetMap: true,
prepend: config.APP.CDN_URL
};
if (isDevelopmentLikeBuild) {
pry(main)> topics=Topic.distinct.joins('LEFT OUTER JOIN lessons ON lessons.topic_id = topics.id AND lessons.status = 1').preload(:lessons).where(course_id: 1)
Topic Load (0.8ms) SELECT DISTINCT "topics".* FROM "topics" LEFT OUTER JOIN lessons ON lessons.topic_id = topics.id AND lessons.status = 1 WHERE "topics"."course_id" = $1 ORDER BY "topics"."position" DESC, "topics"."id" ASC [["course_id", 1]]
Lesson Load (0.5ms) SELECT "lessons".* FROM "lessons" WHERE "lessons"."topic_id" IN (1, 2, 3, 4, 5, 18, 6, 23, 24) ORDER BY "lessons"."position" DESC, "lessons"."id" ASC
[109] pry(main)> topics.collect { |topic| [topic.title, topic.lessons.length] }
=> [["Introduction", 5],
["Basic Command Line Usage", 5],
["Customizing Terminal and Command Prompts", 3],
["Advanced Finding", 3],
["Networking", 4],
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var Funnel = require('broccoli-funnel');
var MergeTrees = require('broccoli-merge-trees');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
});
first run:
assets/images/integrations/google_analytics-512.png: 32ms
assets/images/loaders/loading-spinning-bubbles.svg: 31ms
assets/images/fallback/default-course-avatar.svg: 33ms
assets/images/fallback/default-praise-image.svg: 32ms
assets/images/loaders/loading-bubbles-white.svg: 34ms
assets/images/integrations/infusionsoft-512.png: 35ms
assets/images/integrations/mailchimp-512.png: 35ms
assets/images/integrations/aweber-512.png: 31ms