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
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/answer/select.js
public/javascripts/answer/select.js
jQuery(document).ready(function(){ $("a.select_answer_link").click(function(){ $.ajax({ url : $(this).attr('href') , type : 'post' , dataType : 'script' }); return false; }) })
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/answer/create.js
public/javascripts/answer/create.js
jQuery(document).ready(function(){ $("#answer_new_form").submit(function(){ $.ajax({ url : $("#answer_new_form").attr('action'), data : {body : $("textarea[name='body']").attr('value')} , dataType: "script", type : 'post', success: function(){ $.facebox.close(); } ...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/answer/new.js
public/javascripts/answer/new.js
jQuery(document).ready(function(){ $("a.answer_new_form_link").click(function(){ $('#answer_new_form_box').toggle(); return false; }) $('#answer_new_form_box').hide('slow'); })
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushGroovy.js
public/javascripts/syntax_highlighter/shBrushGroovy.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushPython.js
public/javascripts/syntax_highlighter/shBrushPython.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushBash.js
public/javascripts/syntax_highlighter/shBrushBash.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushXml.js
public/javascripts/syntax_highlighter/shBrushXml.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushJScript.js
public/javascripts/syntax_highlighter/shBrushJScript.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shLegacy.js
public/javascripts/syntax_highlighter/shLegacy.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushSql.js
public/javascripts/syntax_highlighter/shBrushSql.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushCss.js
public/javascripts/syntax_highlighter/shBrushCss.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushScala.js
public/javascripts/syntax_highlighter/shBrushScala.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shCore.js
public/javascripts/syntax_highlighter/shCore.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushPerl.js
public/javascripts/syntax_highlighter/shBrushPerl.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushRuby.js
public/javascripts/syntax_highlighter/shBrushRuby.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushPhp.js
public/javascripts/syntax_highlighter/shBrushPhp.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushDelphi.js
public/javascripts/syntax_highlighter/shBrushDelphi.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushDiff.js
public/javascripts/syntax_highlighter/shBrushDiff.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushCSharp.js
public/javascripts/syntax_highlighter/shBrushCSharp.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushJava.js
public/javascripts/syntax_highlighter/shBrushJava.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushPlain.js
public/javascripts/syntax_highlighter/shBrushPlain.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushVb.js
public/javascripts/syntax_highlighter/shBrushVb.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/syntax_highlighter/shBrushCpp.js
public/javascripts/syntax_highlighter/shBrushCpp.js
/** * SyntaxHighlighter * http://alexgorbatchev.com/ * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate * * @version * 2.0.296 (March 01 2009) * * @copyright * Copyright (C) 2004-2009 Alex Gorbatchev. * * @license * This fi...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/wmd/wmd.js
public/javascripts/wmd/wmd.js
var Attacklab = Attacklab || {}; Attacklab.wmdBase = function(){ // A few handy aliases for readability. var wmd = top.Attacklab; var doc = top.document; var re = top.RegExp; var nav = top.navigator; // Some namespaces. wmd.Util = {}; wmd.Position = {}; wmd.Command = {}; wmd.Global = {}; var util ...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
true
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/wmd/showdown.js
public/javascripts/wmd/showdown.js
// // showdown.js -- A javascript port of Markdown. // // Copyright (c) 2007 John Fraser. // // Original Markdown Copyright (c) 2004-2005 John Gruber // <http://daringfireball.net/projects/markdown/> // // The full source distribution is at: // // A A L // T C A // T K B // // <http://www.attacklab.net/> /...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
true
nsanta/openoverflow
https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/facebox/facebox.js
public/facebox/facebox.js
/* * Facebox (for jQuery) * version: 1.2 (05/05/2008) * @requires jQuery v1.2 or later * * Examples at http://famspam.com/facebox/ * * Licensed under the MIT: * http://www.opensource.org/licenses/mit-license.php * * Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ] * * Usage: * * jQuery(documen...
javascript
MIT
8a7f4e4ca0cb2d055f816391af65a899fef6861e
2026-01-05T03:40:15.038440Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/server.js
server.js
#!/usr/bin/env node // Aug 2024 https://nimadez.github.io/ // Voxel Builder Server const http = require('http'); const url = require('url'); const fs = require('fs'); const PORT = 8011; http.createServer((req, res) => { const parsedUrl = url.parse(req.url, true); let filePath = `src${parsedUrl.pathname}`; ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/electron.js
electron.js
// Aug 2019 https://nimadez.github.io/ // Voxel Builder Electron if (!require('electron').app.requestSingleInstanceLock()) require('electron').app.exit(0); const { app, BrowserWindow, Menu } = require('electron'); function createWindow() { const mainWindow = new BrowserWindow({ icon: './src/assets/ap...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/main.js
src/main.js
/* Sep 2024 @nimadez Main entry point */ setAppId(); import { engine } from './modules/babylon.js'; import * as CORE from './modules/core.js'; const startTime = performance.now(); CORE.preferences.init(); engine.init().then(eng => { CORE.mainScene.create(eng).then(scn => { scene = scn; ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/user/user.js
src/user/user.js
// // Do not rename this file, it's a module entry point. // /* See examples/ Example 1: Bind tools to shortcuts (easy) Example 2: Create a custom panel (intermediate) Example 3: Load voxel data, bake meshes and export GLB (advanced) Copy/paste them here and reload to see the result. */ console.log('...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/user/examples/create_panel.js
src/user/examples/create_panel.js
// // This example create a custom panel // import { panels } from '../modules/modules.js'; const idx = panels.panels.length; const name = 'user'; const button = document.createElement('button'); button.id = 'toolbar_btn_' + name; // "toolbar_btn_" is important button.style.position = 'fixed'; button.style.top = ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/user/examples/shortcuts.js
src/user/examples/shortcuts.js
// // This example bind tools to shortcuts // import { MODE, builder, tool, xformer, ui } from "../modules/core.js"; document.addEventListener("keydown", (ev) => { if (MODE == 0) { // model|render|export switch (ev.key.toLowerCase()) { case '0': // switch to export tab ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/user/examples/bake_export.js
src/user/examples/bake_export.js
// // This example load voxel data, bake meshes and export GLB // /* Voxel: position: VEC3 INTEGER { x, y, z } (no floats) color: HEX STRING UPPERCASE (#FFFFFF - no opacity) visible: BOOLEAN true/false idx: INTEGER (read-only) */ import { builder, bakery, pool, project, ui } from "../modules/core.js";...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/core.js
src/modules/core.js
/* Aug 2019 @nimadez Core - Main Scene - Axis View Scene - Camera - HDRI - Light - Material - Voxel Mesh - Builder - Bakery - Mesh Pool - Ghosts - Helper - Symmetry - Tool - Tool Mesh - XFormer - Project - Memory - Snapshot ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/translator.js
src/modules/translator.js
/* Jul 2025 @nimadez Translator: Translate Mesh Data */ import { THREE } from './three.js'; import { PositionKind, NormalKind, ColorKind, UVKind, VertexData, CreateMesh } from './babylon.js'; import { material, vMesh, builder, pool, preferences } from './core.js'; import { mergeGeometries, mergeVertices ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/modules.js
src/modules/modules.js
/* Nov 2023 @nimadez Modules */ import { WorkerPool } from '../libs/addons/WorkerPool.js'; export const workerPool = new WorkerPool(); workerPool.setWorkerCreator(() => { const worker = new Worker('modules/worker/worker.js', { type: "module" }); worker.postMessage({ id: 'init' }); return w...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/babylon.js
src/modules/babylon.js
/* Sep 2024 @nimadez Babylon.js module */ class Engine { constructor() { this.canvas = document.getElementById('canvas'); this.engine = undefined; this.isRendering = false; } init() { return new Promise(resolve => { this.engine = new BABY...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/three.js
src/modules/three.js
/* Nov 2023 @nimadez Three.js module */ import * as THREE from 'three'; import { acceleratedRaycast, computeBoundsTree, disposeBoundsTree, computeBatchedBoundsTree, disposeBatchedBoundsTree, } from '../libs/three-mesh-bvh.js'; THREE.Mesh.prototype.raycast = acceleratedRaycast; THREE.Buffer...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/raycaster/voxelizer.js
src/modules/raycaster/voxelizer.js
/* Nov 2023 @nimadez Voxelizer */ import { Vector3 } from "../babylon.js"; import { builder, pool, project, ui, preferences } from "../core.js"; import { loaders } from "../loaders/loaders.js"; import { rcv } from './raycaster.js'; class Voxelizer { constructor() {} voxelizeMesh(mesh) { ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/raycaster/raycaster.js
src/modules/raycaster/raycaster.js
/* Nov 2023 @nimadez Raycasters */ import { THREE } from '../three.js'; import { Vector3, PositionKind, ColorKind } from '../babylon.js'; const nullMaterial = new THREE.MeshBasicMaterial(); const directions = [ new THREE.Vector3(1, 0, 0), new THREE.Vector3(0, 1, 0), new THREE.Vector3(0, 0, ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/worker/worker.js
src/modules/worker/worker.js
/* Dec 2023 @nimadez Web worker processor */ let arr = []; onmessage = (ev) => { switch (ev.data.id) { case 'init': console.log('worker created'); break; case 'fillMeshBuffers': const bufferMatrix = ev.data.data[0]; const b...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/generator/generator.js
src/modules/generator/generator.js
/* Sep 2024 @nimadez Generate voxels */ import { SimplexNoise } from '../../libs/addons/SimplexNoise.js'; import { Vector3 } from '../babylon.js'; import { builder, preferences } from '../core.js'; class Generator { constructor() {} newBox(size, color) { builder.voxels = []; fo...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/exporters/exporters.js
src/modules/exporters/exporters.js
/* Jul 2025 @nimadez Three.js Exporters */ import { GLTFExporter } from '../../libs/addons/GLTFExporter.js'; import { OBJExporter } from '../../libs/addons/OBJExporter.js'; import { STLExporter } from '../../libs/addons/STLExporter.js'; import { PLYExporter } from '../../libs/addons/PLYExporter.js'; impo...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/interfaces/hover.js
src/modules/interfaces/hover.js
/* Sep 2024 @nimadez Floating hover menu */ import { tool } from '../core.js'; class Hover { constructor() { this.elem = document.getElementById('hover'); this.elemDrag = this.elem.children[0]; this.elemItems = this.elem.children[1].children; this.isActive = false; ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/interfaces/confirm.js
src/modules/interfaces/confirm.js
/* Jul 2025 @nimadez Swipe Confirm */ import { ui } from '../core.js'; class Confirm { constructor() { this.isAccept = false; this.isPointerDown = false; this.isDragging = false; this.startX = 0; this.maxSwipe = 0; this.currentLeft = 0; this....
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/interfaces/panels.js
src/modules/interfaces/panels.js
/* Sep 2024 @nimadez Floating panels */ class Panels { constructor() { this.isActive = false; this.panels = []; this.index = -1; this.zIndex = 1000; this.initialX = 0; this.initialY = 0; this.currentX = 0; this.currentY = 0; ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/interfaces/colorpicker.js
src/modules/interfaces/colorpicker.js
/* Jul 2025 @nimadez Color Picker Dialog */ import { pointer, ui } from '../core.js'; import { ReinventedColorWheel } from '../modules.js'; const onChange = new Event('change', { bubbles: true }); const onInput = new Event('input', { bubbles: true }); class ColorPicker { constructor() { t...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/interfaces/palette.js
src/modules/interfaces/palette.js
/* Jul 2025 @nimadez Palette */ import { builder, xformer, ui, preferences } from "../core.js"; class Palette { constructor() { this.canvas = document.getElementById('canvas_palette'); this.ctx = this.canvas.getContext('2d', { willReadFrequently: true }); this.width...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/sandbox/sandbox.js
src/modules/sandbox/sandbox.js
/* Sep 2024 @nimadez Three.js Sandbox */ import { THREE, renderer } from '../three.js'; import { WebGLPathTracer, PhysicalCamera } from '../../libs/three-gpu-pathtracer.js'; import { OrbitControls } from '../../libs/addons/OrbitControls.js'; import { engine, Vector3 } from '../babylon.js'; import { ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/modules/loaders/loaders.js
src/modules/loaders/loaders.js
/* Jul 2025 @nimadez Loaders */ import { GLTFLoader } from '../../libs/addons/GLTFLoader.js'; import { OBJLoader } from '../../libs/addons/OBJLoader.js'; import { STLLoader } from '../../libs/addons/STLLoader.js'; import { PLYLoader } from '../../libs/addons/PLYLoader.js'; import { VOXLoader } from '../....
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/three-gpu-pathtracer.js
src/libs/three-gpu-pathtracer.js
import { BufferAttribute, BufferGeometry, Matrix4, Vector3, Vector4, Matrix3, MeshBasicMaterial, Mesh, ShaderMaterial, NoBlending, Vector2, WebGLRenderTarget, FloatType, RGBAFormat, NearestFilter, PerspectiveCamera, DataUtils, HalfFloatType, Source, DataTexture, LinearFilter, RepeatWrapping, RedFormat, ClampToEdgeWrapp...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/three.core.min.js
src/libs/three.core.min.js
/** * @license * Copyright 2010-2025 Three.js Authors * SPDX-License-Identifier: MIT */
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/three-mesh-bvh.js
src/libs/three-mesh-bvh.js
import { BufferAttribute, Vector3, Vector2, Plane, Line3, Triangle, Matrix4, Box3, REVISION, BackSide, DoubleSide, FrontSide, Object3D, Mesh, BufferGeometry, Group, LineBasicMaterial, MeshBasicMaterial, Ray, BatchedMesh, Sphere, RGBAFormat, RGFormat, RedFormat, RGBAIntegerFormat, RGIntegerFormat, RedIntegerFormat, Data...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/three.module.min.js
src/libs/three.module.min.js
/** * @license * Copyright 2010-2025 Three.js Authors * SPDX-License-Identifier: MIT */
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/babylonjs.materials.min.js
src/libs/babylonjs.materials.min.js
!function(e,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(require("babylonjs")):"function"==typeof define&&define.amd?define("babylonjs-materials",["babylonjs"],i):"object"==typeof exports?exports["babylonjs-materials"]=i(require("babylonjs")):e.MATERIALS=i(e.BABYLON)}("undefined"!=typeof self?s...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/babylon.js
src/libs/babylon.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("babylonjs",[],t):"object"==typeof exports?exports.babylonjs=t():e.BABYLON=t()}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,(()=>(()=>{"use strict";var e={132:(e,t,n)...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/babylon.inspector.bundle.js
src/libs/babylon.inspector.bundle.js
/*! For license information please see babylon.inspector.bundle.js.LICENSE.txt */
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/SimplexNoise.js
src/libs/addons/SimplexNoise.js
/** * A utility class providing noise functions. * * The code is based on [Simplex noise demystified](https://web.archive.org/web/20210210162332/http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf) * by Stefan Gustavson, 2005. * * @three_import import { SimplexNoise } from 'three/addons/math/SimplexNo...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/Pass.js
src/libs/addons/Pass.js
import { BufferGeometry, Float32BufferAttribute, OrthographicCamera, Mesh } from 'three'; /** * Abstract base class for all post processing passes. * * This module is only relevant for post processing with {@link WebGLRenderer}. * * @abstract * @three_import import { Pass } from 'three/addons/postprocessing/...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/OrbitControls.js
src/libs/addons/OrbitControls.js
import { Controls, MOUSE, Quaternion, Spherical, TOUCH, Vector2, Vector3, Plane, Ray, MathUtils } from 'three'; /** * Fires when the camera has been transformed by the controls. * * @event OrbitControls#change * @type {Object} */ const _changeEvent = { type: 'change' }; /** * Fires when an interaction...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/GLTFExporter.js
src/libs/addons/GLTFExporter.js
import { BufferAttribute, ClampToEdgeWrapping, Color, DoubleSide, InterpolateDiscrete, InterpolateLinear, NoColorSpace, LinearFilter, LinearMipmapLinearFilter, LinearMipmapNearestFilter, MathUtils, Matrix4, MirroredRepeatWrapping, NearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, Pr...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/PLYExporter.js
src/libs/addons/PLYExporter.js
import { Matrix3, Vector3, Color, ColorManagement, SRGBColorSpace } from 'three'; /** * An exporter for PLY. * * PLY (Polygon or Stanford Triangle Format) is a file format for efficient delivery and * loading of simple, static 3D content in a dense format. Both binary and ascii formats are * supported. PLY c...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/GLTFLoader.js
src/libs/addons/GLTFLoader.js
import { AnimationClip, Bone, Box3, BufferAttribute, BufferGeometry, ClampToEdgeWrapping, Color, ColorManagement, DirectionalLight, DoubleSide, FileLoader, FrontSide, Group, ImageBitmapLoader, InstancedMesh, InterleavedBuffer, InterleavedBufferAttribute, Interpolant, InterpolateDiscrete, Interpolate...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/OBJLoader.js
src/libs/addons/OBJLoader.js
import { BufferGeometry, FileLoader, Float32BufferAttribute, Group, LineBasicMaterial, LineSegments, Loader, Material, Mesh, MeshPhongMaterial, Points, PointsMaterial, Vector3, Color, SRGBColorSpace } from 'three'; // o object_name | g group_name const _object_pattern = /^[og]\s*(.+)?/; // mtllib file_r...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/WorkerPool.js
src/libs/addons/WorkerPool.js
/** * A simple pool for managing Web Workers. * * @three_import import { WorkerPool } from 'three/addons/utils/WorkerPool.js'; */ export class WorkerPool { /** * Constructs a new Worker pool. * * @param {number} [pool=4] - The size of the pool. */ constructor( pool = 4 ) { /** * The size of the poo...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/STLLoader.js
src/libs/addons/STLLoader.js
import { BufferAttribute, BufferGeometry, Color, FileLoader, Float32BufferAttribute, Loader, Vector3, SRGBColorSpace } from 'three'; /** * A loader for the STL format, as created by Solidworks and other CAD programs. * * Supports both binary and ASCII encoded files. The loader returns a non-indexed buffer g...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/PLYLoader.js
src/libs/addons/PLYLoader.js
import { BufferGeometry, FileLoader, Float32BufferAttribute, Loader, Color, SRGBColorSpace } from 'three'; const _color = new Color(); /** * A loader for PLY the PLY format (known as the Polygon * File Format or the Stanford Triangle Format). * * Limitations: * - ASCII decoding assumes file is UTF-8. * ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/HDRLoader.js
src/libs/addons/HDRLoader.js
import { DataTextureLoader, DataUtils, FloatType, HalfFloatType, LinearFilter, LinearSRGBColorSpace } from 'three'; /** * A loader for the RGBE HDR texture format. * * ```js * const loader = new HDRLoader(); * const envMap = await loader.loadAsync( 'textures/equirectangular/blouberg_sunrise_2_1k.hdr' ); * ...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/BufferGeometryUtils.js
src/libs/addons/BufferGeometryUtils.js
import { BufferAttribute, BufferGeometry, Float32BufferAttribute, InstancedBufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, Vector3, } from 'three'; /** * @module BufferGeometryUtils * @three_import import * as BufferGeometryUtil...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/VOXLoader.js
src/libs/addons/VOXLoader.js
import { BufferGeometry, Color, Data3DTexture, FileLoader, Float32BufferAttribute, Group, Loader, LinearFilter, Matrix4, Mesh, MeshStandardMaterial, NearestFilter, RedFormat, SRGBColorSpace } from 'three'; // Helper function to read a STRING from the data view function readString( data, offset ) { cons...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/STLExporter.js
src/libs/addons/STLExporter.js
import { Vector3 } from 'three'; /** * An exporter for STL. * * STL files describe only the surface geometry of a three-dimensional object without * any representation of color, texture or other common model attributes. The STL format * specifies both ASCII and binary representations, with binary being more compa...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/addons/OBJExporter.js
src/libs/addons/OBJExporter.js
import { Color, ColorManagement, Matrix3, SRGBColorSpace, Vector2, Vector3 } from 'three'; /** * An exporter for OBJ. * * `OBJExporter` is not able to export material data into MTL files so only geometry data are supported. * * ```js * const exporter = new OBJExporter(); * const data = exporter.parse( sce...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/utils/reinvented-color-wheel.bundle.js
src/libs/utils/reinvented-color-wheel.bundle.js
// // Reinvented Color Wheel by luncheon // source: https://github.com/luncheon/reinvented-color-wheel // // * This library has been edited and may be further edited to meet our needs. // function hsl2hsv(hsl) { var h = hsl[0], s = hsl[1] / 100, l = hsl[2] / 100, sv, v; if(l === 0) { // no...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
false
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/utils/jszip.min.js
src/libs/utils/jszip.min.js
/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files <http://stuartk.com/jszip> (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
nimadez/voxel-builder
https://github.com/nimadez/voxel-builder/blob/81a2668fde7b2e61e0978ba97591c49bd0d23efa/src/libs/utils/tween.esm.js
src/libs/utils/tween.esm.js
/** * The Ease class provides a collection of easing functions for use with tween.js. */ var Easing = Object.freeze({ Linear: Object.freeze({ None: function (amount) { return amount; }, In: function (amount) { return amount; }, Out: function (amount)...
javascript
MIT
81a2668fde7b2e61e0978ba97591c49bd0d23efa
2026-01-05T03:40:04.650901Z
true
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/scripts/build.js
scripts/build.js
import * as esbuild from 'esbuild'; await esbuild.build({ entryPoints: ['./src/index.js'], bundle: true, format: 'cjs', platform: 'node', outfile: 'dist/es-modular.cjs', });
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/index.js
src/index.js
export { adapters as config } from "./adapters/index.js"; export { modular, context } from "./modular.js";
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/modular.js
src/modular.js
const sourcePrefix = ` function makeRpc(url, func) { return async(...args) => { const ret = await fetch(url, { method: 'POST', body: JSON.stringify({func, args}), headers: { 'content-type': 'application/json' } }); const type = ret.headers.get('content-type'); if(type &...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/express.js
src/adapters/express.js
export default { getContext(request, response) { return {request, response}; }, getUrl(request) { const hostname = request.headers.host; return `${request.protocol}://${hostname}${request.url}`; }, getParams(request) { return request.body; }, setContentType(request, response) { respons...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/koa.js
src/adapters/koa.js
export default { getContext(ctx) { return ctx; }, getUrl(ctx) { return `${ctx.request.protocol}://${ctx.request.host}${ctx.request.url}`; }, getParams(ctx) { return ctx.request.body; }, setContentType(ctx) { ctx.set('content-type', 'text/javascript'); }, setBody(body, ctx) { ctx.bo...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/vercel.js
src/adapters/vercel.js
export default { getContext(request, response) { return {request, response}; }, getUrl(request) { const hostname = request.headers.host; return `//${hostname}${request.url}`; }, getParams(request) { return request.body; }, setContentType(request, response) { response.setHeader('content...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/aircode.js
src/adapters/aircode.js
export default { getContext(params, context) { return context; }, getUrl(params, context) { const {protocol, host, url} = context; return `${protocol}://${host}${url}`; }, getParams(params) { return params; }, setContentType(params, context) { context.set('content-type', 'text/javascri...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/index.js
src/adapters/index.js
import aircode from './aircode.js'; import express from './express.js'; import koa from './koa.js'; import fastify from './fastify.js'; import vercel from './vercel.js'; import nitro from './nitro.js'; export const adapters = { aircode, express, koa, fastify, vercel, nitro, };
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/nitro.js
src/adapters/nitro.js
import {readBody} from 'h3'; export default { getContext(event) { return {request: event.node.req, response: event.node.res, ...event}; }, getUrl(event) { const request = event.node.req; const hostname = request.headers.host; return `//${hostname}${request.url}`; }, async getParams(event) { ...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/src/adapters/fastify.js
src/adapters/fastify.js
export default { getContext(request, reply) { return {request, reply}; }, getUrl(request) { const hostname = request.headers.host; return `${request.protocol}://${hostname}${request.url}`; }, getParams(request) { return request.body; }, setContentType(request, reply) { reply.header('co...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/test/express-test.js
test/express-test.js
import express from "express"; import bodyParser from 'body-parser'; import { modular, context, config } from "../src/index.js"; const app = express(); app.use(bodyParser.json({ limit: '4.5mb', type: '*/*', })); function add(x, y) { return x + y; } const getHost = context((ctx) => ctx.request.hostname); func...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/test/koa-test.js
test/koa-test.js
import Koa from "koa"; import { bodyParser } from "@koa/bodyparser"; import { modular, context, config } from "../src/index.js"; function add(x, y) { return x + y; } const getHost = context((ctx) => ctx.request.hostname); const app = new Koa(); app.use(bodyParser()); // response app.use(modular({ add, getHost }, ...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/test/fastify-test.js
test/fastify-test.js
import Fastify from 'fastify'; import { modular, context, config } from "../src/index.js"; const fastify = Fastify({ logger: true }); function add(x, y) { return x + y; } const getHost = context((ctx) => ctx.request.hostname); function getMessage() { return {hi: 'there'}; } // Declare a route fastify.all('/...
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/test/esm-import-test/koa.js
test/esm-import-test/koa.js
import Koa from "koa"; import { bodyParser } from "@koa/bodyparser"; import { modular, config } from "../../src/index.js"; const app = new Koa(); app.use(bodyParser()); const module = await import('./test-module.js'); app.use(modular(module, config.koa)); app.listen(3000);
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/test/esm-import-test/test-module.js
test/esm-import-test/test-module.js
import { context } from "../../src/index.js"; export function add(x, y) { return x + y; } export const getHost = context((ctx) => ctx.request.hostname);
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
akira-cn/http-modular
https://github.com/akira-cn/http-modular/blob/d4024b98b7b23ee0d3ebd48bdd10286e788023e1/test/vercel-test/api/hello.js
test/vercel-test/api/hello.js
import { modular, context, config } from "../../../src/index.js"; function add(x, y) { return x + y; } const echo = context((ctx) => ctx.request.body); function getMessage() { return {hi: 'there'}; } export default modular({add, echo, getMessage}, config.vercel);
javascript
MIT
d4024b98b7b23ee0d3ebd48bdd10286e788023e1
2026-01-05T03:40:22.191044Z
false
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/products.js
js/products.js
var $products, $current_product = 'visia'; // List all the products here $products = { visia : { name : 'Visia', tag : 'WP', img : 'http://i.imgur.com/hgp2v0H.jpg', url : 'http://visia.themes.pixelentity.com/', purchase : 'http://themeforest.net/item/visia-responsive-one-page-retina-wo...
javascript
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
false
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/application.js
js/application.js
/*! * Switcheroo by OriginalEXE * https://github.com/OriginalEXE/Switcheroo * MIT licenced */ // Global "use strict", wrap it up in functions if you can't deal with it... "use strict"; var $viewportButtons = $( '.mobile-btn, .tablet-btn, .desktop-btn' ), $productList = $( '.products-list' ), $body = $( 'body' )...
javascript
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
false
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/application.min.js
js/application.min.js
(function(b){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\....
javascript
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
true
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/libs/bootstrap.min.js
js/libs/bootstrap.min.js
/*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ +function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this...
javascript
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
false
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/libs/detectmobilebrowser.js
js/libs/detectmobilebrowser.js
/** * jQuery.browser.mobile (http://detectmobilebrowser.com/) * * jQuery.browser.mobile will be true if the browser is a mobile device * **/ (function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|...
javascript
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
false
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/libs/jquery.carouFredSel-6.2.1-packed.js
js/libs/jquery.carouFredSel-6.2.1-packed.js
/* * jQuery carouFredSel 6.2.1 * Demo's and documentation: * caroufredsel.dev7studios.com * * Copyright (c) 2013 Fred Heusschen * www.frebsite.nl * * Dual licensed under the MIT and GPL licenses. * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License */ (functi...
javascript
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
true
OriginalEXE/Switcheroo
https://github.com/OriginalEXE/Switcheroo/blob/b35a2212591e72fa891910b4dd93a328e636bd72/js/libs/jquery.mousewheel.js
js/libs/jquery.mousewheel.js
/*! Copyright (c) 2013 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
MIT
b35a2212591e72fa891910b4dd93a328e636bd72
2026-01-05T03:40:22.682746Z
false
dcohenb/angular-img-fallback
https://github.com/dcohenb/angular-img-fallback/blob/162851e22d1e3a7898d818e789a2d23b6ebad990/angular.dcb-img-fallback.js
angular.dcb-img-fallback.js
/** * Angular Image Fallback * (c) 2014-2016 Daniel Cohen. http://dcb.co.il * License: MIT * https://github.com/dcohenb/angular-img-fallback */ (function () { angular.module('dcbImgFallback', []) .directive('fallbackSrc', ['imageService', imageService => { return { restric...
javascript
MIT
162851e22d1e3a7898d818e789a2d23b6ebad990
2026-01-05T03:40:23.361933Z
false
dcohenb/angular-img-fallback
https://github.com/dcohenb/angular-img-fallback/blob/162851e22d1e3a7898d818e789a2d23b6ebad990/angular.dcb-img-fallback.min.js
angular.dcb-img-fallback.min.js
"use strict";!function(){angular.module("dcbImgFallback",[]).directive("fallbackSrc",["imageService",function(A){return{restrict:"A",link:function(M,g,I){var i=I.fallbackSrc?A.setMissing(I.fallbackSrc):A.getMissing(),D=function(){var M=I.fallbackSrc?A.setMissing(I.fallbackSrc):A.getMissing();g[0].src!==M&&(g[0].src=M)}...
javascript
MIT
162851e22d1e3a7898d818e789a2d23b6ebad990
2026-01-05T03:40:23.361933Z
false