Skip to content

Instantly share code, notes, and snippets.

View christophermoura's full-sized avatar

Christopher Moura christophermoura

View GitHub Profile
@luzfcb
luzfcb / dismiss_all_twitter_topics.js
Last active March 8, 2022 09:47
Dismiss all twitter topics
// Dismiss all topics listed on https://twitter.com/YOUR_USERNAME/topics
// 1 - open the https://twitter.com/YOUR_USERNAME/topics
// 2 - open the browser console (Press Command + Option + J (Mac) or Control + Shift + J (Windows and Linux))
// 3 - copy this code
// 4 - paste the code on the console to run
// 5 - reload the page and run step 4 and 5 again until you no longer see "Dismiss" messages
@aaronNGi
aaronNGi / wordle.bash
Last active April 1, 2025 00:30
Wordle in 20 lines of bash
#!/usr/bin/env bash
mapfile -t words < <(grep -x '[a-z]\{5\}' "${WORDLIST:-/usr/share/dict/words}")
word=${words[RANDOM % ${#words[@]}]} pool=abcdefghijklmnopqrstuvwxyz
for ((round=1; round <= ${ROUNDS:=6}; round++)); do
while read -rp "$round/$ROUNDS: " guess || exit 1; do
[[ " ${words[@]} " == *" ${guess,,} "* ]] && guess=${guess,,} && break
done
for ((i=0, chars=0; i < ${#word}; i++)); do
[[ ${word:i:1} != ${guess:i:1} ]] && chars+=${word:i:1}
done
/*
Minimal Publish / MIT License
Copyright (c) 2020-2023 Stephan Ango (@kepano)
*/
/* Edits made for personal use by @elkadre */
/* Adjust the following variables or find more at the link below */
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 8, 2025 14:18
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@douglashill
douglashill / KeyboardTableView.swift
Last active March 30, 2023 22:01
A UITableView that allows navigation and selection using a hardware keyboard.
// Douglas Hill, December 2018
// Made for https://douglashill.co/reading-app/
// Find the latest version of this file at https://github.com/douglashill/KeyboardKit
import UIKit
/// A table view that allows navigation and selection using a hardware keyboard.
/// Only supports a single section.
class KeyboardTableView: UITableView {
// These properties may be set or overridden to provide discoverability titles for key commands.
@stidges
stidges / tailwind.itermcolors
Last active November 30, 2023 21:00
An iTerm2 color scheme based on the Tailwind CSS color scheme (https://tailwindcss.com/docs/colors)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.17254902422428131</real>
@olmokramer
olmokramer / url-rewriter.user.js
Last active September 19, 2018 19:47
Rewrite/redirect URLs
// ==UserScript==
// @name url-rewriter
// @namespace https://github.com/olmokramer
// @description Rewrite current url or urls on the page
// @match *://*/*
// @run-at document-start
// @version 2
// @author Olmo Kramer
// ==/UserScript==
@rg3915
rg3915 / pyse18.ipynb
Last active April 1, 2018 20:57
PySE18: Usando Pandas e subprocess para separar dados de um CSV
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinicius73
vinicius73 / 0-contribua-.md
Last active October 17, 2024 19:32
Guia de referencias sobre estudo de JavaScript

Contribua

Se você quiser adicionar mais algum tópico deixe seu comentário, o objetico é facilitar para os iniciantes ou aqueles que buscam dominar JavaScript, quais tópicos são importantes para dominar JavaScript.

São tópicos para quem sabe o minimo de JavaScript (declarar variáveis), a ordem em que eles aparecem são por importância para o dominio como um todo. Mesmo que você já tenha experiência com JS, recomendo que leia os links de cada tópico para fortalecer suas bases teóricas e ter um comportamento mais profundo da linguagem.

Lista originalmente criada e compilada por Vinicius Reis

@augustogoulart
augustogoulart / bashrc.sh
Created June 27, 2017 16:23
Example of some django aliases
alias manage='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py'
alias test='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py test'
alias runserver='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py runserver'
alias makemigrations='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py makemigrations'
alias migrate='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py migrate'
alias shell='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py shell'
alias shellp='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py shell_plus'