Skip to content

Instantly share code, notes, and snippets.

View chengkangzai's full-sized avatar
🎯
Focusing

Ching Cheng Kang chengkangzai

🎯
Focusing
View GitHub Profile
@chengkangzai
chengkangzai / python2pseudo.py
Created February 14, 2022 09:23 — forked from BlueNexus/python2pseudo.py
Python to Pseudocode converter
import re
'''
Make sure to put
#F
as a comment at the end of lines that contain a function call that don't also contain an assignment (=).
'''
python_file = 'file.py'
work_file = None
var User = require('../models/user');
var jwt = require('jsonwebtoken');
var config = require('../config/config');
var request = require('request-promise-native');
generateToken = user => {
return jwt.sign(
{ id: user.id, username: user.username },
config.jwtSecret,
{