Skip to content

Instantly share code, notes, and snippets.

@sassanh
sassanh / icon_types.py
Last active January 28, 2024 08:00
Huge python literal
"""Icon type for Material Design Icons."""
from typing import Literal, TypeAlias
Icon: TypeAlias = Literal[
'',
'10k',
'10mp',
'11mp',
'123',
'12mp',
]1337;File=name=L1VzZXJzL3Nhc3NhbmhhcmFkamkvRG93bmxvYWRzLzAzMjMzNGY3LWE5MTgtNGNkYS1iMGMyLTk0ODM2ZDA1ZGE0N190aHVtYm5haWwucG5n;size=11098;inline=1:/9j/4AAQSkZJRgABAgEAJwAnAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCAHIAUIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoo

Keybase proof

I hereby claim:

  • I am sassanh on github.
  • I am sassanh (https://keybase.io/sassanh) on keybase.
  • I have a public key ASD2pNK2EYPIjHmEV7xI69SBwGs8nXwNS6i1o04TfiXnKgo

To claim this, I am signing this object:

Yes I was frustrated at the time, you're right about that. But I never asked a open source contributor to do it just cause I need it.
I invite all open source contributors working on this project to open google and search "left outer join django" they see lots of
discussion about it, then try "left join django" they see lots of other questions about same thing, then try "join django without
foreign key" and they'll see lots of OTHER questions about this same issue, then try whatever random query they can think of that's
related to this issue. The interesting thing is that while I was doing this from "1am" to "7am" I was able to find queries that
brought me 10 new unvisited results in first page of google search that were totally relevant to issue, can you imagine it:
6 hours of searching and after 6 hours still 10 unvisited relevant pages on first page of a google search. So lets instead of
ignoring this issue by labeling the issue reporter as selfish, don't be selfish and solve the issue of lots of people wh
Listening on port 62057
Request: {
"files": [
{
"text": "...",
"type": "full",
"name": "..."
}
],
"query": {
@sassanh
sassanh / gist:e7223a69be4e96676d64f6ff6f6671a4
Created July 13, 2016 16:12
YCM stderr for tern error
2016-07-13 20:40:23,459 - DEBUG - No global extra conf, not calling method YcmCorePreload
2016-07-13 20:40:23,575 - INFO - Received event notification
2016-07-13 20:40:23,576 - DEBUG - Event name: BufferVisit
2016-07-13 20:40:23,578 - INFO - Using node binary from: /usr/local/bin/node
2016-07-13 20:40:23,578 - INFO - Starting Tern server...
2016-07-13 20:40:23,582 - DEBUG - Starting tern with the following command: /usr/local/bin/node /Users/sassanharadji/.config/nvim/plugged/YouCompleteMe/third_party/ycmd/third_party/tern_runtime/node_modules/tern/bin/tern --port 61355 --host 127.0.0.1 --persistent --no-port-file --verbose
2016-07-13 20:40:23,589 - INFO - Tern Server started with pid: 38173 listening on port 61355
2016-07-13 20:40:23,589 - INFO - Tern Server log files are: /var/folders/sx/995cq4316_57jgdyhwjvf9rw0000gn/T/ycm_temp/tern_61355_stdout.log and /var/folders/sx/995cq4316_57jgdyhwjvf9rw0000gn/T/ycm_temp/tern_61355_stderr.log
2016-07-13 20:40:24,247 - INFO - Received event notification
2016-07-13 20:
Feb 23 17:38:01 sassan-laptop wpa_supplicant[874]: eth1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Feb 23 17:38:01 sassan-laptop kernel: [687438.032310] cfg80211: Calling CRDA to update world regulatory domain
Feb 23 17:38:01 sassan-laptop NetworkManager[14228]: <info> (eth1): supplicant interface state: inactive -> disconnected
Feb 23 17:38:01 sassan-laptop kernel: [687438.040404] cfg80211: World regulatory domain updated:
Feb 23 17:38:01 sassan-laptop kernel: [687438.040407] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Feb 23 17:38:01 sassan-laptop kernel: [687438.040409] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb 23 17:38:01 sassan-laptop kernel: [687438.040411] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb 23 17:38:01 sassan-laptop kernel: [687438.040412] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb 23 17:38:01 sassan-laptop kernel: [687438.040413] cfg80211: (5
debsums: changed file /usr/bin/3g_connect.sh (from 3g-modem-connection-d300-amd64 package)
debsums: changed file /etc/3g_modem_connection/apn.dat (from 3g-modem-connection-d300-amd64 package)
debsums: changed file /etc/apache2/envvars (from apache2 package)
debsums: changed file /etc/apache2/apache2.conf (from apache2 package)
debsums: missing file /etc/apparmor/easyprof.conf (from apparmor-easyprof package)
debsums: changed file /etc/default/apport (from apport package)
debsums: changed file /etc/apt-fast.conf (from apt-fast package)
debsums: missing file /usr/bin/apt-ftparchive (from apt-utils package)
debsums: missing file /usr/bin/apturl-gtk (from apturl package)
debsums: missing file /usr/bin/apturl (from apturl-common package)