Skip to content

Instantly share code, notes, and snippets.

View gildemberg-santos's full-sized avatar
💻
Programming ...

Gildemberg Santos gildemberg-santos

💻
Programming ...
View GitHub Profile
@redbaty
redbaty / darkmode.css
Created October 24, 2019 02:43
Franz dark mode theme for Whatsapp (updated 23/10/19)
/*
- OSX: ~/Library/Application\ Support/Franz/recipes/whatsapp/darkmode.css
- Windows: %appdata%/Franz/recipes/whatsapp/darkmode.css
- Linux: ~/.config/Franz/recipes/whatsapp/darkmode.css
*/
/* ==UserStyle==
@name WhatsApp by Mew
@BenjaminWegener
BenjaminWegener / andronix.md
Last active January 1, 2024 07:19
install xfce debian in termux android
@cadr10
cadr10 / thesims4.sh
Last active October 12, 2024 17:12
The Sims 4 LINUX LUTRIS installer
#!/bin/bash
##TESTED WITH: FITGIRL REPACK LIVING ISLAND (NEED TO RUN TROUBLESHOOTING AFTER INSTALL) and CODEX.
##TESTADO COM: FITGIRL REPACK LIVING ISLAND (PRECISA RODAR O CONSERTAR DEPOIS DE INSTALAR) e CODEX.
#This can fix: executable not found error; game opens then closes after a sec; games opens with wrong language
#A seção consertar vai arrumar: problema de 'executable not found', o jogo abre e fecha depois de 1 segundo e o jogo abre em inglês.
trouble1() {
@schweigert
schweigert / Embedding GoLang into a Ruby application.md
Last active April 11, 2025 19:24
Embedding GoLang into a Ruby application - Blogpost to Magrathealabs

Go Title

I am passionate about Ruby, but its execution time compared to other languages is extremely high, especially when we want to use more complex algorithms. In general, data structures in interpreted languages become incredibly slow compared to compiled languages. Some algorithms such as ´n-body´ and ´fannkuch-redux´ can be up to 30 times slower in Ruby than Go. This is one of the reasons I was interested in embedding Go code in a Ruby environment.

For those who do not know how shared libraries operate, they work in a similar way as DLLs in Windows. However, they have a native code with a direct interface to the C compiler.

Note Windows uses the DLL system, and in this case, this does not necessarily have to be in native code.

One example is DLLs written in C#, which runs on a virtual machine. Because I do not use windows, I ended up not testing if it is poss

@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!

@henrik
henrik / README.markdown
Created June 26, 2012 07:30
This is how we test that all translation keys match up between locales, in Rails.

This is how we test that all translation keys match up between locales.

Stuff that only goes in one locale (such as an admin section) or that can't be translated yet (if you use external translators) can simply go in files that don't match the path "config/locales/??.yml", like "config/locales/wip.fo.yml".