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
||accounts.google.com/gsi/iframe/select$subdocument | |
codesandbox.io |
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 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 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
! 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 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
#!/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 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 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 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
#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 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
#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 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 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, ): |
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
use std::ops::Mul; | |
use std::fmt::{Display, Formatter, Result as FmtResult}; | |
#[derive(Debug)] | |
enum MulError { | |
BadDimensions, | |
} | |
struct Matrix { | |
contents: Vec<f64>, |
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
#include <iostream> | |
int main() { | |
while (true) { | |
std::cout << "Type 2 numbers: "; | |
long num1, num2; | |
std::cin >> num1 >> num2; | |
long out = 0; |
NewerOlder