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
@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";
@sloria
sloria / bobp-python.md
Last active July 24, 2024 02:53
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
@rdeavila
rdeavila / git-update-fork.sh
Last active June 28, 2024 13:53
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
@MOOOWOOO
MOOOWOOO / py-gitignore
Last active July 25, 2024 14:52
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
require 'socket'
require 'rack'
require 'rack/lobster'
app = Rack::Lobster.new
server = TCPServer.new 5678
while session = server.accept
request = session.gets
puts request
@ScottKillen
ScottKillen / print.css
Last active July 27, 2024 19:38
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;