Skip to content

Instantly share code, notes, and snippets.

View pvpscript's full-sized avatar
🎯
Focusing

Pedro P. pvpscript

🎯
Focusing
  • Brazil
View GitHub Profile
@staltz
staltz / introrx.md
Last active October 26, 2025 03:06
The introduction to Reactive Programming you've been missing
@huseyinyilmaz
huseyinyilmaz / grep.hs
Created December 3, 2015 22:32
haskell implementation of grep tool
{-
Haskell implementation of grep tool.
http://linux.die.net/man/1/grep
-- from stdin:
$ ls | ./grep ep.hs
-- with file names
$ ./grep List grep.hs
grep.hs:import Data.List(isInfixOf)
@nicolasdao
nicolasdao / open_source_licenses.md
Last active October 30, 2025 16:31
What you need to know to choose an open source license.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 2, 2025 14:54
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@omergoktas
omergoktas / memavail.cpp
Created July 14, 2020 22:18
Get Available Memory in the System [Cross-Platform]
#include <cstddef> // size_t
#if defined (__linux__)
# include <sys/sysinfo.h>
#elif defined (__APPLE__)
# include <mach/mach.h>
# include <mach/mach_host.h>
#elif defined (_WIN32)
# include <windows.h>
#endif
@takanuva
takanuva / agt.h
Last active July 25, 2022 19:57
Simple generic print() and scan() macros
/*******************************************************************************
* Copyright 2022 Paulo Torrens *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to *
* deal in the Software without restriction, including without limitation the *
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or *
* sell copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *