Skip to content

Instantly share code, notes, and snippets.

View iisalazar's full-sized avatar

Ian Salazar iisalazar

View GitHub Profile
{
"version": "v3",
"occurred_at": "2023-12-06T05:44:01.350Z",
"event_id": "be83f9e6-0dbf-4601-9859-430d30451db7",
"webhook_id": 2988,
"topic": "package_delivering",
"details": {
"account": {
"id": 455836
},
DROP DATABASE IF EXISTS `customeritem`;
CREATE DATABASE IF NOT EXISTS `customeritem` /*!40100 DEFAULT CHARACTER SET latin1 */;
GRANT ALL ON customeritem.* TO 'scott'@'localhost';
USE `customeritem`;
CREATE TABLE IF NOT EXISTS `customer` (
`cid` int(5) NOT NULL,
`cname` varchar(30) NOT NULL,
`bday` date NOT NULL,
PRIMARY KEY (`cid`)
@iisalazar
iisalazar / lexer.js
Last active January 6, 2022 12:28
Lexer file with exported function for CMSC 124
// const sample = "I HAS A VAL ITZ 51\nOBTW this is a comment\n No it’s a two line comment\n Oops no.. it has many lines here\nTLDR"
//const sample = "HAI 1.2\nI HAS A food ITZ \"111.00033\"\nVISIBLE food\nBTW this is how we do type casting\nMAEK food A NUMBAR\nVISIBLE food\nKTHXBYE"
const sample =
'BTW ####################################\nBTW ####################################\nBTW ##\nBTW ## File:\nBTW ##\nBTW ## fibonacci.lol\nBTW ##\nBTW ## Authors:\nBTW ##\nBTW ## J. Caleb Wherry\nBTW ## Daniel Wherry \nBTW ##\nBTW ####################################\nBTW ####################################\nHAI 1.2\n CAN HAS STDIO?\n VISIBLE "Fibonacci Number Generator..."\n VISIBLE ""\n BTW Fib seed values:\n I HAS A f0 ITZ 0\n I HAS A f1 ITZ 1\n BTW Fib sequence values:\n BTW Note: These really aren\'t needed (could just use f0 and f1) but I \n BTW like having them.\n I HAS A f_N ITZ 0\n I HAS A f_N_MINUS_1\n I HAS A f_N_MINUS_2\n BTW Get mac count:\n I HAS A maxCount\n VISIBLE "H
@iisalazar
iisalazar / .gitignore
Created September 29, 2020 05:48 — forked from chhh/.gitignore
.gitignore file for IDEA, Eclipse, NetBeans
#
# Project specific excludes
#
tomcat
#
# Default excludes
#
@iisalazar
iisalazar / setup-for-cordova.sh
Created August 25, 2020 16:17 — forked from Hokid/setup-for-cordova.sh
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@iisalazar
iisalazar / sql-mongo_comparison.md
Created August 12, 2019 06:40 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@iisalazar
iisalazar / MappingTest.sol
Created May 20, 2019 12:00 — forked from samanshahmohamadi/MappingTest.sol
How to return whole mapping in solidity
pragma solidity ^0.4.25;
contract MappingTest {
mapping(uint=>address) public addresses;
uint addressRegistryCount;
function set(address userAddress) public{
addresses[addressRegistryCount] = userAddress;
addressRegistryCount++;
}
@iisalazar
iisalazar / vanilla-js-cheatsheet.md
Created January 23, 2019 03:57 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@iisalazar
iisalazar / pipenv_cheat_sheet.md
Created January 19, 2019 06:58 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell