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
//innerHTML of these elements in internet explorer are read only: | |
//COL, COLGROUP, FRAMESET, HEAD, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR, SELECT. | |
//example: | |
// function createtable(deal) | |
// { | |
// var table = document.createElement('table'); | |
// table.className='infotable'; | |
// //table.innerHTML='<tbody><tr><td>123</td></tr></tbody>' // will not work in internet explorer | |
// setInnerHTML(table,'<tbody><tr><td>123</td></tr></tbody>') |
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
//licence: 2 clouse mit, by Shimon Doodkin | |
function ObserverPubSub(parent, key_of_myself) { | |
this._topics = {}; | |
this.length = 0; | |
this._subUid = -1; | |
this._parent = parent; | |
this._name = key_of_myself; | |
} | |
ObserverPubSub.prototype = { |
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
@ECHO OFF | |
rem libxml2-2.7.8.win32.zip can be downloaded from ftp://xmlsoft.org/libxml2/win32/libxml2-2.7.8.win32.zip | |
setlocal ENABLEDELAYEDEXPANSION | |
rem http://batcheero.blogspot.co.il/2007/06/how-to-enabledelayedexpansion.html - windows xp | |
SET SELFDIR=%~dp0 | |
IF %SELFDIR:~-1%==\ SET SELFDIR=%SELFDIR:~0,-1% | |
set SELFDIR=%SELFDIR:\=/% |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
// , routes = require('./routes') | |
// , user = require('./routes/user') | |
, http = require('http') | |
, path = require('path'); |
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
' asynchronious http and synchronius http | |
' depends on Timer module | |
' ADD a referece to "Microsoft WinHTTP Services, version 5.1" (in Tools-> References) | |
Private Const CP_UTF8 = 65001 | |
Private Declare Function WideCharToMultiByte Lib "kernel32" (ByVal CodePage As Long, ByVal dwFlags As Long, ByVal lpWideCharStr As Long, ByVal cchWideChar As Long, ByVal lpMultiByteStr As Long, ByVal cchMultiByte As Long, ByVal lpDefaultChar As Long, ByVal lpUsedDefaultChar As Long) As Long | |
' http jobs example - async http | |
'Public Sub testasync_steps(Optional userarg As Variant = "", Optional step As Variant = 0, Optional data As String = "", Optional cookie As String = "", Optional haderror As Boolean = 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
/** | |
* Module dependencies. | |
*/ | |
var io = require('socket.io') | |
, sio, sio_client_on | |
, express = require('express') | |
, MemoryStore = express.session.MemoryStore | |
, routes = require('./routes') | |
, sessionStore = new MemoryStore(); |
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
var doors=7; | |
function offerdoors() | |
{ | |
if(doors<3) return "error"; | |
var arr=[];for(var d=0;d<doors;d++)arr[d]=0;// fill the rage | |
arr[Math.floor(Math.random()*3)]=1; | |
choose(arr) | |
} | |
function whereno(arr,choice) | |
{ |
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
/* | |
Added complex matches by Shimon Doodkin 2012 | |
Developed by Elijah Rutschman 2009 - http://elijahr.blogspot.com/2009/03/javascript-cron.html | |
*/ | |
/* | |
a typical cron entry has either wildcards (*) or an integer: | |
.---------------- minute (0 - 59) | |
| .-------------- hour (0 - 23) | |
| | .------------ day of month (1 - 31) |
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
:: to download Procrun binaries and see documentation visit http://commons.apache.org/daemon/procrun.html | |
:: this file is used to Reinstall a service each time you run it, | |
:: if you need to uninstall comment out with "::" the install service line | |
::detect x86 or x64 | |
echo off | |
IF PROCESSOR_ARCHITECTURE EQU "ia64" GOTO IS_ia64 | |
IF PROCESSOR_ARCHITEW6432 EQU "ia64" GOTO IS_ia64 | |
IF PROCESSOR_ARCHITECTURE EQU "amd64" GOTO IS_amd64 |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
var app = module.exports = express.createServer(); |