Skip to content

Instantly share code, notes, and snippets.

View qipt8's full-sized avatar

QiPT qipt8

  • Ninh Bình
View GitHub Profile

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@qipt8
qipt8 / nginx.conf
Last active August 29, 2015 14:23 — forked from denys281/nginx.conf
server {
# Listen on port 81
listen 81;
# Server name being used (exact name, wildcards or regular expression)
# server_name phpmyadmin.my;
root /usr/share/phpmyadmin;
@qipt8
qipt8 / encryption.js
Created March 10, 2021 14:16 — forked from vlucas/encryption.js
Stronger Encryption and Decryption in Node.js
'use strict';
const crypto = require('crypto');
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters)
const IV_LENGTH = 16; // For AES, this is always 16
function encrypt(text) {
let iv = crypto.randomBytes(IV_LENGTH);
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv);
@qipt8
qipt8 / opacity_colors.xml
Created November 13, 2022 20:07 — forked from thedoapps/opacity_colors.xml
Transparency colors, format: #AARRGGBB , where A : alpha R : red G : green B : blue , Hex Opacity Values
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C