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
const renderFields = fields => | |
Object.keys(fields).map((name, i) => { | |
if (!fields[name].input) return null; | |
return ( | |
<Grid item xs={12}> | |
<Field | |
key={name} | |
name={name} | |
label={fields.labels[i]} | |
{...fields[name]} |
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
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<style> | |
.square, | |
.landscape { visibility: hidden; } | |
.portrait { visibility: visible; } | |
@media (min-aspect-ratio: 1/1) { | |
.portrait, | |
.landscape { visibility: hidden; } | |
.square { visibility: visible; } |
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
{%- comment -%} | |
Put it in your snippets folder and include it in your templates: | |
{% include 'sort-by' %} | |
{%- endcomment -%} | |
<div id="sort-by-container"></div> | |
<script> | |
// Get the URL search parameters | |
const params = new URLSearchParams(location.search); | |
const currentParams = params.get('sort_by'); |
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
# This is the DEVELOPMENT version of config_local.yml | |
# Database credentials. | |
database: | |
driver: mysql | |
databasename: bolt | |
username: database_user | |
password: 'hunter42' | |
# Use unoptimized theme in development |
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
{% if table %} | |
<table> | |
{% if table.header %} | |
<thead> | |
<tr> | |
{% for th in table.header %} | |
<th>{{ th.c }}</th> | |
{% endfor %} | |
</tr> | |
</thead> |
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
@charset "UTF-8"; | |
/* ========================================================================== | |
INUITCSS | |
========================================================================== */ | |
/** | |
* inuitcss, by @csswizardry | |
* | |
* github.com/inuitcss | inuitcss.com | |
*/ | |
/** |
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
@charset "UTF-8"; | |
/* ========================================================================== | |
INUITCSS | |
========================================================================== */ | |
/** | |
* inuitcss, by @csswizardry | |
* | |
* github.com/inuitcss | inuitcss.com | |
*/ | |
/** |
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 | |
$repo_dir = '/home/username'; | |
$branch_to_deploy = 'master'; | |
$update = false; | |
// Parse data from Bitbucket hook payload | |
$payload = json_decode($_POST['payload']); | |
if (empty($payload->commits)) { |
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
// Export Layers To Files (Clean) | |
// Copyright 2007. Adobe Systems, Incorporated. All rights reserved. | |
// This script will export each layer in the document to a separate file. | |
// Written by Naoki Hada | |
// ZStrings and auto layout by Tom Ruark | |
// Bug fixes by Eric Ching | |
// Modded for cleaner output by Zomars | |
/* |
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
background: linear-gradient(1deg, #a24bcf, #cf4b4b, #c0cf4b, #52cf4b, #52cf4b, #4bc5cf, #4b79cf); | |
background-size: 1400% 1400%; | |
-webkit-animation: encounterGradient 30s ease infinite; | |
-moz-animation: encounterGradient 30s ease infinite; | |
-o-animation: encounterGradient 30s ease infinite; | |
animation: encounterGradient 30s ease infinite; | |
@-webkit-keyframes encounterGradient { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} |