Skip to content

Instantly share code, notes, and snippets.

View Resurser's full-sized avatar
💻
O.T

Resurser Resurser

💻
O.T
  • Lviv
View GitHub Profile
@Resurser
Resurser / sort_divs.css
Created October 23, 2020 20:54 — forked from amelieykw/sort_divs.css
[jQuery - sort divs - by 'data-' attribute] #jQuery #javascript #sort_divs
div[data-percentage] {
font-family: sans-serif;
background: teal;
padding: 10px;
font-weight: bold;
color: #023636;
text-shadow: 0 1px 0 #58BBBB;
font-size: 20px;
width: 100px;
margin: 4px auto;
@Resurser
Resurser / Container.php
Created July 26, 2019 00:16 — forked from MustafaMagdi/Container.php
PHP Dependency Injection Container
<?php
/**
* Class Container
*/
class Container
{
/**
* @var array
*/
@Resurser
Resurser / select2-flat.css
Created June 3, 2019 17:19 — forked from kottenator/select2-flat.css
Select2 styles for Flat UI
/*
* Select2 v3.4.6 styles customization for Flat UI
*/
/*----------------------------------------------- Main select element ------------------------------------------------*/
.select2-container .select2-choice {
height: 41px; /* Jobsy form controls have 37px total height */
border: 2px solid #bdc3c7;
border-radius: 6px;
outline: none;
font: 15px/38px "Lato", Liberation Sans, Arial, sans-serif;
<?php
function urlsafe_b64encode($string) {
return str_replace(array('+','/','='),array('-','_',''), base64_encode($string));
}
$timestamp=time();
$ampBaseUrl = "https://www-domain-com.cdn.ampproject.org";
$signatureUrl = '/update-cache/c/s/www.domain.com/amp/page-url?amp_action=flush&amp_ts='.$timestamp;