This file contains 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
// Copyright 2025 Descript, Inc | |
import { back as nockBack } from 'nock'; | |
import path from 'path'; | |
describe('FetchTest', () => { | |
it('can do parallel fetches', async () => { | |
nockBack.fixtures = path.join(__dirname, '__nocks__'); | |
const { nockDone } = await nockBack(`test.json`); | |
await Promise.all([fetch('https://api.github.com'), fetch('https://api.github.com')]); | |
nockDone(); |
This file contains 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
// ==UserScript== | |
// @name Hide skipped jobs on github | |
// @version 0.0.1 | |
// @match https://github.com/descriptinc/*/actions/runs/* | |
// @match https://github.com/descriptinc/*/pull/* | |
// @description | |
// ==/UserScript== | |
// Inspired by https://github.com/orgs/community/discussions/18001#discussioncomment-6532796 | |
// Used ChatGPT 4o for mutation observer code |
This file contains 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
// 2d vector graphics library (https://www.shadertoy.com/view/lslXW8) | |
// after Cairo API, with anti-aliasing | |
// by Leonard Ritter (@paniq) | |
// v0.16 | |
// I release this into the public domain. | |
// some estimators have been lifted from other shaders and are not | |
// necessarily PD licensed, note the links in the source code comments below. | |
// 2020-12-02: 0.16 |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimal-ui"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | |
<meta name="mobile-web-app-capable" content="yes"> | |
<style> | |
html,body { |
This file contains 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
var BSON = require('../buffalo'), | |
BSONPure = require('mongodb').BSONPure.BSON//, | |
// BSONNative = require('mongodb').BSONNative.BSON | |
var COUNT = 100000 | |
var object = { | |
string: "Strings are great", | |
decimal: 3.14159265, | |
bool: true, | |
integer: 5, |
This file contains 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
/* | |
* This file is part of the Spludo Framework. | |
* Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/ | |
* | |
* Licensed under the terms of MIT License. For the full copyright and license | |
* information, please see the LICENSE file in the root folder. | |
*/ | |
/* | |
* based on https://github.com/DracoBlue/spludo/blob/master/build/run_dev_server.js |
This file contains 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
var log4js = require('log4js')() | |
log4js.addAppender(log4js.consoleAppender()) | |
/** | |
* Get a logger. If no name is specified, retrieve the caller's filename | |
* example: | |
* var log = require('./log.js')() | |
*/ | |
module.exports = function(name) { | |
if (!name) { |
This file contains 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
function addRoute(app, path, controllerName) { | |
var controller = require("./controllers/" + (controllerName || path) ) | |
['get','post','put','delete','all'].forEach(function (method) { | |
if (controller[method]) { | |
app[method](path, controller[method]) | |
} | |
}) | |
} |
This file contains 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
var fs = require("fs") | |
var sprintf = require('sprintf').sprintf | |
fs.readFile(__dirname+"/npmdump.json", function (err, data) { | |
if (err) throw err | |
var packages = JSON.parse(data) | |
fs.readFile("../output.json", function (err, data) { | |
if (err) throw err |
This file contains 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
ace KEYWORD DEATHMATCH | |
1. ace 829 score - https://github.com/ajaxorg/ace | |
2. vice 8 score - https://github.com/Gozala/vice | |
amazon KEYWORD DEATHMATCH | |
1. aws-lib 105 score - https://github.com/mirkok/aws-lib | |
2. simpledb 14 score - https://github.com/rjrodger/simpledb | |
3. aws 2 score - https://github.com/teemow/node-aws | |
apache KEYWORD DEATHMATCH |
NewerOlder