Skip to content

Instantly share code, notes, and snippets.

View swartzrock's full-sized avatar

Jason Swartz swartzrock

View GitHub Profile
@tuzz
tuzz / github.css
Last active July 17, 2024 06:55
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
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:
@eed3si9n
eed3si9n / kind.scala
Created September 3, 2012 16:40
calculates a type's kind
// requires Scala 2.10.0-M7
def kind[A: scala.reflect.TypeTag]: String = {
import scala.reflect.runtime.universe._
def typeKind(sig: Type): String = sig match {
case PolyType(params, resultType) =>
(params map { p =>
typeKind(p.typeSignature) match {
case "*" => "*"
case s => "(" + s + ")"
}
@addyosmani
addyosmani / README.md
Last active October 17, 2024 13:41 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@myDisconnect
myDisconnect / ClassUtils.scala
Last active April 10, 2022 17:21 — forked from carymrobbins/pretty-print.scala
Pretty print Scala case classes and other data structures.
/*
* Original author's work: @see https://gist.github.com/carymrobbins/7b8ed52cd6ea186dbdf8
* - 2019-07-18 Added support for Option and Map types
* - 2019-11-25 Fixed Option types spacing
*/
object ClassUtils {
/**
* Pretty prints a Scala value similar to its source represention.
* Particularly useful for case classes.