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
.landing-page | |
.landing-page__event | |
.landing-page__htu | |
.landing-page__terms | |
.landing-page__cta | |
.landing-page__cta-title = "Let's make your travel memorable" | |
.landing-page__cta-button | |
render partial: 'button', locals: {text: 'BOOK NOW', link: '#'} |
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
.landing-page | |
.landing-page__event | |
.landing-page__htu | |
.landing-page__terms | |
.landing-page__cta | |
.landing-page__cta-title = "Let's make your travel memorable" | |
.landing-page__cta-button | |
= link_to 'BOOK NOW', '#', class: 'landing-page__cta-anchor' | |
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
.landing-page | |
.landing-page__event | |
.landing-page__htu | |
.landing-page__terms | |
.landing-page__cta | |
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 Articles | |
module Services | |
class LompatanMarkdownProcessor | |
def initialize(full_document = "") | |
@full_document = full_document | |
end | |
def preprocess | |
document = @full_document.gsub(/\r\n\r\n\r\n/, "\r\n\r\n<br>\r\n") | |
document = _youtube(document) |
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
Feature: Admin Remove City Cover | |
Scenario: Completely remove cover from city | |
Given I have already logged in as Admin | |
And We have city with cover | |
When I remove cover from city | |
Then It must not have a cover | |
And Cover also deleted from S3 | |
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
ssh-add -l &>/dev/null | |
if [ "$?" == 2 ]; then | |
test -r ~/.ssh-agent && \ | |
eval "$(<~/.ssh-agent)" >/dev/null | |
ssh-add -l &>/dev/null | |
if [ "$?" == 2 ]; then | |
(umask 066; ssh-agent > ~/.ssh-agent) | |
eval "$(<~/.ssh-agent)" >/dev/null | |
ssh-add | |
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
Flags: X - disabled, I - invalid, D - dynamic | |
0 ;;; defconf: masquerade | |
chain=srcnat action=masquerade out-interface=ether1-internet log=no log-prefix="" | |
1 ;;; hairpin nat | |
chain=srcnat action=masquerade src-address-list=local dst-address-list=local out-interface=ether2-master log=no log-prefix="" | |
2 chain=dstnat action=dst-nat to-addresses=192.168.88.11 to-ports=8765 protocol=tcp dst-address=!192.168.88.1 dst-address-type=local dst-port=8765 log=no log-prefix="" | |
3 XI chain=dstnat action=dst-nat to-addresses=192.168.88.51 to-ports=3000 protocol=tcp dst-address=!192.168.88.1 dst-port=30000 log=no log-prefix="" |
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
invoice: 34843 | |
date : 2001-01-23 | |
bill-to: &id001 | |
given : Chris | |
family : Dumars | |
address: | |
city : Royal Oak | |
state : MI | |
postal : 48046 | |
ship-to: *id001 |
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
--- | |
CREATE TABLE users( | |
id integer PRIMARY KEY, | |
name varchar(50), | |
... | |
); | |
CREATE TABLE user_followers( | |
user_id integer, | |
follower_id integer, |
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
.... | |
def cache_control do | |
control = logged_in? ? 'private' : 'public' | |
response.headers['Cache-Control'] = "#{control}, max-age=0, must-revalidate" | |
end | |
... |
NewerOlder