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
const forge = require('node-forge'); | |
const rsa = forge.pki.rsa; | |
function fix (str) { | |
return str.replace(/\r/g, '') + '\n' | |
} | |
exports.makeKey = function makeKey(id){ | |
const prng = { | |
getBytesSync(_length){ | |
const _id = '_' + id; | |
return { |
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
#!/usr/bin/env node | |
var fs = require('fs'); | |
var path = require('path'); | |
const moduleNames = fs.readdirSync(path.resolve(__dirname, '..', 'modules'), {withFileTypes:true}).filter(n => n.isDirectory()).map(n => n.name); | |
fs.writeFileSync(path.join(__dirname, 'main.workflow'), repoScript(moduleNames)); |
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
{ | |
"configurations": [ | |
{ | |
"name": "win32", | |
"includePath": [ | |
"${workspaceFolder}/src", | |
"${workspaceFolder}/../SeriousProton/src", | |
"${workspaceFolder}/../SFML-2.5.1/include" | |
], | |
"browse" : { |
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
// Type definitions for vorpal 1.12.0 | |
// Project: https://github.com/dthree/vorpal | |
// Definitions by: Jim Buck <http://github.com/jimmyboh>, Amir Arad <greenshade@gmail.com> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
/// <reference types="inquirer" /> | |
/// <reference types="minimist" /> | |
declare module "vorpal" { | |
import {ParsedArgs} from 'minimist'; |
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
// https://raw.githubusercontent.com/donnut/typescript-ramda/master/ramda.d.ts | |
// https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/lodash/lodash.d.ts | |
declare namespace fp { | |
interface Dictionary<T> { | |
[index: string]: T; | |
} | |
interface CurriedFunction1<T1, R> { |
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
import * as Bluebird from "@types/bluebird"; | |
declare module "bluebird" { | |
/** | |
* Returns a promise that is resolved by a node style callback function. | |
*/ | |
export function fromNode<T>(resolver: (callback: (err: any, result?: Bluebird<T>) => void) => void, options?: Bluebird.FromNodeOptions): Bluebird<T>; | |
export function fromCallback<T>(resolver: (callback: (err: any, result?: Bluebird<T>) => void) => void, options?: Bluebird.FromNodeOptions): Bluebird<T>; | |
} |
NewerOlder