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
#!/bin/bash | |
# function that shows you how to use this tool | |
usage() { | |
echo "Usage $0 [-o outfile] [-d outdir] [-f fps]" | |
echo " -o: Specify the output file (default: screen_rec_<current_time_and_date>.mp4)" | |
echo " -d: Specify the output directory (default: ./)" | |
echo " -f: Specify the fps (default: 30)" | |
exit 1 | |
} |
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 cdk from 'aws-cdk-lib'; | |
import * as apigateway from 'aws-cdk-lib/aws-apigateway'; | |
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; | |
import * as iam from 'aws-cdk-lib/aws-iam'; | |
import * as lambda from 'aws-cdk-lib/aws-lambda'; | |
import * as pylambda from '@aws-cdk/aws-lambda-python-alpha'; | |
import * as lambdaEventSources from 'aws-cdk-lib/aws-lambda-event-sources'; | |
import * as sqs from 'aws-cdk-lib/aws-sqs'; | |
import { Construct } from 'constructs'; |
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 | |
from InquirerPy import inquirer | |
# Create an Amazon Bedrock Runtime client | |
bedrock_client = boto3.client('bedrock-runtime') | |
# dictionary that contains multiple model ids | |
model_ids = [ |
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
10 GOSUB 1100 | |
11 HOME | |
20 GOSUB 1000 | |
30 GOSUB 30 | |
40 HTAB X: VTAB Y | |
50 PRINT "Hello Internet"; | |
60 FOR I = 1 TO 1000 | |
70 NEXT I | |
80 GOTO 11 | |
100 REM randomize x and y |
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
/// @ts-check | |
/// <reference path="./node_modules/@types/p5/global.d.ts" /> | |
//const p5 = require("./node_modules/@types/p5"); | |
const CANVAS_WIDTH = 400; | |
const CANVAS_HEIGHT = 400; | |
const CANVAS_COLOR = 'pink'; | |
let number_of_circles = 50; | |
let circle_colors = ['purple', 'blue', 'red', 'cyan', 'green', 'magenta', 'indigo'] |
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
// Given a list of integers use vector and return: | |
// - mean (average value of all elements) | |
// - median (middle of the vector) | |
// - mode (the value that occurs most often). | |
use rand::Rng; | |
use std::collections::HashMap; | |
// function to generate x amount of random numbers | |
fn generate_rand_vector(num: u32) -> Vec<u32> { |
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
0 gosub 10: print chr$(147)chr$(5):sys59749 | |
1 print chr$(19)chr$(13)chr$(13)spc(rnd(.)*38)"*"; | |
2 print chr$(19):sys59777:goto 1 | |
10 print chr$(147): poke53280,0: poke 53281,0 | |
20 v=53248 | |
30 poke v+37,5: rem multicolor 1 | |
40 poke v+38,1: rem multicolor 2 | |
50 poke v+21,255 : rem set all 8 sprites visible | |
60 for x=12800 to 12800+63: read y: poke x,y: next x: rem sprite generation |
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
# B A S I C S | |
## Replace c-B with c-A | |
unbind C-b | |
set -g prefix C-a | |
bind-key -r C-a send-prefix | |
# O P T I O N S | |
## Set 256 color mode |
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
# B A S I C S | |
## Replace c-B with c-A | |
unbind C-b | |
set -g prefix C-a | |
bind-key -r C-a send-prefix | |
# O P T I O N S | |
## Set 256 color mode |
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
# Get all Latest Windows AMIs | |
aws ssm get-parameters-by-path \ | |
--path /aws/service/ami-windows-latest | |
# Get all regions where Cloud9 is available inj | |
aws ssm get-parameters-by-path \ | |
--path /aws/service/global-infrastructure/services/cloud9/regions --output json \ | |
| jq .Parameters[].Value | sort | |
# Get all services available in the af-south-1 region |