Skip to content

Instantly share code, notes, and snippets.

View StephanSchmidt's full-sized avatar

Stephan Schmidt StephanSchmidt

View GitHub Profile
@StephanSchmidt
StephanSchmidt / users.sql
Created December 20, 2022 14:20
Graphjin Graphql
/* action='GetTasks',controller='graphql',framework='graphjin' */
/** GraphQL query:
GetTasks {
tasks(limit: 1000, where: { user_id: $userId } ){
id
title
user {
id
name

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:

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")
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 December 11, 2015 05:58
Basic usage of Inpage SEO Checker
<script src="http://stephanschmidt.github.com/inpageseo/js/seochecker.min.js" type="text/javascript"></script>
@StephanSchmidt
StephanSchmidt / gist:4537408
Last active December 11, 2015 03:28
Example Config Usage
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);
})();
<!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>
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;
}
});