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
import os | |
import requests | |
from slack_sdk import WebClient | |
from slack_sdk.errors import SlackApiError | |
# Set the environment variables | |
os.environ['SLACK_CLIENT_ID'] = '' | |
os.environ['SLACK_CLIENT_SECRET'] = '' | |
os.environ['SLACK_SIGNING_SECRET'] = '' |
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
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |
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
(define (addup L) (cond | |
((null? L) 0) | |
(else (+ (car L) (addup (cdr L))) ) ) | |
) | |
(define (deepSum L) (cond | |
((null? L) 0) | |
((null? (car L))(+ 0 (deepSum (cdr L)))) | |
((pair? (car L)) (+ (addup (car L)) (deepSum (cdr L)))) | |
(not (list? (car L))(+ (car L) (deepSum (cdr L)))) |