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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DOM Binding Test</title> | |
</head> | |
<body> | |
<button id="action">Submit!</button> | |
<script type="text/javascript"> |
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
var MAX = 5; | |
var INTERVAL = 250; | |
var EXPECTED_TIME = INTERVAL * MAX; | |
var intervalId; | |
var index = 0; | |
var totalTime = 0; | |
var lastTime = Date.now(); | |
var longOperation = function () { | |
totalTime += Date.now() - lastTime; |
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
#!/usr/bin/node | |
var fs = require("fs"); | |
var api = require('etherpad-lite-client'); | |
var eth = api.connect({ | |
apikey: 'your-api-key', | |
host: 'localhost', | |
port: 9001 | |
}); | |
var contentType = process.argv[2]; |
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
import java.util.Arrays; | |
import java.util.List; | |
import javax.transaction.Synchronization; | |
import org.apache.commons.lang.Validate; | |
import org.hibernate.FlushMode; | |
import org.hibernate.HibernateException; | |
import org.hibernate.Session; | |
import org.hibernate.context.internal.ManagedSessionContext; |
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
var WHITE = 255; | |
var readimage = require("readimage"); | |
var fs = require("fs"); | |
var gm = require("gm"); | |
var load = function (file, callback) { | |
var buffer = fs.readFileSync(file); | |
var stream = fs.createReadStream(file); |
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
package foo.test; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.server.handler.ResourceHandler; | |
import org.eclipse.jetty.servlet.ServletContextHandler; | |
import org.eclipse.jetty.util.resource.Resource; | |
/** Steps to reproduce the issue: | |
* | |
* 1. Run the application |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>$title$</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="generator" content="pandoc"> | |
<style type="text/css"> | |
body { |
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
#!/bin/bash | |
# usage: pandoc-document [pandoc options] | |
wget --quiet -O document-A4.template https://gist.githubusercontent.com/seykron/9688447/raw/b52bcead0d78cef033a5eec5f92b5f9a4a8ca050/pandoc-document-template-A4.html | |
pandoc --template document-A4.template $@ |
NewerOlder