Discover gists
This file contains 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-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, viewport-fit=cover"> | |
<link rel="profile" href="https://gmpg.org/xfn/11"> | |
<title>MintMingle</title> |
This file contains 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
# vpnon connects to GlobalProtect VPN. | |
# | |
# NOTE: GlobalProtect must be running. | |
# | |
# REF: https://gist.github.com/kaleksandrov/3cfee92845a403da995e7e44ba771183 | |
# | |
# Usage: vpnon | |
function vpnon { | |
osascript <<EOF | |
tell application "System Events" to tell process "GlobalProtect" |
This file contains 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
const maxButtons = 100; // Its weird going too far back | |
let delay = 25; // ms delay between clicks | |
var buttonsToBeClicked = 0; | |
const poppy = function() { | |
const popup = document.createElement("div"); | |
popup.innerHTML = ` | |
<div style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center;"> | |
<div style="background: white; padding: 20px; border-radius: 5px; text-align: center;"> | |
<h2 style="margin: 0 0 10px;">The Kudoz Machina</h2> |
This file contains 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 Std.Internal.Async | |
import Std.Internal.UV | |
import Std.Net.Addr | |
open Std.Internal.IO.Async.TCP.Socket | |
open Std.Internal.IO.Async.TCP | |
open Std.Internal.IO.Async | |
open Std.Net | |
-- The monad to make the code simpler to read. |
This file has been truncated, but you can view the full file.
This file contains 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 file contains 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 flask import Flask, request, render_template_string | |
app = Flask(__name__) | |
# قاعدة بيانات بسيطة لنصائح المراجعة | |
def get_study_tips(subject): | |
tips = { | |
"رياضيات": "قم بحل العديد من التمارين وتأكد من فهمك جيدا للقواعد و أيضًا عليك بكتابة قواعد الجبر أو الهندسة في ورقة بخط واضح وضعها على مكتبك أو علقها و احرص على قراءتها يوميًا و هكذا ستخدع عقلك الباطن و تحفظ القواعد بسهولة.", | |
"فيزياء": "ركز على الفهم العملي وحل المسائل المتعلقة بالقوانين الفيزيائية و ركز مع أستاذك في الحصة و راجع التعاريف جيدًا لأن التعاريف يمكنها أن تساعدك في حل المسائل الفيزيائية.", | |
"انقليزية": "ركز مع الأستاذ في الفصل و احفظ بعض العبارات كي تستخدمها في الفرض التأليفي و قم بإنجاز بعض التمارين، هذا سيساعدك كثيرًا.", |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<files> | |
<file path="C:\ProgramData\chocolatey\lib\neovide.portable\neovide.portable.nupkg" checksum="E9A53E070E37573C65A48D0BD9704960" /> | |
<file path="C:\ProgramData\chocolatey\lib\neovide.portable\neovide.portable.nuspec" checksum="439FF997645299F165E64FEDA57C33DC" /> | |
<file path="C:\ProgramData\chocolatey\lib\neovide.portable\legal\LICENSE.txt" checksum="AD68978264A8534F355B1FFF51E3E092" /> | |
<file path="C:\ProgramData\chocolatey\lib\neovide.portable\legal\VERIFICATION.txt" checksum="7E9C49A259694BB7DD9C176249BDE07F" /> | |
<file path="C:\ProgramData\chocolatey\lib\neovide.portable\tools\x64\neovide.exe" checksum="293363205A550DD81842B49C5E76DF0B" /> | |
</files> | |
</fileSnapshot> |
This file contains 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
// 🚫 Avoid This - Tests should only evaluate a single method call | |
[Fact] | |
public void Calculator_Add_and_Subtract_Test() | |
{ | |
// Act | |
var sum = _calculator.Add(2, 3); | |
var difference = _calculator.Subtract(5, 3); // ❌ Multiple Act steps | |
// Assert |
This file contains 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
//Autoapply Coupons with URL | |
////Use Link https://examplestore.com/checkout/?add-to-cart=12345&coupon_code=5dollarOff | |
//Example: https://launchandleads.com/?add-to-cart=83&coupon_code=speaker_bonus | |
function sdd_woocommerce_coupon_links(){ | |
// Bail if WooCommerce or sessions aren't available. | |
if (!function_exists('WC') || !WC()->session) { | |
return; |