Skip to content

Instantly share code, notes, and snippets.

const dev = process.env.NODE_ENV !== 'production';
if (dev) {
require('dotenv').config();
}
const { parentPort } = require('worker_threads');
const Cabin = require('cabin');
const { Signale } = require('signale');
// initialize cabin
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.10.0, 0.99.99]'
}
}
// https://documentation.onesignal.com/reference#create-notification
var request = require('request');
var Promise = require("bluebird");
// email, templateId are required
module.exports = async function (email, templateId, payload) {
var message = '', heading = '', subtitle = '';
var restKey = process.env.ONE_SIGNAL_REST_KEY;
var appID = process.env.ONE_SIGNAL_APP_ID;
apply plugin: 'com.android.application'
ext {
supportlib_version = '23.3.0'
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location '/usr/local/Cellar/android-sdk/24/add-ons/addon-google_apis-google-19-1' (Expected '/usr/local/Cellar/android-sdk/24/add-ons/addon-google_apis-google-19')
Already observed package id 'add-ons;addon-google_apis-google-19' in '/usr/local/Cellar/android-sdk/24/add-ons/addon-google_apis-google-19'. Skipping duplicate at '/usr/local/Cellar/android-sdk/24/add-ons/addon-google_apis-google-19-1'
Observed package id '..;..;..;var;lib;android-sdk;samples;android-15' in inconsistent location '/usr/local/Cellar/android-sdk/24/samples/android-15' (Expected '/usr/local/Cellar/android-sdk/24/../../../var/lib/android-sdk/samples/android-15')
Observed package id '..;..;..;var;lib;android-sdk;samples;android-17' in inconsistent location '/usr/local/Cellar/android-sdk/24/samples/android-17' (Expected '/usr/local/Cellar/android-sdk/24/../../../var/lib/android-sdk/samples/android-17')
Observed package id '..;..;..;var;lib;android-sdk;samples;androi
module.exports = function extend($) {
$.fn.autoSizr = function(options) {
var el, elements, _i, _len, _results
elements = $(this)
if (elements.length < 0) {
return
}
_results = []
for (_i = 0, _len = elements.length; _i < _len; _i++) {
el = elements[_i]
module.exports = function PgConnectionArgFilter(
builder,
{ pgInflection: inflection }
) {
builder.hook(
"init",
(
_,
{
addType,
@pencilcheck
pencilcheck / autoSizr.js
Created July 10, 2017 04:56 — forked from iamkirkbater/autoSizr.js
Simple jQuery Plugin that auto resizes text to fill a specific sized div (great for responsive slideshows that utilize large banner text with variable lengths), derived from https://gist.github.com/iam4x/5015270
$.fn.autoSizr = function () {
var el, elements, _i, _len, _results;
elements = $(this);
if (elements.length < 0) {
return;
}
_results = [];
for (_i = 0, _len = elements.length; _i < _len; _i++) {
el = elements[_i];
_results.push((function(el) {
var itemCount = getCookie("itemCount");
if (itemCount !== "") {
$(".cart").text("(" + itemCount + ")");
}
function addToCart(btn, itemCode) {
addToCartApi(btn, itemCode);
module.exports = {
webpack: (config) => {
config.module.rules.push(
// yaml
{
test: /\.yaml$/,
use: [
{
loader: 'emit-file-loader',
options: {