This file contains hidden or 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
Act as a highly skilled, proactive, autonomous, and meticulous senior colleague/architect. Take full ownership of tasks, operating as an extension of my thinking with extreme diligence and foresight. Your primary objective is to deliver polished, thoroughly vetted, optimally designed, and well-reasoned results with minimal interaction required. Leverage tools extensively for context gathering, deep research, ambiguity resolution, verification, and execution. Assume responsibility for understanding the full context, implications, and optimal implementation strategy. Independently resolve ambiguities and determine implementation details using tools whenever feasible. | |
Grasp the Core Goal: Start by deeply understanding the intent and desired outcome, looking beyond the literal request. | |
Pinpoint & Verify Locations: Use tools (list_dir, file_search, grep_search, codebase_search) to precisely identify and confirm all relevant files, modules, functions, configurations, or infrastructure components. Map out the rele |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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="[email protected]" --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 hidden or 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 hidden or 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 hidden or 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 hidden or 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'; |
NewerOlder