Skip to content

Instantly share code, notes, and snippets.

View donbonifacio's full-sized avatar
🚀
Building platforms

Pedro Pereira Santos donbonifacio

🚀
Building platforms
View GitHub Profile
@rendeiro
rendeiro / LandingProduct.md
Last active January 17, 2018 14:43
One does not simply walk into Product Management

One does not simply walk into Product 👌

#CallForSpeakers pitch for #LandingFestival Berlin 2018 (March 14, 15)

Interested in how to transition into Product Management? 💊

Vote for this talk to be selected by giving a star ⭐ to this repo.

More info on the Festival here: https://landingfestival.com/berlin.

@reborg
reborg / rich-already-answered-that.md
Last active May 12, 2025 12:44
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

@katyo
katyo / bench.js
Last active February 23, 2017 22:15
Comparison of js string testing techniques
var allAttrs = ["abbr","accept","accept-charset","accesskey","action","alt","async","autocomplete","autocomplete","autofocus","autoplay","border","challenge","charset","charset","checked","cite","class","cols","colspan","content","contenteditable","controls","coords","crossorigin","data","datetime","datetime","default","defer","dir","dir","dirname","disabled","download","enctype","for","for","form","formaction","formenctype","formmethod","formnovalidate","formtarget","headers","height","hidden","high","href","href","href","hreflang","http-equiv","id","ismap","keytype","kind","label","lang","list","loop","low","manifest","max","max","maxlength","media","mediagroup","method","min","min","minlength","multiple","muted","name","name","name","name","name","name","novalidate","optimum","pattern","placeholder","poster","preload","readonly","rel","required","reversed","rows","rowspan","sandbox","spellcheck","scope","selected","shape","size","sizes","span","src","srcdoc","srclang","start","step","style","tabindex","tar
@bhauman
bhauman / compiler-options-schema.clj
Last active August 8, 2017 21:19
A Schema for ClojureScript Options
(ns cljs.compiler-options-schema
(:require
[clojure.spec :as s]
[clojure.string :as string]
;; for initial dev
[clojure.test :refer [deftest is testing]]))
(defn non-blank-string? [x] (and (string? x) (not (string/blank? x))))
(defonce ^:private registry-ref (atom {}))
;; Based on https://clojuredocs.org/clojure.core/condp#example-542692cbc026201cdc326bea
(defn parse-arg [s]
(condp (comp next re-matches) s
#"([+-])(\w+)" :>> (fn [[f k]] [(keyword k) (= f "+")])
#"(\w+)=(\w+)" :>> (fn [[k v]] [(keyword k) v])
(throw (IllegalArgumentException. s))))
(parse-arg "+foo") ;=> [:foo true]
(parse-arg "-foo") ;=> [:foo false]
@ptaoussanis
ptaoussanis / clj-1.8.0-alpha2-tuple-perf.clj
Last active August 29, 2015 14:25
Clojure 1.8.0-alpha2 tuple performance
;;
;; LATEST UPDATE: 25 July 2015
;;
;; ****************************************************************
;; ** NB false alarm! My original benchmarks showing large perf **
;; ** improvements with tuples turned out to be noise, **
;; ** unfortunately. Current (+more reliable) numbers seem[1] to **
;; ** show no consistent significant advantage using currently **
;; ** available tuple implementations against real-world code. **
;; ** **
@fasterthanlime
fasterthanlime / taleoftales_sunset_farewell.md
Last active August 29, 2015 14:23
Mirror of taleoftales' farewell article

And the sun sets…

After the barrage of sad tales about depression caused by indies turning into millionaires overnight, allow us to raise your spirits with a story about the liberating and energizing effects of complete commercial failure.

Having a sale is fun. Many people get to play your games who normally wouldn’t and you receive a lot of positive feedback. But of course that’s not the reason for having a sale. The reason is always a need for money. And in our current economy, money tends to be collected from large amounts of tiny sources. It was a desperate move for us. An attempt to pay the debts caused by the production of Sunset and stay afloat while we figure out what to do with the rest of our lives.

Reaching out

@juliandunn
juliandunn / post-mortem-template.md
Created April 29, 2015 00:53
Post mortem template

INCIDENT DATE - INCIDENT TYPE

Meeting

Waiving meetings

In some cases the IC might determine that a PM meeting for the incident isn't needed. If the IC decides to waive the meeting please replace the Meeting section with a note indicating the meeting has been waived (example: Meeting waived: Paul Mooring)

@jqmtor
jqmtor / configurable_gateway.rb
Last active June 1, 2016 16:06
Make URLs more visible in HTTP-based gateways. In HTTP-based gateways, URL visibility is an important feature because it gives the reader a very good idea of the overall functionality of the class. This proposal strives to achieve that goal and was instigated by @tjsousa, who brought the problem up while reviewing some code.
# simple DSL to describe and build URLs in an HTTP gateway
module ConfigurableGateway
def self.included(base)
base.extend(ClassMethods)
end
def url_for(name, params = nil)
# probably should be replaced by an automatic forwarding mechanism
@bobbygrace
bobbygrace / trello-css-guide.md
Last active May 12, 2025 16:46
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?