Skip to content

Instantly share code, notes, and snippets.

View nonomino's full-sized avatar
🎋
Umble-cum-stumbling life.

Anas MS nonomino

🎋
Umble-cum-stumbling life.
View GitHub Profile
@nonomino
nonomino / nlp_outputs.md
Created July 23, 2025 12:20
NLP (CSE6002) Lab experiments

Experiment 1: File Handling Using Python

Successfully read file: sample.txt (1,247 characters)
Saved JSON data to: output.json
{
  "processed": 183,
  "word_count": 183,
  "timestamp": "2025-07-23 10:42:15"
}
@nonomino
nonomino / bokeh-pure-css.markdown
Created April 13, 2025 15:32
Bokeh (Pure CSS)
@nonomino
nonomino / decBinVow.py
Created December 6, 2024 06:26
decBinVow.py
from typing import Dict, List, Tuple
class Converter:
@staticmethod
def bin_to_dec(binary: int) -> int:
decimal = 0
for i, digit in enumerate(reversed(str(binary))):
decimal += int(digit) * (2 ** i)
return decimal
from qiskit import IBMQ, QuantumCircuit, ClassicalRegister, QuantumRegister, transpile
from qiskit.providers.ibmq import least_busy
from qiskit.visualization import plot_histogram
# Hard-coded API key
API_KEY = 'INSERT_KEY_HERE'
# Define the black box function (oracle)
def oracle(circuit, register, marked_state):
for i in range(len(marked_state)):
@nonomino
nonomino / grover.py
Last active November 22, 2024 09:49
Simulate Grover's algorithm with Qiskit
from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister, transpile
from qiskit_aer import AerSimulator
# Define the black box function (oracle)
def oracle(circuit, register, marked_state):
for i in range(len(marked_state)):
if marked_state[i] == '1':
circuit.x(register[i])
circuit.cz(register[0], register[1])
for i in range(len(marked_state)):
07-05 05:50:17.616 20294 20294 I MSHandlerLifeCycle: removeMultiSplitHandler: no exist. decor=DecorView@95926df[SettingsActivity]
07-05 05:50:17.625 20294 20367 D OpenGLRenderer: setSurface called with nullptr
07-05 05:50:17.626 20294 20294 I ViewRootImpl@1740573[SettingsActivity]: dispatchDetachedFromWindow
07-05 05:50:17.629 20294 20294 D InputTransport: Input channel destroyed: 'cc8c12 ', fd=287
07-05 05:50:17.632 20294 20294 I ViewRootImpl@3989802[LauncherActivity]: handleAppVisibility mAppVisible = false visible = true
07-05 05:50:17.632 20294 20294 I ViewRootImpl@3989802[LauncherActivity]: stopped(false) old = true
07-05 05:50:17.632 20294 20294 I ViewRootImpl@3989802[LauncherActivity]: WindowStopped on de.mm20.launcher2.release/de.mm20.launcher2.ui.launcher.LauncherActivity set to false
07-05 05:50:17.634 20294 20294 W OnBackInvokedCallback: OnBackInvokedCallback is not enabled for the application.
07-05 05:50:17.634 20294 20294 W OnBackInvokedCallback: Set 'android:enableOnBackInvokedCallback="true"'
@nonomino
nonomino / code-run.html
Created June 2, 2024 07:43
Using Online Compiler API (CodeX), run code on webpages
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Runner</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
@nonomino
nonomino / Main.java
Created August 25, 2023 13:09
Implementation of a Text-only employee Management System in Core Java
/*
* This software is licensed under the MIT License, Version 2.0.
* SPDX-License-Identifier: MIT
* Author: Eugene Felix
*/
/* Features Not Implemented
* Several edge cases
*/
import java.util.ArrayList;
@nonomino
nonomino / cs55.py
Last active March 5, 2023 19:20
complex_operations & datetime
### Add and multiply complex numbers ###
def add_complex(z1, z2):
return z1 + z2
def multiply_complex(z1, z2):
return z1 * z2
a = complex(2,3)
### Keybase proof
I hereby claim:
* I am nonomino on github.
* I am nonomino (https://keybase.io/nonomino) on keybase.
* I have a public key ASAnT_EtQhuQXpMmyQcQgWkIBipfdWr0v7jyCGjhOaTQrAo
To claim this, I am signing this object: