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
@veekaybee
veekaybee / normcore-llm.md
Last active November 15, 2024 12:06
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

import * as React from "react";
import { useMousePosition } from "~/hooks/useMousePosition";
/** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */
export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) {
const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {};
const [mouseX, mouseY] = useMousePosition();
const positions = { x, y, h, w, mouseX, mouseY };
return (
<div
@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
@IanColdwater
IanColdwater / twittermute.txt
Last active October 13, 2024 04:40
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@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 });
@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')
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

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'}}
@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.

@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