Skip to content

Instantly share code, notes, and snippets.

View akishore15's full-sized avatar
💭
NO!

hitor- 1 akishore15

💭
NO!
  • Seattle, WA
  • 16:00 (UTC -07:00)
View GitHub Profile
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.utils.Scanner;
public static class Console {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
ScriptEngine engine = manager.getEngineByName("nashorn");
ScriptEngineManager manager = new ScriptEngineManager();
System.out.print("> ");
@akishore15
akishore15 / apackg.py
Created February 18, 2025 00:40
Open-source package manager in Python
import subprocess
import sys
import os
# Global buffer to store code snippets
snippet_buffer = {}
def install_package(package_name):
try:
subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
@akishore15
akishore15 / shell.js
Created February 18, 2025 00:35
Shell
const readline = require('readline');
const { execSync } = require('child_process');
// Create an interface for reading input from the command line
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'shell> '
});
@akishore15
akishore15 / editcode.java
Created February 18, 2025 00:32
Code editor
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
public class JavaCodeEditor extends JFrame implements ActionListener {
private JTextArea textArea;
private JButton compileButton;