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 main | |
import ( | |
"context" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"os/signal" | |
"syscall" |
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 logging | |
from flask import Flask | |
from werkzeug.utils import find_modules, import_string | |
def configure_logging(): | |
# register root logging | |
logging.basicConfig(level=logging.DEBUG) | |
logging.getLogger('werkzeug').setLevel(logging.INFO) |
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
// | |
// ContentView.swift | |
// WeirdSheet | |
// | |
// Created by lotusirous on 28/11/2022. | |
// | |
import SwiftUI | |
protocol Nameable { |
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
type stack []rune | |
func (s *stack) push(n rune) { | |
*s = append(*s, n) | |
} | |
func (s *stack) pop() rune { | |
if s.empty() { | |
panic("stack is empty") |
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 Combine | |
import Foundation | |
enum NetworkError: Error { | |
case unauthorized | |
case badServerResponse | |
case wrongType | |
case unknown | |
} |
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 main | |
import ( | |
"fmt" | |
"log" | |
"math/rand" | |
"net/http" | |
"time" | |
) |
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
// | |
// StreamRecorder.swift | |
// pesos | |
// | |
// Created by Gru-2019015 on 2022/08/26. | |
// | |
import AVFoundation | |
import Combine | |
import Foundation |
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
def split_by_n(seq, n): | |
"""Split a sequence by n elements""" | |
while seq: | |
yield seq[:n] | |
seq = seq[n:] |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>XSS Reflected - Jquery 1.4.2 </title> | |
<script src="http://www.tcs.com.vn/mysite/javascript/jquery-1.4.2.min.js"></script> | |
<script> | |
$(function() { | |
$('#users').each(function() { | |
var select = $(this); | |
var option = select.children('option').first(); |
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
let url = URL(string: "https://postman-echo.com/time/valid?timestamp=2016-10-10")! | |
struct PostmanResponse: Decodable { | |
let valid: Bool | |
} | |
enum ApiError: Error { | |
case invalidServerResponse | |
} |
NewerOlder