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>Gist langs</title> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
<script> | |
function parse_query_string(query) { | |
var vars = query.split("&"); | |
var query_string = {}; |
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
<?php | |
$file = @$_GET["file"]; | |
if(empty($file)) | |
die("You must specify a ?file value."); | |
function fixSerialized($error_serialized_data) | |
{ | |
$fixed_serialized_data = preg_replace_callback ( '!s:(\d+):"(.*?)";!', | |
function($match) { |
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
// Asynchronous Client Socket Example | |
// http://msdn.microsoft.com/en-us/library/bew39x2a.aspx | |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
using System.Text; | |
// State object for receiving data from remote device. |
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
// ==UserScript== | |
// @name SO_like_keyboards_shortcuts | |
// @namespace sputnick | |
// @include https://github.com/* | |
// @include https://gist.github.com/* | |
// @include https://*.slack.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
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
header._3AwwN { | |
background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3); | |
background-size: 1800% 1800%; | |
-webkit-animation: rainbow 18s ease infinite; | |
-z-animation: rainbow 18s ease infinite; | |
-o-animation: rainbow 18s ease infinite; | |
animation: rainbow 18s ease infinite; | |
} |
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
using Flurl.Http; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
namespace DotNetAssembly | |
{ | |
internal static class FlurlExtensions | |
{ |
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
using System; | |
using UnityEngine; | |
namespace UnityEngine.Utilities.Drawing | |
{ | |
// Uncomment this if you don't a an own implementation | |
/*public struct Point | |
{ | |
public int x; | |
public int y; |
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
using System.Threading; | |
namespace GTAMapper.Extensions.Threading | |
{ | |
/// <summary> | |
/// Thread safe enter once into a code block: | |
/// the first call to CheckAndSetFirstCall returns always true, | |
/// all subsequent call return false. | |
/// </summary> | |
public class ThreadSafeBool |
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
using System; | |
using System.Collections; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace GTAMapper.Extensions.Threading | |
{ | |
public class ConcurrentQueuedCoroutines<T> | |
{ |
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
using GTAMapper.Extensions.Threading; | |
using System; | |
using System.Collections; | |
using UnityEngine; | |
namespace GTAMapper.Extensions | |
{ | |
public static class BatchedCoroutines | |
{ | |
public static IEnumerator BatchCoroutines( |
OlderNewer