See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
Copyright by Code Boxx
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights
DSLKDS |
var MAX_PRECISION = 28; | |
function _findExp (n, base, exp = 1) { | |
var pow = Math.pow(base, exp); | |
var div = Math.floor(n / pow); | |
if (exp > MAX_PRECISION) { | |
return div; | |
} | |
return div + _findExp(n, base, exp + 1); | |
} |
// IPv6 demo of inet_ntop() and inet_pton() | |
// (basically the same except with a bunch of 6s thrown around) | |
struct sockaddr_in6 sa; | |
char str[INET6_ADDRSTRLEN]; | |
// store this IP address in sa: | |
inet_pton(AF_INET6, "2001:db8:8714:3a90::12", &(sa.sin6_addr)); | |
// now get it back and print it |
This is a Cheatsheet for RxSwift developers migrating to projects using ReactiveSwift.
Inspired by the RxSwift to Combine cheatsheet
RxSwift | ReactiveSwift | |
---|---|---|
Deployment Target | iOS 8.0+ | iOS 8.0+ |
import requests | |
import pandas as pd | |
BASE_URL = 'https://api.airtable.com/v0/' | |
def airtable_to_dataframe(base_name, table_name, api_key): | |
header = {'Authorization': 'Bearer ' + api_key} | |
data = [] | |
r = requests.get(BASE_URL + base_name + '/' + table_name, headers=header) |
/** | |
* @name Adblock for Discord | |
* @author TheSunCat and contributors | |
* @version 1.0.0 | |
* @description Hide all Nitro & Boost upsells on Discord! | |
* @source https://gist.github.com/TheSunCat/58fedaa19d6154ef3e4b2b676c286906 | |
*/ | |
/* ------------------ */ | |
/* Hide Nitro upsells */ |
/* Dubyas list of annoying stuff he hides in discord using Quick CSS */ | |
/* Disable emoji inspection upsell (ty Regalia) */ | |
[class^="nitroTextAndBadge_"], button:has([class^="premiumIcon_"]), | |
[class^="emojiSection_"] [class^="flex_"] div[class*="text-sm-normal"] | |
{ | |
display:none; | |
} | |
/* Disable Popup ads */ |
import notifierQueue from "~/queues/notifier.server.ts"; | |
export const loader = async () => { | |
await notifierQueue.add("test", { emailAddress: "mokhtar@remixtape.dev" }); | |
return null; | |
}; |