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
# references: https://github.com/IfcOpenShell/IfcOpenShell/issues/2295#issuecomment-1219441082 | |
ARG FUNCTION_DIR="/var/task" | |
FROM public.ecr.aws/docker/library/python:3.10 AS build | |
ARG IFC_OPENSHELL_BUILD="31-v0.7.0-cdde536" | |
RUN apt-get -y update && apt-get -y install unzip curl | |
ARG FUNCTION_DIR |
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 math | |
import os | |
import threading | |
import time | |
# pip install psutil | |
import psutil | |
def process_memory(pid): |
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 deepClone(obj) { | |
let objectType = typeof obj; | |
if (objectType === "object" && obj !== null) { | |
return Object.entries(obj).reduce((acc, [key, val]) => { | |
acc[key] = deepClone(val); | |
return acc; | |
}, new obj.constructor()); | |
} else { | |
return obj; | |
} |
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
sed -i "s/\r//g" $(ls *.sh) |
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
#!/bin/bash | |
for i in {535..591} | |
do | |
gh issue edit $i --milestone "V2.0" --add-project "Kanban Board" | |
done |
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
for n in range(101) | |
if n % 4 is 0: | |
print (n) | |