Skip to content

Instantly share code, notes, and snippets.

View gist:9cd3f3b2fc7dd146b77f44d054df1d47
<?php
function scrypt( $string, $action = 'e' ) {
// you may change these values to your own
$secret_key = 'my_simple_secret_key';
$secret_iv = 'my_simple_secret_iv';
$output = false;
$encrypt_method = "AES-256-CBC";
$key = hash( 'sha256', $secret_key );
View SCSS mixin font connect
// Connect fonts
@mixin cfont($name, $dir, $file-name){
font-family: '#{$name}';
src: url('../fonts/#{$dir}/#{$file-name}.eot');
src: local('☺'),
url('../fonts/#{$dir}/#{$file-name}.woff') format('woff'),
url('../fonts/#{$dir}/#{$file-name}.ttf') format('truetype'),
url('../fonts/#{$dir}/#{$file-name}.svg') format('svg');
font-weight: normal;
font-style: normal;
View Base HTML5 skeleton
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="https://example.com/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://example.com/css/style.css">
<link rel="image_src" href="https://example.com/image.png">
<link rel="canonical" href="https://example.com/">
<meta property="og:title" content="Title">
<meta property="og:description" content="Description">