Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Pouya Kary ✨ pouyakary

I may be slow to respond.
View GitHub Profile
View SomeFunQuestionsStupidAnswer.cs
// Program.cs
// Created by Pouya Kary on 2015/9/18
// Copyright (c) 2015 Pouya Kary. All rights reserved.
// This code is published under the GNU General Public
// License v3 published by Free Software Foundation.
pouyakary / dark-style-from-vs-2015.json
Last active May 25, 2016 16:06 — forked from rdavisau/dark-style-from-vs-2015.json
View dark-style-from-vs-2015.json
"description":"From Visual Studio Code",
"originator":"Imported from /Users/rdavis/Library/XamarinStudio-5.0/HighlightingSchemes/dark-style-from-vs-2015.vssettings",
{"name": "Background(Read Only)", "color":"#1E1E1E" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007E80" },
{"name": "Fold Square", "color":"#A5A5A5" },
pouyakary / legend.css
Created June 30, 2016 15:28
Sample Legend CSS
View legend.css
* If using Legend in please make sure you have all these classes defined.
.legend-section {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
pouyakary /
Created November 25, 2017 06:48

Keybase proof

I hereby claim:

  • I am pmkary on github.
  • I am pouyakary ( on keybase.
  • I have a public key ASBRgo0-3BPTWQEv6GlTtE-FbHyUiF_sEndZeY6y5o9bzQo

To claim this, I am signing this object:

pouyakary / create-google-event-link.js
Last active December 18, 2017 06:38
To create a link for Google Calendar events
View create-google-event-link.js
pouyakary / uni-selectall.js
Last active January 5, 2018 11:46
اینو کپی پیست کنین کنسول صفحه نظر سنجینتون و یهو همه نمره هارو باهم ست کنین - رو صفحه کیلیک راست بکنین و اینسپکت (یا اینسپکت المنت رو بزنین) بعد برین توی کنسول
View uni-selectall.js
val = prompt("Value to set?"); [ ...document.querySelectorAll('select') ].map( x => x.value = val )
pouyakary / rewriter.js
Last active May 11, 2018 20:45
The most basic rewriting system to play with
View rewriter.js
// 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 / URL
Created August 18, 2018 16:04
Kary Pro Colors - Bare Minimal Dark
View URL
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 /
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.