Skip to content

Instantly share code, notes, and snippets.

Stephan Schmidt StephanSchmidt

Block or report user

Report or block StephanSchmidt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am stephanschmidt on github.
  • I am stephanschmidt (https://keybase.io/stephanschmidt) on keybase.
  • I have a public key ASA9td3XPsUsZwOQnOVHE3vN5sin39xSdVH8y6LSo0Q8RQo

To claim this, I am signing this object:

View gist:a53c8897db133b52efda7172d84751e3
val task1 = Task.fork(Task { Thread.sleep(2000); println("Runnung 1"); 1 + 1 })
val task2 = Task.fork(Task { println("Runnung 2"); 1 + 1 })
println("a")
val t:Task[Int] = for (
r1 <- task1;
r2 <- task2
) yield r1 + r2
println("b")
View gist:4555433
var _seo = {
'em_check': true,
'strong_check': true,
'h_check': true,
'keywords_check': true,
'description_check': true,
'title_check': true,
'h1_min': 1,
'h1_max': 1,
@StephanSchmidt
StephanSchmidt / gist:4555373
Last active Dec 11, 2015
Basic usage of Inpage SEO Checker
View gist:4555373
<script src="http://stephanschmidt.github.com/inpageseo/js/seochecker.min.js" type="text/javascript"></script>
@StephanSchmidt
StephanSchmidt / gist:4537408
Last active Dec 11, 2015
Example Config Usage
View gist:4537408
var _seo = { 'em_check': false };
(function() {
var seo = document.createElement('script'); seo.type = 'text/javascript'; seo.async = true;
seo.src = 'seochecker.min.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(seo, s);
})();
View gist:472258
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" id="facebook" class=" no_js">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-language" content="de" />
<script type="text/javascript">function arrivedHtml(id,text) { var b=document.getElementById(id); b.innerHTML = text; }</script></HEAD><BODY>
<div>Progressive Loading
<div id="content1">-</div>
<div id="content2">-</div>
</div>
View BigPipe.java
public class BigPipeServlet extends HttpServlet {
private static ExecutorService executor = Executors.newFixedThreadPool(500, new ThreadFactory() {
public Thread newThread(Runnable r) {
Thread t = new Thread(r);
t.setName("Service Thread "+ t.getId());
t.setDaemon(true);
return t;
}
});
You can’t perform that action at this time.