def self.expiry(lifespan = nil)
lifespan ||= DeviseTokenAuth.token_lifespan
(Time.zone.now + lifespan).to_i
🏃♂️
This file contains 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
function computeSwapStep( | |
uint256 liquidity, // input: swapData.baseL + swapData.reinvestL, | |
uint160 currentSqrtP, | |
uint160 targetSqrtP, | |
uint256 feeInFeeUnits, | |
int256 specifiedAmount, | |
bool isExactInput, | |
bool isToken0 | |
) | |
internal |
정정
세미나때 레일즈 도커파일에서 VOLUME 과 RUN bundle하는 부분의 순서가 바뀌면 소스코드가 바뀔 때 마다 빌드를 다시 해야된다고 말씀드렸는데 잘못되었습니다. VOLUME
이 아니라 ADD .
으로 소스코드를 카피해오는 경우에만 해당되는 이야기입니다. RUN
, COPY
, ADD
세 명령어만 이미지 레이어를 만들기 때문입니다.
This file contains 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
# Polling Likelion appliation page and notify if a new application is submitted | |
# Deploy this function at AWS Lambda | |
import requests | |
import os | |
from bs4 import BeautifulSoup as bs | |
import boto3 | |
import json | |
from functools import reduce |
Ajax 요청은 서버로 부터 응답이 오기까지 기다리지 않아도 된다는 장점(a.k.a 비동기 방식)이 있습니다. 다만 긴 javascript code를 작성해야 하는 불편함이 있었는데요, 사실, Rails에서는 remote:true
옵션을 통해 ajax요청을 쉽게 보내고 응답할 수 있는 방법이 있습니다.