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
| package main | |
| import ( | |
| "archive/zip" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| "os/exec" | |
| "path/filepath" |
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 | |
| # Define the Git repository URL | |
| REPO_URL="[email protected]:ong-gtp/foodpay.git" | |
| SSH_TO_USE="/home/george/.ssh/githubaccess_id_rsa" | |
| YAPDOOF="/var/www/yapdoof" | |
| # Step 1: Check if needle.txt file exists | |
| if [ -f "needle.txt" ]; then | |
| # Step 7: Create a shared .env file if it doesn't exist | |
| if [ ! -f "shared/.env" ]; then |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| /* | |
| ****** Heap (Max heap) ******** | |
| */ |
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
| package main | |
| import "fmt" | |
| // ** Singly Linked List ** | |
| type SinglyLinkedList struct { | |
| root *Node | |
| size int | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| func main() { | |
| rand.Seed(time.Now().UTC().UnixNano()) // seed to enable proper random race time generation per horse |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Segment Intersection</title> | |
| <style> | |
| body { | |
| margin: 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
| func Execute2() { | |
| gas := []int{1, 5, 3, 3, 5, 3, 1, 3, 4, 5} | |
| cost := []int{5, 2, 2, 8, 2, 4, 2, 5, 1, 2} | |
| sum := 0 | |
| tP := 0 | |
| prevSum := 0 | |
| for i := 0; i < len(gas); i++ { | |
| sum += (gas[i] - cost[i]) | |
| if sum < 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
| func Execute() { | |
| gas := []int{1, 5, 3, 3, 5, 3, 1, 3, 4, 5} | |
| cost := []int{5, 2, 2, 8, 2, 4, 2, 5, 1, 2} | |
| tP := -1 | |
| for i := 0; i < len(gas); i++ { | |
| if gas[i] > cost[i] { | |
| rtTrnv := traverseScore(0, gas[i:], cost[i:]) | |
| if rtTrnv < 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
| void main() { | |
| List<LogStructure> logEntries = [ | |
| App1Log("Mon 21 2022", "KTFFD"), | |
| App2Log("Tues 21 2022", "MLDDD"), | |
| ]; | |
| print(logEntries); | |
| } | |
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 React, { useState } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| const rowStyle = { | |
| display: 'flex' | |
| } | |
| const squareStyle = { | |
| 'width':'60px', | |
| 'height':'60px', |
NewerOlder