Skip to content

Instantly share code, notes, and snippets.

View AlexDev404's full-sized avatar
👾
Ruby2D!

Immanuel Daviel A. Garcia AlexDev404

👾
Ruby2D!
View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
date,store_nbr,transactions
2013-01-01,25,770
2013-01-02,1,2111
2013-01-02,2,2358
2013-01-02,3,3487
2013-01-02,4,1922
2013-01-02,5,1903
2013-01-02,6,2143
2013-01-02,7,1874
2013-01-02,8,3250
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexDev404
AlexDev404 / agency.txt
Created May 24, 2023 23:56
NYC GTFS Data
agency_id,agency_name,agency_url,agency_timezone,agency_lang,agency_phone
MTA NYCT,MTA New York City Transit, http://www.mta.info,America/New_York,en,718-330-1234
@AlexDev404
AlexDev404 / agency.csv
Last active June 6, 2023 02:24
NYC GTFS Data
agency_id agency_name agency_url agency_timezone agency_lang agency_phone
MTA NYCT MTA New York City Transit http://www.mta.info America/New_York en 718-330-1234
$ pkgutil --expand swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx.pkg swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx
$ cd swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx
$ cd swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx-package.pkg
$ mv Payload Payload.zip
$ open .
double click to extract
$ cd Payload\ 2/usr/bin
$ ./swiftc -v
Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75)
@AlexDev404
AlexDev404 / idk.cpp
Created September 14, 2023 03:46
Find the middle of a linked list
void printMiddle(Node* head) {
if (head == NULL) {
// Return because the list is empty
return;
}
Node* slow_ptr = head; // This will traverse the list one element at a time
Node* fast_ptr = head; // This will go through the list two elements at a time
while (fast_ptr != NULL && fast_ptr->next != NULL) {
@AlexDev404
AlexDev404 / list.cpp
Created September 15, 2023 00:21
Traverse through list and find if two halves match.
// Copyright (c) 2023 Immanuel Garcia
#include <iostream>
#include <string>
using std::string, std::cout, std::endl;
class Node {
public:
char data;
Node *next;
Node *prev;
@AlexDev404
AlexDev404 / SDLC.md
Created September 19, 2023 22:46 — forked from mdang/SDLC.md
Lesson: SDLC

The Software Development Life Cycle

Learning Objectives

Conceptual

  • Explain what SDLC is and why we use it
  • Provide a general overview of what "Agile" means and compare it to Waterfall
  • Explain what SCRUM is, and how it relates to agile.
  • Describe the process of requirements gathering.
  • Explain what a user story is, and what specific points it should include.
@AlexDev404
AlexDev404 / cheems.js
Created October 6, 2023 00:04
Binary Search Tree (BST) methods pseudocode
// INORDER TRAVERAL OF A TREE
// TRAVERSE THE TREE IN ORDER
IF tree NOT NULL
Inorder(tree->left)
Visit(tree->data)
Inorder(tree->right)
// Inorder(node *node)
// SORT THE NODES IN ASCENDING ORDER
VOID Inorder(node *node)

Google has an amazing free API endpoint for text completions ,

below are some examples of the completions I got and the python code to interact with the API

Star this gist if this was helpful to you. Enjoy text completions

user@linux:$ python3 google_text_completion.py
 > hackers are
hackers are watching you