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
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/inc_test.js
tests/inc_test.js
var compiler = require('../lib/compiler.js'); exports.test_inc_zp = function (test) { var tokens = compiler.lexical('INC $00'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, as...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bcc_test.js
tests/bcc_test.js
var compiler = require('../lib/compiler.js'); exports.test_bcc_rel = function (test) { var tokens = compiler.lexical('BCC $10'); test.equal(2, tokens.length); test.equal("T_INSTRUCTION", tokens[0].type); test.equal("BCC", tokens[0].value); test.equal("T_ADDRESS", tokens[1].type); test.equal("$1...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/tay_test.js
tests/tay_test.js
var compiler = require('../lib/compiler.js'); exports.test_tay_sngl = function (test) { var tokens = compiler.lexical('TAY'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/jsr_test.js
tests/jsr_test.js
var compiler = require('../lib/compiler.js'); exports.test_jsr_abs = function (test) { var tokens = compiler.lexical('JSR $1234'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); test.equal('$1234', tokens[1].value); var ast = ...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/sec_test.js
tests/sec_test.js
var compiler = require('../lib/compiler.js'); exports.test_sec_sngl = function (test) { var tokens = compiler.lexical('SEC'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/sei_test.js
tests/sei_test.js
var compiler = require('../lib/compiler.js'); exports.test_sei_sngl = function (test) { var tokens = compiler.lexical('SEI'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/ui_test.js
tests/ui_test.js
var ui = require('../lib/ui.js'); exports.test_new_widget = function (test) { var widget = new ui.Widget(); test.equal(0, widget.colorListeners.length); test.equal(0, widget.spriteListeners.length); test.done(); }; exports.test_add_color_listener = function (test) { var widget = new ui.Widget(); ...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/cpy_test.js
tests/cpy_test.js
var compiler = require('../lib/compiler.js'); exports.test_cpy_imm = function (test) { var tokens = compiler.lexical('CPY #10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_HEX_NUMBER', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bpl_test.js
tests/bpl_test.js
var compiler = require('../lib/compiler.js'); exports.test_bpl_rel = function (test) { var tokens = compiler.lexical('BPL $10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, a...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/cartridge_test.js
tests/cartridge_test.js
var cartridge = require('../lib/cartridge.js'); exports.setUp = function (callback) { this.cart = new cartridge.Cartridge(); callback(); }; exports.tearDown = function (callback) { this.cart = null; callback(); }; exports.test_inesprg_1 = function (test) { this.cart.set_iNES_prg(1); test.equa...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/sprite_test.js
tests/sprite_test.js
var fs = require('fs'); var sprite = require('../lib/sprite.js'); var utils = require('../lib/utils'); exports.setUp = function (callback) { utils.path = __dirname + '/../static/example/scrolling/'; callback(); }; exports.test_load_sprites = function (test) { var chr = fs.readFileSync(__dirname + '/../sta...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/asl_test.js
tests/asl_test.js
var compiler = require('../lib/compiler.js'); /* INFO: according to http://www.masswerk.at/6502/6502_instruction_set.html there is no immediate address mode. That opcode is for accumulator address mode. exports.test_asl_imm = function(test){ var tokens = compiler.lexical('ASL #10'); test.equal(2 , tokens.lengt...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/ui_canvas_test.js
tests/ui_canvas_test.js
var fs = require('fs'); var Canvas = require('canvas'); var sprite = require('../lib/sprite.js'); var ui = require('../lib/ui.js'); var utils = require('../lib/utils.js'); var reports_path = __dirname + '/../reports/'; function snapshot(canvas, filename) { var path = reports_path + filename; if (fs.existsSync...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/nop_test.js
tests/nop_test.js
var compiler = require('../lib/compiler.js'); exports.test_nop_sngl = function (test) { var tokens = compiler.lexical('NOP'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/compiler_test.js
tests/compiler_test.js
var compiler = require('../lib/compiler.js'); exports.test_comment = function (test) { var code = ";this is a comment;\n"; var tokens = compiler.lexical(code); test.equal(1, tokens.length); test.equal('T_ENDLINE', tokens[0].type); test.done(); }; exports.test_marker = function (test) { var co...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bvc_test.js
tests/bvc_test.js
var compiler = require('../lib/compiler.js'); exports.test_beq_rel = function (test) { var tokens = compiler.lexical('BVC $10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, a...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bne_test.js
tests/bne_test.js
var compiler = require('../lib/compiler.js'); exports.test_bne_rel = function (test) { var tokens = compiler.lexical('BNE $10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, a...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/iny_test.js
tests/iny_test.js
var compiler = require('../lib/compiler.js'); exports.test_iny_sngl = function (test) { var tokens = compiler.lexical('INY'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/rol_test.js
tests/rol_test.js
var compiler = require('../lib/compiler.js'); /* INFO: according to http://www.masswerk.at/6502/6502_instruction_set.html there is no immediate address mode. That opcode is for accumulator address mode. exports.test_rol_imm = function(test){ var tokens = compiler.lexical('ROL #10'); test.equal(2 , tokens.lengt...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bit_test.js
tests/bit_test.js
var compiler = require('../lib/compiler.js'); exports.test_bit_zp = function (test) { var tokens = compiler.lexical('BIT $00'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, as...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/stx_test.js
tests/stx_test.js
var compiler = require('../lib/compiler.js'); exports.test_stx_zp = function (test) { var tokens = compiler.lexical('STX $00'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, as...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/pla_test.js
tests/pla_test.js
var compiler = require('../lib/compiler.js'); exports.test_pla_sngl = function (test) { var tokens = compiler.lexical('PLA'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/speclatalk_test.js
tests/speclatalk_test.js
var fs = require('fs'); var sys = require('util'); var compiler = require('../lib/compiler.js'); var utils = require('../lib/utils.js'); function get_code(file) { return fs.readFileSync(__dirname + '/../static/example/spec-la-talk/' + file, 'utf8'); } function get_bin(file) { return fs.readFileSync(__dirnam...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bvs_test.js
tests/bvs_test.js
var compiler = require('../lib/compiler.js'); exports.test_beq_rel = function (test) { var tokens = compiler.lexical('BVS $10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, a...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/sta_test.js
tests/sta_test.js
var compiler = require('../lib/compiler.js'); exports.test_sta_zp = function (test) { var tokens = compiler.lexical('STA $00'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, as...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/dey_test.js
tests/dey_test.js
var compiler = require('../lib/compiler.js'); exports.test_dey_sngl = function (test) { var tokens = compiler.lexical('DEY'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/inx_test.js
tests/inx_test.js
var compiler = require('../lib/compiler.js'); exports.test_inx_sngl = function (test) { var tokens = compiler.lexical('INX'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/lda_test.js
tests/lda_test.js
var compiler = require('../lib/compiler.js'); exports.test_lda_imm = function (test) { var tokens = compiler.lexical('LDA #10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_HEX_NUMBER', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/bmi_test.js
tests/bmi_test.js
var compiler = require('../lib/compiler.js'); exports.test_bmi_rel = function (test) { var tokens = compiler.lexical('BMI $10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, a...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/jmp_test.js
tests/jmp_test.js
var compiler = require('../lib/compiler.js'); exports.test_jmp_abs = function (test) { var tokens = compiler.lexical('JMP $1234'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); test.equal('$1234', tokens[1].value); var ast = ...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/txa_test.js
tests/txa_test.js
var compiler = require('../lib/compiler.js'); exports.test_txa_sngl = function (test) { var tokens = compiler.lexical('TXA'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/scrolling_test.js
tests/scrolling_test.js
var fs = require('fs'); var sys = require('util'); var compiler = require('../lib/compiler.js'); var utils = require('../lib/utils.js'); exports.test_get_labels = function (test) { var code = fs.readFileSync(__dirname + '/../static/example/scrolling/scrolling5.asm', 'utf8'); var tokens = compiler.lexical(cod...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/lsr_test.js
tests/lsr_test.js
var compiler = require('../lib/compiler.js'); /* INFO: according to http://www.masswerk.at/6502/6502_instruction_set.html there is no immediate address mode. That opcode is for accumulator address mode. exports.test_lsr_imm = function(test){ var tokens = compiler.lexical('LSR #10'); test.equal(2 , tokens.leng...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/ror_test.js
tests/ror_test.js
var compiler = require('../lib/compiler.js'); /* INFO: according to http://www.masswerk.at/6502/6502_instruction_set.html there is no immediate address mode. That opcode is for accumulator address mode. exports.test_ror_imm = function(test){ var tokens = compiler.lexical('ROR #10'); test.equal(2 , tokens.leng...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/sty_test.js
tests/sty_test.js
var compiler = require('../lib/compiler.js'); exports.test_sty_zp = function (test) { var tokens = compiler.lexical('STY $00'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, as...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/tax_test.js
tests/tax_test.js
var compiler = require('../lib/compiler.js'); exports.test_tax_sngl = function (test) { var tokens = compiler.lexical('TAX'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/dec_test.js
tests/dec_test.js
var compiler = require('../lib/compiler.js'); exports.test_dec_zp = function (test) { var tokens = compiler.lexical('DEC $00'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_ADDRESS', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1, as...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/clc_test.js
tests/clc_test.js
var compiler = require('../lib/compiler.js'); exports.test_clc_sngl = function (test) { var tokens = compiler.lexical('CLC'); test.equal(1, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); var ast = compiler.syntax(tokens); test.equal(1, ast.length); test.equal('S_IMPLIED', ast[0].t...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/ldy_test.js
tests/ldy_test.js
var compiler = require('../lib/compiler.js'); exports.test_ldy_imm = function (test) { var tokens = compiler.lexical('LDY #10'); test.equal(2, tokens.length); test.equal('T_INSTRUCTION', tokens[0].type); test.equal('T_HEX_NUMBER', tokens[1].type); var ast = compiler.syntax(tokens); test.equal(1...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/hex_assert_test.js
tests/hex_assert_test.js
var hexAssert = require('./lib/hex-assert.js'); exports.should_not_throw_excep_when_eq = function (test) { hexAssert.equals([0x1A], [0x1A]); test.done(); }; exports.should_throw_excep_when_diff = function (test) { var exception = null; try { hexAssert.equals([0x1A], [0x1B]); test.fail('...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/acceptance/acceptance_test.js
tests/acceptance/acceptance_test.js
var assert = require('assert'); var webdriver = require('selenium-webdriver'); exports.setUp = function(callback){ this.driver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); this.driver.get('http://localhost:8888'); callback(); }; exports.tearDown =...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/lib/hex-assert.js
tests/lib/hex-assert.js
var assert = require('nodeunit').assert; require('colors'); var HexaAssertionError = function (message) { var err = new Error(message); err.name = 'HexaAssertionError'; this.name = err.name; this.stack = err.stack; this.toString = function () { return this.name + ': ' + this.message; ...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/browser/require.config.js
tests/browser/require.config.js
if (typeof requirejs !== 'function') { var requirejs = require('requirejs'); } var test_files = []; var TEST_REGEXP = /(\w{3}_test)\.js$/; Object.keys(window.__karma__.files).forEach(function (file) { if (TEST_REGEXP.test(file)) { //console.log(file); test_files.push(file); } }); requirejs.co...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/tests/browser/instruction_suite.js
tests/browser/instruction_suite.js
if (typeof define !== 'function') { var define = require('amdefine')(module); } if (typeof nodeunit === 'function') { var nodeunit = {run: function () {}}; } define( [ '../tests_browser/adc_test.js', '../tests_browser/and_test.js', '../tests_browser/asl_test.js', '../tests_browser...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/c6502.js
lib/c6502.js
if (typeof define !== 'function') { var define = require('amdefine')(module); } define([], function() { var am = []; am.S_IMPLIED = {size: 1, short: 'sngl'}; am.S_IMMEDIATE = {size: 2, short: 'imm'}; am.S_IMMEDIATE_WITH_MODIFIER = {size: 2, short: 'imm'}; am.S_ACCUMULATOR = {size: 1, short: 'acc'...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/sprite.js
lib/sprite.js
if (typeof define !== 'function') { var define = require('amdefine')(module); } define(['./utils.js'], function (utils) { var palette = [ 0x788084, 0x0000fc, 0x0000c4, 0x4028c4, 0x94008c, 0xac0028, 0xac1000, 0x8c1800, 0x503000, 0x007800, 0x006800, 0x005800, 0x004058, 0x000000, 0x00...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/cartridge.js
lib/cartridge.js
if (typeof define !== 'function') { var define = require('amdefine')(module); } define([], function () { function Cartridge() { this.banks = []; this.bank_id = 0; this.pc = 0; this.inesprg = 1; this.ineschr = 1; this.inesmap = 1; this.inesmir = 1; th...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/ui.js
lib/ui.js
if (typeof define !== 'function') { var define = require('amdefine')(module); } define([ './sprite.js' ], function (sprite) { function fillCanvas(sprt, imageData, palette, size, padding) { if (padding === undefined) { padding = 0; } var a = 0; for (var y=0; y < 8*si...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/compiler.js
lib/compiler.js
if (typeof define !== 'function') { var define = require('amdefine')(module);} define([ './analyzer.js', './c6502.js', './cartridge.js', './directives.js' ], function(analyzer, c6502, cartridge, directives) { var compiler = function(){}; var asm65_tokens = [ {type:'T_INSTRUCTION',...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/init.js
lib/init.js
if (typeof define !== 'function') { var define = require('amdefine')(module);} define([ 'jquery', 'underscore', 'backbone', 'codemirror', 'jsnes', './compiler.js', './sprite.js', './ui.js', './utils.js', 'bootstrap' // TODO: 'asm' ], function($, _, Backbone, CodeMirror, ...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/analyzer.js
lib/analyzer.js
if (typeof define !== 'function') { var define = require('amdefine')(module);} define([], function() { var analyse = function(code, tokenTypes){ code += ' '; var tokens = []; var line = 1; var column = 1; var erros = []; while (code.length > 0 && code !=='0'){ //TOD...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/directives.js
lib/directives.js
if (typeof define !== 'function') { var define = require('amdefine')(module);} define(['./utils.js'], function(utils) { function d_inesprg(arg, cart){ cart.set_iNES_prg(arg); } function d_ineschr(arg, cart){ cart.set_iNES_chr(arg); } function d_inesmap(arg, cart){ cart.set_iNES_map(arg); } function d_i...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
gutomaia/nodeNES
https://github.com/gutomaia/nodeNES/blob/f152b239d58934e59aac2e688f547def45b8dda4/lib/utils.js
lib/utils.js
if (typeof define !== 'function') { var define = require('amdefine')(module);} define([], function() { var util = function(){}; util.prototype.path = ''; util.prototype.open_file = function(file){ if (typeof jQuery !== 'undefined'){ return this.open_file_with_browser(this.path + file, jQuery); } els...
javascript
BSD-3-Clause
f152b239d58934e59aac2e688f547def45b8dda4
2026-01-05T03:35:50.495442Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/postcss.config.js
postcss.config.js
module.exports = { plugins: [require('postcss-flexbugs-fixes'), require('autoprefixer')], };
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/.prettierrc.js
.prettierrc.js
module.exports = { trailingComma: 'all', singleQuote: true, };
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/.babelrc.js
.babelrc.js
module.exports = { presets: [ [ '@babel/preset-env', { targets: { node: 'current', }, }, ], ], plugins: [], };
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/webpack.config.js
webpack.config.js
const CopyPlugin = require('copy-webpack-plugin'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const getRelativeLuminance = require('get-relative-luminance').default; const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const ...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/jest-puppeteer.config.js
jest-puppeteer.config.js
module.exports = { launch: { headless: process.env.TEST_HEADLESS === 'false' ? false : true, }, server: { command: 'npm run serve -- -s', port: 8080, }, };
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/jest.config.js
jest.config.js
const { execSync } = require('child_process'); const path = require('path'); const TEST_ENV_ALL = 'all'; const TEST_ENV_E2E = 'e2e'; const TEST_ENV_UNIT = 'unit'; const TEST_ENV_OPTIONS = [TEST_ENV_ALL, TEST_ENV_E2E, TEST_ENV_UNIT]; if (!TEST_ENV_OPTIONS.includes(process.env.TEST_ENV)) { console.info(`[ERROR] pleas...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/scripts/bump-simpleicons.js
scripts/bump-simpleicons.js
#!/usr/bin/env node /** * @fileoverview * Updates the simple-icons dependency to the same version used in Shields.io backend. * Upon success, the new simple-icons dependency version is outputted. */ const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const https =...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/scripts/color-sorting.js
scripts/color-sorting.js
/** * @fileoverview * Color sorting algorithm. */ const isGray = (rgb, range) => { let { r, g, b } = { ...rgb }; return ( r >= g - range && r <= g + range && b >= g - range && b <= g + range && r >= b - range && r <= b + range ); }; const rgbToHsl = (rgb) => { let { r, g, b } = { ......
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/dom-utils.test.js
tests/dom-utils.test.js
/** * @jest-environment jsdom */ const { hideElement, showElement, addClass, removeClass, getColumnsCount, } = require('../public/scripts/dom-utils.js'); const $el = { classList: { add: jest.fn().mockName('$el.classList.add'), remove: jest.fn().mockName('$el.classList.remove'), toggle: jest....
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/icons.test.js
tests/icons.test.js
/** * @jest-environment jsdom */ import { createListElement, imageCache } from '../public/scripts/icons.js'; describe('Icons', () => { const originalFetch = global.fetch; const originalCreateObjectURL = global.URL.createObjectURL; beforeAll(() => { global.fetch = jest.fn(() => Promise.resolve({ ...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/utils.test.js
tests/utils.test.js
const { decodeURIComponent, debounce, normalizeSearchTerm, } = require('../public/scripts/utils.js'); describe('::decodeURIComponent', () => { it('normal string', () => { const input = 'foobar'; const result = decodeURIComponent(input); expect(result).toEqual(input); }); it.each([ ['%3Ffoo...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/e2e.test.js
tests/e2e.test.js
const sortByColors = require('../scripts/color-sorting.js'); const fs = require('fs'); const path = require('path'); const { devices } = require('puppeteer'); const simpleIcons = require('simple-icons'); const { URL } = require('url'); const { getValue, hasClass, isDisabled, isHidden, isInViewport, isVisib...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/virtual-window.test.js
tests/virtual-window.test.js
import { window, document } from './mocks/dom.mock.js'; const utils = require('../public/scripts/utils.js'); const domUtils = require('../public/scripts/dom-utils.js'); jest.mock('virtual-scroller/dom', () => { return jest.fn().mockImplementation(() => ({ setItems: jest.fn() })); }); jest.mock('../public/scripts/ico...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/color-sorting.test.js
tests/color-sorting.test.js
const sortByColors = require('../scripts/color-sorting.js'); describe('scripts/color-sorting.js', () => { // issue: https://github.com/simple-icons/simple-icons-website/issues/66 it('orders color', () => { const colors = [ '181717', '1D1717', '000000', '512BD4', '40AEF0', '0...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/storage.test.js
tests/storage.test.js
const { localStorage } = require('./mocks/local-storage.mock.js'); const newStorage = require('../public/scripts/storage.js').default; describe('Storage', () => { beforeEach(() => localStorage.__resetAllMocks()); it('returns something if input is not defined', () => { const result = newStorage(undefined); ...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/search.test.js
tests/search.test.js
const { domUtils } = require('./mocks/dom-utils.mock.js'); const { document, newElementMock, newEventMock, } = require('./mocks/dom.mock.js'); const { history } = require('./mocks/history.mock.js'); const { ordering } = require('./mocks/ordering.mock.js'); const { ORDER_BY_RELEVANCE } = require('../public/script...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/helpers.js
tests/helpers.js
async function isVisibleOnPage($el) { const boundingBox = await $el.boundingBox(); if (boundingBox === null) { return false; } if (boundingBox.width === 0 && boundingBox.height === 0) { return false; } return true; } async function getAttribute($el, attributeName) { const result = await $el.eva...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/ordering.test.js
tests/ordering.test.js
const { document, newElementMock, newEventMock, } = require('./mocks/dom.mock.js'); const { localStorage } = require('./mocks/local-storage.mock.js'); const initOrdering = require('../public/scripts/ordering.js').default; const { STORAGE_KEY_ORDERING } = require('../public/scripts/storage.js'); const { ORDER_A...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/local-storage.mock.js
tests/mocks/local-storage.mock.js
const STORAGE = new Map(); function hasItemImplementation(key) { return STORAGE.has(key); } function getItemImplementation(key) { if (!STORAGE.has(key)) { // As per: https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-getitem return null; } return STORAGE.get(key); } export const loca...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/history.mock.js
tests/mocks/history.mock.js
export const history = { replaceState: jest.fn().mockName('history.replaceState'), // Utility to quickly clear the entire history mock. __resetAllMocks: function () { this.replaceState.mockReset(); }, };
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/dom-utils.mock.js
tests/mocks/dom-utils.mock.js
export const domUtils = { hideElement: jest.fn().mockName('domUtils.hideElement'), showElement: jest.fn().mockName('domUtils.showElement'), toggleClass: jest.fn().mockName('domUtils.toggleClass'), addClass: jest.fn().mockName('domUtils.addClass'), removeClass: jest.fn().mockName('domUtils.removeClass'), get...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/dom.mock.js
tests/mocks/dom.mock.js
const PATHNAME = 'https://www.simpleicons.org'; export const document = { getElementById: jest.fn().mockName('document.getElementById'), createElement: jest.fn().mockName('document.createElement'), location: { pathname: PATHNAME, search: '', }, querySelector: jest.fn().mockName('document.querySelecto...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/navigator.mock.js
tests/mocks/navigator.mock.js
export const navigator = { clipboard: { writeText: jest.fn().mockName('navigator.clipboard.writeText'), }, // Utility to quickly clear the entire localStorage mock. __resetAllMocks: function () { this.clipboard.writeText.mockReset(); }, };
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/image-import.mock.js
tests/mocks/image-import.mock.js
module.exports = 'test-file-stub';
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/tests/mocks/ordering.mock.js
tests/mocks/ordering.mock.js
export const ordering = { currentOrderingIs: jest.fn().mockName('ordering.currentOrderingIs'), selectOrdering: jest.fn().mockName('ordering.selectOrdering'), resetOrdering: jest.fn().mockName('ordering.resetOrdering'), // Utility to quickly clear the entire ordering mock. __resetAllMocks: function () { t...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/storage.js
public/scripts/storage.js
const PREFIX = 'simple-icons-'; export const STORAGE_KEY_COLOR_SCHEME = PREFIX + 'preferred-color-scheme'; export const STORAGE_KEY_ORDERING = PREFIX + 'preferred-ordering'; export const STORAGE_KEY_COPY_METHOD = PREFIX + 'preferred-copy-method'; const mockStorage = { hasItem() { return false; }, getItem() ...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/ordering.js
public/scripts/ordering.js
import { STORAGE_KEY_ORDERING } from './storage.js'; export const ORDER_ALPHABETICALLY = 'alphabetically'; export const ORDER_BY_COLOR = 'color'; export const ORDER_BY_RELEVANCE = 'relevance'; const DEFAULT_ORDERING = ORDER_ALPHABETICALLY; const CLASS_ORDER_ALPHABETICALLY = 'order-alphabetically'; const CLASS_ORDER_...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/index.js
public/scripts/index.js
import '../stylesheet.css'; import * as domUtils from './dom-utils.js'; import { groupIntoRows } from './utils.js'; import newStorage from './storage.js'; import initVirtualWindow from './virtual-window.js'; import initCopyButtons from './copy.js'; import initColorScheme from './color-scheme.js'; import initOrdering ...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/color-scheme.js
public/scripts/color-scheme.js
import { STORAGE_KEY_COLOR_SCHEME } from './storage.js'; const COLOR_SCHEME_DARK = 'dark'; const COLOR_SCHEME_LIGHT = 'light'; const COLOR_SCHEME_SYSTEM = 'system'; const DEFAULT_COLOR_SCHEME = COLOR_SCHEME_LIGHT; const CLASS_DARK_MODE = 'dark'; const CLASS_LIGHT_MODE = 'light'; export default function initColorSch...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/copy.js
public/scripts/copy.js
import { STORAGE_KEY_COPY_METHOD } from './storage.js'; export const COPY_AS_MARKDOWN = 'COPY_AS_MARKDOWN'; export const COPY_AS_HTML = 'COPY_AS_HTML'; export const COPY_AS_LINK = 'COPY_AS_LINK'; const DEFAULT_COPY_FORMAT = COPY_AS_MARKDOWN; const CLASS_COPY_ACTIVE = 'copy-control-active'; const COPIED_TIMEOUT = 10...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/virtual-window.js
public/scripts/virtual-window.js
import VirtualScroller from 'virtual-scroller/dom'; import { createListElement } from './icons.js'; import { getColumnsCount } from './dom-utils.js'; import { groupIntoRows } from './utils.js'; export default function initVirtualWindow(window, document, getBadges) { const $container = document.getElementById('virtua...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/icons.js
public/scripts/icons.js
import EllipseLoader from '../images/Ellipsis@1x-1.0s-200px-200px.svg'; export const imageCache = new Map(); export function createListElement(icon) { const baseUrl = 'https://img.shields.io/badge/'; const badgeUrl = new URL( `${icon.badgeEncodedTitle}-${icon.shortHex}`, baseUrl, ); badgeUrl.searchPar...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/search.js
public/scripts/search.js
import { ORDER_BY_RELEVANCE } from './ordering.js'; import { decodeURIComponent, debounce, normalizeSearchTerm } from './utils.js'; const QUERY_PARAMETER = 'q'; function getQueryFromParameter(location, parameter) { const expr = new RegExp(`[\\?&]${parameter}=([^&#]*)`); const results = expr.exec(location.search);...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/utils.js
public/scripts/utils.js
module.exports = { decodeURIComponent: decodeURIComponent, debounce: function (func, wait, immediate) { let timeout, args, context, timestamp, result; const later = function () { const last = +new Date() - timestamp; if (last < wait && last >= 0) { timeout = setTimeout(later, wait - las...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
developStorm/simple-badges
https://github.com/developStorm/simple-badges/blob/396852416b9bae15ea84597215fc28158005a4da/public/scripts/dom-utils.js
public/scripts/dom-utils.js
export function hideElement($el) { if ($el) { $el.classList.add('hidden'); $el.setAttribute('aria-hidden', 'true'); } } export function showElement($el) { if ($el) { $el.classList.remove('hidden'); $el.removeAttribute('aria-hidden'); } } export function addClass($el, clazz) { if ($el) { ...
javascript
CC0-1.0
396852416b9bae15ea84597215fc28158005a4da
2026-01-05T03:35:51.496703Z
false
everruler12/roam2github
https://github.com/everruler12/roam2github/blob/e5b7808457f2ba8ef95467dc348b76efcf049244/roam2github.js
roam2github.js
const path = require('path') const fs = require('fs-extra') const puppeteer = require('puppeteer') const extract = require('extract-zip') const sanitize = require('sanitize-filename') const edn_format = require('edn-formatter').edn_formatter.core.format console.time('R2G Exit after') if (fs.existsSync(path.join(__dir...
javascript
MIT
e5b7808457f2ba8ef95467dc348b76efcf049244
2026-01-05T03:35:55.379684Z
false
everruler12/roam2github
https://github.com/everruler12/roam2github/blob/e5b7808457f2ba8ef95467dc348b76efcf049244/backup.js
backup.js
// TODO output log file to backup repo with list of changed markdown filenames and overwritten files, in order to preserve privacy in public actions const path = require('path') const fs = require('fs-extra') const puppeteer = require('puppeteer') const extract = require('extract-zip') const sanitize = require('sanitiz...
javascript
MIT
e5b7808457f2ba8ef95467dc348b76efcf049244
2026-01-05T03:35:55.379684Z
false
rauschma/tree-shaking-demo
https://github.com/rauschma/tree-shaking-demo/blob/06da7f538aa3abedadc29c15ec2b0c6c0d335ac0/webpack.config.js
webpack.config.js
/* global __dirname */ var path = require('path'); var webpack = require('webpack'); var CopyWebpackPlugin = require('copy-webpack-plugin'); var dir_js = path.resolve(__dirname, 'js'); var dir_html = path.resolve(__dirname, 'html'); var dir_build = path.resolve(__dirname, 'build'); module.exports = { entry: pat...
javascript
MIT
06da7f538aa3abedadc29c15ec2b0c6c0d335ac0
2026-01-05T03:35:53.513169Z
false
rauschma/tree-shaking-demo
https://github.com/rauschma/tree-shaking-demo/blob/06da7f538aa3abedadc29c15ec2b0c6c0d335ac0/js/main.js
js/main.js
import {foo} from './helpers'; let elem = document.getElementById('output'); elem.innerHTML = `Output: ${foo()}`;
javascript
MIT
06da7f538aa3abedadc29c15ec2b0c6c0d335ac0
2026-01-05T03:35:53.513169Z
false
rauschma/tree-shaking-demo
https://github.com/rauschma/tree-shaking-demo/blob/06da7f538aa3abedadc29c15ec2b0c6c0d335ac0/js/helpers.js
js/helpers.js
export function foo() { return 'foo'; } export function bar() { return 'bar'; }
javascript
MIT
06da7f538aa3abedadc29c15ec2b0c6c0d335ac0
2026-01-05T03:35:53.513169Z
false
repsac-by/gnome-shell-extension-quake-mode
https://github.com/repsac-by/gnome-shell-extension-quake-mode/blob/fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7/.eslintrc.js
.eslintrc.js
module.exports = { env: { es2021: true, }, globals: { global: "readonly", log: "readonly", }, extends: "eslint:recommended", overrides: [ { env: { node: true, }, files: [".eslintrc.{js,cjs}"], parserOptions: { sourceType: "script", }, }, ],...
javascript
MIT
fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7
2026-01-05T03:36:00.556032Z
false
repsac-by/gnome-shell-extension-quake-mode
https://github.com/repsac-by/gnome-shell-extension-quake-mode/blob/fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7/quake-mode@repsac-by.github.com/prefs.js
quake-mode@repsac-by.github.com/prefs.js
import GObject from "gi://GObject"; import Gio from "gi://Gio"; import Gtk from "gi://Gtk"; import { ExtensionPreferences, gettext as _, } from "resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js"; import { getMonitors } from "./util.js"; export default class QuakeModePreferences extends ExtensionPrefer...
javascript
MIT
fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7
2026-01-05T03:36:00.556032Z
false
repsac-by/gnome-shell-extension-quake-mode
https://github.com/repsac-by/gnome-shell-extension-quake-mode/blob/fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7/quake-mode@repsac-by.github.com/quakemodeapp.js
quake-mode@repsac-by.github.com/quakemodeapp.js
import Clutter from "gi://Clutter"; import GLib from "gi://GLib"; import Shell from "gi://Shell"; import { Extension } from "resource:///org/gnome/shell/extensions/extension.js"; import * as Main from "resource:///org/gnome/shell/ui/main.js"; import { on, once } from "./util.js"; export var state = { INITIAL: Symbol...
javascript
MIT
fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7
2026-01-05T03:36:00.556032Z
false
repsac-by/gnome-shell-extension-quake-mode
https://github.com/repsac-by/gnome-shell-extension-quake-mode/blob/fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7/quake-mode@repsac-by.github.com/indicator.js
quake-mode@repsac-by.github.com/indicator.js
import Clutter from "gi://Clutter"; import St from "gi://St"; import { Extension, gettext as _, } from "resource:///org/gnome/shell/extensions/extension.js"; import * as PanelMenu from "resource:///org/gnome/shell/ui/panelMenu.js"; import * as PopupMenu from "resource:///org/gnome/shell/ui/popupMenu.js"; import { g...
javascript
MIT
fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7
2026-01-05T03:36:00.556032Z
false
repsac-by/gnome-shell-extension-quake-mode
https://github.com/repsac-by/gnome-shell-extension-quake-mode/blob/fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7/quake-mode@repsac-by.github.com/extension.js
quake-mode@repsac-by.github.com/extension.js
import Meta from "gi://Meta"; import Shell from "gi://Shell"; import * as Main from "resource:///org/gnome/shell/ui/main.js"; import * as altTab from "resource:///org/gnome/shell/ui/altTab.js"; import { Workspace } from "resource:///org/gnome/shell/ui/workspace.js"; import { Extension, InjectionManager, } from "res...
javascript
MIT
fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7
2026-01-05T03:36:00.556032Z
false
repsac-by/gnome-shell-extension-quake-mode
https://github.com/repsac-by/gnome-shell-extension-quake-mode/blob/fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7/quake-mode@repsac-by.github.com/util.js
quake-mode@repsac-by.github.com/util.js
import Gdk from "gi://Gdk"; class Signal { /** * @param {import('@girs/gobject-2.0').GObject.Object} target * @param {string} name * @param {(self: Signal, ...args: any[]) => void} cb */ constructor(target, name, cb) { this.name = name; this.target = target; this.id = target.connect(name, (...
javascript
MIT
fb05cc6dd688d40cb1392ad09761f7d8ebe3f9b7
2026-01-05T03:36:00.556032Z
false
chrismaddern/Google-Glass-Starter-Sinatra-App
https://github.com/chrismaddern/Google-Glass-Starter-Sinatra-App/blob/7759dc8737545e73ddf46bf6a2e840eb30606fab/public/js/user.js
public/js/user.js
// Twitter Username twitterUserName = 'envato'; // Amount of Tweets to display twitterCount = 2; // Flickr ID - Use http://idgettr.com/ flickrID = '15894240@N00'; // Google Maps Address address = '13/2 Elizabeth Street Melbourne VIC 3000, Australia';
javascript
MIT
7759dc8737545e73ddf46bf6a2e840eb30606fab
2026-01-05T03:36:01.262311Z
false