- Filenames are case sensitive
- Allowed charset: a-zA-Z0-9-.
- Spaces are not allowed
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 | |
namespace App\Http\Controllers; | |
use Cache; | |
use Illuminate\Support\Str; | |
use Symfony\Component\Yaml\Yaml; | |
class GenericPageController | |
{ |
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
-------------------------- | |
Tailwind.config.js | |
-------------------------- | |
const colors = require('tailwindcss/colors') | |
const defaultTheme = require('tailwindcss/defaultTheme') | |
const colorVariable = require('@mertasan/tailwindcss-variables/colorVariable') | |
const defaultCustom = '#005aff' |
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
Test |
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 colors = require('tailwindcss/colors') | |
const defaultTheme = require('tailwindcss/defaultTheme') | |
const colorVariable = require('@mertasan/tailwindcss-variables/colorVariable') | |
const primary = '#005aff' | |
const primaryLight = '#008CFF' | |
// const secondary = '#1e1e1e' | |
const secondary = '#1E293B' | |
// const secondary = '#232323' | |
const tertiary = '#F1F5F9' |
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
// etc. | |
<div :class="[imageLoaded ? 'loaded-once' : '' ,'fade-in-lazyloading absolute w-full h-full left-0 top-0 bg-center bg-cover']" v-lazy:background-image="imageOptions"></div> | |
// etc. | |
<script> | |
// etc. | |
data () { |
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 | |
////////////////////////////////// | |
// Reddit "hot" story algorithm // | |
////////////////////////////////// | |
function hot($ups, $downs, $date) | |
{ | |
if (is_string($date)) $date = strtotime($date); | |
$s = $ups - $downs; |