Skip to content

Instantly share code, notes, and snippets.

View xypnox's full-sized avatar
:shipit:
Things and stuff.

xypnox xypnox

:shipit:
Things and stuff.
View GitHub Profile
@xypnox
xypnox / userChrome.css
Created April 8, 2020 15:54
UserChrome autohide ff75
#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
@xypnox
xypnox / solutionImproved.cpp
Last active October 15, 2019 18:38
A solution to a CP problem finding the largest occurence of character in array, with smaller ascii taking priority.
#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 October 14, 2019 16:29
Snapshot of settings.json of VSCode
{
// 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 September 4, 2019 18:51
Deep Work - Notes

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 September 3, 2019 15:06
Python packages

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 / JSnotes.md
Created August 20, 2019 18:28
This may or may not remain up-to-date. Please reach out for an updated version.
@xypnox
xypnox / Automation.md
Last active August 4, 2022 07:44
Automation Notes

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");
@xypnox
xypnox / design.md
Created August 9, 2019 18:50
Design Links and resources