Skip to content

Instantly share code, notes, and snippets.

View pouyakary's full-sized avatar
Loving the Spring

Pouya Kary ✨ pouyakary

Loving the Spring
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.


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 / A much much better import for
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 /
Created July 19, 2020 21:24

Hello World.

pouyakary /
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!

You have to enable AppleScript JavaScript execution in Chrome first by going to:
View > Developer > Allow JavaScript from Apple Events.
pouyakary /
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 / URL
Created August 18, 2018 16:04
Kary Pro Colors - Bare Minimal Dark
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 / uni-selectall.js
Last active January 5, 2018 11:46
اینو کپی پیست کنین کنسول صفحه نظر سنجینتون و یهو همه نمره هارو باهم ست کنین - رو صفحه کیلیک راست بکنین و اینسپکت (یا اینسپکت المنت رو بزنین) بعد برین توی کنسول
val = prompt("Value to set?"); [ ...document.querySelectorAll('select') ].map( x => x.value = val )
pouyakary / create-google-event-link.js
Last active December 18, 2017 06:38
To create a link for Google Calendar events