// map function
const mapFunction = (array, func) => {
const new_array = []
for (i of array) {
new_array.push(
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
#! /bin/bash | |
# | |
# Copyright 2014 Lucy Park | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
import pandas as pd | |
import numpy as np | |
from mxnet.gluon import nn, rnn | |
from mxnet import gluon, autograd |
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 requests | |
res = requests.get('https://www.apple.com/kr_edu_5001245/shop/configUpdate/MR972KH/A?option.processor__dummy_z0v3=065-C6CJ&option.memory__dummy_z0v3=065-C6CP&option.hard_drivesolid_state_drive__dummy_z0v3=065-C6CT&option.keyboard_and_documentation_z0v3=065-C6GX&option.software_placeholder_1_z0v3=065-C171&product=MR972KH%2FA&step=config').json()['body']['replace']['summary']['shippingEstimate'] | |
if res == '현재 구매 불가': | |
pass | |
else: | |
import telegram | |
bot = telegram.Bot(token='텔레그램봇토큰') | |
chat_id = 12341234 # 개인 채팅 ID |
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 torch #파이토치 | |
import torchvision.datasets as vdatasets #데이터셋 모음 | |
import torchvision.utils as vutils #유틸리티함수 | |
import torchvision.transforms as vtransform #변환함수 | |
import numpy as np #수치연산 | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from PIL import Image | |
from io import BytesIO | |
import base64 |
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 requests | |
import time | |
from multiprocessing import Pool | |
def troll(_): | |
with requests.Session() as s: | |
s.headers = { | |
'DNT': '1', | |
'Accept-Encoding': 'gzip, deflate', |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:CreateStack", | |
"cloudformation:DescribeStacks", | |
"cloudformation:DescribeStackEvents", | |
"cloudformation:DescribeStackResources", |