Skip to content

Instantly share code, notes, and snippets.

View swhgoon's full-sized avatar
🌄
Working

SwhGo_oN swhgoon

🌄
Working
View GitHub Profile
/*
* Copyright (c) 2013 Plausible Labs Cooperative, Inc.
* All rights reserved.
*
* 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

Jan Kotek:

I understand practical reasons behind having only 22 tuples (code readability etc). But why there is limit for 22 fields on case class? It is like limitation from 30 years old Fortran.

You may say that case class with 22 fields is monster and I should not use it. It is not true. I use default values and copy method. It is well readable and more efficient than property map.

@swhgoon
swhgoon / xkcd_get.sh
Created October 16, 2012 08:21
Grab all xkcd click and drag files
#!/bin/bash
files=`cat <<eof
1n8w.png
1n24w.png
1n17e.png
1n16e.png
2n27e.png
4n27e.png
5n27e.png
1n23w.png