Skip to content

Instantly share code, notes, and snippets.

@marabesi
marabesi / raw-data-2022.csv
Created July 18, 2023 06:24
TDD anti patterns - Survey focused on the industry and developer experience - data version 2022
Timestamp I am a software developer working in the industry professionally for: I work/worked for projects in the following countries (list provided by https://www.listofcountriesoftheworld.com/): I write/wrote code professionally in the following languages (programming languages listed are from https://www.tiobe.com/tiobe-index): How many years of experience do you have doing Testing? I am familiar with testing tools such as Junit, Jest, PHPUnit or any other framework that provides a common ground to write tests. I learned TDD at work I learned TDD myself, through books, videos courses or tutorials. People that I work/worked with already knew TDD The people I work with practice TDD as part of daily work I practice TDD as part of my daily workflow. I feel that TDD makes me go slower than if I wasn't doing it I am not allowed to push code for review without a test case with it The companies I work/worked at, required TDD to join them as part of the job description. Companies I work/worked at do not pract
@marabesi
marabesi / raw-data.csv
Last active July 27, 2024 15:30
TDD anti patterns - Survey focused on the industry and developer experience - data version 2021
Timestamp I am a software developer working in the industry professionally for: I work/worked for projects in the following countries (list provided by https://www.listofcountriesoftheworld.com/): I write/wrote code professionally in the following languages (programming languages listed are from https://www.tiobe.com/tiobe-index): I am familiar with testing tools such as Junit, Jest, PHPUnit or any other framework that provides a common ground to write tests. I learned TDD at work I learned TDD myself, through books, videos courses or tutorials. People that I work/worked with already knew TDD The people I work with practice TDD as part of daily work I practice TDD as part of my daily workflow. I feel that TDD makes me go slower than if I wasn't doing it I am not allowed to push code for review without a test case with it The companies I work/worked at, required TDD to join them as part of the job description. Companies I work/worked at do not practice TDD Companies I work/worked at argued that TDD requi
@marabesi
marabesi / withRouter.tsx
Created November 26, 2021 22:31 — forked from sibelius/withRouter.tsx
withRouter for react-router-dom v6
import { useNavigate } from 'react-router-dom';
export const withRouter = Component => {
const Wrapper = (props) => {
const history = useNavigate();
return (
<Component
history={history}
{...props}
@marabesi
marabesi / curl_post_json.md
Created July 17, 2020 20:47 — forked from ungoldman/curl_post_json.md
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

@marabesi
marabesi / References
Created April 15, 2020 08:27 — forked from jpcaparas/References
Limit docker CPU and memory resource usage
Inspired by: https://stackoverflow.com/questions/46408673/docker-17-06-ce-default-container-memory-limit-on-shared-host-resources/46557336#46557336
@marabesi
marabesi / gist:e341caf8c263104ec471972ee23a8f70
Created October 20, 2018 21:04 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
/**
* http://tutorial45.com/mpu6050-arduino-project/
*/
#include <Wire.h>
#include <MPU6050.h>
MPU6050 mpu;
void setup()
{
@marabesi
marabesi / stopwords.txt
Last active March 16, 2018 00:44 — forked from alopes/stopwords.txt
Portuguese stop words
de,a,o,que,e,do,da,em,um,para,é,com,não,uma,os,no,se,na,por,mais,as,dos,como,mas,foi,ao,ele,das,tem,à,seu,sua,o,u,ser,quando,muito,há,nos,já,está,eu,também,só,pelo,pela,até,isso,ela,entre,era,depois,sem,mesmo,aos,ter,seus,quem,nas,me,esse,eles,estão,você,tinha,foram,essa,num,nem,suas,meu,às,minha,têm,numa,pelos,elas,havia,seja,qual,será,nós,tenho,lhe,deles,essas,esses,pelas,este,fosse,dele,tu,te,vocês,vos,lhes,meus,minhas,teu,tua,teus,tuas,nosso,nossa,nossos,nossas,dela,delas,esta,estes,estas,aquele,aquela,aqueles,aquelas,isto,aquilo,estou,está,estamos,estão,estive,esteve,estivemos,estiveram,estava,estávamos,estavam,estivera,estivéramos,esteja,estejamos,estejam,estivesse,estivéssemos,estivessem,estiver,estivermos,estiverem,hei,há,havemos,hão,houve,houvemos,houveram,houvera,houvéramos,haja,hajamos,hajam,houvesse,houvéssemos,houvessem,houver,houvermos,houverem,houverei,houverá,houveremos,houverão,houveria,houveríamos,houveriam,sou,somos,são,era,éramos,eram,fui,foi,fomos,foram,fora,fôramos,seja,sejamos,sejam,fos
@marabesi
marabesi / tmux-cheatsheet.markdown
Created February 6, 2018 20:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@marabesi
marabesi / gps_demo.py
Last active February 6, 2018 15:31 — forked from wolfg1969/README.md
python-gps sample codes
import os
from gps import *
from time import *
g = gps(mode=WATCH_ENABLE)
while 1:
os.system('clear')
g.poll()
if PACKET_SET:
g.stream()