Skip to content

Instantly share code, notes, and snippets.

View handrus's full-sized avatar

Handrus Stephan Nogueira handrus

View GitHub Profile
#Instalar homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
#Hidden bar - esconde itens na barra de notificações do macos + fonts
brew install --cask hiddenbar font-hack-nerd-font font-victor-mono monitorcontrol almighty rectangle maccy itsycal openemu telegram spotify whatsapp imageoptim cheatsheet google-chrome zed firefox iterm2
#command lines must haves
brew install eza wget2 asdf automake curl fzf gawk git gnupg neovim readline terminal-notifier thefuck watch xz
# zsh and powerlevel10k
brew install powerlevel10k
@handrus
handrus / Questions-to-ask-at-interviews.md
Last active February 14, 2022 05:30
Questions to ask at interviews
@handrus
handrus / Cross-platform-development.md
Last active March 1, 2019 21:52
Cross platform development

Cross platform development

A non exaustive comparison of todays alternatives (Feb-2019). I followed this steps:

  1. List the competitors
  2. Exclude obvious bad choices
  3. Define comparison parameters
  4. Create a comparison matrix
  5. Define most important parameters

Fixing coding style problems on scss files

You'll need to install csscomb

npm install csscomb -g

After that place the file .csscomb.json at you project root folder and run the comand

`csscomb path_to_your_SCSC_or_CSS_files

@handrus
handrus / prevent_double_click.js
Created March 10, 2016 01:51 — forked from pangui/prevent_double_click.js
Prevent double click!
// jQuery plugin to prevent double click
jQuery.fn.preventDoubleClick = function() {
$(this).on('click', function(e){
var $el = $(this);
if($el.data('clicked')){
// Previously clicked, stop actions
e.preventDefault();
e.stopPropagation();
}else{
// Mark to ignore next click
@handrus
handrus / pv.sh
Last active April 17, 2016 23:08
Restore mysql db from .gz file with progress bar
pv mydump.sql.gz | gunzip | mysql -u User -p database_name
@handrus
handrus / hyphenate.css
Created October 10, 2015 17:50
Dealing with long words in CSS
.hyphenate {
overflow-wrap: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
@handrus
handrus / Different_Cultures.md
Created September 30, 2015 01:06
Custo Software vs Product

Custom Development | Revenue Software | | --- | --- | --- | | Key Metric | Staff Utilization (busy developers) | Users (subscribers, licenses) | | Business Model | Mark-up on staff hours | Re-use of identical bits | | We track... | Projects/programs | Products/releases | | Essential skills | Sales, business development | Segmentation, validation | | Innovation ownership & risk | Client owns IP: we hope they pay and send more projects our way | We own IP: we hope target segment pays handsomely for perceived value | | Graded first on... | On time, on budget, on spec | Market winner vs. competition | | Customer wants a one-off? | "Great! Here's a change order" | "Let me put that (deep) into the backlog." | | Plan to productize platforms? | Always sacrificed when paid projects run late | Essential part of product line planning |

@handrus
handrus / indepent_class.patch
Created May 15, 2015 19:21
CPN_7.x-1.x_patches
diff --git a/cpn.js b/cpn.js
index 57a25d8..2029107 100644
--- a/cpn.js
+++ b/cpn.js
@@ -9,7 +9,13 @@
attach: function(context, settings) {
// Append enable/disable links.
$('.form-item-cpn-css, .form-item-cpn-js', context).each(function() {
- $('.description', this).append(' <a href="#" class="cpn-toggle">Enable syntax highlighting</a>.');
+ if ($('.description', this).length) {