Find it here: https://github.com/bitemyapp/learnhaskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export var viewportResizeStanddown = 0.5 | |
var viewportResizeCounter = 0.0 | |
signal settingsChanged() | |
signal particlesSettingsChanged() | |
signal removeGpuParticles() | |
func forbidParticles(time): | |
particlesForbiddenCounter = time | |
particlesForbidden = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Singleton | |
@javax.ws.rs.ext.Provider | |
public class NewRelicTimedApplicationListener implements ApplicationEventListener { | |
private Map<Method,String> methodMap = new HashMap<>(); | |
@Override | |
public void onEvent(ApplicationEvent event) { | |
if (event.getType() == ApplicationEvent.Type.INITIALIZATION_APP_FINISHED) { | |
for (Resource resource : event.getResourceModel().getResources()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* OpenSimplex Noise in C# | |
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
* and heavily refactored to improve performance. */ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace NoiseTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelperResource { | |
public static void setRequestOptions(ContainerRequestContext requestContext, RequestOptions requestOptions) { | |
requestContext.setProperty("requestOptions", requestOptions); | |
} | |
public static boolean isBodyRequested(ContainerRequestContext requestContext) { | |
// Do not return a body for head methods, but we might want to calculate paging / headers, etc. | |
// For now this is getting rewritten as GET by Jersey, but it might be changed later: | |
// https://java.net/jira/browse/JERSEY-2460 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
author "Your Name" | |
description "upstart script for sample-dw-service" | |
# respawn the job up to 5 times within a 10 second period. | |
# If the job exceeds these values, it will be stopped and | |
# marked as failed. | |
respawn | |
respawn limit 5 10 | |
# move to this service's working directory |
WeasyPrint converts HTML including images to PDF, it's cross platform but Windows requires a decent amount of massaging to persuade it to work.
To install Pango and Cairo download the [all in one bundle][GTK] of the GTK+ stack and extract the archive to C:\GTK.
You'll need to add the GTK bin folder to your system path so the various