This file contains hidden or 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; | |
using System.IO; | |
using System.Net; | |
using MjpegCatcher.Properties; | |
using NCrontab; | |
namespace MjpegCatcher | |
{ | |
class Program | |
{ |
This file contains hidden or 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
LDmicro export text | |
for 'ANSI C Code', 4.000000 MHz crystal, 10.0 ms cycle time | |
LADDER DIAGRAM: | |
|| || | |
|| ; Interier Light || | |
1 || ; When you press the button (d2) led (pwm) will turn on and after some time (5 sec) fade out. || | |
|| || |
This file contains hidden or 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 // this file is in utf-8 | |
$json = '{"logs":[{"level":"debug","timestamp":1335428158.523,"message":"Žluťoučký kůň úpěl ďábelské ódy"}]}'; | |
$res = str_split(base64_encode($json), 76); | |
foreach($res as $k=>$v) { | |
header("FireLogger-12345678-$k:$v"); | |
} | |
// try content in different charset |
This file contains hidden or 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 | |
require "thread.php"; | |
function doSomething($res, $t) { | |
usleep($t); | |
exit($res); | |
} | |
$thread1 = new Thread('doSomething'); |
This file contains hidden or 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; | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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"; |