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
| let moment = require("moment-timezone"); | |
| function subscriptionDateHandler(customTime, firstOrder){ | |
| let localTime; | |
| if(customTime == undefined){ | |
| localTime = moment().tz("America/Montreal"); | |
| }else{ | |
| localTime = moment(customTime._d).tz("America/Montreal") | |
| } |
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 'mechanize' | |
| require 'nokogiri' | |
| require 'active_support/core_ext/string' | |
| require 'csv' | |
| puts "Start Scrapping" | |
| mecha = Mechanize.new | |
| delegaciones = [ | |
| "alvaro-obregon", |
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
| class GoogleStore | |
| require 'google/api_client' | |
| GOOGLE_KEY = 'google_key' | |
| GOOGLE_SECRET = 'google_secret' | |
| APP_NAME = 'webstore' | |
| APP_VERSION = '1.1.0' | |
| def self.process_receipt(transaction_receipt) | |
| package_name = transaction_receipt.package_name |
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
| #!/usr/bin/perl | |
| # | |
| # author: jacob walcik | |
| # version: 0.3 | |
| # description: This will make some recommendations on tuning your Apache | |
| # configuration based on your current settings and Apache's memory usage | |
| # | |
| # acknowledgements: This script was inspired by Major Hayden's MySQL Tuner | |
| # (http://mysqltuner.com). |
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
| /* Enter Your Custom CSS Here */ | |
| .logo-header {width:100%} | |
| nav ul.menu li > a {text-transform: none;} | |
| .stp_l { | |
| position: relative; | |
| height: 210px; | |
| margin-left: 3px; | |
| width: 659px; | |
| } | |
| .stp_r { |
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 module is created to test the apple sandbox in app purchase server to validate a receipt using Ruby Code. | |
| # Based on VerifyReceipt.rb [@sauloarruda (http://twitter.com/sauloarruda)] | |
| # AppStore.rb by @gessgallardo (http://twitter.com/gessgallardo) | |
| require "faraday" | |
| require "faraday_middleware" | |
| module AppStore | |
| class Requestor | |
| attr_accessor :test |
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 class will wrap an S3 object and provide the methods that the Mailgun library expects in order | |
| # to use the S3 object for sending a mail attachment. | |
| # | |
| # Use as follows: | |
| # | |
| # data = Multimap.new | |
| # data[:from] = "My Self <no-reply@example.com>" | |
| # data[:subject] = "Subject" | |
| # data[:to] = "#{recipients.join(', ')}" |
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
| #!/bin/bash | |
| for i in "$@" | |
| do | |
| case $i in | |
| -d=*|--database=*) | |
| DB="${i#*=}" | |
| shift # past argument=value | |
| ;; | |
| -a=*|--app=*) |