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
require: rubocop-rspec | |
AllCops: | |
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop | |
# to ignore them, so only the ones explicitly set in this file are enabled. | |
DisabledByDefault: true | |
TargetRubyVersion: 2.7 | |
Exclude: | |
- '**/node_modules/**/*' | |
- '**/vendor/**/*' |
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
;(function ( app ) { | |
'use strict'; | |
angular.module('PeachDelivery') | |
.factory("DeployService", DeployService); | |
DeployService.$inject = []; | |
function DeployService () { |
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
;(function () { | |
"use strict"; | |
// code in here keeps the global scope clean! | |
var globalVar = "I'm a global variable!"; | |
function privateFunction () { | |
return "I'm a private function!"; | |
} |
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
app.directive("scrollToOnLoad", [ | |
'$location', | |
function( $location ) { | |
return { | |
restrict: "A", | |
link: function(scope, element, attributes) { | |
var scrollTo = $location.hash() === attributes.id; | |
// scroll to the top of the posting with a padding for the header | |
if(scrollTo) { |
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
Get files from the dev server | |
sudo -E rsync --recursive --compress --times --rsh='ssh -l deploy' \ | |
spt-stage.com:/var/www/deploy/current/sites/de.animax/files/ \ | |
/var/www/deploy/current/sites/de.animax/files/ && chown -R vagrant:www-data /var/www/deploy/current/sites/de.animax/files && sudo chmod -R 777 /var/www/deploy/current/sites/de.animax/files && find /var/www/deploy/current/sites/de.animax/files -type d -exec sudo chmod 777 -R {} \; | |
All database commands | |
drush @de.animax sql-drop -y && drush cc drush && ssh -l chrismontes spt-stage.com drush @de.animax sql-dump | drush @de.animax sql-cli && drush @de.animax updb -y && drush @de.animax ucrt root --mail="chrismontes@about.me" --password="rewt" && drush @de.animax urol "super administrator" --name=root && drush @de.animax vset preprocess_css 0 --yes && drush @de.animax vset preprocess_js 0 --yes && drush @de.animax vset block_cache 0 --yes && drush @de.animax vset cache 0 --yes && drush @de.animax vset cache_content_flush_cache_block 0 --yes && drus |
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
/** | |
* A simple JavaScript wrapper that will provide allow | |
* you to take advantage of the ZeptoJS library if it | |
* is available, and fallback to jQuery if not. | |
* | |
* Based on this pattern explanation from Stack Overflow: | |
* http://stackoverflow.com/a/502068 | |
*/ | |
;(function( $, window, undefined ) { |
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
/** | |
* Blueprint JS starter view controller | |
*/ | |
var exampleViewController = (function( $, window, undefined ) { | |
// this is a private function | |
var buildListeners = function() { | |
var self = this, | |
// add a map of callbacks to use for the listeners below | |
callbacks = {}; |
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
/*jslint devel: true, nomen: true, unparam: true, white: true, indent: 4 */ | |
// | |
// $.fn.pluginName | |
// | |
;(function ($, window, undefined) { | |
// Give the plugin a descriptive name | |
var pluginName = 'pluginName', |
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
// this will pull events for a grabber action: down, up, and move | |
var getGrabberEvents = function() { | |
// run through possible events | |
if(window.navigator.msPointerEnabled) { // windows specific | |
// see http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx | |
return 'MSPointerDown MSPointerUp MSPointerMove'; | |
} else if(window.orientation && Modernizr.touch) { // html5 standard touch events | |
// if you don't want to use modernizr, see this thread: | |
// http://stackoverflow.com/questions/14267598/is-there-a-more-elegant-way-to-detect-touch-events-support-and-assign-either-a | |
return 'touchstart touchend touchmove'; |
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
######################################################################################### | |
# _ _ _ ______ _____ _ _ # | |
# | | | | | | | _ \ | _ | | | (_) # | |
# | | | | ___| |__ | | | |_____ __ | | | |_ _ ___ ___| |_ _ ___ _ __ ___ # | |
# | |/\| |/ _ \ '_ \ | | | / _ \ \ / / | | | | | | |/ _ \/ __| __| |/ _ \| '_ \/ __| # | |
# \ /\ / __/ |_) | | |/ / __/\ V / \ \/' / |_| | __/\__ \ |_| | (_) | | | \__ \ # | |
# \/ \/ \___|_.__/ |___/ \___| \_/ \_/\_\\__,_|\___||___/\__|_|\___/|_| |_|___/ # | |
# # | |
######################################################################################### |
NewerOlder