Contents:
∇ app | |
∇ core | |
∇ guards | |
auth.guard.ts | |
module-import.guard.ts | |
no-auth.guard.ts | |
∇ interceptor | |
token.interceptor.ts | |
error.interceptor.ts | |
∇ services |
∇ app | |
∇ core | |
∇ guards | |
auth.guard.ts | |
module-import.guard.ts | |
no-auth.guard.ts | |
∇ interceptor | |
token.interceptor.ts | |
error.interceptor.ts | |
∇ services |
<?php | |
/** | |
* Alter dns-prefetch links in <head> | |
*/ | |
add_filter('wp_resource_hints', function (array $urls, string $relation): array { | |
// If the relation is different than dns-prefetch, leave the URLs intact | |
if ($relation !== 'dns-prefetch') { | |
return $urls; | |
} |
title: rbenv category: Ruby layout: 2017/sheet updated: 2017-10-11 weight: -1 description: | A one-page guide to rbenv Ruby version manager, with usage examples and more. intro: | rbenv lets you manage installations of multiple Ruby versions.
// Put this file in Program Files\Adobe\Photoshop\Presets\Scripts\ | |
// In PhotoShop menu File > Scripts > Layers To Sprite Sheet | |
// Arrange layers into a sprite sheet. | |
if (documents.length > 0) { | |
var docRef = activeDocument; | |
var numLayers = docRef.artLayers.length; | |
var cols = docRef.width; |
The following outlines how to setup Heroku + Cloudflare with a full SSL certificate. What this means is that communication between the browser and the Cloudflare CDN is encrypted as well as communication between Cloudflare and Heroku’s origin server. Follow these steps exactly and the setup is a breeze.
First you want to add the root domain and the www domain to heroku. You do this by clicking into your production application, then going to settings and then scrolling down to Domains and certificates.
Here you will add <your_domain>.com
and www.<your_domain>.com
. This will give you two CNAME records. They will look something like <your_domain>.com.herokudns.com
and www.<your_domain>.com.herokudns.com
.
#!/usr/bin/env ruby | |
require 'tmpdir' | |
require 'fileutils' | |
dir = Dir.tmpdir() | |
if File.directory?("#{dir}/bulma") | |
FileUtils.remove_dir("#{dir}/bulma") | |
end |