Skip to content

Instantly share code, notes, and snippets.

View Mcilie's full-sized avatar

Michael Ilie Mcilie

  • Lumo
  • Rockville, Maryland, USA
View GitHub Profile
@Mcilie
Mcilie / bluetoothctl.py
Created April 26, 2021 05:06 — forked from egorf/bluetoothctl.py
Bluetoothctl wrapper in Python
# ReachView code is placed under the GPL license.
# Written by Egor Fedorov (egor.fedorov@emlid.com)
# Copyright (c) 2015, Emlid Limited
# All rights reserved.
# If you are interested in using ReachView code as a part of a
# closed source project, please contact Emlid Limited (info@emlid.com).
# This file is part of ReachView.
@Mcilie
Mcilie / main.py
Created November 17, 2020 15:25
Python Flask Quickstart Speed Edition
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "resonance"
app.run()
@Mcilie
Mcilie / areeb.py
Created April 8, 2019 13:21
areeb comprehend pls
m = 'tjctf{?????????????????}'.lower()
k = 'm???????'.lower()
f = [[ord(k[a]) ^ ord(m[a+b]) for a in range(8)] for b in range(0, len(m), len(k))]
print("F",f)
g = [a for b in f for a in b]
print("G",g)
h = [[g[a] for a in range(b, 24, 8)] for b in range(8)]
print("h",h)
i = [[h[b][a] ^ ord(k[a]) for a in range(3)] for b in range(8)]
@Mcilie
Mcilie / error.txt
Created January 27, 2019 13:24
error issue 18
------- FS_Init -------
Current search path:
./baseq2/pak0.pak (1000 files)
./baseq2
1000 files in PAK files
-----------------------
Execing default.cfg
Unknown command "viewsize"
Unknown command "sensitivity"
Unknown command "crosshair"
@Mcilie
Mcilie / cnn.py
Last active December 31, 2018 02:42
CNN in keras
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import *
import numpy as np
(x_train, y_train), (x_test, y_test) = mnist.load_data()
print(x_train)
x_test = np.expand_dims(x_test, -1)
x_train = np.expand_dims(x_train, -1)
print(x_train)
@Mcilie
Mcilie / Calculator.py
Created March 6, 2017 00:05
CALCUULATORRRR v0.1 (pronounced CAL COO LUH TORE) **** This is my first Python Program ever ( requires shell to function on )
import sys
import math
import time
while True: