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: Percentage of busy | |
// calls with a=traffic and n lines | |
function erl(a,n) | |
{ | |
u=1; | |
for(i=1;i<=n;i++) | |
{ | |
u+=power(a,i)/factorial(i); | |
} |
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
//Writing and reading XML files with Qt - qxmlstreamwriter and qxmlstreamreader supported classes | |
void MyXMLClass::SaveXMLFile() | |
{ | |
QString filename = QFileDialog::getSaveFileName(this, | |
tr("Save Xml"), ".", | |
tr("Xml files (*.xml)")); | |
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
QApplication app(argc, argv); | |
... | |
try | |
{ | |
app.exec(); | |
} | |
catch (const std::bad_alloc &) | |
{ | |
// clean up here, e.g. save the session | |
// and close all config files. |
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
POST /InStock HTTP/1.1 | |
Host: www.example.org | |
Content-Type: application/soap+xml; charset=utf-8 | |
Content-Length: nnn | |
<?xml version="1.0"?> | |
<soap:Envelope | |
xmlns:soap="http://www.w3.org/2001/12/soap-envelope" | |
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> |
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
<!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"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Slideshow</title> | |
<link href="style.css" rel="stylesheet" type="text/css" media="screen" /> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript" src="jquery.cycle.all.min.js"></script> |
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 | |
$databaseuser="root"; | |
$databasepassword=""; | |
$databasename="eventkicker"; | |
?> |
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
<script type="text/javascript"> | |
function sendMailMessage() | |
{ | |
document.getElementById("sendbutton").innerHTML="<img src='images/loading.gif' border='0'>"; | |
if (window.XMLHttpRequest) | |
{// code for IE7+, Firefox, Chrome, Opera, Safari | |
xmlhttp=new XMLHttpRequest(); | |
} | |
else |
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
@charset "utf-8"; | |
/* CSS Document */ | |
A:link {text-decoration: none; color: #FFFFFF; font-weight:bold;} | |
A:visited {text-decoration: none; color: #FFFFFF;} | |
A:active {text-decoration: none; color: #CCCCCC;} | |
A:hover {text-decoration: none; color: #CCCCCC;} | |
BODY {font-size: 10pt; font-family:"Times New Roman", Times, serif; background-image:url(../images/sunlight.jpeg); background-repeat:no-repeat; background-attachment:fixed;} |
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
<link rel="stylesheet" type="text/css" href="stylesheets/maint_layout.css" /> | |
<script type="text/javascript"> | |
function showPage(item) | |
{ | |
if (item==1) | |
{ | |
document.getElementById('default').style.display = 'none'; | |
document.getElementById('about').style.display = 'block'; | |
} |
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
$('document').ready(function(){ | |
/**************************************************************/ | |
$h1elements = $("h1"); //Returns a jQuery element from an HTML tag | |
/**************************************************************/ | |
//use add to add the h2 elements to $h1elements | |
$h1andH2elements = $("h1").add("h2"); |
OlderNewer