Skip to content

Instantly share code, notes, and snippets.

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

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
@maxdevjs
maxdevjs / _index.md
Last active October 1, 2017 20:26
Algumas ideias de modelagem do twitter clone, gems, layouts da home page e do tweet, etc

Design

  • help para mockup

Gems

  • gems requisito prévio
  • gems alternativas

System Design

@maxdevjs
maxdevjs / index.js
Created March 25, 2018 18:24
Adds parametric and random selection from an image's directory ('img') to Get started with Face detecting in nodejs ( https://medium.com/@AbderrahimSE/get-started-with-face-detecting-in-nodejs-d3c5fd97e701 ) code
const path = require('path'),
fs = require('fs');
const fr = require('face-recognition');
// load image from local
const IMAGE_BANK_SRC = 'img';
let pathImage = '';
//Grabs a random index between 0 and length
@maxdevjs
maxdevjs / 00-general.md
Last active July 8, 2018 20:38
Flavio's Vue.js Handbook review

vuehandbook.com

Note:

  • dare preferenza a slang piuttosto che traduzione letterale del concetto nella madrelingua (obvious, but..)
  • ", and" (https://www.grammarly.com/blog/comma-before-and/)
  • in ogni caso preferenze regionali prevalgono (USA English Vs British English, esempio: restrictive relative clause / nonrestrictive relative clause)
@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>
@maxdevjs
maxdevjs / README.md
Last active August 15, 2018 19:28
Temporary workaround for babel --watch failing after first change
@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 / 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 / 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 / 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 / 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