This file contains 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 namespace MyApp\Utils\MailChimp; | |
use MyApp\Utils\FacebookAdsRepository; | |
class MailChimpService | |
{ | |
/** | |
* @var FacebookAdsRepository | |
*/ | |
protected $facebook; |
This file contains 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 namespace MyApp\Utils\MailChimp; | |
use \Illuminate\Support\Facades\Facade; | |
/** | |
* Facade class to be called whenever the class UserService is called | |
*/ | |
class MailChimpFacade extends Facade { | |
/** |
This file contains 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 namespace MyApp\Utils\MailChimp; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* Register our Services with Laravel | |
*/ | |
class MailChimpServiceProvider extends ServiceProvider | |
{ | |
protected function register() |
This file contains 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 namespace MyApp\Controllers\Mailer; | |
use MailChimpAPI; | |
class MailChimpController extends \Controller | |
{ | |
/** | |
* Syncs MailChimp data | |
* | |
* @throws \Exception |
This file contains 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
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var ngAnnotate = require('gulp-ng-annotate'); | |
var plumber = require('gulp-plumber'); | |
gulp.task('app', function() { | |
return gulp.src(['public/app/**/app.js', 'public/app/**/*.module.js', 'public/app/**/*.js']) | |
.pipe(plumber()) | |
.pipe(concat('app.js', {newLine: ';'})) | |
.pipe(ngAnnotate({add: true})) |
This file contains 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
var uglify = require('gulp-uglify'); | |
var bytediff = require('gulp-bytediff'); | |
var rename = require('gulp-rename'); | |
gulp.task('prod', ['app'], function() { | |
return gulp.src('public/src/app.js') | |
.pipe(plumber()) | |
.pipe(bytediff.start()) | |
.pipe(uglify({mangle: true})) | |
.pipe(bytediff.stop()) |
This file contains 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
gulp.task('watch', ['prod'], function () { | |
return gulp.watch('public/app/**/*.js', ['prod']); | |
}); | |
gulp.task('default', ['watch', 'app']); |
This file contains 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
if (/Android|webOS|iPhone|iPod|iPad|BlackBerry|Nokia/i.test( navigator.userAgent )) { | |
if ( bottomStickyBanner.length != 0 ) { | |
var BSBisBannerAttached = true; | |
var BSBviewScale = new FlameViewportScale(); | |
var BSBscrollHandler = function (event) { |
This file contains 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 namespace App\Services; | |
use \Pest; | |
class Yourls | |
{ | |
/** @var Pest Our connection handler **/ | |
protected $library = null; | |
/** @var string $oken **/ |
This file contains 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 | |
/* ... */ | |
const RETURN_FORMAT_JSON = 'json'; | |
const RETURN_FORMAT_XML = 'xml'; | |
/** | |
* Generates new short URL | |
* | |
* @param string $url | |
* @param string $format |