Skip to content

Instantly share code, notes, and snippets.

View MHerbst's full-sized avatar

Martin Herbst MHerbst

View GitHub Profile
@tdominey
tdominey / gist:6066495
Created July 23, 2013 21:52
Display siblings of album from parent set
<koken:parent>
<p>
<strong>From the set:</strong> <koken:link title="View {{ album.title }}">
{{ album.title }}</koken:link>
</p>
<p>
<strong>Other albums in this set:</strong>
<koken:loop>
<koken:link>{{ album.title }}</koken:link>
</koken:loop>
<koken:load limit="10" infinite="true">
<koken:loop>
<div style="margin:25px auto;">
<koken:link lightbox="true">
<koken:img lazy="true" fade="true" />
</koken:link>
</div>
@bradleyboy
bradleyboy / nginx.conf
Last active March 22, 2022 19:46
nginx rewrite setup for Koken
# Enable gzip. Highly recommending for best peformance
gzip on;
gzip_comp_level 6;
gzip_types text/html text/css text/javascript application/json application/javascript application/x-javascript;
# By default, do not set expire headers
expires 0;
# Set expires header for console CSS and JS.
# These files are timestamped with each new release, so it is safe to cache them agressively.
@jimmynotjim
jimmynotjim / gist:2663844
Created May 12, 2012 02:54 — forked from jonathanmoore/gist:2640302
Get the share counts from various APIs

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter

@jewelsea
jewelsea / FxExperienceSplash
Created January 10, 2012 11:19
JavaFX standalone application Splash Page for a great website.
package org.jewelsea.examples.splash;
import javafx.animation.FadeTransition;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.geometry.Rectangle2D;