Skip to content

Instantly share code, notes, and snippets.

View ePak's full-sized avatar

Eric Pak ePak

  • Melbourne, Australia
View GitHub Profile
@cyhsutw
cyhsutw / MathJax.ipynb
Last active August 31, 2023 05:43
Grabbed from https://github.com/odewahn/ipynb-examples, converted to v3 for GitHub to render.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drcharris
drcharris / ConfigurableAssets.scala
Last active January 11, 2017 18:28
DEPRECATED - see https://gist.github.com/cessationoftime/b304c13f810f9d52e32fbf6c778af3d9 for updated version. Use different assets for different configurations with Play Framework
package controllers
import play.api.Play
import Play.current
import play.api.mvc.Action
import play.api.mvc.AnyContent
object ConfigurableAssets extends AssetsBuilder {
private val assetsPath = Play.configuration.getString("assets.path").getOrElse("/public")
def at(file:String): Action[AnyContent] = {