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 x = (full_name): string[] => { | |
citizen_database.filter(person => | |
/ibrahim|ali|mohamm(?:a|e)d/.test(person.name), | |
).forEach(person => | |
(person.tags.push('illegal immigrant'), person) | |
); | |
const x = () => { | |
citizen_database.filter(person => | |
/ibrahim|ali|mohamm(?:a|e)d/.test(person.name), |
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 csv | |
import json | |
import torch | |
from tqdm import tqdm | |
from transformers import AutoModel, BertTokenizerFast | |
import ctypes as ct | |
csv.field_size_limit(int(ct.c_ulong(-1).value // 2)) | |
model = AutoModel.from_pretrained('jinaai/jina-embeddings-v2-base-en', trust_remote_code=True) |
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 csv | |
import json | |
import torch | |
from tqdm import tqdm | |
from transformers import AutoModel, BertTokenizerFast | |
import ctypes as ct | |
csv.field_size_limit(int(ct.c_ulong(-1).value // 2)) | |
model = AutoModel.from_pretrained('jinaai/jina-embeddings-v2-base-en', trust_remote_code=True) |
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 readU8 = (data, offset) => | |
data[offset]; | |
const readU16 = (data, offset) => | |
( | |
data[offset] << 8 | |
| data[offset + 1] | |
); | |
const readU24 = (data, offset) => |
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 { IgApiClient, IgLoginTwoFactorRequiredError } = require('instagram-private-api'); | |
const inquirer = require('inquirer'); | |
const Bluebird = require('bluebird'); | |
const fs = require('fs'); | |
process.env.IG_USERNAME = 'xxx'; | |
process.env.IG_PASSWORD = 'xxx'; | |
const ig = new IgApiClient(); |
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
###### WARNING: PRIOR WORK: https://gist.githubusercontent.com/xerub/adf396f479d401b9c0e9/raw/18db6c9211a57f969a3c6063554a3ff82c44e1fa/pbzx2.c | |
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <lzma.h> | |
int main(int argc, |
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
// https://gist.github.com/KenanSulayman/2da1085913b94add85315e08959bafa6 | |
;(() => { | |
const runner = () => { | |
const processed: string[] = []; | |
const preconn = (type: string, url: string) => { | |
if (~processed.indexOf(url)) { | |
return; | |
} |
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
declare interface Window { | |
wgPageName?: string; | |
wgCategories?: string; | |
} | |
class Pr1ce { | |
protected _container?: HTMLTableSectionElement; | |
protected _pageName?: string; | |
protected _categories?: string; | |
protected _facts: string[]; |
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
undefined#header{background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACg4AAAL4CAYAAACps554AAAKzmlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU9kWQO97L73QAhGQEnoTpAgEkBJCCyAgHWyEJJBQYkgIKjZUBkdwLKiIoDKioyIKNorYEAu2QbGAfYIMIuo4WLCh5j/gE2b+X///9c9aZ939zjv3nHPfuvetcwGgErgSSRasAUC2OFcaHezPSExKZuCfAhzAAjKwB3guTyZhRUWFA1TGx7/Lhy4AjYy37Udi/fv7/yqafIGMBwAUhXIqX8bLRvk4qoM8iTQXAGQPajdbkCsZ4csoa0vRAlF+NMLpYzw4wqmjjMGM+sRGs1HWBYBA4XKl6QBQzFE7I4+XjsahBKDsKOaLxCijz8CHJ+TyUUbzginZ2fNHWIGydepf4qT/LWaqKiaXm67isbWMCiFAJJNkcRf9n5/jf0t2lnw8hyWqFKE0JBod0bqge5nzw1QsTo2IHGcRf9R/lIXykLhx5snYyePM5waEqeZmRYSPc5ooiKOKk8uJHWeBLDBmnKXzo1W50qRs1jhzpRN55ZlxKrtQwFHFzxfGJoxznig+YpxlmTFhEz5slV0qj1bVLxAH+0/kDVKtPVv2l/WKOKq5ucLYENXauRP1C8SsiZiyRFVtfEFA4IRPnMpfkuuvyiXJilL5C7KCVXZZXoxqbi66ISfmRqm+YQY3NGqcQTgIBgwQB7JALpACLggCIiAGglzBwpE9CtjzJYukonRhLoOFnjIBgyPmOUxhODs6MQEYObNjW+IdffQsQvSrE7ZVNQB4n1AqlScnbKE3ATiSAgCpYcJmPQcAjX4ALp/iyaV5Y7aR44T+CUhAHWgDPWAEzIA1+ldwBm7AC/iBQBAKIkEsSAJzAQ8IQTZa+QKwBKwARaAEbABbQAWoArvBfnAIHAVN4BQ4By6Ba+AmuAseAgXoAy/BIP |
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 defaultSymbols = 'ES .o+=*BOX@%&#/^'.split(''); | |
const defaultBounds = { | |
width: 17, | |
height: 9 | |
}; | |
const generateBoard = (data, bounds) => { | |
/* create board */ | |
const board = []; |
NewerOlder