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 * as React from "react"; | |
import { Frame, Stack, PropertyControls, ControlType } from "framer"; | |
import { Avatar, PostHeader, PostImage, PostButtonGroup } from "./canvas"; | |
// Define type of property | |
interface Props { | |
username: string; | |
timeStamp: string; | |
postText: string; | |
width: number; |
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 * as React from "react"; | |
import { | |
Frame, | |
Data, | |
Animatable, | |
animate, | |
PropertyControls, | |
ControlType | |
} from "framer"; |
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 * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
import { UserCell } from "./canvas"; | |
// Define type of property | |
interface Props { | |
width: number; | |
height: number; | |
gender: string; | |
} |
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
mport * as React from "react" | |
import { Frame, useCycle, addPropertyControls, ControlType } from "framer" | |
// Open Preview (CMD + P) | |
// API Reference: https://www.framer.com/api | |
interface Props { | |
iconName: string | |
tint: string | |
} |
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
{ | |
"BoxOffice2022": [ | |
{ | |
"PutRequest": { | |
"Item":{ | |
"title":{ | |
"S": "Top Gun: Maverick" | |
}, | |
"release_date":{ | |
"S": "11-12-2022" |
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 os | |
import datetime | |
import json | |
# convert time to human readable format | |
def convertDate(timestamp): | |
d = datetime.datetime.utcfromtimestamp(timestamp) | |
formatedDate = d.strftime('%b %d, %Y') | |
return formatedDate |
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 boto3 | |
import json | |
ec2 = boto3.resource('ec2', region_name='us-east-1') | |
def lambda_handler(event, context): | |
filteredInstances = [] | |
successMessage = f"Successfully stopped {len(filteredInstances)} instances." |
OlderNewer