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"
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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: |
NewerOlder