Skip to content

Instantly share code, notes, and snippets.

Avatar
🤹
Making great stuff beautiful

Aditya xypnox

🤹
Making great stuff beautiful
View GitHub Profile
View data.json
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
@xypnox
xypnox / userChrome.css
Created Apr 8, 2020
UserChrome autohide ff75
View userChrome.css
#navigator-toolbox {
-moz-appearance: none;
background-color: #0f111a00 !important;
border-top: none;
}
.browser-toolbar:not(.titlebar-color),
#tabbrowser-tabs:not([movingtab])
> .tabbrowser-arrowscrollbox
> .tabbrowser-tab
> .tab-stack
View notes.md
@xypnox
xypnox / solutionImproved.cpp
Last active Oct 15, 2019
A solution to a CP problem finding the largest occurence of character in array, with smaller ascii taking priority.
View solutionImproved.cpp
#include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
//corrected a few things including input \-?
char correctType(string b) {
long int alpha[26] = {};
for (long int k = 0; k < b.length(); k++) {
for (int l = 0; l < 26; l++) {
@xypnox
xypnox / settings.cjson
Last active Oct 14, 2019
Snapshot of settings.json of VSCode
View settings.cjson
{
// Editor
"workbench.colorTheme": "Material Theme Ocean",
"workbench.iconTheme": "material-icon-theme",
"window.menuBarVisibility": "toggle",
"window.titleBarStyle": "native",
"window.zoomLevel": 0,
"editor.wordWrap": "on",
"editor.minimap.renderCharacters": false,
"editor.tabSize": 2,
@xypnox
xypnox / deep work.md
Created Sep 4, 2019
Deep Work - Notes
View deep work.md

Deep Work

Cal Newport

These notes are specific to me, I have cherry picked the points that I find most important. Thus, it is an incomplete summary of Deep work. It is however, thorough enough for me. I would suggest reading the book and making your own notes before going through mine.


Deep Work: Professional activities performed in a state of distraction-free concentration that push your cognitive capabilities to their limit. These efforts create new value, improve your skill, and are hard to replicate.

@xypnox
xypnox / packages.md
Created Sep 3, 2019
Python packages
View packages.md

Creating Python Packages

Python packages are complex but not complicated, I believe that once you have created one package you will develop confidence and experience to publish more of them. While trying to deploy my project on pypi, I followed the following two guides quite helpful:

I mostly stuck to the first tutorial and only used the second one for additional reference and a different perspective. You can see my setup.py file for reference. To get an idea about which commands I run to build and distribute the project you can see my Makefile. If you do not use a virtual environment for your project I will suggest you to look into pipenv, It helps a lot in managing dependencies required for the project and

@xypnox
xypnox / Automation.md
Last active Aug 16, 2019
Automation Notes
View Automation.md

Automation

We solve something that infuriates us everyday.

Linked In automation

let elems = document.getElementsByClassName('js-discover-person-card__action-btn'), i = 0;
while(i++< elems.length){
	console.log("Yo we hack and stuff");
You can’t perform that action at this time.