Skip to content

Instantly share code, notes, and snippets.

View jc4p's full-sized avatar

Kasra Rahjerdi jc4p

View GitHub Profile
<p class="category col two"><em>{{ category.title }}</em></p>
<ul class="project-list col seven">
{% foreach post in category.posts %}
<li>
<div class="thumbnail col two">
<img src="{{ post.thumb }}" alt=""></a>
</div>
<div class="summary col two">
<p><a href="{{ url_for(post) }}">{{ post.title }}</a></p>
<p><em>{{ post.date|relative }}</em></p>
@jc4p
jc4p / option3.java
Last active August 29, 2015 14:02 — forked from bnickel/option3.java
// Good idea or Bad idea?
// Lets say you have to call some API with lots of parameters that you don't control
// Like this http://developer.android.com/reference/android/text/StaticLayout.html#StaticLayout(java.lang.CharSequence, int, int, android.text.TextPaint, int, android.text.Layout.Alignment, float, float, boolean, android.text.TextUtils.TruncateAt, int)
// Do you prefer Option #1 or Option #2? Is Option #2 a terrible idea?
// I suppose Option #3 could be to wrap it in a Builder
class Foo {