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
// clear the back buffer to black for the new frame | |
device_ptr->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0); | |
device_ptr->BeginScene(); | |
// select which vertex format we are using | |
device_ptr->SetFVF(CUSTOMFVF); | |
// select the vertex buffer to display | |
device_ptr->SetStreamSource(0, v_buffer, 0, sizeof(CUSTOMVERTEX)); |
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
glClearColor(0.0f, 0.0f, 0.0f, 1.0f); | |
glClear(GL_COLOR_BUFFER_BIT); | |
glBegin(GL_TRIANGLES); | |
glColor3f(1.0f, 0.0f, 0.0f); | |
glVertex3f(0.5f, -0.5f, 0.0f); | |
glColor3f(0.0f, 1.0f, 0.0f); | |
glVertex3f(-0.5f, -0.5f, 0.0f); |
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
#include <whateverYouNeed.h> | |
main() { | |
InitializeAWindowPlease(); | |
glClearColor (0.0, 0.0, 0.0, 0.0); | |
glClear (GL_COLOR_BUFFER_BIT); | |
glColor3f (1.0, 1.0, 1.0); | |
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0); |
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 logging | |
import boto3 | |
from botocore.exceptions import ClientError | |
client = boto3.client('redshift-data') | |
try: | |
# Execute the SQL statement | |
query_response = client.execute_statement( | |
ClusterIdentifier=cluster_identifier, |
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 logging | |
import boto3 | |
from botocore.exceptions import ClientError | |
s3_client = boto3.client('s3') | |
try: | |
response = s3_client.upload_file(file_name, bucket, file_name) | |
except ClientError as e: | |
logging.error(e) |
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 csv | |
import logging | |
import fiona | |
from shapely import geos, wkb | |
from shapely.geometry import shape | |
output_file = file_name + ".processing.csv" | |
with fiona.open(file_name, "r") as source: |