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
""" | |
wget https://huggingface.co/datasets/thewh1teagle/hebright/resolve/main/knesset.txt.zip | |
unzip knesset.txt.zip | |
uv run main.py | |
""" | |
from pathlib import Path | |
import time | |
import requests |
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
import UIKit | |
import SafariServices | |
import AuthenticationServices | |
import AppAuth | |
import Reachability | |
class OIDExternalUserAgentASWebAuthenticationSession: NSObject, OIDExternalUserAgent { | |
private let presentingViewController: UIViewController | |
private var externalUserAgentFlowInProgress: Bool = false | |
private var authenticationViewController: ASWebAuthenticationSession? |
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
#!/usr/bin/env python3 | |
""" ASF OAuth example in Python 3""" | |
import cgi | |
import os | |
import requests | |
import urllib | |
import uuid | |
def init_oauth(): |
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 ⚡4email> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script> | |
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script> | |
<style amp4email-boilerplate>body{visibility:hidden}</style> | |
<style amp-custom> |
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
-- quick and dirty JSON conversion | |
local function quickJSON(input) | |
if type(input) == "table" then | |
local t = 'array' | |
for k, v in pairs(input) do | |
if type(k) ~= "number" then | |
t = 'hash' | |
break | |
end | |
end |
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
// ==UserScript== | |
// @name Chat Image Upload | |
// @description Drag and Drop upload images | |
// @author fredley | |
// @version 1.0.0 | |
// @include *://chat.meta.stackoverflow.com/rooms/* | |
// @include *://chat.meta.stackexchange.com/rooms/* | |
// @include *://chat.stackexchange.com/rooms/* | |
// @include *://chat.stackoverflow.com/rooms/* | |
// @include *://chat.askubuntu.com/rooms/* |