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 / .conkrc
Created December 18, 2017 21:13
The conky minimal word clock setup, Runs extremly fine, install conky-all before use
background no
own_window yes
own_window_type normal
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment mm
gap_x -20
#575
gap_y 65
#310
@xypnox
xypnox / spacegray.vim
Last active May 8, 2018 11:39
A better vim Colorscheme
" SpaceGray.vim -- Vim colorscheme.
" Maintainer: Aditya Vikram Singh (github.com/xypnox)
" Version: 1.0
" A colorscheme modeled after the spacegray theme for Atom and Sublime.
" This colorscheme is 256color and up only.
" Setup {{{1
hi clear
if exists('syntax_on')
@xypnox
xypnox / linux-notes.md
Last active May 8, 2018 12:28
My notes for linux ;)

Important steps After fresh installation

NOTICE The following notes work with any Ubuntu based distro with apt package manager. Warning : Use Any commands given below at your own caution. I will not be responsible for anything you break burn destroy or annihilate using these commands

Upgrade your Dist to latest updates Install ubuntu-restricted-extras. Many Applications (Lollypop Included) Don't Work without it.

This file has been truncated, but you can view the full file.
= help: consider adding a `#![recursion_limit="2048"]` attribute to your crate
= note: required because of the requirements on the impl of `diesel::query_builder::insert_statement::UndecoratedInsertRecord<users::table>` for `&[_]`
= note: required because of the requirements on the impl of `diesel::query_builder::insert_statement::UndecoratedInsertRecord<users::table>` for `&[[_]]`
= note: required because of the requirements on the impl of `diesel::query_builder::insert_statement::UndecoratedInsertRecord<users::table>` for `&[[[_]]]`
= note: required because of the requirements on the impl of `diesel::query_builder::insert_statement::UndecoratedInsertRecord<users::table>` for `&[[[[_]]]]`
= note: required because of the requirements on the impl of `diesel::query_builder::insert_statement::UndecoratedInsertRecord<users::table>` for `&[[[[[_]]]]]`
= note: required because of the requirements on the impl of `diesel::query_builder::insert_statement::UndecoratedInsertRecord<users::table>` for
@kuznero
kuznero / install-polybar.md
Last active October 17, 2022 17:36
Install polybar on Ubuntu 18.03

Polybar for i3

Installation in Ubuntu 18.04

sudo apt-get install \
  cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev \
  libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev \
  libxcb-util0-dev libxcb-xkb-dev pkg-config python-xcbgen \
  xcb-proto libxcb-xrm-dev i3-wm libasound2-dev libmpdclient-dev \
@whoisryosuke
whoisryosuke / useMousePosition.md
Created November 5, 2018 19:22
React Hooks - Track user mouse position - via: https://twitter.com/JoshWComeau

Hook

import { useState, useEffect } from "react";

const useMousePosition = () => {
  const [mousePosition, setMousePosition] = useState({ x: null, y: null });

  const updateMousePosition = ev => {
 setMousePosition({ x: ev.clientX, y: ev.clientY });
@simpsoka
simpsoka / philosophy.md
Last active February 9, 2023 19:57
simpsoka product philosophy

Product managers

  • Seek out failure, it teaches us to think like a scientist. If you start with a hypothesis, then try to prove yourself wrong, you’re bound to make much better decisions. You have to be willing to fail, and that in itself is going to help you build confidence and be more convicted about what your strategy is in the end.
  • There are hundreds of methods for building products and running teams. As a quality PM, it's important to have an open mind about all of it, but finding your own process and philosophy can be grounding. It helps you find your pillars so that you don't smash into things while you're building. Remember, however, that you can always find a budget for remodeling. 😉
  • The beauty of a good process is when it just becomes how you do your work. When you forget you're following a process at all is when you know the process is working for you, your team, your company, and your customers.
  • The advice I give new Product Managers or PMs coming onto a team for the first

For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:

First method (override Material UI classnames):

1 - Add the property classes in the AppBar component:

    <AppBar classes={{root: 'my-root-class'}}
@jvns
jvns / executing-file.md
Last active August 5, 2023 22:24
What happens when I run ./hello
@bened-h
bened-h / blender_game_of_life.py
Last active November 20, 2023 19:10
This script implements Convey's "Game of Life" in Blender 2.8.
# blender 2.8
"""
This script implements Convey's "Game of Life" in Blender 2.8
It relies on the blender file containing a mesh called "Cube"
(sidelength = 1) and an empty collection called "Grid".
"""
import bpy
from random import random