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
headers = {} | |
headers['X-MJ-CustomID'] = 'rubyPR_Test_ID_1469790724' | |
email = { from_email: "[email protected]", | |
from_name: "Mailjet TEST", | |
subject: 'Your email flight plan 23!', | |
text_part: 'Dear passenger 1, welcome to Mailjet! May the delivery force be with you!', | |
html_part: '<h3>Dear passenger 1, welcome to Mailjet!</h3><br />May the delivery force be with you!', | |
recipients: [{:email => '[email protected]'}], | |
CustomID: '1234567890', | |
headers: headers |
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
DROP FUNCTION thumbnail_for_post(_postid numeric); | |
CREATE FUNCTION thumbnail_for_post(_postid numeric) RETURNS text | |
AS $$ | |
#print_strict_params on | |
DECLARE | |
thumbnail text; | |
BEGIN |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Noshow Calculator</title> | |
<style id="jsbin-css"> | |
.font16 { | |
font-size: 16px; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Noshow Calculator</title> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="calcHeader"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<soap:body> | |
<recurring:listrecurringdetailsresponse xmlns:recurring="http://recurring.services.adyen.com"> | |
<recurring:result> | |
<creationdate xmlns="http://recurring.services.adyen.com"> | |
2017-02-16T16:13:14+01:00 | |
</creationdate> | |
<details xmlns="http://recurring.services.adyen.com"> | |
<recurringdetail> |
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
<div id="logoheader"></div> | |
<div id="pmcontent"> | |
<input type="hidden" name="shopperEmail" value="[email protected]" /> | |
<input type="hidden" name="shopperReference" value="grasshopper52" /> | |
<input type="hidden" name="recurringContract" value="RECURRING" /> |
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
cd ~/.rbenv && git pull | |
cd ~/.rbenv/plugins/ruby-build && git pull && cd - | |
rbenv install 2.2.7 | |
rbenv local 2.2.7 | |
gem install bundler |
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 HardWorker | |
include Sidekiq::Worker | |
sidekiq_options queue: :default, backtrace: true, retry: 6 | |
def perform(name, count) | |
1000.times do |i| | |
logger.error "HardWorker #{i}, #{rand(i)}" | |
y = i * i / 3 | |
z = i / 5 | |
x = Math.sin(i) + Math.cos(i) |