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
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<!-- název gadgetu a jeho výška --> | |
<ModulePrefs title="Webová stránka" height="350" /> | |
<!-- malý gadget --> | |
<Content view="home" type="url" href="http://seznam.cz" /> | |
<!-- maximalizovaný gadget --> |
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
// Final „WTF“ solution for PSmka.cz | |
"wtf".split("").forEach(function(a,i){$.get("souradnice.php?stav=zmen",{x:i*22+600-(a=="w"?15:0),y:60,id:a+"_c"})}); |
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
/** | |
* AJAX Nette Framwork plugin for jQuery | |
* | |
* @copyright Copyright (c) 2009, 2010 Jan Marek | |
* @copyright Copyright (c) 2009, 2010 David Grudl | |
* @license MIT | |
* @link http://nettephp.com/cs/extras/jquery-ajax | |
*/ | |
(function($) { |
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
<?php | |
// Print all Exception classes in PHP | |
foreach (get_declared_classes() as $class) | |
{ | |
if(is_subclass_of($class, "Exception")) | |
{ | |
echo $class . "\n"; | |
echo "\tparent: " . get_parent_class($class) . "\n"; |
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
<?php | |
foreach (get_declared_classes() as $class) | |
{ | |
if(is_subclass_of($class, "Exception")) | |
{ | |
$parent = get_parent_class($class); | |
$color = in_array($class, spl_classes()) ? "{bg:lightblue}" : ""; | |
echo "[$parent]^-[$class$color]\n"; |
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
// | |
// This sketch will print some of interesting predefined constants to Serial. | |
// | |
// For more information, look at | |
// http://electronics4dogs.blogspot.com/2011/01/arduino-predefined-constants.html | |
// helper macro | |
#define LINE(name,val) Serial.print(name); Serial.print("\t"); Serial.println(val); | |
void setup() |
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
(function () { | |
var output; | |
function getOutput () { | |
if (!output) { | |
output = document.body.appendChild(document.createElement("pre")); | |
} | |
return output; | |
} |
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
javascript:var w = window.open("about:blank", "_blank");w.document.writeln("<pre>");for(var i = 0; i < document.links.length; i++) { var h = document.links[i].href; if (h.indexOf(location.host) < 0) w.document.writeln(h);};void(0); |
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
using System; | |
// Co provede následující program? | |
// | |
// a) Vyvolá NullReferenceException | |
// b) Vypíše "true" | |
// c) Vypíše "false" | |
// d) To netuším, jsem Javista a tam Extension Metody nejsou :( | |
public static class TestProgram |
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
boolean IsTime(unsigned long *timeMark, unsigned long timeInterval) { | |
if (millis() - *timeMark >= timeInterval) { | |
*timeMark = millis(); | |
return true; | |
} | |
return false; | |
} |
OlderNewer