One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// NOTE: based on python version: https://gist.github.com/pahaz/17c66fd6d75b74ff307aca2b6bf942f3 | |
const crypto = require('crypto') | |
const fs = require('fs') | |
const path = require('path') | |
const fetch = require('node-fetch') // Import fetch from node-fetch | |
const DEFAULT_OUTPUT_DIR = 'out' | |
const GPT_KEY_FILE = path.resolve(process.env.HOME, '.openai.key') | |
const GPT_CACHE_DIR = path.resolve(process.env.HOME, '.openai.cache') |
"use strict"; | |
const assert = require("assert"); | |
const crypto = require("crypto"); | |
let server = crypto.createDiffieHellman(1024); | |
let prime = server.getPrime(); | |
console.log("Generate Alice's keys..."); | |
let alice = crypto.createDiffieHellman(prime); | |
let alicePublicKey = alice.generateKeys("base64"); |
"""Google spreadsheet related. | |
Packages required: gspread, cryptography, oauth2client, google-api-python-client | |
For OSX see | |
* http://stackoverflow.com/a/33508676/315168 | |
""" | |
import logging |
#!/bin/env python | |
""" | |
A hook to git that removes orphan files "*.pyc" and "*.pyo" for "*.py" | |
beeing deleted or renamed by git checkout. It also removes their empty parent | |
directories. | |
Place it to "my_local_repository/.git/hooks/post-checkout" and make it executable. | |
Nothing is cleaned for .py files deleted manually or by "git rm" etc. | |
Related to http://stackoverflow.com/q/1504724/448474 | |
""" | |
import glob |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Бетмен_против_ниндзя | |
{ | |
class Program | |
{ |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Game | |
{ | |
class Program | |
{ |