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
<?php | |
/************************************************************* | |
* Prepares variables for the html.html.twig template. | |
* @param $variables | |
*/ | |
function basic_preprocess_html(&$variables) { | |
try { | |
$variables['is_front'] = \Drupal::service('path.matcher')->isFrontPage(); | |
} | |
catch (Exception $e) { |
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
.container { | |
height: 100vh; | |
position: relative; | |
width: 100%; | |
margin: 0 auto; | |
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww%2Ew3%2Eorg%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220%25%22%20fill%3D%22%23338%22%20width%3D%2212%2E5%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2212%2E5%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2212%2E5%25%22%20fill%3D%22%232b2b74%22%20width%3D%2212%2E5%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2225%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2225%25%22%20fill%3D%22%23338%22%20width%3D%2212%2E5%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2237%2E5%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2237%2E5%25%22%20fill%3D%22%232b2b74%22%20width%3D%2212%2E5%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2250%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25% |
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
<div class="container"> | |
<div class="foo"> | |
I'm a foo. | |
</div> | |
</div> |
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
.container { | |
height: 100vh; | |
position: relative; | |
width: 100%; | |
margin: 0 auto; | |
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww%2Ew3%2Eorg%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220%25%22%20fill%3D%22%23338%22%20width%3D%2225%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2225%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2225%25%22%20fill%3D%22%232b2b74%22%20width%3D%2225%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2250%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2250%25%22%20fill%3D%22%23338%22%20width%3D%2225%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2275%25%22%20fill%3D%22%236666a6%22%20width%3D%220%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2275%25%22%20fill%3D%22%232b2b74%22%20width%3D%2225%25%22%20height%3D%22100%25%22%2F%3E%3C%2Fsvg%3E"); | |
} | |
@media (min-width: 700px) { | |
.container { |
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
<div class="container"> | |
<div class="foo"> | |
I'm a foo. | |
</div> | |
</div> |
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
{ | |
"uri": "http://0.0.0.0:9233/api/v1/users", | |
"links": { | |
"about": { | |
"href": "http://path.to/user/resource/1" | |
}, | |
"describes": { | |
"href": "http://path.to/describes" | |
}, | |
"help": { |
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
importPackage(java.io); | |
importPackage(java.lang); | |
System.out.println("JavaScript!"); | |
// create some variables to use | |
// TERM: assignment | |
var a = 1; | |
var b = 2; | |
var c = 3; |
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
set session to load script (POSIX file "/Users/tony/Library/Application Support/iTerm/Scripts/Session.scpt") | |
set session's server to "middleman" | |
set session's server_url to "http://0.0.0.0:4567/" | |
set session's server_path to "/Users/tony/Clients/Mulvana/Solutions/Middleman/mulvana" | |
set session's build_path to "/Users/tony/Clients/Mulvana/Solutions/Middleman/mulvana" | |
set session's source_path to "/Users/tony/Clients/Mulvana/Solutions/Middleman/mulvana/source" | |
set session's editor to "/usr/local/bin/mvim" | |
session's start_session() |
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
property server : missing value | |
property server_url : missing value | |
property server_path : missing value | |
property build_path : missing value | |
property source_path : missing value | |
property editor : missing value | |
on start_session() | |
tell application "iTerm" |
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
console.log("JavaScript!"); | |
// create some variables to use | |
// TERM: assignment | |
var a = 1; | |
var b = 2; | |
var c = 3; | |
var d = 4; | |
var e = 5; |