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 <Windows.h> | |
| #include <stdio.h> | |
| void PrintDisplayDevice(DISPLAY_DEVICEA* displayDevice, const char* indent = "") | |
| { | |
| printf("%sDeviceName: %s\n", indent, displayDevice->DeviceName); | |
| printf("%sDeviceString: %s\n", indent, displayDevice->DeviceString); | |
| printf("%sStateFlags:", indent); | |
| if (displayDevice->StateFlags & DISPLAY_DEVICE_ACTIVE) { printf(" ACTIVE"); } | |
| if (displayDevice->StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER) { printf(" MIRRORING_DRIVER"); } |
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 psycopg2 # python3 -m pip install psycopg2-binary | |
| # Update connection string information | |
| host = "" | |
| dbname = "" | |
| user = "" | |
| password = “” | |
| sslmode = "require" | |
| # Construct connection 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
| name: Flutter Testing | |
| on: | |
| push: | |
| branches: [ develop, staging, master ] | |
| pull_request: | |
| branches: [ develop, staging, master ] | |
| jobs: | |
| enforce-timeout-minutes: |
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
| #!/usr/bin/python3 | |
| import schedule | |
| import requests | |
| import os | |
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.message import EmailMessage | |
| from socket import gaierror | |
| ## SMTP DETAILS |
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
| Node push_tail(Node *head, int x) | |
| { | |
| Node *new_tail = new Node(x); | |
| new_tail->next = NULL; | |
| if(head == NULL) | |
| return new_tail; | |
| else | |
| { | |
| Node *current =head; |
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
| Node* push_in_head(Node *head, int new_value) | |
| { | |
| Node *new_node = new Node(new_value); | |
| if(head == NULL) | |
| return new_node; | |
| else | |
| { | |
| new_node->next= head; | |
| return new_node; |
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
| // Single Linked List | |
| struct node | |
| { | |
| int data; | |
| struct node *next; | |
| } | |
| // Double linked list | |
| struct Node | |
| { | |
| int data; |