code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
//
// Copyright 2011 Wade Alcorn wade@bindshell.net
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | JavaScript |
//
// Copyright 2011 Wade Alcorn wade@bindshell.net
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | JavaScript |
//
// Copyright 2011 Wade Alcorn wade@bindshell.net
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | JavaScript |
/*
https://github.com/douglascrockford/JSON-js/blob/master/json2.js
2011-02-23
// Create a JSON object only if one does not already exist. We create the
// methods in a closure to avoid creating global variables.
*/
var JSON;
if (!JSON) {
JSON = {};
}
(function () {
"use strict";
function f(n) {... | JavaScript |
//
// Copyright 2011 Wade Alcorn wade@bindshell.net
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | JavaScript |
/*
Name: ImageFlow
Version: 1.3.0 (March 9 2010)
Author: Finn Rudolph
Support: http://finnrudolph.de/ImageFlow
License: ImageFlow is licensed under a Creative Commons
Attribution-Noncommercial 3.0 Unported License
(http://creativecommons.org/licenses/by-nc/3.0/).
... | JavaScript |
/*!
* Copyright (c) 2011 Simo Kinnunen.
* Licensed under the MIT license.
*
* @version ${Version}
*/
var Cufon = (function() {
var api = function() {
return api.replace.apply(null, arguments);
};
var DOM = api.DOM = {
ready: (function() {
var complete = false, readyStatus = { loaded: 1, complete: 1 ... | JavaScript |
/*
* @Copyright (c) 2011 Aurélio Saraiva, Diego Plentz
* @Page http://github.com/plentz/jquery-maskmoney
* try at http://plentz.org/maskmoney
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software ... | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.5 (Tue, 23 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | JavaScript |
/*
* TipTip
* Copyright 2010 Drew Wilson
* www.drewwilson.com
* code.drewwilson.com/entry/tiptip-jquery-plugin
*
* Version 1.3 - Updated: Mar. 23, 2010
*
* This Plug-In will create a custom tooltip to replace the default
* browser tooltip. It is extremely lightweight and very smart in
* that it detects t... | JavaScript |
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2011 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.3
*/
(function($) {
var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";
var iPhone = (window.orientation ... | JavaScript |
$(window).load(function(){
$('.slider')._TMS({
preset:'diagonalFade',
easing:'easeOutQuad',
duration:800,
pagination:true,
slideshow:6000
})
$("#testimonials").jCarouselLite({
btnNext: ".down",
btnPrev: ".up",
visible: 1,
speed: 600,
vertical: true,
circular: true,
easing... | JavaScript |
/* ------------------------------------------------------------------------
Do it when you're ready dawg!
------------------------------------------------------------------------- */
tabs = {
init : function(){
$('.tabs').each(function(){
var th=$(this),
tContent=$('.tab-content',th),
... | JavaScript |
(function ($, undefined) {
$.extend(_TMS, {
presets:{
zoomer:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1","easing":"","way":"lines","anim":"zoomer",k:1.8,crds:{bottom:0,right:0}},
fadeThree:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1"... | JavaScript |
/*! ResponsiveSlides.js v1.32
* http://responsiveslides.com
* http://viljamis.com
*
* Copyright (c) 2011-2012 @viljamis
* Available under the MIT license
*/
/*jslint browser: true, sloppy: true, vars: true, plusplus: true, indent: 2 */
(function ($, window, i) {
$.fn.responsiveSlides = function (options) {
... | JavaScript |
Cufon.replace('h2, h3, #menu a, h4, h5, .tabs ul.nav li a, h6', { fontFamily: 'Swis721 Cn BT', hover:true });
| JavaScript |
// Create new HTML5 elements ===================================================
// -----------------------------------------------------------------------------
// This script should load before any others. We want the new elements to be
// parsed before pretty much anything happens.
// Plus, IE does not behave ot... | JavaScript |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights res... | JavaScript |
(function($) { // Compliant with jquery.noConflict()
$.fn.jCarouselLite = function(o) {
o = $.extend({
btnPrev: null,
btnNext: null,
btnGo: null,
mouseWheel: true,
auto: null,
speed: 200,
easing: null,
... | JavaScript |
if(typeof Object.create!=="function"){
Object.create=function(o){
function F(){
};
F.prototype=o;
return new F();
};
}
var ua={toString:function(){
return navigator.userAgent;
},test:function(s){
return this.toString().toLowerCase().indexOf(s.toLowerCase())>-1;
}};
ua.version=(ua.toString().toLowerCase().match(/[\s\S]+... | JavaScript |
/* jQuery based image slider
/* TMSlider 0.3 */
(function($,undefined){
var _TMS=window._TMS=$.fn._TMS=function(_){
_=_||{}
_=$.extend(clone(_TMS),_TMS.presets[_.preset],_)
_.init.call(_.me=_.holder=this,_)
return _.me.data({opt:_})
}
$.extend(_TMS,{
etal:'<div></div>',
items:'.ite... | JavaScript |
var breakpoints = [];
function Breakpoint_function(arg)
{
reval('native_break(' + arg + ')');
print(" * Added breakpoint for native function '" + arg + "'");
}
function Breakpoint_location(arg)
{
var a = arg.split(":");
if (a.length > 2)
throw new Error("Invalid argument");
if (a.length == 2)
{
... | JavaScript |
const ffi = require("gffi");
const _readline = new ffi.CFunction(ffi.pointer, "readline", ffi.pointer);
const _add_history = new ffi.CFunction(ffi.void, "add_history", ffi.pointer);
const commands =
[
{ label: "quit", fn: quit, help: "Quit the debugger" },
{ label: "b... | JavaScript |
var displayExpressions = [];
function DisplayExpression(expr)
{
this.expr = expr;
this.url = stack[currentFrame].script.url;
this.funname = stack[currentFrame].script.funname;
}
exports.showForThisFrame = function()
{
var i;
for (i=0; i < displayExpressions.length; i++)
{
if ((stack[currentFrame].scr... | JavaScript |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | JavaScript |
/*
* Test the ability to run JSAPI from GFFI in the current context
*/
const ffi = require("gffi");
const JS_CompileUCScript = new ffi.CFunction(
ffi.pointer, // JSScript *
"JS_CompileUCScript",
ffi.pointer, // JSContext *cx
ffi.pointer, // JSObject *obj
ffi.pointer, // const jschar *chars
ffi.size_t... | JavaScript |
load('objects.js')
| JavaScript |
// some tests...
function set_a(a) {this.a = a;}
function set_b(b) {this.b = b;}
function set_c(c) {this.c = c;}
function f_ctor(a,b,c)
{
this.set_a = set_a;
this.set_b = set_b;
this.set_c = set_c;
// NOTE: these break JSD_LOWLEVEL_SOURCE in shell debugger
this.get_a = new Function("return this.a;");... | JavaScript |
/**
* for(var p in Script.scripts) {
*
* var script = Script.scripts[p];
* var handle = script.handle;
* var base = script.base;
* var limit = base + script.extent;
*
* print(script+"\n");
*
* for(var i = base; i < limit; i++) {
* var pc = jsd.GetClosestPC(handle,i)
* var has... | JavaScript |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | JavaScript |
/**
* @file reactor.js A simple event-loop system for GPSEE.
* Based loosely on the reactor initally developed for the net module POC.
*
* @author Wes Garland, wes@page.ca
* @date Dec 2012
*/
exports.config =
{
intervalClamp: 4 /* Do not run recurring events more than once every 4ms, like the browser *... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/**
* @file curl.js
* JS components for cURL module. HTTP class based on
* Nick Galbraith's http.js example.
*
* @note This module has some potential concurrency problems,
* as the module exports are modified by the HTTP
* class. This will be fixed in a future version. Relying
* on those side effe... | JavaScript |
//
// Example code for curl module -- a simple highlevel http client
// see end for how to use
//
const curlmod = require('curl');
const ByteArray = require('binary').ByteArray;
// Only two items exported.
const easycurl = curlmod.easycurl;
const easycurl_slist = curlmod.easycurl_slist;
var http = function http()... | JavaScript |
const cURL = require('curl');
const easycurl = cURL.easycurl;
const easycurl_slist = cURL.easycurl_slist;
const ByteArray = require('binary').ByteArray;
var c = new easycurl;
for (var i in c) {
print("" + i + ": " + c[i]);
}
var blob = new ByteArray();
c.header = function(data) {
print("HEADER: " + data.t... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/**
* @file event.js An event module for GPSEE intended to be API-compatible with Node's event module.
* Loosely based around the GPSEE POC net module.
* @author Wes Garland, wes@page.ca
* @date Dec 2012
*/
var REACTOR = require("reactor");
exports.EventEmitter = function events$$EventEmitter()
{
}
expo... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/**
* @file syslog.js GPSEE module to wrap syslog calls
* with methods inspired by log4j.
* Ported from $Id: surelog.js,v 1.1 2010/04/16 15:38:14 wes Exp $
*
* @author Derek Traise, derek@page.ca
* Wes Garland, wes@page.ca
*
* @date Oct 2009, Feb 2011
*
*/
const ffi = require("gff... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
const XMLHttpRequest = require('xhr').XMLHttpRequest;
var myxhr = new XMLHttpRequest();
myxhr.onreadystatechange = function() {
print("IN STATE: " + this.readyState);
}
myxhr.open('GET', 'http://www.google.com/');
myxhr.send();
print(myxhr.getAllResponseHeaders());
print("RAW DATA IS: " + myxhr.responseRaw);
... | JavaScript |
/**
* xhr.js -- XMLHttpRequest in javascript
*
* Basic XHR for
* - gpsee http://code.google.com/p/gpsee/
* - libcurl http://curl.haxx.se/
*
* SPECS:
* - XMLHttpRequest V1
* http://www.w3.org/TR/XMLHttpRequest/
*
* - XMLHttpRequest V2
* http://www.w3.org/TR/XMLHttpRequest2/
*
* IMPORTANT:... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
#! /usr/bin/gsr -zz
// GFFI program which lightly tests:
// - call method
// - struct dirent, struct stat, struct passwd
// - pre-processor integer
// - struct character arrays which "fall off" the end as strings
// - struct char pointers as strings
// - pointer-to-struct cast
// - falsey null pointers
// - er... | JavaScript |
/*
* Test the ability to run JSAPI from GFFI in the current context
*/
const ffi = require("gffi");
const JS_CompileUCScript = new ffi.CFunction(
ffi.pointer, // JSScript *
"JS_CompileUCScript",
ffi.pointer, // JSContext *cx
ffi.pointer, // JSObject *obj
ffi.pointer, // const jschar *chars
ffi.size_t... | JavaScript |
#! /usr/bin/gsr -zzW
const ffi = require("gffi");
const _mmap = new ffi.CFunction(ffi.pointer, "mmap", ffi.pointer, ffi.size_t, ffi.int, ffi.int, ffi.int, ffi.off_t);
const _munmap = new ffi.CFunction(ffi.int, "munmap", ffi.pointer, ffi.size_t);
const _open = new ffi.CFunction(ffi.int, "open", ffi.pointer,... | JavaScript |
const m = require("./module");
var cls;
var ctor;
var instance;
function UserClass()
{
this.that = 123;
}
for (cls in m)
{
print("Testing " + cls);
ctor = m[cls].shift();
if (ctor !== this[cls])
print(" * Error: constructors do not match");
for each (instance in m[cls])
{
if (!instance instanceo... | JavaScript |
exports.Array = [ Array, [], [,,,], new Array(), new Array(123) ];
exports.Object = [ Object, {}, { hello: 123 }, new Object() ];
exports.XML = [ XML, <hello>world</hello>, new XMLList() ];
exports.Date = [ Date, new Date(), Date.now() ];
exports.RegExp = [ RegExp, /hello/, new RegExp ];
exports.UserClass = [ UserClas... | JavaScript |
var i = 0;
var k = 2;
const mod = require("./module");
mod.incr(10);
if (i != mod.get())
print("Error: i != module::get()");
if (i != 11)
print("Error: i = " + i + "; expected 11");
else
print("i test passed");
if (typeof j !== "undefined")
print("Error: var j leaked from module");
else
print("j test pas... | JavaScript |
exports.incr = function(howMuch)
{
i += howMuch;
}
exports.get = function()
{
return i;
}
exports.incr(1);
j = 12;
var k = 13;
| JavaScript |
require("binary");
require("cgi");
require("fs-base");
require("gffi");
require("gpsee");
require("net");
require("shellalike");
require("signal");
require("syslog");
require("system");
require("util");
require("vm");
require("fs-base").openRaw("/dev/null", { read: true });
require("curses");
| JavaScript |
/** Test should exit without segfaulting */
require.paths.push("/nsp");
require.paths.push("/nsp2");
try
{
require("nsm");
} catch(e){};
| JavaScript |
exports.vm = require("vm");
| JavaScript |
var a = require("./reqVM");
var b = require("vm");
print(a.vm===b ? 'PASS' : 'FAIL');
| JavaScript |
// ***** BEGIN LICENSE BLOCK *****
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
//
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
//
... | JavaScript |
const JIT = require("./jit");
print("----");
JIT.test("from program module");
| JavaScript |
var a = require("thread");
require("thread");
require("thread");
require("thread");
require("thread");
require("thread");
var b = require("thread");
print(a===b ? 'PASS' : 'FAIL');
| JavaScript |
exports.finishTest = function finishTest() {
print("Test passes");
throw 0;
}
| JavaScript |
var modname = 'test-module-2f2809gh8209hg2';
var mod;
try {
mod = require(modname)
} catch (e) {
mod = false;
}
if (mod)
throw new Error("require() should have failed! have you a module somewhere named \""+modname+"?\"");
require.paths.push(void 0);
require.paths.push('directory');
try
{
mod = require(modname);... | JavaScript |
const a = require("./module").a;
const A = [];
const b = require("./module").b;
const B = eval("[]");
print("inside program");
print(b instanceof Array);
print(B instanceof Array);
print(b instanceof Array);
print(B instanceof Array);
| JavaScript |
var a = [];
var b = eval("[]");
print("inside module");
print(a instanceof Array);
print(b instanceof Array);
exports.a = a;
exports.b = b;
| JavaScript |
/** Test should exit without segfaulting */
require.paths.push(void 0);
try
{
require("nsm");
} catch(e){};
| JavaScript |
exports.fn = function() { print('super fancy'); };
| JavaScript |
var a = require("./mod");
var b = require("./hello/world");
print(a===b.c ? 'PASS' : 'FAIL');
| JavaScript |
exports.c = require("../mod");
| JavaScript |
exports.finishTest = function finishTest() {
print("perfect success! :)");
throw 0;
}
| JavaScript |
var modname = 'test-module-2f2809gh8209hg2';
var mod;
try {
mod = require(modname)
} catch (e) {
mod = false;
print('require() failed as it should :)');
}
if (mod)
throw new Error("require() should have failed! have you a module somewhere named \""+modname+"?\"");
require.paths.push('directory');
mod = require(... | JavaScript |
require("reactor").activate(function main() {
var net = require('net');
var client = net.connect({port: 8124},
function() { //'connect' listener
print('client connected');
client.write('world!\r\n');
});
client.on('data', function(data) {
print(data.toString());
client.end();
});
client.on('end', function(... | JavaScript |
// Implement an echo server in JS
//
// Nearly identical to node.js's sample echo server, except
// we currently do not support encodings in net.js, and the
// last line of this script must kick off a reactor (for now).
//
require("reactor").activate(function main() {
var net = require('net');
var server = net.cr... | JavaScript |
#! /usr/bin/gsr
function function_one()
{
function_two();
}
function function_two()
{
function_three();
}
function function_three()
{
throw new Error("An error occurred");
}
function_one();
| JavaScript |
#! /usr/bin/gsr
slfdjsdlfkj(
| JavaScript |
#! /usr/bin/gsr
a=123;
print("This should have generated strict warning #156");
| JavaScript |
#! /usr/bin/gsr
throw 123;
| JavaScript |
#!/usr/bin/gsr -zz
const system = require('system')
const {cay} = require('shellalike');
/* What way were we run? */
if (arguments && arguments.length > 1) {
if (arguments[1] != 'test' || arguments[2] != 'args') {
print('usage:',arguments[0]);
throw 1;
}
if (system.args[1] != 'test' || system.args[2] != '... | JavaScript |
// ***** BEGIN LICENSE BLOCK *****
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
//
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
//
... | JavaScript |
//gpsee: dd
a=1;
print("There should be a warning above");
| JavaScript |
#! /usr/bin/gsr -C
require("fs-base").openRaw("/dev/null", { read: true });
require("curses");
| JavaScript |
#! /usr/bin/gsr -C
require("signal");
require("curses");
| JavaScript |
#! /usr/bin/gsr -ddC
var fs = require('fs-base');
var stdin = fs.openRaw("/dev/stdin", "r");
//print(stdin.read());
| JavaScript |
#! /usr/bin/gsr -C
require("fs-base").openRaw("/dev/null", { read: true });
| JavaScript |
#!/usr/bin/gsr -zz
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.m... | JavaScript |
#!/usr/bin/gsr -zzdd
var verbose = 0, quiet = false;
for each(var arg in arguments) switch (arg) {
case '-v':
verbose++;
case '-q':
quiet = true;
}
const ByteString = require("binary").ByteString;
const Binary = require("binary").Binary;
function values(ob) {
var values = [];
for(... | JavaScript |
#!/usr/bin/gsr -zzdd
var verbose = 0, quiet = false;
for each(var arg in arguments) switch (arg) {
case '-v':
verbose++;
case '-q':
quiet = true;
}
const ByteArray = require("binary").ByteArray;
const Binary = require("binary").Binary;
function values(ob) {
var values = [];
for(v... | JavaScript |
#! /usr/bin/gsr -dd
// ***** BEGIN LICENSE BLOCK *****
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
//
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
// http://www... | JavaScript |
/** REPL-orient input module */
exports.History = function History()
{
this.lines = new Array();
this.position = 0;
this.select = function(offset, oldLineBuffer)
{
var copy = [];
var i;
var send;
switch(offset)
{
case false:
this.position = this.lines.length;
break;
case tr... | JavaScript |
#! /usr/bin/gsr -dd
const Curses = require("curses");
const VM = require("vm");
Curses.Window.prototype.writeln = function()
{
var args = Array.prototype.join.call(arguments, ' ');
var cpos;
if (args && args.length)
{
this.write(args);
cpos = this.getXY();
cpos.x = 0;
cpos.y++;
this.gotoX... | JavaScript |
#! /usr/bin/gsr
print("Hello, World!");
| JavaScript |
#! /usr/bin/gsr -dd
const Curses = require("curses");
const VM = require("vm");
Curses.Window.prototype.writeln = function()
{
var args = Array.prototype.join.call(arguments, ' ');
var cpos;
if (args && args.length)
{
this.write(args);
cpos = this.getXY();
cpos.x = 0;
cpos.y++;
this.gotoX... | JavaScript |
/** Called automatically by JsDoc Toolkit. */
function publish(symbolSet) {
publish.conf = { // trailing slash expected for dirs
ext: ".html",
outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",
templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/",
symbolsDir: "symbols/",
srcDir: "symbo... | JavaScript |
/*
* TipTip
* Copyright 2010 Drew Wilson
* www.drewwilson.com
* code.drewwilson.com/entry/tiptip-jquery-plugin
*
* Version 1.3 - Updated: Mar. 23, 2010
*
* This Plug-In will create a custom tooltip to replace the default
* browser tooltip. It is extremely lightweight and very smart in
* that it detects t... | JavaScript |
/*
* Kendo UI Web v2012.2.710 (http://kendoui.com)
* Copyright 2012 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public License (GPL) version 3.
* ... | JavaScript |
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2011 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.3
*/
(function($) {
var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";
var iPhone = (window.orientation ... | JavaScript |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
| JavaScript |
try {
var pageTracker = _gat._getTracker("UA-18761191-1");
pageTracker._trackPageview();
} catch(err) {}
| JavaScript |
/*
Lightbox JS: Fullsize Image Overlays
by Lokesh Dhakar - http://www.huddletogether.com
For more information on this script, visit:
http://huddletogether.com/projects/lightbox/
Script featured on Dynamic Drive code library Jan 24th, 06':
http://www.dynamicdrive.com
Licensed under the Creative Comm... | JavaScript |
//** All Levels Navigational Menu- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Usage Terms: http://www.dynamicdrive.com/notice.htm
//** July 7th, 08'- Creation Date
//** July 16th, 08'- Up... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.