Skip to content

Instantly share code, notes, and snippets.

View astroDev18's full-sized avatar
🕹️
Learning C++

Isa astroDev18

🕹️
Learning C++
  • Atlanta, Georgia
  • 09:53 (UTC -12:00)
View GitHub Profile
const Discord = require("discord.js");
const constants = require("../constants.json");
exports.run = async (client, msg, args) => {
if (msg.author.bot) return false;
const Role1 = msg.guild.roles.cache.get("750031561805791254");
const Discord = require("discord.js");
const constants = require("../constants.json");
exports.run = async (client, msg, args) => {
if (msg.author.bot) return false;
const Role1 = msg.guild.roles.cache.get("770247415764221952"); // MC Helper
const Role2 = msg.guild.roles.cache.get("750031561805791254"); // PC Expert
const Role3 = msg.guild.roles.cache.get("750029105856249977"); // Official Artist
const filter = (reaction, user) =>
xport default class Browser extends Component {
render = () => (
<div className={styles.browserContainer}>
<div id="screenSimulation" className={styles.screenSimulation}>
<div className={styles.screenSimulationHeader}>
<div
style={{ backgroundColor: '#21ffb0' }}
className={styles.screenSimulationHeaderButton}></div>
<div
style={{ backgroundColor: '#fce303' }}
@astroDev18
astroDev18 / userRouter.js
Created December 22, 2020 05:06
my user routers
import express from 'express';
import User from '../models/userModel.js';
import auth from '../middleware/auth.js'
const userRouter = express.Router();
userRouter.post('/create', async (req, res) => {
const user = new User(req.body)
try {
@astroDev18
astroDev18 / userModel.js
Created December 22, 2020 05:06
my user models
import mongoose from 'mongoose';
import jwt from 'jsonwebtoken';
import bcrypt from 'bcryptjs';
// import validator from 'validator';
const userSchema = new mongoose.Schema({
name: { type: String, required: true, trim: true },
email: {
type: String, required: true, unique: true, trim: true, lowercase: true,
@astroDev18
astroDev18 / variables_java_.idea_.gitignore
Created January 8, 2021 00:13
variables in java variables variables
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/../../../../../../:\Users\karri\IdeaProjects\variables_java\.idea/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
@astroDev18
astroDev18 / variables.java
Created January 8, 2021 00:14
variables java
public class variables {
public static void main(String[] args) {
int year = 2021;
int day = 7;
int month = 1;
int age = 18;
int balance = 300;
System.out.println("Original Data:");
System.out.println("The year is " + year);
@astroDev18
astroDev18 / variables.java
Created January 11, 2021 19:59
school school
public class variables {
public static void main(String[] args) {
float hrsWorked = 40;
double payRate = 10.00;
double taxRate1 = 0.25;
double taxRate2 = 0.50;
double grossPay = 0.00;
double taxAmt = 0.00;
double netPay = 0.00;
@astroDev18
astroDev18 / MyChoices.java
Created January 21, 2021 15:06
MyChoices MyChoices
import java.util.Scanner;
public class MyChoices {
public static void main(String[] args) {
Scanner MyChoices = new Scanner(System.in);
Scanner Input = new Scanner(System.in);
System.out.print("Please input your name: ");
@astroDev18
astroDev18 / MySizes.java
Created January 21, 2021 16:59
Testing Case Statements
import java.util.Scanner;
public class MySizes {
public static void main(String[] args) {
// int waistSize = 10;
Scanner input = new Scanner(System.in);
System.out.println("Please input your pant size: ");
int number = input.nextInt();