Skip to content

Instantly share code, notes, and snippets.

View jnugh's full-sized avatar
🐭

Jonas Osburg jnugh

🐭
  • eyeworkers interactive GmbH
  • Germany
View GitHub Profile
@jnugh
jnugh / test.json
Last active November 4, 2016 12:25
{
"data": [
{ "type" : 2, "name" : "Child" },
{ "type" : 1, "name" : "Parent" }
]
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<webview id="testview" src="http://example.org">
</body>
<script>
@jnugh
jnugh / gyp rebuild
Created January 24, 2016 21:49
rootjs gyp rebuild
❯ /home/jonas/Dev/rootjs/node_modules/.bin/node-gyp configure build rootjs --verbose
gyp info it worked if it ends with ok
gyp verb cli [ '/home/jonas/.nvm/versions/node/v5.4.1/bin/node',
gyp verb cli '/home/jonas/Dev/rootjs/node_modules/.bin/node-gyp',
gyp verb cli 'configure',
gyp verb cli 'build',
gyp verb cli 'rootjs',
gyp verb cli '--verbose' ]
gyp info using node-gyp@3.2.1
gyp info using node@5.4.1 | linux | x64
var wait = require('wait.for');
var testClass = function(){
};
testClass.staticMethod = function(){
console.log("call");
}
public class ShippingCalculatorTest {
public static void main(String[] args) {
Book[] testBooks = { new Book("ABC", 125), new Book("DEF", 375, 12.95),
new Book("GHI", 490, 27.5) };
for (Book book : testBooks) {
System.out.println(book);
}
System.out.println("Versandkosten: "
--SQL Statements--
--a)
SELECT `filmID`
FROM `film`
WHERE `origTitle` LIKE '%love%'
--b)
SELECT `filmID`
FROM `film`
WHERE `origTitle` LIKE '%love%'
AND `germanTitle` LIKE '%Liebe%'
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@jnugh
jnugh / gdb-xorg.txt
Created March 22, 2011 19:56
Sisimedia crash debugged when playing videos
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu10) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/Xorg...Reading symbols from /usr/lib/debug/usr/bin/Xorg...done.
/*
* Easy Slider 1.7 - jQuery plugin
* written by Alen Grakalic
* http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
*
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
<a id="yourlinkID" href="go.php?href=http://test.de">Link</a>
<script type="text/javascript">
document.getElementById('yourlinkID').href="http://test.de";
document.getElementById('yourlinkID').onclick = function(){
document.location.href = "go.php?href=http://test.de";
return false;
}
</script>