Skip to content

Instantly share code, notes, and snippets.

@mfd
mfd / _sanfrancisco-font.md
Last active May 4, 2024 22:33
San Francisco Web Font

Web fonts

Custom webfonts

https://gist.githubusercontent.com/mfd/614e2e80a22b878bde63cb471cbe677e/raw/4996edf5eb9aea434e0cbdc81923fb110a29d060/sanfrancisco-font.css

<link rel="stylesheet prefetch" href="https://gist.githubusercontent.com/mfd/614e2e80a22b878bde63cb471cbe677e/raw/eef2aabfd0d588d43285431186a0cf70305ceb80/sanfrancisco-font.css">

#include <atlbase.h>
#include <atlapp.h>
#include <atlwin.h>
#include <atlimage.h>
#define IDB_TOP_LEFT_CORNER 101
#define IDB_TOP_RIGHT_CORNER 102
#define IDB_TOP_EDGE 103
#define IDB_BOTTOM_LEFT_CORNER 104
#define IDB_BOTTOM_RIGHT_CORNER 105
#include <atlbase.h>
#include <atlapp.h>
#include <atlwin.h>
#include <atlimage.h>
#define IDB_TOP_LEFT_CORNER 101
#define IDB_TOP_RIGHT_CORNER 102
#define IDB_TOP_EDGE 103
#define IDB_BOTTOM_LEFT_CORNER 104
#define IDB_BOTTOM_RIGHT_CORNER 105
#include <atlbase.h>
#include <atlapp.h>
#include <atlwin.h>
#include <atlimage.h>
class CustomWindow : public CWindowImpl<CustomWindow> {
public:
DECLARE_WND_CLASS_EX(_T("CustomWindowClass"), CS_HREDRAW | CS_VREDRAW, COLOR_WINDOW)
BEGIN_MSG_MAP(CustomWindow)
@BlackOz-DM
BlackOz-DM / windows-keys.md
Created May 4, 2024 22:32 — forked from rvrsh3ll/windows-keys.md
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@MarkRBest
MarkRBest / risk_manager.py
Created April 6, 2024 18:42
Risk manager using array indexing
from enum import IntEnum
class Exchange(IntEnum):
Binance = 0
Bybit = 1
Okx = 2
class Currency(IntEnum):
BTC = 0
ETH = 0
@65
65 / userauth.cfm
Created March 10, 2012 18:22
cfldap and user authentication on Active Directory
<cfparam name="isAuthenticated" default="false">
<cfparam name="logindomain" default="domain">
<cfparam name="ldapServer" default="192.168.1.1">
<cfparam name="dcStart" default="DC=domain,DC=co,DC=uk">
<cfif IsDefined("form.username") AND form.username is not "" AND IsDefined("form.password") AND form.password is not "">
<cftry>
<cfldap action="QUERY"
name="auth"
attributes="samAccountName"
start="#dcStart#"
#include <SFML/Graphics.hpp>
class CustomWindow {
public:
CustomWindow() {
// Load images
if (!backgroundTexture.loadFromFile("background.png") ||
!buttonTexture.loadFromFile("button.png")) {
// Handle error
}
#include <Windows.h>
// Global variables
HBITMAP hBitmapTopLeftCorner;
HBITMAP hBitmapTopEdge;
// Define other bitmaps for other parts of the frame...
// Function to load bitmaps
void LoadBitmaps() {
// Load bitmaps from files or resources