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
#------------------------------------------------------------------------------- | |
# lexer.py | |
# | |
# A generic regex-based Lexer/tokenizer tool. | |
# See the if __main__ section in the bottom for an example. | |
# | |
# Eli Bendersky (eliben@gmail.com) | |
# This code is in the public domain | |
# Last modified: August 2010 | |
#------------------------------------------------------------------------------- |
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
// Lexer for the TableGen language. | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"time" | |
"unicode/utf8" | |
) |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
// StackOverflow analysis using its API in Go. | |
// | |
// Eli Bendersky [https://eli.thegreenplace.net] | |
// This code is in the public domain. | |
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" |
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://stackoverflow.com/questions/66142960/trouble-parsing-form-data-sent-from-javascript | |
https://stackoverflow.com/questions/66138644/how-can-i-change-the-package-type-when-calling-a-method | |
https://stackoverflow.com/questions/66137884/how-can-i-unmarshal-the-following-json-into-golang-struct | |
https://stackoverflow.com/questions/66126877/can-i-create-a-function-that-returns-types | |
https://stackoverflow.com/questions/66129320/json-object-returning-wrong-number-in-struct | |
https://stackoverflow.com/questions/66131824/how-to-use-scanner-bufio | |
https://stackoverflow.com/questions/66133593/execute-binary-file-in-remote-server-with-http-request-dont-work | |
https://stackoverflow.com/questions/66134053/why-go-servemux-is-also-a-handler | |
https://stackoverflow.com/questions/66106944/how-to-import-grpc-server-proto-which-is-exist-in-diff-application-in-local-syst | |
https://stackoverflow.com/questions/66130399/fabriccaclientservice-js-failed-to-enroll-admin-erroro-message-calling-enr |
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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Sample REST server", | |
"description": "TODO", | |
"version": "1.0.0" | |
}, | |
"servers": [ | |
{ | |
"url": "https://example.com" |
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
# | |
# TODO: add license? | |
openapi: 3.0.1 | |
info: | |
title: Sample REST server | |
description: TODO | |
version: 1.0.0 | |
servers: | |
- url: https://example.com |
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
// Demonstrates async preemption in 1.14 vs. earlier versions | |
package main | |
import ( | |
"log" | |
"runtime" | |
"time" | |
) | |
func f1() { |
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
/* Minimal declarations for CUDA support. Testing purposes only. */ | |
#define __constant__ __attribute__((constant)) | |
#define __device__ __attribute__((device)) | |
#define __global__ extern "C" __attribute__((global)) | |
#define __host__ __attribute__((host)) | |
#define __shared__ __attribute__((shared)) | |
#define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__))) | |
#define __forceinline__ __attribute__((always_inline)) |
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
Title: Simple HTTP server | |
URL slug: httpserver | |
Description: A simple HTTP server serving two different routes using the default request multiplexer. |
NewerOlder