Skip to content

Instantly share code, notes, and snippets.

View hyperion0201's full-sized avatar

Hieu Hoang hyperion0201

View GitHub Profile
{
"id": 4499103678544,
"title": "Kanaka Maoli (Hawaiian) Bedding Set, Polynesian Plumeria Banana Leaves Reggae A02",
"handle": "kanaka-maoli-bed-polynesian-plumeria-banana-leaves-reggae",
"description": "<h2>Kanaka Maoli (Hawaiian) Bedding Set, Polynesian Plumeria Banana Leaves Reggae</h2>\n<p>All of our Bedding Sets are custom-made-to-order and handcrafted to the highest quality standards.</p>\n<ul>\n<li>Features a single-sided full color print on luxurious brushed polyester fabric.</li>\n<li>Comforter, bed sheets and pillow inserts are not included.</li>\n<li>Constructed with cozy yet lightweight premium materials that are soft to touch.</li>\n<li>Tie-down corners to ensure secure placement of comforter insert.</li>\n<li>Machine washable with cold water gentle cycle and mild detergent.</li>\n</ul>\n<p><img src=\"https://i.postimg.cc/Tw49MVDW/bedding_set.jpg\"></p>",
"published_at": "2020-03-24T11:24:13+07:00",
"created_at": "2020-03-24T11:24:13+07:00",
"vendor": "LoveTheWorld",
"type": "BEDD
@hyperion0201
hyperion0201 / order.json
Created July 1, 2020 09:35
Shopbase order (sample data)
{
"access_key": "c90880c21f1d4fd4a2e331c788d0a2ff",
"allow_refund": true,
"applied_discount": null,
"billing_address": {
"address1": "20267 Wilson Rd",
"address2": "",
"city": "Georgetown",
"company": "",
"country": "United States",
{
"access_key": "c90880c21f1d4fd4a2e331c788d0a2ff",
"allow_refund": true,
"applied_discount": null,
"billing_address": {
"address1": "20267 Wilson Rd",
"address2": "",
"city": "Georgetown",
"company": "",
"country": "United States",
{
"name": "demo2",
"slug": "demo2",
"privacy": "public",
"sdkVersion": "33.0.0",
"platforms": [
"ios",
"android"
],
@hyperion0201
hyperion0201 / two_step_or_factor_client.rb
Last active August 27, 2019 14:53
Fastlane Spaceship two factor verification file, modified to get 6-digits code automatically instead.
require_relative 'globals'
require_relative 'tunes/tunes_client'
require 'io/console'
module Spaceship
class Client
def file_empty?(file_path)
!(File.file?(file_path) && !File.zero?(file_path))
end
def handle_two_step_or_factor(response)
# extract `x-apple-id-session-id` and `scnt` from response, to be used by `update_request_headers`

Keybase proof

I hereby claim:

  • I am hyperion0201 on github.
  • I am hyperion0201 (https://keybase.io/hyperion0201) on keybase.
  • I have a public key ASD2pes3uPeu55PMjB___hM6r9HMsD2bdTcas5fzr5og4Qo

To claim this, I am signing this object:

@hyperion0201
hyperion0201 / flat-gnome-shell-modded.css
Created June 27, 2019 14:02
The Flat Remix Dark FullPanel Shell for Gnome, add some mods.
/* This stylesheet is generated, DO NOT EDIT */
/* GLOBALS */
stage {
font-family: SF Pro Display;
font-size: 12px;
font-weight: normal;
color: #FFF; }
/* WIDGETS */
/* Buttons */
@hyperion0201
hyperion0201 / install.sh
Created May 5, 2019 02:58
Jekyll 2.6.0 Installation on Manjaro/Arch Linux based.
sudo pacman -S ruby ruby-rdoc
gem update
gem install jekyll
# Add this line to .zshrc (if you are using ZSH) : export PATH=$HOME/.gem/ruby/2.6.0/bin:$PATH
# For default terminal, add to .bashrc
1. create db using GUI
2. create db using commnand line
3. i/o data
4. query
5. gruoping
6. mid test
7. mid test : 50%
8. double query
9. division
10. final test
@hyperion0201
hyperion0201 / AVLTree.cpp
Created November 29, 2018 03:49
AVL Tree simple implementation in C++
/*
* C++ program to Implement AVL Tree
*/
#include<iostream>
#include <algorithm>
#define pow2(n) (1 << (n))
using namespace std;
/*