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
@typeoneerror
typeoneerror / drip-es6.js
Last active February 23, 2018 21:59
drip-es6.js
// @flow
/**
* {
* success: true,
* visitor_uuid: "f627ee608adb01315d1022000ab2058a",
* anonymous: false,
* email: "john@acme.com",
* custom_fields: { "name": "John" },
* tags: ["Customer"],
unlock_tests = [
['ULLL', 'ULLL'], # first unlocked, do nothing
['LLLL', 'ULLL'], # first should be unlocked
['LULL', 'UULL'],
['LLUL', 'UUUL'],
['LLLU', 'UUUU'],
['UULL', 'UULL'],
// mixins/dictionary-observable.js
import Ember from 'ember';
const {
Mixin,
on,
run
} = Ember;
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

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:

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

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
// 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);
});
// 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);
});
if (deployTarget === 'development') {
ENV['ember-cli-mirage'] = { enabled: process.env.WITH_MIRAGE || false };
}