Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View lucypero's full-sized avatar

Lucy lucypero

View GitHub Profile
@lucypero
lucypero / subdivide_in_gs.hlsl
Created March 26, 2023 16:46
geometry shader subdivides mesh
cbuffer cbPerFrame
{
float3 gEyePosW;
float gFogStart;
float gFogRange;
float4 gFogColor;
};
cbuffer cbPerObject
@lucypero
lucypero / menu-emoji.sh
Created March 1, 2021 06:23
Emoji Picker
#!/bin/sh
#Emoji picker using rofi. Copies selected emoji to clipboard, and it pastes it.
#Deps: rofi, xdotool, xclip
set -e
case "$1" in
"list")
@lucypero
lucypero / .emacs
Last active April 20, 2022 21:23
my .emacs
;;TODO: reminders
;; - install helm
;; - rtags - C/C++ indexer - https://github.com/Andersbakken/rtags
;; - company mode? - text completion - https://company-mode.github.io/
;; - modularize emacs config to keep it organized:
;; - put it on a git repo in github
;; - make sure it works on other machines just by pasting it
;; reminders end
/**
* Variable declarations
*/
$btn-color: $play-btn-color;
$btn-size : 45px;
$duration : 300ms;
$easing : cubic-bezier(0, 0, .2, 1);
$half-size: ($btn-size / 2);
/**
.rect-auto,
.c100.p51 .slice,
.c100.p52 .slice,
.c100.p53 .slice,
.c100.p54 .slice,
.c100.p55 .slice,
.c100.p56 .slice,
.c100.p57 .slice,
.c100.p58 .slice,
.c100.p59 .slice,
// https://tc39.github.io/ecma262/#sec-array.prototype.find
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function(predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
@lucypero
lucypero / loadingdots.js
Created September 14, 2017 21:27
Loading dots Plugin by cssTricks
/*loading dots plugin https://css-tricks.com/loading-dots-plugin/*/
(function ($) {
$.Loadingdotdotdot = function (el, options) {
var base = this;
base.$el = $(el);
base.$el.data("Loadingdotdotdot", base);