Skip to content

Instantly share code, notes, and snippets.

View klesun's full-sized avatar
💭
80 stars, yay

Artur Klesun klesun

💭
80 stars, yay
View GitHub Profile
@Karmalakas
Karmalakas / GS_End_Time.user.js
Last active May 3, 2024 05:26
GuruShots end time
// ==UserScript==
// @name GuruShots end time
// @description Show ending time in GuruShots next to countdown timer
// @namespace http://karmalakas.lt/
// @version 1.12.2
// @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/*
@ogonkov
ogonkov / README.md
Last active November 4, 2020 10:42
Misleading `mini-css-extract-plugin` error, see webpack-contrib/mini-css-extract-plugin#646

CSS Modules + HTMLWebpackPlugin

npm i
npm run build -- --entry ./index.js

Expected results

HTML emitted with `` and css chunk that inserted to html head.

package main
import (
"encoding/json"
"fmt"
)
func main() {
b := []byte(`{"key":"value"}`)
@randallreedjr
randallreedjr / .elsintrc.js
Created October 13, 2016 14:50
ESLint config file extending local configuration
module.exports = {
  “extends”: “../src/.eslintrc.js”,
  “rules”: {
  “import/no-extraneous-dependencies”: “error”
  }
};
@johnkary
johnkary / Request.php
Created December 4, 2013 03:59
Example of how to request raw XML via a SoapClient
<?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
{
@jaredjenkins
jaredjenkins / ConcurrentQueue.cs
Last active November 13, 2017 00:00
Concurrent Queue for Unity
using System;
using System.Collections.Generic;
namespace PlaynomicsPlugin
{
internal class ConcurrentQueue<T>{
private readonly object syncLock = new object();
private Queue<T> queue;
@perusio
perusio / gist:1724301
Created February 2, 2012 16:13
Workaround in PHP cURL for the 100-continue expectation
<?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/