repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
chrismaddern/Google-Glass-Starter-Sinatra-App | https://github.com/chrismaddern/Google-Glass-Starter-Sinatra-App/blob/7759dc8737545e73ddf46bf6a2e840eb30606fab/public/js/custom.js | public/js/custom.js | $(document).ready(function(){
/* ---------------------------------------------------------------------- */
/* Set Min Height
/* ---------------------------------------------------------------------- */
$('#main').css('min-height',
$(window).outerHeight(true)
- ( $('body').outerHeight(true)
- $('body').heig... | javascript | MIT | 7759dc8737545e73ddf46bf6a2e840eb30606fab | 2026-01-05T03:36:01.262311Z | false |
chrismaddern/Google-Glass-Starter-Sinatra-App | https://github.com/chrismaddern/Google-Glass-Starter-Sinatra-App/blob/7759dc8737545e73ddf46bf6a2e840eb30606fab/public/js/jquery.validatejs.js | public/js/jquery.validatejs.js | /**
* jQuery Validation Plugin 1.9.0
*
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
* http://docs.jquery.com/Plugins/Validation
*
* Copyright (c) 2006 - 2011 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://w... | javascript | MIT | 7759dc8737545e73ddf46bf6a2e840eb30606fab | 2026-01-05T03:36:01.262311Z | true |
chrismaddern/Google-Glass-Starter-Sinatra-App | https://github.com/chrismaddern/Google-Glass-Starter-Sinatra-App/blob/7759dc8737545e73ddf46bf6a2e840eb30606fab/public/js/jquery.gmap.min.js | public/js/jquery.gmap.min.js | /**
* jQuery gMap v3
*
* @url http://www.smashinglabs.pl/gmap
* @author Sebastian Poreba <sebastian.poreba@gmail.com>
* @version 3.3.2
* @date 16.03.2011
*/
(function(i){var n=function(){this.markers=[];this.mainMarker=!1;this.icon="http://www.google.com/mapfiles/marker.png"};n.prototype.... | javascript | MIT | 7759dc8737545e73ddf46bf6a2e840eb30606fab | 2026-01-05T03:36:01.262311Z | false |
chrismaddern/Google-Glass-Starter-Sinatra-App | https://github.com/chrismaddern/Google-Glass-Starter-Sinatra-App/blob/7759dc8737545e73ddf46bf6a2e840eb30606fab/public/js/mediaelement-and-player.min.js | public/js/mediaelement-and-player.min.js | /*!
* MediaElement.js
* HTML5 <video> and <audio> shim and player
* http://mediaelementjs.com/
*
* Creates a JavaScript object that mimics HTML5 MediaElement API
* for browsers that don't understand HTML5 or can't play the provided codec
* Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3
*
* Copyright 2010-... | javascript | MIT | 7759dc8737545e73ddf46bf6a2e840eb30606fab | 2026-01-05T03:36:01.262311Z | true |
chrismaddern/Google-Glass-Starter-Sinatra-App | https://github.com/chrismaddern/Google-Glass-Starter-Sinatra-App/blob/7759dc8737545e73ddf46bf6a2e840eb30606fab/public/js/libaries.js | public/js/libaries.js | /*
* Copyright (C) 2009 Joel Sutherland
* Licenced under the MIT license
* http://www.newmediacampaigns.com/page/jquery-flickr-plugin
*
* Available tags for templates:
* title, link, date_taken, description, published, author, author_id, tags, image*
*/
(function($){$.fn.jflickrfeed=function(settings,callback){settings... | javascript | MIT | 7759dc8737545e73ddf46bf6a2e840eb30606fab | 2026-01-05T03:36:01.262311Z | true |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/rollup.config.js | rollup.config.js | import terser from '@rollup/plugin-terser'
import buble from '@rollup/plugin-buble'
import resolve from '@rollup/plugin-node-resolve'
import copy from 'rollup-plugin-copy'
const output = (file, plugins, format) => ({
input: './src/index.js',
output: {
name: 'pointInPolygon',
file,
forma... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/src/index.js | src/index.js | import {orient2d} from 'robust-predicates'
export default function pointInPolygon(p, polygon) {
let i
let ii
let k = 0
let f
let u1
let v1
let u2
let v2
let currentP
let nextP
const [x, y] = p
const numContours = polygon.length
for (i = 0; i < numContours; i++) {
... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/test/biggeom.test.js | test/biggeom.test.js | import {expect, test} from 'vitest'
import loadJsonFile from 'load-json-file'
import path from 'path'
import inside from '../src/index'
const switzerland = loadJsonFile.sync(path.join(__dirname, 'fixtures', 'simple', 'switzerland.geojson'))
const switzCoords = switzerland.geometry.coordinates
test('is inside', () =>... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/test/floatingPoint.test.js | test/floatingPoint.test.js | import {expect, test} from 'vitest'
import inside from '../src/index'
// Inspiration drawn from TurfJS issue
// https://github.com/Turfjs/turf/issues/1597
const polygon = [[[-115.1752628, 36.0873974], [-115.1752969, 36.0873974], [-115.1752969, 36.0874526], [-115.1752628, 36.0874526], [-115.1752628, 36.0873974]]]
te... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/test/test.test.js | test/test.test.js | import {expect, test} from 'vitest'
import inside from '../src/index'
const polygon = [[[1, 1], [1, 2], [2, 2], [2, 1], [1, 1]]];
const orig = JSON.parse(JSON.stringify(polygon))
test('is inside', () => {
expect(inside([1.5, 1.5], polygon)).toBe(true)
});
test('input is not modified', () => {
inside([2, 1.5]... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/test/bench.js | test/bench.js | import Benchmark from 'benchmark'
import pipHao from '../dist/pointInPolygon.mjs'
import inside from 'point-in-polygon'
import robustPip from 'robust-point-in-polygon'
import loadJsonFile from 'load-json-file'
import path from 'path'
const insideSuite = new Benchmark.Suite();
const polygon = [[1, 1], [1, 2], [2, 2],... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
rowanwins/point-in-polygon-hao | https://github.com/rowanwins/point-in-polygon-hao/blob/938b2be31d326c52c8f6cffbbb1c59bae4d609bc/test/floatingPointSimpler.test.js | test/floatingPointSimpler.test.js | import {expect, test} from 'vitest'
import inside from '../src/index'
const polygon = [[[1.111111111111, 1.111111111111], [1.111111111111, 2.111111111111], [2.111111111111, 2.111111111111], [2.111111111111, 1.111111111111], [1.111111111111, 1.111111111111]]]
test('is on bottom edge poly', () => {
expect(inside([1... | javascript | MIT | 938b2be31d326c52c8f6cffbbb1c59bae4d609bc | 2026-01-05T03:36:01.996944Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/scripts/update-jsdoc-config.js | scripts/update-jsdoc-config.js | import path from 'node:path'
import url from 'node:url'
import fs from 'node:fs'
const __dirname = path.dirname(url.fileURLToPath(import.meta.url))
const packageRoot = path.dirname(__dirname)
const packageFile = path.join(packageRoot, 'package.json')
const packageConfig = JSON.parse(fs.readFileSync(packageFile, 'utf8... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/queryEngine.js | src/queryEngine.js | /**
* @namespace queryEngine
* @memberof module:kdljs
*/
import { parse } from './parser/kql.js'
import { validateDocument } from './validator.js'
/**
* @typedef Query
* @memberof module:kdljs.queryEngine
* @type {Object}
* @property {Array<module:kdljs.queryEngine.Selector>} alternatives - Alternative selecto... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/index.js | src/index.js | /**
* @module kdljs
* @borrows module:kdljs.parser.kdl.parse as parse
* @borrows module:kdljs.formatter.format as format
* @borrows module:kdljs.queryEngine.query as query
* @borrows module:kdljs.validator.validateDocument as validateDocument
*/
import { parse } from './parser/index.js'
import { format } from '.... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/formatter.js | src/formatter.js | /**
* @namespace formatter
* @memberof module:kdljs
*/
import { validateDocument } from './validator.js'
import { Identifier } from './parser/tokens.js'
import { bannedIdentifiers } from './parser/base.js'
/* eslint-disable no-control-regex */
const linespace = /^[\r\n\u0085\u000C\u2028\u2029]$/
const nonAscii = /... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/validator.js | src/validator.js | /**
* @namespace validator
* @memberof module:kdljs
*/
/**
* @memberof module:kdljs.validator
* @param {module:kdljs~Document} doc - KDL document
* @return {boolean}
*/
export function validateDocument (doc) {
return Array.isArray(doc) && doc.every(node => validateNode(node))
}
/**
* @access private
* @mem... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/parser/base.js | src/parser/base.js | /**
* @namespace base
* @memberof module:kdljs.parser
*/
import { EmbeddedActionsParser, createTokenInstance, MismatchedTokenException } from 'chevrotain'
import * as Tokens from './tokens.js'
/**
* @type Object<string, string>
* @memberof module:kdljs.parser.base
*/
const escapes = {
'\\n': '\n',
'\\r': '\... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/parser/index.js | src/parser/index.js | /**
* @namespace parser
* @memberof module:kdljs
* @borrows module:kdljs.parser.kdl.parse as parse
*/
import * as kdl from './kdl.js'
export const parse = kdl.parse
export { kdl }
| javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/parser/kdl.js | src/parser/kdl.js | /**
* @namespace kdl
* @memberof module:kdljs.parser
*/
import { Lexer, MismatchedTokenException, createTokenInstance } from 'chevrotain'
import { BaseParser } from './base.js'
import * as Tokens from './tokens.js'
const tokens = {
defaultMode: 'main',
modes: {
main: [
Tokens.WhiteSpace,
Tokens... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/parser/tokens.js | src/parser/tokens.js | import { createToken, EOF } from 'chevrotain'
// Whitespace and comments
const WhiteSpace = createToken({
name: 'WhiteSpace',
// eslint-disable-next-line no-control-regex
pattern: /[\x09\x20\xA0\u1680\u2000-\u200A\u202F\u205F\u3000]+/
})
const BOM = createToken({
name: 'BOM',
// eslint-disable-next-line no-c... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/src/parser/kql.js | src/parser/kql.js | /**
* @namespace kql
* @memberof module:kdljs.parser
*/
import { Lexer } from 'chevrotain'
import { BaseParser } from './base.js'
import * as Tokens from './tokens.js'
const tokens = {
defaultMode: 'main',
modes: {
main: [
Tokens.LeftBracket,
Tokens.RightBracket,
Tokens.Descendant,
... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
kdl-org/kdljs | https://github.com/kdl-org/kdljs/blob/e093f8c490794ff9678463ae9e379100b73a95d4/test/spec.js | test/spec.js | /* eslint-env mocha */
import assert from 'node:assert'
import path from 'node:path'
import url from 'node:url'
import fs from 'node:fs'
import { parse, format } from '../src/index.js'
function prepareExpectations (nodes) {
return nodes.map(node => ({
name: node.name ?? 'node',
values: node.values ?? [],
... | javascript | MIT | e093f8c490794ff9678463ae9e379100b73a95d4 | 2026-01-05T03:35:56.522312Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/index.js | index.js | module.exports = process.env.JSCOV
? require('./lib-cov')
: require('./lib/underscore.inflection.js');
| javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/gulpfile.js | gulpfile.js | var gulp = require('gulp');
var jscs = require('gulp-jscs');
var jscov = require('gulp-jscoverage');
var contribs = require('gulp-contribs');
gulp.task('jscs', function() {
return gulp.src([
'lib/*.js',
'test/*.js'
]).pipe(jscs());
});
gulp.task('jscov', function() {
return gulp.src('lib/*.js')
.pip... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/singular.js | test/singular.js | describe('#singular', function() {
it('adds a new singularization rule by explicit string', function() {
_.singular('data', 'datum');
expect(_.singularize('data')).to.equal('datum');
});
it('adds a new singularization rule by regex', function() {
_.singular(/(t)a$/i, '$1um');
expect(_.singularize(... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/singularize.js | test/singularize.js | describe('#singularize', function() {
it('singularizes the given noun', function() {
expect(_.singularize('posts')).to.equal('post');
});
it('returns the same word if it cannot be singularized', function() {
expect(_.singularize('post')).to.equal('post');
});
it('singularizes a word that contains an i... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/setup.js | test/setup.js | /**
* Export underscore globally
*/
global._ = require('underscore');
/**
* Export `expect` globally
*/
global.expect = require('chai').expect;
/**
* Require the subject under test
*/
require('..');
/**
* Reset inflections befor each test
*/
beforeEach(function() {
_.resetInflections();
});
| javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/plural.js | test/plural.js | describe('#plural', function() {
it('adds a new pluralization rule by explict string', function() {
_.plural('axis', 'axes');
expect(_.pluralize('axis')).to.equal('axes');
});
it('adds a new pluralization rule by regex', function() {
_.plural(/(ax)is$/i, '$1es');
expect(_.pluralize('axis')).to.equ... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/irregular.js | test/irregular.js | describe('#irregular', function() {
it('adds a rule to pluralize the special case', function() {
_.irregular('haxor', 'hax0rs!');
expect(_.pluralize('haxor')).to.equal('hax0rs!');
});
it('adds a rule to singularize the special case', function() {
_.irregular('hax0r!', 'haxors');
expect(_.singulari... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/inflector.js | test/inflector.js | describe('inflector', function() {
/**
* Test macro for pluralize & singularize tests
*/
function example(method, from, to) {
it(method + 's "' + from + '" to "' + to + '"', function() {
expect(_[method](from)).to.equal(to);
});
}
describe('plurals', function() {
[
['rose', 'roses... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/gsub.js | test/gsub.js | describe('#gsub', function() {
describe('with a regex', function() {
it('replaces one instance of the match', function() {
expect(_.gsub('word', /wo/, 'ne')).to.equal('nerd');
});
it('replaces two instances of the match', function() {
expect(_.gsub('word word', /wo/, 'ne')).to.equal('nerd nerd... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/uncountable.js | test/uncountable.js | describe('#uncountable', function() {
it('notes the word as a special case in pluralization', function() {
_.uncountable('asdf');
expect(_.pluralize('asdf')).to.equal('asdf');
});
it('notes the word as a special case in singularization', function() {
_.uncountable('asdf');
expect(_.singularize('as... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/ordinalize.js | test/ordinalize.js | describe('#ordinalize', function() {
it('returns a stirng that is not a number or string', function() {
expect(_.ordinalize('hello')).to.equal('hello');
});
it('ordinalizes a number', function() {
expect(_.ordinalize(4)).to.equal('4th');
});
it('ordinalizes a number string', function() {
expect(_.... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/titleize.js | test/titleize.js | describe('#titleize', function() {
it('returns non-strings', function() {
expect(_.titleize(5)).to.equal(5);
});
it('returns the empty string when provided with the empty string', function() {
expect(_.titleize('')).to.equal('');
});
it('titleizes a word', function() {
expect(_.titleize('banana'))... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/test/pluralize.js | test/pluralize.js | describe('#pluralize', function() {
it('pluralizes the given noun', function() {
expect(_.pluralize('post')).to.equal('posts');
});
it('returns the same word if it cannot be pluralized', function() {
expect(_.pluralize('posts')).to.equal('posts');
});
describe('with a number', function() {
it('plu... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jeremyruppel/underscore.inflection | https://github.com/jeremyruppel/underscore.inflection/blob/cc26032508e74e6fd94ef366b922c2328dc3ea07/lib/underscore.inflection.js | lib/underscore.inflection.js | // Underscore.inflection.js
// (c) 2014 Jeremy Ruppel
// Underscore.inflection is freely distributable under the MIT license.
// Portions of Underscore.inflection are inspired or borrowed from ActiveSupport
// Version 1.0.0
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.... | javascript | MIT | cc26032508e74e6fd94ef366b922c2328dc3ea07 | 2026-01-05T03:36:10.582957Z | false |
jrue/Vimeo-jQuery-API | https://github.com/jrue/Vimeo-jQuery-API/blob/8ce0f16250a72553bef81d8ac2575d71f8c99291/Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// clean tasks
clean: {
// target all output files
all: ['dist/*.*']
},
//lint tasks
jshint: {
files: ['Gruntfile.js', 'src/jquery.vimeo.api.js'... | javascript | MIT | 8ce0f16250a72553bef81d8ac2575d71f8c99291 | 2026-01-05T03:36:12.192911Z | false |
jrue/Vimeo-jQuery-API | https://github.com/jrue/Vimeo-jQuery-API/blob/8ce0f16250a72553bef81d8ac2575d71f8c99291/src/jquery.vimeo.api.js | src/jquery.vimeo.api.js | ;(function($, window) {
var vimeoJqueryAPI = {
//catches return messages when methods like getVolume are called.
//counter is if multiple calls are made before one returns.
catchMethods : {methodreturn:[], count:0},
//This kicks things off on window message event
init : f... | javascript | MIT | 8ce0f16250a72553bef81d8ac2575d71f8c99291 | 2026-01-05T03:36:12.192911Z | false |
jrue/Vimeo-jQuery-API | https://github.com/jrue/Vimeo-jQuery-API/blob/8ce0f16250a72553bef81d8ac2575d71f8c99291/dist/jquery.vimeo.api.js | dist/jquery.vimeo.api.js | /**!
* Simple jQuery Vimeo API -- By Jeremy Rue
*
* Description: A jQuery plugin to easily control Vimeo videos through their API.
* Author: Jeremy Rue, jrue@berkeley.edu
* License: MIT
* Version: 0.10.3
*/
;(function($, window) {
var vimeoJqueryAPI = {
//catches return messages when methods like... | javascript | MIT | 8ce0f16250a72553bef81d8ac2575d71f8c99291 | 2026-01-05T03:36:12.192911Z | false |
jrue/Vimeo-jQuery-API | https://github.com/jrue/Vimeo-jQuery-API/blob/8ce0f16250a72553bef81d8ac2575d71f8c99291/dist/jquery.vimeo.api.min.js | dist/jquery.vimeo.api.min.js | /*! vimeo-jquery-api 2016-05-05 */
!function(a,b){var c={catchMethods:{methodreturn:[],count:0},init:function(b){console.log(b);var c,d,e;b.originalEvent.origin.match(/vimeo/gi)&&"data"in b.originalEvent&&(e="string"===a.type(b.originalEvent.data)?a.parseJSON(b.originalEvent.data):b.originalEvent.data,e&&(c=this.setPla... | javascript | MIT | 8ce0f16250a72553bef81d8ac2575d71f8c99291 | 2026-01-05T03:36:12.192911Z | false |
ahmedrad/sliiide | https://github.com/ahmedrad/sliiide/blob/3b24e97d46d413584ab5dcfc1d0e308de0e77b62/sliiide.min.js | sliiide.min.js | !function(t){function n(t){t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1}function i(t){if(r[t.keyCode])return n(t),!1}function e(){window.addEventListener&&window.addEventListener("DOMMouseScroll",n,!1),window.onwheel=n,window.onmousewheel=document.onmousewheel=n,window.ontouchmove=n,document.... | javascript | MIT | 3b24e97d46d413584ab5dcfc1d0e308de0e77b62 | 2026-01-05T03:36:14.310292Z | false |
ahmedrad/sliiide | https://github.com/ahmedrad/sliiide/blob/3b24e97d46d413584ab5dcfc1d0e308de0e77b62/sliiide.js | sliiide.js | (function ($) {
//get IE version if browser is IE
var ie = (function detectIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (msie > 0) {
return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
}
var trident = ua.indexOf('Trident/');
if (triden... | javascript | MIT | 3b24e97d46d413584ab5dcfc1d0e308de0e77b62 | 2026-01-05T03:36:14.310292Z | false |
acspike/ChordJS | https://github.com/acspike/ChordJS/blob/d71867b3d76a22e4915c1d1e4a36584cad02faf2/chords.js | chords.js | /*
* chord.js
*
* Copyright (C) 2012 Aaron Spike [aaron@ekips.org]
*
* Based On:
* Chord Image Generator
* http://einaregilsson.com/2009/07/23/chord-image-generator/
*
* Copyright (C) 2009-2012 Einar Egilsson [einar@einaregilsson.com]
*
* This program is free software: you can redistribute it and/or modify
... | javascript | MIT | d71867b3d76a22e4915c1d1e4a36584cad02faf2 | 2026-01-05T03:36:14.994633Z | false |
DosX-dev/WebSafeCompiler | https://github.com/DosX-dev/WebSafeCompiler/blob/c1e7e0294006afab3f2d9e5fa7061614049870bf/source/wsc.js | source/wsc.js | "use strict";
const
fs = require('fs'),
path = require('path'),
UglifyJS = require('uglify-js'),
JavaScriptObfuscator = require('javascript-obfuscator'),
{ fileURLToPath } = require('url');
const version = {
current: "v" + require('./package.json').version
}
const colors = {
reset: "\x1b[... | javascript | MIT | c1e7e0294006afab3f2d9e5fa7061614049870bf | 2026-01-05T03:36:15.546618Z | false |
captainsafia/giddy | https://github.com/captainsafia/giddy/blob/7095f283d599bc36f384337e9a72846973550235/src/oops.js | src/oops.js | #! /usr/bin/env node
'use strict';
const program = require('commander');
const exec = require('child_process').exec;
const fs = require('fs');
const __version__ = require('../package.json').version;
program
.version(__version__)
.usage('<command> [<files>]')
program
.command('no-git')
.description('Remove a ... | javascript | MIT | 7095f283d599bc36f384337e9a72846973550235 | 2026-01-05T03:36:16.250821Z | false |
captainsafia/giddy | https://github.com/captainsafia/giddy/blob/7095f283d599bc36f384337e9a72846973550235/src/index.js | src/index.js | #! /usr/bin/env node
'use strict';
const program = require('commander');
const exec = require('child_process').exec;
const fs = require('fs');
const __version__ = require('../package.json').version;
program
.version(__version__)
.usage('<command> [options] [<files>]')
program
.command('undo')
.description('U... | javascript | MIT | 7095f283d599bc36f384337e9a72846973550235 | 2026-01-05T03:36:16.250821Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/src/parsetype.js | src/parsetype.js | module.exports = function(string, start, loc) {
var input = new Input(string, start, loc)
var result = parse(input)
input.skip()
return {type: result, end: input.pos}
}
function isSpace(ch) {
return (ch < 14 && ch > 8) || ch === 32 || ch === 160;
}
function Input(string, start, loc) {
this.str = string
... | javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/src/index.js | src/index.js | var docComments = require("./doccomments")
exports.stripComment = docComments.stripComment
var parseType = exports.parseType = require("./parsetype")
exports.gather = function(text, options) {
var items = options.items || Object.create(null)
var top = {properties: items}
var found = docComments.parse(text, opti... | javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/src/doccomments.js | src/doccomments.js | var acorn = require("acorn/dist/acorn")
var walk = require("acorn/dist/walk")
var parseType = require("./parsetype")
function strip(lines) {
for (var head, i = 1; i < lines.length; i++) {
var line = lines[i], lineHead = line.match(/^[\s\*]*/)[0]
if (lineHead != line) {
if (head == null) {
head... | javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/subcomment.js | test/subcomment.js | // :: Object An object
//
// x:: number The x coordinate
//
// y:: Object The y object
//
// inner:: bool A property of `y`
var x = {}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/class_addmethod.js | test/class_addmethod.js | // ::- The Foo class
class Foo {}
// :: (number, string) → bool
// A method
Foo.prototype.bar = (a, b) => true
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/diffargname.js | test/diffargname.js | // :: (foo: number, bar: string)
function x(a, b) {}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/function.js | test/function.js | // :: (number, number) → number
// Adds two numbers
function add(a, b) {
return a + b
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/literal.js | test/literal.js | // :: (union<"a","b">, number, number) → number
// Returns a or b
function add(which, a, b) {
return which === "a" ? a : b
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/class_static.js | test/class_static.js | // ::- The Foo class
class Foo extends Bar {
// :: (number, string) -> bool
static m(a, b) { return true }
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/class_ctor.js | test/class_ctor.js | // :: (number, number) A vector type
function Point(x, y) {
// :: number The x coordinate
this.x = x
// :: number The y coordinate
this.y = y
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/class_expr.js | test/class_expr.js | // ::- The Foo class
const Foo = class extends Bar {
// :: (number, string) -> bool
m(a, b) { return true }
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/tags.js | test/tags.js | // :: () #deprecated #exported=false #context="a \"string\""
// Hello!
function foo() {}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/class_this.js | test/class_this.js | // ::- A Foo
class Foo {
// :: (number)
constructor(a) {
// :: number
// The a property
this.a = a
}
}
// :: ()
Foo.prototype.doStuff = function() {
// :: bool
// The b property
this.b = true
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/defaultarg.js | test/defaultarg.js | // :: (bool)
function foo(arg = false) {}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/obj.js | test/obj.js | // :: {extra: number}
let obj = {
// :: number A property
foo: 10,
bar: 20
}
// ::- An added property
obj.baz = 30
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/class_simple.js | test/class_simple.js | // ::- The Foo class
class Foo extends Bar {
// :: (number, number)
constructor(a, b) {
this.a = a
this.b = b
}
// :: (number, string) -> bool
m(a, b) { return true }
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/exported.js | test/exported.js | // :: () → string
export function hello() { return "hello" }
// :: number
export var x = 10
// :: string
export default "hi"
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/namedprop.js | test/namedprop.js | // ::- Boo the class
class Boo {
// someProp:: (number) Some prop
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/union.js | test/union.js | // :: (union<number, string>, ?union<bool, RegExp, [Error]>) → union<number, bool>
// That's one complex signature
function blah(x, y) {}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/infer.js | test/infer.js | // ::- It's x
var x = 10
// ::- It's y
var y = true
// ::- It's z
var z = /foo/
// ::- It's obj
var obj = new Something
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/run.js | test/run.js | var fs = require("fs")
var getdocs = require("../src")
var filter = process.argv[2]
fs.readdirSync(__dirname).forEach(function(filename) {
var isJSON = /^([^\.]+)\.json$/.exec(filename)
if (!isJSON || (filter && isJSON[1].indexOf(filter) != 0)) return
var expected = JSON.parse(fs.readFileSync(__dirname + "/" ... | javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/functionsub.js | test/functionsub.js | // :: (number, number) → number
// A function
//
// a::- Parameter a
// return::- The return value is the sum
function foo(a, b) {
return a + b
}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/phantom.js | test/phantom.js | // Abc:: class
// The Abc class
// Abc.m1:: (a: number) → number
// Method #1
// Abc.m2:: () #static
// Method #2
// myString:: string
// My string
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/test/restarg.js | test/restarg.js | // :: ([string]) -> bool
function bar(...stuff) {}
| javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
marijnh/getdocs | https://github.com/marijnh/getdocs/blob/7b8a575b3f1fefa845941495654aa46f8d8fa671/bin/getdocs.js | bin/getdocs.js | #!/usr/bin/env node
var fs = require("fs")
var glob = require("glob")
var getdocs = require("../src")
var items = {}
process.argv.slice(2).forEach(function(arg) {
glob.sync(arg).forEach(function(filename) {
getdocs.gather(fs.readFileSync(filename, "utf8"), {filename: filename, items: items})
})
})
console.lo... | javascript | MIT | 7b8a575b3f1fefa845941495654aa46f8d8fa671 | 2026-01-05T03:36:16.719369Z | false |
Batlez/ChatGPT-Jailbreak-Pro | https://github.com/Batlez/ChatGPT-Jailbreak-Pro/blob/b810b9b98bf150b00971025ccdff569ad2e9cf8d/ChatGPT Jailbreak Enhanced Pro (by Batlez)-1.4.0.user.js | ChatGPT Jailbreak Enhanced Pro (by Batlez)-1.4.0.user.js | // ==UserScript==
// @name ChatGPT Jailbreak Enhanced Pro (by Batlez)
// @namespace https://github.com/Batlez
// @version 1.4.0
// @description The ultimate user-friendly ChatGPT jailbreak tool with stunning visuals and powerful features
// @author Batlez
// @match *://chatgpt.com/*
// @ic... | javascript | MIT | b810b9b98bf150b00971025ccdff569ad2e9cf8d | 2026-01-05T03:36:17.628941Z | true |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/tracking/cookie-accrual/main.js | edgecompute/examples/tracking/cookie-accrual/main.js | /*
(c) Copyright 2019 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Accrue a relevant folder name in the path in a 'visited' cookie as each user navigates the site.
// Keep the visited cookie for a certain number of seconds, and prune over a certain length of names.
// After hitting... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/tracking/remove-cookies/main.js | edgecompute/examples/tracking/remove-cookies/main.js | /*
(c) Copyright 2019 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Remove unwanted Cookies from being sent to the Origin
*/
// import the Cookies helper module
import { Cookies } from 'cookies';
// list of GA cookies to safely remove
const GACookieList =
['_ga', '_gat', '__u... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/tracking/mpulse-integration/src/main.js | edgecompute/examples/tracking/mpulse-integration/src/main.js | import { httpRequest } from 'http-request';
import { logger } from 'log';
// mPulse App
const API_KEY = 'YOUR API KEY';
const DOMAIN = 'YOUR DOMAIN';
const RTT_INDEX = '0'; // YOUR CUSTOM TIMER INDEX FOR ROUND TRIP TIME
const TAT_INDEX = '1'; // YOUR CUSTOM TIMER INDEX FOR TURNAROUND TIME
const DEVICE_INFO = 'brand'; ... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/tracking/set-secure-cookie/main.js | edgecompute/examples/tracking/set-secure-cookie/main.js | import { SetCookie } from 'cookies';
export function onClientResponse (request, response) {
const headers = response.getHeader('set-cookie');
response.removeHeader('set-cookie');
for (const element of headers) {
let result = element.toLocaleLowerCase().indexOf('secure');
if (result == '-1') {
let... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/tracking/remove-cookies-static-files/main.js | edgecompute/examples/tracking/remove-cookies-static-files/main.js | /*
(c) Copyright 2019 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Remove inbound/outbound cookies from static files based on extensions
Repo:
*/
// define list of static file extensions that should not have cookies
const staticFileExtensions = [
'7z', 'avi', 'bmp', 'bz2', 'css... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/getting-started/hello-world (EKV)/main.js | edgecompute/examples/getting-started/hello-world (EKV)/main.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 1.0.0
Purpose:
Implements a simple "Hello World" Dynamic Content Assembly EW whereby the
response is dynamically constructed based on the Accept-Language header
in the request.
For simplicity, the 1st Accept-Language h... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/getting-started/hello-world (EKV)/edgekv_tokens.js | edgecompute/examples/getting-started/hello-world (EKV)/edgekv_tokens.js | var edgekv_access_tokens = {
"namespace-default": {
"name": "default_token",
"value": "insert_customer_token_here"
}
}
export { edgekv_access_tokens };
| javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/getting-started/hello-world (EW)/main.js | edgecompute/examples/getting-started/hello-world (EW)/main.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.2
Purpose: EdgeWorker that generates a simple html page at the Edge and adds a response header
*/
// Import logging module
import { logger } from 'log';
export function onClientRequest (request) {
// Outputs a message to ... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/getting-started/read-request-body/main.js | edgecompute/examples/getting-started/read-request-body/main.js | /*
(c) Copyright 2022 Akamai Technologies, Inc. Licensed under Apache 2 license.
Purpose: EdgeWorker that generates a simple response from the Edge, echoing the contents from the incoming request body
*/
import { createResponse } from 'create-response';
// using async event handler to allow "await" syntax
export as... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/orchestration/api-orchestration/main.js | edgecompute/examples/orchestration/api-orchestration/main.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Combine 3 api endpoints returning JSON into a single JSON response.
*/
import { httpRequest } from 'http-request';
import { createResponse } from 'create-response';
const endPoint1 = '/api/example/endpoint1';
con... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/stream/find-replace-stream/main.js | edgecompute/examples/stream/find-replace-stream/main.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 1.1
Purpose: Modify an HTML streamed response by replacing a text string two times across the entire response.
*/
import { httpRequest } from 'http-request';
import { createResponse } from 'create-response';
import { TextEncod... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/stream/find-replace-stream/find-replace-stream.js | edgecompute/examples/stream/find-replace-stream/find-replace-stream.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
FindAndReplaceStream can be used to parse through a ReadableStream and replace a string throughout the entire body.
Algorithm adapted from [Knuth-Morris-Pratt](https://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm)
It... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/stream/response-manipulation/main.js | edgecompute/examples/stream/response-manipulation/main.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Modify an HTML streamed response by adding a script before the closing head tag.
*/
import { ReadableStream, WritableStream } from 'streams';
import { httpRequest } from 'http-request';
import { createResponse } f... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/stream/jsonp-wrapper/main.js | edgecompute/examples/stream/jsonp-wrapper/main.js | import { TransformStream } from "streams";
import { httpRequest } from "http-request";
import { createResponse } from "create-response";
import URLSearchParams from "url-search-params";
// Some headers aren't safe to forward from the origin response through an EdgeWorker on to the client
// For more information see th... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/stream/dynamic content assembly/main.js | edgecompute/examples/stream/dynamic content assembly/main.js | import { HtmlRewritingStream } from 'html-rewriter';
import { httpRequest } from 'http-request';
import { createResponse } from 'create-response';
export async function responseProvider(request) {
let jsonresponse = await httpRequest('/menujson');
let menujson = await jsonresponse.json();
let rewriter = new Htm... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/stream/stream-concat/main.js | edgecompute/examples/stream/stream-concat/main.js | /*
(c) Copyright 2022 Akamai Technologies, Inc. Licensed under Apache 2 license.
Purpose: Concatenate multiple subrequests into a single output stream
*/
import { httpRequest } from 'http-request';
import { createResponse } from 'create-response';
import { TransformStream } from 'streams';
const UNSAFE_HTTP_HEADER... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/logging/log-delivery/main.js | edgecompute/examples/logging/log-delivery/main.js | /*
(c) Copyright 2024 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.2
Purpose: EdgeWorker that generates a simple html page at the Edge and adds a response header, with additional logging.
To use - please provide a vaild ds2_id information in 'bundle.json' file.
*/
// Import loggin... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/authentication/signed-url-custom-policy/main.js | edgecompute/examples/authentication/signed-url-custom-policy/main.js | import { crypto, pem2ab } from 'crypto';
import URLSearchParams from 'url-search-params';
import { TextEncoder, base64, atob } from 'encoding';
import { logger } from 'log';
const host = 'https://<YOUR HOST>'
const publicKey = `<YOUR PUBLIC KEY>`;
const keyPairId = '<YOUR KEY PAIR ID>';
export async function onClient... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/authentication/ja3-fingerprinting/digest.js | edgecompute/examples/authentication/ja3-fingerprinting/digest.js | /*
* JavaScript MD5
* https://github.com/blueimp/JavaScript-MD5
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
*
* Based on
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as de... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/authentication/ja3-fingerprinting/main.js | edgecompute/examples/authentication/ja3-fingerprinting/main.js | import * as util from './util.js';
export function onClientRequest(request) {
const client_hello = request.getVariable('PMUSER_TLS_CLIENT_HELLO');
const buffer = util.base64toUint8Array(client_hello);
const JA3_fingerprint = util.getJA3Fingerprint(buffer);
request.setVariable('PMUSER_JA3_FINGERPRINT', JA3_fin... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/authentication/ja3-fingerprinting/util.js | edgecompute/examples/authentication/ja3-fingerprinting/util.js | import * as digest from './digest.js';
import { atob } from 'encoding';
const DEBUG_MODE = false;
export function base64toUint8Array(base64_string) {
const raw = atob(base64_string);
return Uint8Array.from(Array.prototype.map.call(raw, (c) => { return c.charCodeAt(0); } ));
}
/* Big Endian */
export function get... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/authentication/jwt/main.js | edgecompute/examples/authentication/jwt/main.js | import { crypto,pem2ab } from 'crypto';
import { TextEncoder, base64url } from 'encoding';
async function verify_es256(jwt, key) {
// Split the signature from the header/claims
const lastDot = jwt.lastIndexOf('.');
if (lastDot < 0) {
throw new Error("Missing dot");
}
const headerAndClaims =... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/authentication/jwt-signing/main.js | edgecompute/examples/authentication/jwt-signing/main.js | /*
(c) Copyright 2024 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 1.0
Purpose: EdgeWorker that signs a JWT for origin validation by leveraging the Web Crypto API
*/
import { logger } from 'log';
import { crypto } from 'crypto';
import { TextEncoder, base64url } from 'encoding';
async functi... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/surrogate-response/empty-cart/main.js | edgecompute/examples/surrogate-response/empty-cart/main.js | /*
(c) Copyright 2019 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Respond with empty JSON if cart cookie not part of request.
*/
import { Cookies, SetCookie } from 'cookies';
export function onClientRequest (request) {
const cookies = new Cookies(request.getHeader('Cookie'));... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/traffic-filtering/traffic-allow-list/main.js | edgecompute/examples/traffic-filtering/traffic-allow-list/main.js | /*
(c) Copyright 2020 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Respond with allow or deny message depending on country of end user.
*/
// List of currently US embargoed countries, plus N/A indicating no country data found (rare, if any)
const embargoedCountries = ['IR', 'KP',... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/traffic-filtering/trace-headers/main.js | edgecompute/examples/traffic-filtering/trace-headers/main.js | /*
(c) Copyright 2021 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 1.1
Purpose: Shows Forward request headers via responseProvider
Repo:
Notes: If query param: getForwardHeaders=body exists, it will output all the headers as the response body instead
of the original body. Else it outputs them ... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
akamai/edgeworkers-examples | https://github.com/akamai/edgeworkers-examples/blob/2f8cbadcf293b1d37628327ed11f5c4a9399c200/edgecompute/examples/traffic-filtering/conference-details/main.js | edgecompute/examples/traffic-filtering/conference-details/main.js | /*
(c) Copyright 2019 Akamai Technologies, Inc. Licensed under Apache 2 license.
Version: 0.1
Purpose: Respond with protected details if the correct code is given as a GET param
*/
import URLSearchParams from 'url-search-params';
export function onClientRequest (request) {
var params = new URLSearchParams(request... | javascript | Apache-2.0 | 2f8cbadcf293b1d37628327ed11f5c4a9399c200 | 2026-01-05T03:36:16.776355Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.