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

@pouyakary
pouyakary / macOS Big Sur Icon.aftemplate
Created November 7, 2021 20:39 — forked from niw/LICENSE
macOS Big Sur Icon Template for Affinity Photo
@pouyakary
pouyakary / A much much better import for ECMAScript.md
Last active November 8, 2021 11:49
A much much better import for ECMAScript

So if you have ever written in a ECMAScript language (JavaScript/TypeScript/...) you know that the autocomplete on the import is crap. Since you first say what you want and then say where from so the autocomplete has no idea what is available:

Visual Studio Code lets you define where in the snippets you want to fill step by step and that became a really good way to fix the problem. With the imp snippet you can do:

@pouyakary
pouyakary / HOMEPAGE.md
Created July 19, 2020 21:24
GITHUB HOMEPAGE

Hello World.

@pouyakary
pouyakary / README.md
Last active November 9, 2018 15:25
Make Chrome on Mac; Dark.

Make your Chrome dark, programatically.

Chrome does not have a system to be dark/light. Only way is to manually install themes and you can't use Starlight for it. So this is a simple script that turns your chrome into a dark themed chrome. You get the idea!

IMPORTANT
You have to enable AppleScript JavaScript execution in Chrome first by going to:
View > Developer > Allow JavaScript from Apple Events.
@pouyakary
pouyakary / modes.sh
Created September 28, 2018 11:18
Mac Dark/Light Changers in Terminal
alias light="osascript -e'tell application \"System Events\"' -e 'set dark mode of appearance preferences to false' -e 'end tell'"
alias dark="osascript -e'tell application \"System Events\"' -e 'set dark mode of appearance preferences to true' -e 'end tell'"
@pouyakary
pouyakary / URL
Created August 18, 2018 16:04
Kary Pro Colors - Bare Minimal Dark
pythonista3://?action=add-theme&theme-data=eNqdVs1u2zAMvvcpDO86A7Y7NElv-etlKDDsBQxZZhLNshjIMtasKLCH2BPuSaYfp7YSJ6lnnSzyI_mRFKXXuyAIOcslkYdMMaHC4DEIp8lstUzDz0ZYwIY0XGUKXpxwsppPHp6cUO2aKheE8SxHWYC0CunULKewbZQCmeWElluJjSisRjI3y2lcERVEllkJhxyJtFIlG2hBZzbT2CwH3KBQUc1-gZEksd0TpLK_4VdNNfgmMVgiR1kHf3__CRZEQvDMBKsID1babUuP5AOhL5KFE9ewJ5IolBlnAs642yg2pGL8YGXPIDhG32HbcCKdyjHzV7jUFPdQm-1X_WuygrRWkoltt6d3qSFzWh8rcclQB-4iZIpwRkMrfXNKIeWkri-Y-0TTGSnufYDmW3r6pjuiAijqfDAUFqnZgLSZ8Z1hAR62Ix_13E5js77EHRFtXICMJClYY6NNPbu6UX6i65MBGovZdL1I_Uj2En8AVR7iJFs58sIH7UD7F9soGQezKdZn6UJ47YnzIG2lrrgZquUGZUWUutwfbWansY8zIUe3XfbVzvD_l8n7kZncAS1zfPHp9TbNlBhERAUKuAp777Wj5pktRbY3G1_gac8LPSbddLx8YP0qNoIe7X2wXRSpywGGXd1n9pv2TtRQ8Ga2lICN8q23WihHnK9jgdNxBT5yH3da8oZx3fU3EjcUZoVFw2GEK4pVBUJdKmdslo_4yMA-G5I5R1rqTBGpxh3l9sq-AFrar0XctSjbClkNHGz2uqfAOl2vn-bddaiYagvXfyS8q_cfB2b0Z13nHxPjvQu6V0P_4tfWQNbaFSPcEY0f4kmyCu_e_gG97DQt
@pouyakary
pouyakary / rewriter.js
Last active May 11, 2018 20:45
The most basic rewriting system to play with
//
// Copyright 2018-present by Pouya Kary. Do whatever you like with
// it and don't sue me :D
//
// This is the most simple rewriting system that one can make.
// it might look silly but you can experiment all sorts of cool
// systems in it. Just check out the sample rules and the result
// you're going to get. Believe it or not it was only an accident
// to get that result.
@pouyakary
pouyakary / uni-selectall.js
Last active January 5, 2018 11:46
اینو کپی پیست کنین کنسول صفحه نظر سنجینتون و یهو همه نمره هارو باهم ست کنین - رو صفحه کیلیک راست بکنین و اینسپکت (یا اینسپکت المنت رو بزنین) بعد برین توی کنسول
val = prompt("Value to set?"); [ ...document.querySelectorAll('select') ].map( x => x.value = val )
@pouyakary
pouyakary / create-google-event-link.js
Last active December 18, 2017 06:38
To create a link for Google Calendar events