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
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
@xypnox
xypnox / setup.md
Last active July 27, 2020 12:18
Setup ESLint for React and VSCode
@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 / 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 / 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 / design.md
Created August 9, 2019 18:50
Design Links and resources