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 getpass | |
import json | |
import re | |
import requests | |
client_id = re.compile(',client_id:"(.*?)"').search(requests.get(re.compile('src="https://a-v2.sndcdn.com/assets/app-.*.js"').search(requests.get('https://soundcloud.com/').text).group()[5:-1]).text).group()[12:-1] | |
username = raw_input('Username: ') | |
password = getpass.getpass() |
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 std = @import("std"); | |
const Self = @This(); | |
fn runLoop(self: *Self) !void { | |
var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | |
const allocator = gpa.allocator(); | |
var server = std.http.Server.init(allocator, .{ .reuse_address = true, .kernel_backlog = 64 }); | |
defer server.deinit(); | |
var listen_address = try std.net.Address.resolveIp("0.0.0.0", 8080); |
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://leetcode.com/problems/3sum/ | |
const unique = (array) => Array.from( | |
new Set(array.map(x => JSON.stringify(x))), | |
x => JSON.parse(x) | |
) | |
const combinations = (array) => new Array(1 << array.length) | |
.fill() | |
.map((_, i) => array.filter((_, j) => i & (1 << j))) |