Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

John Pham hprobotic

🌴
On vacation
Block or report user

Report or block hprobotic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View upload_file.py
import boto3
# other libs import
s3 = boto3.client(
's3',
aws_access_key_id=AWS_ACCESS_KEY,
aws_secret_access_key=AWS_SECRET_KEY,
region_name=AWS_REGION_NAME
)
View KRW-API.json
[
{
"fields": [
{
"group": [
{
"refreshRequirementsOnChange": false,
"validationRegexp": null,
"name": "Recipient type",
"validationAsync": null,
View us.json
{
"status": "success",
"data": [
{
"example": "",
"type": "select",
"key": "legalType",
"displayFormat": null,
"minLength": null,
"maxLength": null,
@hprobotic
hprobotic / result.md
Last active Dec 20, 2018
Transferwise debug
View result.md

Outdated cuz we use personal account id

Get quote

{
   "id":1526617,
   "source":"HKD",
   "target":"SGD",
   "sourceAmount":5925.25,
   "targetAmount":1000.0,
@hprobotic
hprobotic / doc.md
Created Nov 26, 2018
Bug fix with flask, mysql and tox
View doc.md
  • Fix mysqlclient:
  • Check brew info openssl
View gist:a1edef65e7a969cb84815dad5fa1e44d
Givens a data.json file with structure bellow:
// data.json
[
{
"name": "Electronics",
"items": ["Phone", "Keyboards"]
},
{
"name": "Keyboards",
View random_guess.js
var x = Math.floor(Math.random() * 9) + 1;
var turns = 0;
var hint = 'Guess my number, 1-10!';
while (turns < 10) {
var guess = prompt(hint);
if (!guess) break;
guess = Number(guess);
if (guess == x) {
alert("Congratulations, you are a mind reader!");
View iptv_vnpt.m3u
#EXTM3U
#EXTINF:-1,VTV1
http://113.189.21.251:4022/rtp/232.84.1.27:8136
#EXTINF:-1,VTV1 HD
http://113.189.21.251:4022/rtp/232.84.1.117:10254
#EXTINF:-1,VTV2
http://113.189.21.251:4022/rtp/232.84.1.39:8208
#EXTINF:-1,VTV3
http://113.189.21.251:4022/rtp/232.84.1.28:8142
#EXTINF:-1,VTV3 HD
@hprobotic
hprobotic / .eslintrc
Created Mar 29, 2018
hapijs eslintrc
View .eslintrc
{
"extends": "eslint-config-airbnb",
"parser": "babel-eslint",
"rules": {
"no-console": [1],
"max-len": [1, 120, 2, { "ignoreComments": true }],
"no-else-return": [0],
"import/prefer-default-export": [0],
"arrow-body-style": [0],
"class-methods-use-this": [0]
View cra.md
npx create-react-app my-app
cd my-app
npm start
You can’t perform that action at this time.