Skip to content

Instantly share code, notes, and snippets.

@jpgcc
jpgcc / what_the_heck_is_a_product_manager.md
Last active May 10, 2018 17:45
"What the heck is a Product Manager?" #LandingFest #CallForSpeakers

What the heck is a Product Manager?

Track: Careers

Description

Product Manager: one of the least well-defined roles in the computer industry, although quite popular nowadays. No two companies have the same description for this job title, and it can even vary widely within one company. Are they the CEO of the product (bleargh!)? Are they project managers wearing sneakers and hipster glasses? What do they do all day? Is this a business, marketing or technology role? Is this someone with a degree in engineering, or an MBA? What can make a software engineer want to become a product manager?

@henrik
henrik / 1-progressive_downloader.ex
Last active December 4, 2020 05:41
Example of progressive downloading with HTTPotion, showing percentage and downloaded bytes as you go.
defmodule ProgressiveDownloader do
def run do
url = "https://ia600308.us.archive.org/2/items/HealthYo1953/HealthYo1953_512kb.mp4"
HTTPotion.get url, stream_to: self, timeout: :infinity
receive_data(total_bytes: :unknown, data: "")
end
defp receive_data(total_bytes: total_bytes, data: data) do
@maruks
maruks / dojo2.erl
Created June 16, 2015 08:42
7 languages in 7 weeks: Erlang day 2
-module(dojo2).
-import(lists,[nth/2]).
-include_lib ("eunit/include/eunit.hrl").
-compile(export_all).
lookup(K,[{K,V}|_Tl]) ->
V;
lookup(K,[{_D,_V}|Tl]) ->
lookup(K, Tl);
lookup(_K,[]) ->
@AhmedElSharkasy
AhmedElSharkasy / best_practices
Last active March 17, 2025 21:12
Rails 3 AntiPatterns, Useful snippets and Recommended Refactoring. Note: Some of them are collected from different online resources/posts/blogs with some tweaks.
Rails as it has never been before :)
Rails 3 AntiPatterns, Useful snippets and Recommended Refactoring.
Note: Some of them are collected from different online resources/posts/blogs with some tweaks.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active March 14, 2026 05:26
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname