Skip to content

Instantly share code, notes, and snippets.

View gist:9cd3f3b2fc7dd146b77f44d054df1d47
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">
<meta charset="utf-8">
<link rel="shortcut icon" href="" type="image/x-icon">
<link rel="stylesheet" href="">
<link rel="image_src" href="">
<link rel="canonical" href="">
<meta property="og:title" content="Title">
<meta property="og:description" content="Description">