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 React, { useState } from 'react'; | |
import { Upload, Button, message, Typography } from 'antd'; | |
import { UploadOutlined } from '@ant-design/icons'; | |
import axios from 'axios'; | |
const { Text } = Typography; | |
const UploadJSONComponent: React.FC = () => { | |
const [fileInfo, setFileInfo] = useState(null); | |
const [jsonObject, setJsonObject] = useState(null); |
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 React, { useEffect, useState } from 'react'; | |
import { Table } from 'antd'; | |
// Create the TableComponent | |
const TableComponent: React.FC = () => { | |
const [columns, setColumns] = useState([]); | |
const [data, setData] = useState([]); | |
useEffect(() => { | |
// Fetch the JSON file dynamically |
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
Add the following in .zshrc: | |
... | |
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
... | |
### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
pasteinit() { | |
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
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
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
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
public class Constants { | |
// 전역 변수 전용 클래스 임으로 생성자를 사용하지 못하게 함 | |
private Constants() { | |
} | |
public abstract class SECURE { | |
public static final String ANDROID_KEY_STORE = "AndroidKeyStore"; | |
public static final String TRANSFORMATION = "AES/GCM/NoPadding"; | |
} | |
} |
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
public class DeCryptor { | |
private static final String TRANSFORMATION = "AES/GCM/NoPadding"; | |
private static final String ANDROID_KEY_STORE = "AndroidKeyStore"; | |
private KeyStore keyStore; | |
Context context; | |
DeCryptor(Context context) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, | |
IOException { | |
this.context = context; |
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
sudo apt-get dist-upgrade -y && sudo apt-get -y upgrade && sudo apt-get update -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo rpi-update |