Org Name: myorg
Space: mycustomspace
Name of App: testapp
Custom Domain Name: domain.com
cf create-domain myorg domain.com
cf create-domain [org name] [custom domain name]
cf create-route mycustomspace domain.com -n testapp
require 'json' | |
require 'net/http' | |
require 'colorize' | |
require 'colorized_string' | |
print ColorizedString["What coin do you want a price for? (BTC Base Pair): "].colorize(:blue) | |
coin_name = gets | |
API_URL = "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=#{coin_name}" |
.wrapper { | |
display: grid; | |
grid-template-columns: repeat(12, 1fr); | |
grid-gap: 10px; | |
} | |
@for $i from 1 through 12 { | |
.col-#{$i} { | |
grid-column: span #{$i}; | |
} |
#thing { | |
height: 200px; | |
width: 200px; | |
background: grey; | |
} |
Org Name: myorg
Space: mycustomspace
Name of App: testapp
Custom Domain Name: domain.com
cf create-domain myorg domain.com
cf create-domain [org name] [custom domain name]
cf create-route mycustomspace domain.com -n testapp
<html> | |
<head> | |
<title>Service Worker</title> | |
<script src="index.js"></script> | |
<script src="service-worker.js"></script> | |
</head> | |
<body> | |
<h3>Background</h3> | |
<p> | |
This sample demonstrates basic service worker registration. During the installation step, a |
$gtc: grid-template-columns; | |
$gtr: grid-template-rows; | |
$gcs: grid-column-start; | |
$gce: grid-column-end; | |
$grs: grid-row-start; | |
$gre: grid-row-end; | |
$gridOptions: ( | |
("gtc", $gtc), | |
("gtr", $gtr), |
<div class="container"> | |
<div class="test">Test</div> | |
</div> |
//// | |
// A collection of function for advanced type checking | |
// @author Hugo Giraudel | |
//// | |
@function is-number($value) { | |
@return type-of($value) == 'number'; | |
} | |
@function is-time($value) { |
// Check local storage to see if the key 'contrast_increase' has been set to 'true' | |
window.onload = function() { | |
if (localStorage.getItem('contrast_increase') === 'true') { | |
increaseContrast() | |
} else { | |
console.log('Do Nothing') | |
} | |
}; | |
// Set contrast hex code in local storage |
document.addEventListener('page:change', function() { | |
document.getElementById('primary-content').className += 'animated fadeIn'; | |
}); | |
document.addEventListener('page:fetch', function() { | |
document.getElementById('primary-content').className += 'animated fadeOut'; | |
}); |