Skip to content

Instantly share code, notes, and snippets.

View maxdevjs's full-sized avatar
💭
╯︵ ┻━┻

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
//reference code for solution of perfect Spiral:
//https://gist.github.com/chandeeland/b69156115e2b5842d83ca9eb3b2bbf2e
//failed trial:: https://gist.github.com/volfegan/e55decad6814e63fb450379c9bf13a61
//attempt to recreate: https://twitter.com/Borrachas/status/1204855395006763009
float a, b, x, y, d, h=600/2, r, s, shrink=0.94;
void setup() {
size(600, 600);
}
void draw() {
background(#EFF2D0);
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs;
[
kdeApplications.kdenetwork-filesharing
];
services.samba = {
@maxdevjs
maxdevjs / awmtt.sh
Created December 25, 2018 20:58 — forked from lanrat/awmtt.sh
run awesome in a nested window for testing
#!/usr/bin/env bash
# awmtt: awesomewm testing tool
#{{{ Usage
usage() {
cat <<EOF
awmtt [ start | stop | restart | -h | -e | -t [ get | change | list | random ] ] [ -C /path/to/rc.lua ] [ -D display ] [ -S windowsize ]
start Spawn nested Awesome via Xephyr
stop Stops Xephyr
@maxdevjs
maxdevjs / eastwood-custom.sh
Created December 1, 2018 07:39 — forked from Goles/eastwood-custom.sh
Zsh eastwood theme with basic git commit timer :)
# RVM settings
# if [[ -s ~/.rvm/scripts/rvm ]] ; then
# RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
# else
# if which rbenv &> /dev/null; then
# RPS1="%{$fg[yellow]%}rbenv:%{$reset_color%}%{$fg[red]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$reset_color%} $EPS1"
# fi
# fi
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
@maxdevjs
maxdevjs / kitty.conf
Created November 23, 2018 09:57 — forked from ggsalas/kitty.conf
Kitty terminal - one dark theme [~/.config/kitty/kitty.conf]
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Fira Code
# bold_font auto
@maxdevjs
maxdevjs / github.bash
Created November 12, 2018 19:24 — forked from igrigorik/github.bash
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep [email protected] | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"
@maxdevjs
maxdevjs / README.md
Last active August 16, 2018 17:44
(Yarn) issues found in Babel setup (on Solus)

Babel setup

make bootstrap

  • Yarn consistently fails
  • at different points with different errors depending on which Yarn version I am using (as per x.txt files)
  • indipendently of how I install it
  • this happens with Babel on SSD (where OS is installed) and internal HD
@maxdevjs
maxdevjs / README.md
Last active August 15, 2018 19:28
Temporary workaround for babel --watch failing after first change
@maxdevjs
maxdevjs / index.html
Created August 7, 2018 02:15
Let there be light
<link href='//fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Berkshire+Swash' rel='stylesheet' type='text/css'>
<div class="intro">
<h1>Let there be light</h1>
<p>Paint with your cursor to create a galaxy</p>
</div>