Skip to content

Instantly share code, notes, and snippets.

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

@marxvn
marxvn / 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;
@marxvn
marxvn / fwdays-sunflower-animation-final-animation.markdown
Created March 19, 2019 11:38
FWDays Sunflower animation [Final animation]
@marxvn
marxvn / 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);
@marxvn
marxvn / 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