Skip to content

Instantly share code, notes, and snippets.

let tmp = this.currentTrack.copy();
if(this.playlist.iter_next(tmp)
this.nextBtn.set_sensitive(true);
else
this.nextBtn.set_sensitive(false);
tmp = this.currentTrack.copy();
if(this.playlist.iter_previous(tmp)
this.prevBtn.set_sensitive(true);
else
From 2fc458ab95b2331c4f6551f8d78e186fe9ff4a6f Mon Sep 17 00:00:00 2001
From: Guillaume Quintard <guillaume.quintard@gmail.com>
Date: Mon, 6 May 2013 23:08:27 +0200
Subject: [PATCH] correct naming, and fix playlist caching in album view
---
src/player.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/player.js b/src/player.js
@gquintard
gquintard / gist:6933573
Created October 11, 2013 12:05
Small patch for siege
--- utils/bombardment.in.old 2013-10-11 13:57:19.290059746 +0200
+++ utils/bombardment.in 2013-10-11 14:01:19.300384058 +0200
@@ -89,16 +89,14 @@
currentcl=$startcl # set running count of clients to inital value
-i=0
-j=1
-while [ $numruns -gt $i ]
+i=1
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import std;
sub vcl_deliver {
if (server.ip ~ req.http.foo) {}
server s1 {
rxreq
expect req.url == "foo"
txresp
} -start
varnish v1 -vcl+backend {
sub vcl_miss {
set req.http.state = "MISS";
}
<html>
<head>
<title>JQVMap - World Map</title>
<link href="https://raw.githubusercontent.com/manifestinteractive/jqvmap/master/dist/jqvmap.css" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/manifestinteractive/jqvmap/master/dist/jquery.vmap.js"></script>
<script type="text/javascript" src="https://rawgit.com/manifestinteractive/jqvmap/master/dist/maps/jquery.vmap.world.js" charset="utf-8"></script>
<script type="text/javascript">
var g_reqs = {};
@gquintard
gquintard / vcl.json
Last active September 30, 2016 10:13
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Varnish Configuration Object",
"type": "object",
"required": ["backends", "rules"],
"properties": {
"backends": {
"description": "list of origin servers",
"type": "array",
"items": {
vcl 4.0;
import std
import directors
backend foo {
.host = "127.0.0.1";
}
backend bar {
varnishtest "416"
server s1 {
rxreq
send "HTTP/1.1 200 OK\r\n"
send "Content-length: 16\r\n"
send "\r\n"
send "012345678910"
delay 1
send "abcdef"
@gquintard
gquintard / vha-explanation.rst
Last active November 28, 2016 19:25
VHA behavior regarding clusters

Version 1