Skip to content

Instantly share code, notes, and snippets.

View ngocbd's full-sized avatar
🎯
Focusing

Bui Dinh Ngoc ngocbd

🎯
Focusing
View GitHub Profile
0x9511534E35DE7e8c15E8E33BDd9B5140f32B0125
@ngocbd
ngocbd / ssss
Created October 25, 2017 08:35
0x81004e5c1878a081a841c5813e444903adc8bdcd
0xd05578bf5bf8Bb101db09C08dc60bA4544cf46e0
@ngocbd
ngocbd / up.php
Created September 25, 2016 12:24
<?php
$target_path = "";
$target_path = $target_path . basename( $_FILES['f']['name']);
if(move_uploaded_file($_FILES['f']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['f']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
import zlib
import base64
import functools
import math
def memo(f):
table = {}
def fmemo(*args):
if args not in table:
table[args] = f(*args)