Skip to content

Instantly share code, notes, and snippets.

View onlurking's full-sized avatar
:shipit:
ship it

Diogo Felix onlurking

:shipit:
ship it
View GitHub Profile
@supasympa
supasympa / open-social-software-engineering
Last active September 14, 2016 19:59
open-social-software-engineering
#Open, social, software engineering in risk averse environments
*Lewis Barclay, April 2016*
> Open source software is about freedom and choice, but freedom and choice introduce risk
> **- (Gartner, June 2011)**
Example:
Read this first: https://medium.com/@bchesky/dont-fuck-up-the-culture-597cde9ee9d4#.ayomrv98k
The legendary Netflix Culture deck http://www.slideshare.net/reed2001/culture-1798664
http://hbr.org/2014/01/how-netflix-reinvented-hr/ar/1#
Real life experiece of the culture:
http://www.brendangregg.com/blog/2015-01-20/working-at-netflix.html
http://www.brendangregg.com/blog/2016-03-30/working-at-netflix-2016.html
(import [os [listdir remove]])
(import [os.path [isfile join]])
(import [sys [argv]])
; Path for tests
(setv test-dir "./tests")
; Extension for the tests
(setv test-ext ".qtest")
; List all the files in the test suit
@Eleonore9
Eleonore9 / hylang-source.md
Last active November 27, 2016 20:00 — forked from Foxboron/hylang-source
Hylang sources
@Foxboron
Foxboron / hylang-source
Last active November 27, 2016 20:00
Hylang sources
Lightning talk on PyCon 2013:
http://www.youtube.com/watch?feature=player_detailpage&v=1vui-LupKJI#t=975
Boston Python Meetup (January 2013)
http://www.youtube.com/watch?v=ulekCWvDFVI
PyCon Canada 2013
http://www.youtube.com/watch?v=n8i2f6X0SkU
PyCon France 2013
@TheSeamau5
TheSeamau5 / MacrosInProgrammingLanguages.md
Last active December 26, 2016 11:12
Macros in Different Programming Languages

Macros/Metaprogramming in Programming Languages

The following is a list of programming languages and their syntax for doing metaprogramming.

C

Macros in C are just glorified string substitution.

@clauda
clauda / css_guideline.md
Last active July 11, 2017 17:15
O Bom CSS

Guia para desenvolvimento de folhas de estilo no site do Quero Bolsa.

Antes de começar...

Utilize arquivos com extensão .scss

Utilizamos SASS no projeto.

Utilize indentação de 2 espaços (não utilize tab)

Respeite os níveis de indentação.

@danielgracia
danielgracia / coalesce.ex
Last active December 7, 2017 17:13
Coalesce macro
defmodule Coalesce do
@moduledoc """
Provides a "coalesce" macro.
This macro is partly inspired by the COALESCE function in the SQL-92 standard.
The original COALESCE function is a function that returns the first non-null
computed expression passed as one of its argument, or NULL itself if no such
expression is found.
@theanalyst
theanalyst / fibs.c
Last active November 23, 2018 14:02
Hy, Python & C play nicely with each other
#include "fibs.h"
long fib(int n)
{
if (n == 0)
return 1;
else if (n == 1)
return 1;
else
return fib(n-1) + fib(n-2);
@eduardo-matos
eduardo-matos / README.md
Last active December 7, 2018 20:23
Workshop de NodeJS + Promises

NodeJS

Node é single threaded, istoé, ele é incapaz de executar duas coisas ao mesmo tempo, com exceção de operaçes de IO.

Exemplos de operação não bloqueantes: Acesso à rede, acesso à arquivos etc.
Exemplos de açes bloqueantes: Loop num array, cálculos complexos etc.

Em node, o padrão é toda função assíncrona ter uma versão síncrona, por exemplo fs.readFile e fs.readFileSync.
As verses síncronas são úteis para aplicações que não dependem de concorrência, como scripts e programas de linha de comando por exemplo.
Via de regra usamos a versão assíncrona. Em uma API, por exemplo, qualquer operação bloqueante impede que novas requisiçes sejam processadas pelo servidor, por isso é importante sempre fazer chamadas não bloqueantes.