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/controllers/rsvp_sxsw_controller.rb | |
class RsvpSxswController < ApplicationController | |
MAILCHIMP_API_KEY = "XXXX" | |
MAILCHIMP_LIST_ID = "XXXX" | |
# GET /rsvp_sxsw | |
def new | |
end |
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
window.App ||= {} | |
class App.GemgentoCategories extends App.Base | |
show: => | |
new App.ProductGrid() | |
@infiniteScroll() | |
return | |
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
#Set Magento root directory permissions. Call using the following: | |
# curl -sL https://goo.gl/b1NkHW | sudo bash | |
#!/bin/bash | |
if [ ! -f ./app/etc/local.xml ]; then | |
echo "-- ERROR" | |
echo "-- This doesn't look like a Magento install. Please make sure" | |
echo "-- that you are running this from the Magento main doc root dir" | |
exit | |
fi |
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
#!/bin/bash | |
# Updating Ubunut | |
echo "updating ubunutu... please be patient" | |
apt-get update && apt-get upgrade -y | |
echo "installing required packages... please be patient" | |
apt-get install htop lib32gcc1 -y | |
# Create steam user if needed |
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
packages: | |
yum: | |
git: [] | |
htop: [] |
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
module ActiveRecordExtension | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Add a SELECT SUM() by CASE to query. | |
# | |
# @param cases [Hash(:attr, :val, :operand), Array(Hash(:attr, :val, :operator))] | |
# @param sum_field [Symbol, String] |
NewerOlder