Skip to content

Instantly share code, notes, and snippets.

Carlos Gustavo Ruiz atmantree

Block or report user

Report or block atmantree

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@atmantree
atmantree / README.md
Last active Dec 9, 2018
What are some bad programming practices every programmer needs to be aware of in order to avoid them?
View README.md
@atmantree
atmantree / curl.md
Created Jul 16, 2018 — forked from subfuzion/curl.md
curl POST examples
View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@atmantree
atmantree / hbprogress.hs
Last active Apr 12, 2018
haskell script to show your reading progress of the haskellbook
View hbprogress.hs
#!/usr/bin/env stack
-- stack runghc --resolver lts-11.2 --install-ghc
import Text.Read (readMaybe)
import System.Environment (getArgs)
progress :: Integer -> String
progress pag = show $ fromIntegral ( div (pag * 10000) 1971) / 100
showProgress :: [String] -> IO()
showProgress args =
@atmantree
atmantree / README.markdown
Last active Aug 6, 2018
Gabriel Gonzalez: How to create a new Haskell project
View README.markdown
@atmantree
atmantree / 00_README.markdown
Last active Sep 21, 2017
Programming Mottos, Paradigm, Principles, and more.
View 00_README.markdown

Programming Mottos, Paradigm, Principles, and more.

Don't Repeat Yourself (DRY)

Wikipedia

"In software engineering, don't repeat yourself (DRY) is a principle of software development aimed at reducing repetition of all kinds.

The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous,

@atmantree
atmantree / README.markdown
Last active Aug 6, 2018
Haskell Stack Mega - Tutorial
View README.markdown
@atmantree
atmantree / README.markdown
Last active Jan 8, 2019
Rob Pike - "Concurrency is not Parallelism"
View README.markdown

Rob Pike - "Concurrency is not Parallelism"

Rob Pike - "Concurrency is not Parallelism"

source: https://www.youtube.com/watch?v=cN_DpYBzKso

Notes

  • the world is not object oriented, is actually parallel
  • concurrency is dealing with a lot of things at once, parallel is doing a lot of things at once, one is about structure,
@atmantree
atmantree / 0_README.markdown
Last active Aug 6, 2018
Scripting in Haskell
View 0_README.markdown
@atmantree
atmantree / dpt.js
Created May 17, 2017
División Político Territorial de Venezuela
View dpt.js
// División Político Territorial
Estados = {
"01": {"nombre":"DISTRITO CAPITAL",
"municipios":["0101"]},
"02": {"nombre":"AMAZONAS",
"municipios":["0201","0202","0203","0204","0205","0206","0207"]},
"03": {"nombre":"ANZOATEGUI",
"municipios":["0301","0302","0303","0304","0305","0306","0307","0308","0309","0310","0311",
"0312","0313","0314","0315","0316","0317","0318","0319","0320","0321"]},
@atmantree
atmantree / few_v1.hs
Last active Sep 11, 2017
Fuck Every Word (haskell dumb program)
View few_v1.hs
-- Fuck Every Word
-- inspired by https://twitter.com/fuckeveryword
-- usage: runghc few.hs < some_text_file.txt
fuckAWord a = "Fuck " ++ a ++ "!\n"
fuckEveryWord = concat . map fuckAWord . words
main = interact fuckEveryWord
You can’t perform that action at this time.