Skip to content

Instantly share code, notes, and snippets.

@A973C
A973C / dashboard-ui.markdown
Last active December 17, 2023 13:42
Dashboard UI
@A973C
A973C / index.html
Created March 22, 2021 09:57
Isotope - checkboxes & URL Hash
<div id="form-ui">
<p>
<label><input type="checkbox" value=".red" /> red</label>
<label><input type="checkbox" value=".green" /> green</label>
<label><input type="checkbox" value=".blue" /> blue</label>
<label><input type="checkbox" value=".orange" /> orange</label>
</p>
<p id="output">--</p>
@A973C
A973C / index.html
Last active February 10, 2021 06:46
Smooth Scrolling Sticky ScrollSpy Navigation #js #css
<main>
<div>
<h1>Smooth Scrolling Sticky ScrollSpy Navigation</h1>
<section id="introduction">
<h2>Introduction</h2>
<p>…</p>
</section>
<section id="request-response">
<h2>Request &amp; Response</h2>
<p>…</p>
@A973C
A973C / DateTimeFrench.php
Last active February 6, 2021 04:11 — forked from PierreLebedel/DateTimeFrench.php
PHP DateTime in french language
<?php
class DateTimeFrench extends DateTime {
public function format($format='j M Y'){
$days_full = array(
'Monday' => 'Lundi',
'Tuesday' => 'Mardi',
'Wednesday' => 'Mercredi',
'Thursday' => 'Jeudi',
@A973C
A973C / backup.php
Created May 10, 2020 04:41 — forked from menzerath/backup.php
PHP: Recursively Backup Files & Folders to ZIP-File
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* MIT-License - 2012-2018 Marvin Menzerath
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit', '1024M');
@A973C
A973C / cache-json.php
Created April 18, 2020 03:17 — forked from ScottPhillips/cache-json.php
Cache Remote JSON Feed
<?php
/**
* API Request Caching
*
* Use server-side caching to store API request's as JSON at a set
* interval, rather than each pageload.
*
* @arg Argument description and usage info
*/
@A973C
A973C / cleaner.php
Created April 14, 2020 07:18 — forked from litzinger/cleaner.php
htmlpurifier example
<?php
/*
HTMLPurifier settings example
'cleaner_xss_clean' => 'no',
'cleaner_html_clean' => 'no',
'cleaner_allow_tags_in_post' => '',
'cleaner_allow_attr_in_template' => 'href, class, src, rel, width, height',
'cleaner_allow_tags_in_template' => 'img, h1, h2, h3, h4, h5, blockquote, strong, em, p, b, a, i, ul, li, ol, br',
*/
@A973C
A973C / simple-json-reponse.php
Created April 6, 2020 04:34 — forked from james2doyle/simple-json-reponse.php
A simple JSON response function for PHP. Used in various PhileCMS plugins.
<?php
function json_response($code = 200, $message = null)
{
// clear the old headers
header_remove();
// set the actual code
http_response_code($code);
// set the header to make sure cache is forced
header("Cache-Control: no-transform,public,max-age=300,s-maxage=900");
@A973C
A973C / feeds_unique.txt
Created October 27, 2019 08:59 — forked from eteubert/feeds_unique.txt
List of Podcast RSS Feeds, extracted via iTunes API
This file has been truncated, but you can view the full file.
<http://sailortalk.podOmatic.com/rss2.xml>
HTTP://www.knient.com/CAL/CAL-Podcast/CAL-Podcast.xml
Http://feeds.feedburner.com/fridgeandhbomb
Http://feeds.feedburner.com/wfodicks
Http://ravenc-taouf.podomatic.com/rss2.xml
Http://www.calvaryonline.org/podcasts/podcast.xml
Http://www.changkhui.com/XML/teemateepai.xml
httP://dtfreunde.podcaster.de/Deutsches_Theater.rss
http://-myantioch.sermon.tv/rss/main
http://004.podOmatic.com/rss2.xml
@A973C
A973C / index.pug
Created March 12, 2018 06:05 — forked from CodeMyUI/index.pug
Popout Slider
.slider
.slider__slide.slider__slide--active( data-slide="1" )
.slider__wrap
.slider__back
.slider__inner
.slider__content
h1 Slide <br> One
a.go-to-next next
.slider__slide( data-slide="2" )
.slider__wrap