I hereby claim:
- I am yuan3y on github.
- I am yuan3y (https://keybase.io/yuan3y) on keybase.
- I have a public key ASDBewNdhcburdGvMJjW-fbI-JCBnstboMjRQWSaTOtWVQo
To claim this, I am signing this object:
| <?php | |
| $method = 'GET'; //change to 'POST' for post method | |
| $url = 'http://localhost/browse/'; | |
| $data = array( | |
| 'manufacturer' => 'kraft', | |
| 'packaging_type' => 'bag' | |
| ); | |
| if ($method == 'POST'){ | |
| //Make POST request |
| #!/bin/bash | |
| mybasepath=/down | |
| mybaseurl=http://yuan3y.com/down/ | |
| cd "$mybasepath"/ | |
| while IFS="" read -r -d $'\000' dir | |
| do | |
| echo "$mybaseurl""$dir" && tree -shC -H "$mybaseurl""$dir" -T "<a href=\"$mybaseurl\">down</a>" -o "$dir"/index.html "$dir" | |
| done < <(find . -type d -print0) |
| /*question: https://www.facebook.com/NTUCollegeOfEngineering/photos/a.373330716093099.88586.332131500213021/709453819147452/?type=1 | |
| answered by yuan3y | |
| */ | |
| #include<iostream> | |
| #include<vector> | |
| #include<stack> | |
| #include<string> | |
| #include<vector> | |
| using namespace std; | |
| int map[7][7] = { |
| __author__ = 'yuan3y' | |
| for i in range(1023, 4987): | |
| for j in range(2, 10): | |
| if i * j > 9999 or str(i).find(str(j)) > 0: | |
| break | |
| if str(i)[-1::-1] == str(i * j): | |
| print(i, j, i * j) |
| 1. Export from Tools > Export in the old host, just keeping all the default options. | |
| 2. Download the wordpress folder from old host via FTP | |
| 3. Set up my new host and uploaded the folder via FTP | |
| 4. Removed wp-config.php | |
| 5. Install wordpress by opening up the browser to my new site | |
| 6. Enable the plugins I have | |
| 7. Tools > Import > Wordpress | |
| 8. Update Wordpress and plugins |
| history | awk '{if ($2=="sudo") {CMD[$3]++;} else {CMD[$2]++;} count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20 |
| git clone https://github.com/SanCoder-Q/sublime_zh_patch.git | |
| cd sublime_zh_patch | |
| sudo ./setup.sh | |
| sudo apt-get install fcitx fcitx-config-gtk fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-table-wubi |
| __author__ = 'yuan3y' | |
| import xml.etree.ElementTree as ET | |
| import urllib.request as re | |
| import datetime | |
| for post_code in range(510000,530000): | |
| current_time = datetime.datetime.now() | |
| unix_timestamp = str(int(current_time.timestamp() * 1000)) | |
| postal_code = str(post_code) |
| #include <stdio.h> | |
| int main (void) | |
| { | |
| char *a[2][3] = {"abc","defgi","ijkl","mnopqr","stuvm","xyz"}; | |
| printf("%c",***(a+1) ); | |
| } |
I hereby claim:
To claim this, I am signing this object: