🏳️⚧️
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
// A git delta parser in TypeScript for deno | |
// Author: Anthony Som | |
// MIT License. | |
function copy(source, target, targetOffset, sourcePos, length) { | |
for (let i = 0; i < length; i++) { | |
target[targetOffset + i] = source[sourcePos + i] | |
} | |
} |
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 crypto from "crypto"; | |
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm"; | |
import { User } from "./User"; | |
@Entity() | |
export class APIKey { | |
@PrimaryGeneratedColumn() | |
public id: number; | |
@Column() |
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
#!/usr/bin/env python3 | |
import requests | |
import json | |
def get_pp_url(username): | |
api_response = json.loads(requests.get(f"https://instagram.com/{username}/?__a=1").text) | |
user_id = api_response["graphql"]["user"]["id"] | |
user_api_response = json.loads(requests.get(f"https://i.instagram.com/api/v1/users/{user_id}/info/").text) |
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
package site.hackery.photon; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.function.BooleanSupplier; | |
import java.util.function.Consumer; | |
import static java.util.Arrays.asList; |