Skip to content

Instantly share code, notes, and snippets.

View pouyakary's full-sized avatar

Pouya Kary ✨ pouyakary

View GitHub Profile
//
// 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
pouyakary / dark-style-from-vs-2015.json
Last active May 25, 2016 16:06 — forked from rdavisau/dark-style-from-vs-2015.json
dark-style-from-vs-2015.json
{
"name":"Dark",
"version":"1.0",
"description":"From Visual Studio Code",
"originator":"Imported from /Users/rdavis/Library/XamarinStudio-5.0/HighlightingSchemes/dark-style-from-vs-2015.vssettings",
"colors":[
{"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
pouyakary / connectHTMLelements_SVG.png
Created June 5, 2016 13:46 — forked from alojzije/connectHTMLelements_SVG.png
Connect two elements / draw a path between two elements with SVG path (using jQuery)
connectHTMLelements_SVG.png
@pouyakary
pouyakary / legend.css
Created June 30, 2016 15:28
Sample 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
pouyakary / keybase.md
Created November 25, 2017 06:48
keybase.md

Keybase proof

I hereby claim:

  • I am pmkary on github.
  • I am pouyakary (https://keybase.io/pouyakary) on keybase.
  • I have a public key ASBRgo0-3BPTWQEv6GlTtE-FbHyUiF_sEndZeY6y5o9bzQo

To claim this, I am signing this object:

@pouyakary
pouyakary / create-google-event-link.js
Last active December 18, 2017 06:38
To create a link for Google Calendar events
@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 / 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 / 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 / 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'"