Skip to content

Instantly share code, notes, and snippets.

View williamcanin's full-sized avatar
🐍
Simple is better than complex.

William C. Canin williamcanin

🐍
Simple is better than complex.
View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active May 19, 2025 08:41
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jacobtomlinson
jacobtomlinson / remove_empty_folders.py
Last active October 19, 2022 04:56
Python Recursively Remove Empty Directories
#! /usr/bin/env python
'''
Module to remove empty folders recursively. Can be used as standalone script or be imported into existing script.
'''
import os, sys
def removeEmptyFolders(path, removeRoot=True):
'Function to remove empty folders'
if not os.path.isdir(path):
@cirocosta
cirocosta / MANUSEANDO-ARQUIVOS.md
Last active August 20, 2024 12:46
Manuseando Arquivos com Nodejs

Manuseando arquivos com compabilidade entre SOs

Criar Pastas

Para criação de pastas o mais conveniente (unix) é utilizar mkdir -p, o qual:

-p, --parents no error if existing, make parent directories as needed

tem-se então o semelhante como módulo de node, o mkdirp.

@kelvinst
kelvinst / create-ruby-gem.md
Last active March 18, 2025 12:17
Como criar uma gem ruby?

Como criar uma gem ruby?

Escolhi tratar sobre esse assunto hoje simplesmente porque foi uma das primeiras coisas que me perguntei "como eu faço isso?" no mundo ruby. Acredito que muita gente se pergunte a mesma coisa e espero que eu possa ajudar em algo para elas. 😀

O que é uma gem?

Bem, se você é um programador java, você chama sua gem de jar, se você é um programador C#, você chama de dll. Resumindo, é uma lib, uma biblioteca contendo códigos que você pode reaproveitar importando em outros projetos.

E usar gems no ruby é muito fácil, se você já deu uma brincada com rails por exemplo, é só você adicionar o código gem 'nome_da_gem' no arquivo Gemfile que está no root, depois executar o comando bundle install para baixar sua gem do repositório e pronto, só sair usando a biblioteca!

@williamcanin
williamcanin / eclipse.sh
Last active December 2, 2015 06:37
Installing the latest version of Eclipse on Linux, as shortcut creations and symbolic links
#!/bin/bash
# Type script: Shell
# Program: Eclipse {Lastet version <present>}
# Description: Installing the latest version of Eclipse on Linux,
# as shortcut creations and symbolic links
# Version: 1.0.1
#
#------------------------------------------Using --------------------------------------------
#
@romuloctba
romuloctba / readme.md
Last active July 17, 2024 22:24
Install Adobe Photoshop CS6 on Wine (Ubuntu, Elementary OS, Linux Mint)

Step 1. Install the Wine Team Ubuntu PPA

First start by installing Wine btw it's a utility to install windows apps in linux :

open the Terminal and :

   sudo add-apt-repository ppa:ubuntu-wine/ppa     
   sudo apt-get update && sudo apt-get upgrade
   sudo apt-get install wine1.7 winetricks
@parmentf
parmentf / GitCommitEmoji.md
Last active May 18, 2025 18:44
Git Commit message Emoji
@davidalves1
davidalves1 / problema-gulp.md
Last active June 4, 2019 15:56
Resolver problema "Failed to load external module babel-core/register"

Problema

Ao executar o gulp em um projeto, é exibido o erro:

$ gulp
[19:55:52] Failed to load external module babel-register
[19:55:52] Requiring external module babel-core/register
...
@knadh
knadh / zsh-elapsed-time.md
Last active April 11, 2025 15:17
Elapsed and execution time for commands in ZSH

Elapsed and execution time display for commands in ZSH

Append this to your ~/.zshrc file.

function preexec() {
 timer=$(($(date +%s%0N)/1000000))