Skip to content

Instantly share code, notes, and snippets.

View Niehaus's full-sized avatar
🏠
Working from home

Bárbara Boechat Niehaus

🏠
Working from home
View GitHub Profile
@ScottKillen
ScottKillen / print.css
Last active February 20, 2025 18:59
PDF export stylesheet for obsidian
/* Obsidian snippet to style output of pdf exports
*/
@media print {
/* set your preferred fonts here.
*/
:root {
--body-font-family: "Newsreader Text", TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
require 'socket'
require 'rack'
require 'rack/lobster'
app = Rack::Lobster.new
server = TCPServer.new 5678
while session = server.accept
request = session.gets
puts request
@MOOOWOOO
MOOOWOOO / py-gitignore
Last active February 21, 2025 09:20
python pycharm gitignore
# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
@rdeavila
rdeavila / git-update-fork.sh
Last active November 5, 2024 09:31
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@sloria
sloria / bobp-python.md
Last active January 27, 2025 21:33
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@kakobotasso
kakobotasso / gist:3692325
Created September 10, 2012 17:28
Gerando e lendo arquivo txt com java
package javaapplication1;
import java.io.*;
public class JavaApplication1 {
public static void main(String[] args) {
try {
// Conteudo
String content = "Teste";