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 pprint | |
from datetime import datetime | |
import caliper | |
from caliper import events, entities | |
from caliper.constants import CALIPER_ACTIONS | |
sensor_config = caliper.HttpOptions( |
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
# Install Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# Install packages related with programming | |
choco install -y firefox git.install vscode | |
choco install -y python3 golang jetbrainstoolbox | |
choco install -y dbeaver sourcetree rancher-desktop | |
choco install -y steam bandizip gimp powertoys notion |
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 boto3 | |
dynamodb = boto3.resource('dynamodb', region_name='ap-northeast-2') | |
# Create table | |
table = dynamodb.create_table( | |
TableName="Movies", | |
KeySchema=[ | |
{ | |
'AttributeName': 'year', |
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 boto3 | |
import json | |
client = boto3.client('stepfunctions') | |
# Activity가 수행되기를 기다린다. | |
response = client.get_activity_task( | |
activityArn='Activity의 ARN', | |
workerName='TestWorker' | |
) |
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
from tincan import Agent, Verb, Activity, ActivityDefinition, LanguageMap, Statement | |
statement = Statement( | |
actor=Agent( | |
name="Test User", | |
mbox="mailto:test@example.org" | |
), | |
verb=Verb( | |
id="https://brindlewaye.com/xAPITerms/verbs/loggedin/", | |
display=LanguageMap({'en-us': 'Log In'}) |
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
from tincan import Agent, Verb, Activity, ActivityDefinition, LanguageMap | |
# Agent (Check: https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#242-actor) | |
actor = Agent( | |
name="Test User", | |
mbox="mailto:test@example.org" | |
) | |
print actor.to_json() |
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 datetime | |
from caliper import entities, events | |
from caliper.constants import CALIPER_ACTIONS | |
event = events.SessionEvent( | |
actor=entities.Person(id='http://example.org/person/123', name='Test'), | |
action=CALIPER_ACTIONS['LOGGED_IN'] | |
object=entities.SoftwareApplication(id='http://example.org/app/testservice', name='Learning Analytics Example'), | |
eventTime=datetime.datetime.utcnow().isoformat(timespec='milliseconds') + 'Z' | |
) |
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
from caliper import entities | |
# actor: 'Subject' part of an Event | |
actor = entities.Person( | |
id='http://example.org/person/123', | |
name='Test' | |
) | |
print(actor.as_json(thin_context=True, thin_props=True)) |
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
package main | |
import ( | |
"fmt" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/awserr" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/s3" | |
) |