Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
iOS, Capacitor, Ember, Vue, Rails

Benjamin Borowski typeoneerror

🤠
iOS, Capacitor, Ember, Vue, Rails
View GitHub Profile
View repair_progress_spec.rb
unlock_tests = [
['ULLL', 'ULLL'], # first unlocked, do nothing
['LLLL', 'ULLL'], # first should be unlocked
['LULL', 'UULL'],
['LLUL', 'UUUL'],
['LLLU', 'UUUU'],
['UULL', 'UULL'],
View dictionary-observable.js
// mixins/dictionary-observable.js
import Ember from 'ember';
const {
Mixin,
on,
run
} = Ember;
View sidekiq.rb
require 'sidekiq/web'
redis_options = { url: ENV['REDIS_URL'] }
Sidekiq.configure_server do |config|
config.redis = redis_options
end
Sidekiq.configure_client do |config|
config.redis = redis_options
View keybase.md

Keybase proof

I hereby claim:

  • I am typeoneerror on github.
  • I am typeoneerror (https://keybase.io/typeoneerror) on keybase.
  • I have a public key ASBbvRF_CKJ6codLAUG9CBd1iXyXTRVMgvsGu0NzFaACugo

To claim this, I am signing this object:

View sidekiq.rb
require 'sidekiq/web'
redis_options = { url: ENV['REDIS_URL'] }
Sidekiq.configure_server do |config|
config.redis = redis_options
end
Sidekiq.configure_client do |config|
config.redis = redis_options
View 2016.md

TOTY

  • Kata - NV
  • Brand New - Niki & The Dove
  • Gueto de Gent - Phillipi & Rodrigo
  • Semibreves - Hackman
  • Soul Food - Mat Zo
  • Waves - Bayonne
  • Me and Your Mama - Childish Gambino
  • Oye Bien - Chico, Captain Planet
View gist:6ba7196d95cff0b9cac0e24e78d175ec
// Compile javascript files from source
gulp.task('babel', function(cb) {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(babel({presets: ['es2015']}))
.pipe(gulp.dest(paths.scripts_compiled))
.pipe(gulp.dest(path.join(paths.theme_dir, scripts_dir, source_dir)))
.on('error', handleError);
});
View gist:de76e0ad73a42f28e7ab1a9e42d1888e
// Compile javascript files from source
gulp.task('babel', function(cb) {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(babel({presets: ['es2015']}))
.pipe(gulp.dest(paths.scripts_compiled))
.pipe(gulp.dest(path.join(paths.theme_dir, scripts_dir, source_dir)))
.on('error', handleError);
});
View environment.js
if (deployTarget === 'development') {
ENV['ember-cli-mirage'] = { enabled: process.env.WITH_MIRAGE || false };
}
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
});