Skip to content

Instantly share code, notes, and snippets.

View RayyanNafees's full-sized avatar
🤘
Innovative than ever

Rayyan Nafees RayyanNafees

🤘
Innovative than ever
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Popup Example | jQuerista</title>
<script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
<style>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Modal Example | jQuerista</titlesue>
<script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
<style>
body {
export const ord = num => String.fromCharCode(num);
export const chr = char => char.charCodeAt(0);
export const all = (...conditions) => conditions.length > 1 ? !(conditions.map(i => Boolean(i)).includes(false)) : all(...conditions[0]);
export const any = (...conditions) => conditions.length > 1 ? conditions.map(i => Boolean(i)).includes(true) : all(...conditions[0]);
export const bool = obj => !!obj;
from flask import Flask
app = Flask(__name__)
@app.route('/ncrypt/<phrase>')
def binary(phrase): return ' '.join(format(ord(c), 'b') for c in phrase)
if __name__=='__main__': app.run()
@RayyanNafees
RayyanNafees / notevalues.json
Created February 22, 2021 18:10 — forked from marcgg/notevalues.json
note frequency value
var noteValues = {
'C0': 16.35,
'C#0': 17.32,
'Db0': 17.32,
'D0': 18.35,
'D#0': 19.45,
'Eb0': 19.45,
'E0': 20.60,
'F0': 21.83,
'F#0': 23.12,
@RayyanNafees
RayyanNafees / MicrosoftOffice2019Activate.cmd
Created March 19, 2021 18:33
Microsoft Office 2019 Activate
@echo off
title Activate Microsoft Office 2019 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&ech
# setup firebase_admin first
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
from firebase_admin.messaging import send_multicast,MulticastMessage, Notification
@api_view(['POST'])
def notify(request, format=None):
firebase_storage()
import firebase_admin
default_app = '[DEFAULT APP]'
db = firebase_admin.firestore.client(app=default_app)
users = db.collection('user')
get_token = lambda id: users.document(id).get('deviceToken')
__all__ = ['get_token']
const b64 = file => new Promise((resolve, reject)=>{
const reader = new FileReader();
reader.onload = ()=>resolve(reader.result);
reader.onerror = () => reject(reader.result);
reader.readAsDataURL(file)
});
from tkinter import Tk, StringVar, Button, Entry, Frame
root = Tk()
root.geometry('250x350')
text_input = StringVar()
operator =''
def equal():
global operator