npm i
npm run build -- --entry ./index.js
HTML emitted with `` and css chunk that inserted to html head.
// ==UserScript== | |
// @name GuruShots end time | |
// @description Show ending time in GuruShots next to countdown timer | |
// @namespace http://karmalakas.lt/ | |
// @version 1.14.0 | |
// @author Karmalakas | |
// @updateURL https://gist.github.com/Karmalakas/25910e649f2feb26e4e8298af938a09e/raw/GS_End_Time.user.js | |
// @downloadURL https://gist.github.com/Karmalakas/25910e649f2feb26e4e8298af938a09e/raw/GS_End_Time.user.js | |
// @supportURL https://gist.github.com/Karmalakas/25910e649f2feb26e4e8298af938a09e | |
// @match https://gurushots.com/* |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
b := []byte(`{"key":"value"}`) |
module.exports = { | |
“extends”: “../src/.eslintrc.js”, | |
“rules”: { | |
“import/no-extraneous-dependencies”: “error” | |
} | |
}; |
<?php | |
use Psr\Log\LoggerInterface; | |
/** | |
* Assembles and dispatches the SOAP request body XML and returns the | |
* Response body XML from the vendor API. | |
*/ | |
class Request | |
{ |
using System; | |
using System.Collections.Generic; | |
namespace PlaynomicsPlugin | |
{ | |
internal class ConcurrentQueue<T>{ | |
private readonly object syncLock = new object(); | |
private Queue<T> queue; |
<?php | |
// cURL obeys the RFCs as it should. Meaning that for a HTTP/1.1 backend if the POST size is above 1024 bytes | |
// cURL sends a 'Expect: 100-continue' header. The server acknowledges and sends back the '100' status code. | |
// cuRL then sends the request body. This is proper behaviour. Nginx supports this header. | |
// This allows to work around servers that do not support that header. | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); | |
// We're emptying the 'Expect' header, saying to the server: please accept the body right now. | |
// Read here: http://pilif.github.com/2007/02/the-return-of-except-100-continue/ |