Skip to content

Instantly share code, notes, and snippets.

Avatar
😈
Some kill some steal some breaks your heart.

AntiMoron AntiMoron

😈
Some kill some steal some breaks your heart.
View GitHub Profile
View wx_t1t_hack.js
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
View lambda_recursive
#pragma once
#include <functional>
#ifndef _MSC_VER
#define __thiscall
#endif
namespace vczh {
template<typename TResult, typename ...TArgs>
@ascv
ascv / calc.py
Last active Mar 17, 2022
A simple python calculator to demo recursive descent parsing. Execute the script to use the calculator. It accepts only well formed input. Use parentheses to specify operator precedence.
View calc.py
"""
exp ::= term | exp + term | exp - term
term ::= factor | factor * term | factor / term
factor ::= number | ( exp )
"""
class Calculator():
def __init__(self, tokens):
self._tokens = tokens
self._current = tokens[0]