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
class Protobuf: | |
def __init__(self, raw: bytes) -> None: | |
self.raw = raw | |
self.offset = 0 | |
@property | |
def fields(self) -> dict: | |
if not hasattr(self, '__fields__'): | |
self.__fields__ = {} | |
while self.has_next(): |
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
#!/usr/bin/env python3 | |
import os | |
import re | |
from requests import Session | |
from urllib.parse import urlparse, parse_qs, quote_plus | |
from argparse import ArgumentParser | |
src_url_matcher = re.compile(r'''url\(["']?([^"')]+)["']?\)''') |
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
# Shows navigable menu of all options when hitting Tab | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
# Autocompletion for arrow keys | |
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward | |
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward | |
#Save Command History | |
$HistoryPath = 'C:\Users\Dipu\Documents\WindowsPowerShell\History' |
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
package com.test.time; | |
import com.zaxxer.hikari.HikariConfig; | |
import com.zaxxer.hikari.HikariDataSource; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.jdbc.core.JdbcTemplate; | |
import org.springframework.jdbc.core.PreparedStatementCallback; | |
import java.sql.Timestamp; |
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/sh | |
pwd | |
rm -rf dist build venv | |
yarn | |
yarn build | |
python3 -m venv venv |
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
#!/usr/bin/env python | |
import http.server | |
import os | |
import socketserver | |
import time | |
from argparse import ArgumentParser | |
start_time = time.time() |
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
package com.infinity.kyc.api.face; | |
import org.springframework.util.StreamUtils; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Base64; | |
public class OkWalletTest { | |
public static void main(String[] args) throws Exception { |
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
ifeq ($(OS),Windows_NT) | |
CCFLAGS += -D WIN32 | |
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64) | |
CCFLAGS += -D AMD64 | |
else | |
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
CCFLAGS += -D AMD64 | |
endif | |
ifeq ($(PROCESSOR_ARCHITECTURE),x86) | |
CCFLAGS += -D IA32 |
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
{ | |
"$schema": "http://json-schema.org/schema", | |
"title": "JSON schema for a turing complete machine", | |
"type": "object", | |
"definitions": { | |
"statement": { | |
"description": "", | |
"type": "object", |
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
class URL { | |
final String original; | |
String _fragment = ''; | |
String _query = ''; | |
String _scheme = ''; | |
String _user = ''; | |
String _password = ''; | |
String _host = ''; | |
String _port = ''; | |
String _path = ''; |
NewerOlder