remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/<user>/<repo>/'
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 auth | |
import ( | |
"errors" | |
"html/template" | |
"log" | |
"net/http" | |
"time" | |
"github.com/go-chi/jwtauth/v5" |
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
<form method="post" onchange="post_to_popup(this);this.submit();"> | |
<select></select> | |
</form> |
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
/** | |
* FormatPhone formats phone number | |
* @param string $number phone number | |
* | |
* @return int formatted phone number | |
* | |
*/ | |
function FormatPhone($phone) | |
{ | |
$rx = "/ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>fixed header and scrollable contents</title> | |
<style> | |
body { | |
margin: 0; |
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
version: '3.3' | |
services: | |
adminer: | |
image: adminer | |
restart: always | |
ports: | |
- 8080:8080 | |
volumes: | |
- type: bind |
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
func Error(w http.ResponseWriter, r *http.Request) { | |
w.WriteHeader(http.StatusBadRequest) | |
// w.Write's order must be written after you set the w.Writeheader | |
w.Write([]byte("error message")) | |
} |
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" | |
) | |
func main() { | |
js := []Job{ | |
{pno: 1, prio: 2, at: 0, bt: 4}, | |
{pno: 2, prio: 4, at: 1, bt: 2}, |
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
// javascript available alphabets got without using alphabets | |
// one of the limitiations are some uppercase layers | |
// which could only be solved if I have uppercase `C` | |
/****************************************************************************** | |
* below are some strings generated by some identities | |
* | |
* true | |
* false |