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
||accounts.google.com/gsi/iframe/select$subdocument | |
codesandbox.io |
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
// ==UserScript== | |
// @name Remove summarizer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://search.brave.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=brave.com | |
// @grant none | |
// ==/UserScript== |
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
! name: jude | |
! description: Goggle for my own search results | |
! public: false | |
! author: Jude S | |
! tlds | |
*.uk$boost=1 | |
*.org$boost=1 | |
! everyday sites |
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
#!/bin/bash | |
if git diff --cached | grep '^[+d].*NO_COMMIT'; then | |
echo "Can't commit file with NO_COMMIT comment, remove the debug code and try again" | |
exit 1 | |
fi |
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 typing | |
from werkzeug.security import generate_password_hash, check_password_hash | |
from werkzeug import ImmutableMultiDict | |
class Field(): | |
class FieldLengthExceeded(Exception): | |
pass | |
class MissingFieldData(Exception): | |
pass |
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
nig[^(h|n|m)] | |
n.{0,3}gg | |
n(.)\1{0,}gg | |
f.{1}g | |
(c|k)(u|v)\1{0,}nt | |
(c|k)r.?.?k.?r | |
f(.)\1{0,}(k|ck){1,2} | |
d(i|1|y)\1{0,}(ck|k) | |
(c|k)(0|o|u)\1{0,}ck | |
sh(i|1)\1{0,}t |
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
def bucket_sort(vector: list, bin_count: int): | |
bins = [[] for _ in range(bin_count)] # create a list of empty lists to the bin_count | |
# define the maximum, minimum and range of values within the data being sorted | |
M, m = max(vector), min(vector) | |
r = M - m | |
# group the items into bins | |
for item in vector: |
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
#include "bubble_sort.h" | |
void bubble_sort(int *array, int buffer_len) | |
{ | |
bool sorted = true; | |
for (int i = 0; i < buffer_len; ++i) | |
{ | |
sorted = true; | |
for (int j = 0; j < buffer_len - i - 1; ++j) | |
{ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <math.h> | |
#include <string.h> | |
#include <ctype.h> | |
#define RESET "\x1B[0m" | |
#define BLOCK "█" |
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 random | |
BIN_SIZE = 26 | |
OBJECT_COUNT = 3000 | |
MAX_OBJECT_SIZE = 25 | |
assert MAX_OBJECT_SIZE <= BIN_SIZE # check that objects cannot be too big | |
class Result(): # custom result class for handling errors | |
def __init__(self, err=None, ok=None, ): |
NewerOlder