This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @typedef {Object} Env | |
| */ | |
| export default { | |
| /** | |
| * @param {Request} request | |
| * @param {Env} env | |
| * @param {ExecutionContext} ctx | |
| * @returns {Promise<Response>} | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/base64" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const PRE_SCRIPT = ` | |
| G91; | |
| ` | |
| const POST_SCRIPT = ` | |
| M107; | |
| G90; | |
| ` | |
| const WIDTH = 35 // mm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const rlp = require('node:readline/promises'); | |
| const input = ` | |
| 5 3 Start === 3 0 [[ 3 5 6 7 8 9 10 ]] #{0:control, 1:abIO, 2:memory, 3:rawptr:BotPTR, 4:return_address, 5:int} | |
| 4 22 ConI === 0 [[ 23 ]] #int:7 | |
| 4 10 Parm === 3 [[ 4 18 21 23 ]] Parm0: int !jvms: TestImageReader::test @ bci:-1 (line 39) | |
| 3 23 AndI === _ 10 22 [[ 25 ]] !jvms: TestImageReader::test @ bci:3 (line 39) | |
| 3 0 Root === 0 [[ 0 1 3 22 24 26 29 ]] | |
| 2 25 AddI === _ 23 24 [[ 21 21 27 ]] !jvms: TestImageReader::test @ bci:5 (line 39) | |
| 2 24 ConI === 0 [[ 25 27 31 ]] #int:1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $if2($if2(%albumartist%,%artist%),Various Artists)/ | |
| $if($year(%date%),$year(%date%) - ,)$if(%albumartist%,%album%/,) | |
| $if($gt(%totaldiscs%,1),$if($gt(%totaldiscs%,9),$num(%discnumber%,2),%discnumber%)-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) - ,)%title% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http') | |
| const crypto = require('crypto') | |
| const server = http.createServer((req, res) => { | |
| console.log('got request', req.url) | |
| res.writeHead(200, { 'Content-Type': 'text/plain' }) | |
| res.end('okay') | |
| }) | |
| server.on('upgrade', function (req, socket) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } } | |
| (function () { | |
| var write = function write(content) { | |
| output.value += content; | |
| output.scrollTop = output.scrollHeight; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const svg = document.querySelectorAll('#chart svg')[0] | |
| const width = svg.getAttribute("width") | |
| const height = svg.getAttribute("height") | |
| const image = new Image() | |
| image.setAttribute("width", width) | |
| image.setAttribute("height", height) | |
| const clone = svg.cloneNode(true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const svg = document.querySelectorAll('#chart svg')[0] | |
| const width = svg.getAttribute("width") | |
| const height = svg.getAttribute("height") | |
| const image = new Image() | |
| image.setAttribute("width", width) | |
| image.setAttribute("height", height) | |
| const clone = svg.cloneNode(true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.openjdk.jmc.agent.util; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.lang.reflect.Modifier; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.LinkedList; | |
| import java.util.List; |
NewerOlder