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
@jvns
jvns / executing-file.md
Last active August 5, 2023 22:24
What happens when I run ./hello
@eatonphil
eatonphil / functions.c
Last active March 16, 2024 16:41
Introduction to "Fun" C (using GCC)
/**
* This are a collection of examples for C 201.
* These combine concepts you may or may not be
* familiar with and are especially useful for
* students new to C. There is a lot of really
* cool stuff you can do in C without any cool
* languages.
*
* This is file in particular is an introduction
* to fun function usage in C.
@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
@meirbon
meirbon / Dell XPS 15 9560 Manjaro Setup instructions
Last active March 31, 2024 01:21
Small, quick guide to set up Manjaro on the XPS 15 9560
# 1. First of all of course get Manjaro:
https://manjaro.org/get-manjaro/
# I recommend using Etcher to copy the image to your USB:
https://etcher.io/
# 2. Before installing make sure:
# - Secure boot is disabled in BIOS
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much
@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 / 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.

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'}}
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
@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')
@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 });