This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
import yaml | |
import json | |
import csv | |
import japanize_matplotlib # For japanese font | |
import functools | |
import seaborn as sns | |
import datetime as dt | |
import pandas as pd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import Foundation | |
class CustomHTTPProtocol: URLProtocol { | |
private var dataTask: URLSessionDataTask? | |
override class func canonicalRequest(for request: URLRequest) -> URLRequest { | |
print(#function) | |
return request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import os | |
import json | |
import pandas as pd | |
import datetime as dt | |
import requests | |
import traceback | |
class NewRelicDataFetcher: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Network sequence geneator from network session | |
""" | |
import pandas as pd | |
import numpy as np | |
from urllib.parse import urlparse | |
csv_file_path = "xxxx.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def exponential_backoff_and_jitter(n): | |
""" | |
Exponential Backoff And Jitter Algorithm (Full Jitter) | |
:param n: Retry number of times | |
:return: Retry interval (ms) | |
""" | |
backoff = pow(2, n) * 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<cstdio> | |
#include<cstdlib> | |
#include<cstring> | |
#include<cmath> | |
#include<ctime> | |
#include<cctype> | |
#include<climits> | |
#include<iostream> | |
#include<string> | |
#include<vector> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post = !git push origin `git rev-parse --abbrev-ref HEAD` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textView.text = "Hello World" | |
let attributedText = textView.mutableCopy() as? NSMutableAttributedString | |
attributedText.addAttribute(NSForegroundColorAttributeName, value: UIColor.red, range: NSMakeRange(0, 5)) | |
textView.attributedText = attributedText |