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
#Requires -RunAsAdministrator | |
param ( | |
[switch]$remove = $false, # Use this switch to remove the rules | |
[string]$regionPrefix = "me-*", # The prefix of the region we'll be filtering, e.g: me = middle east, us = united states, eu = europe | |
[string]$ipRangeRequestUrl = "https://ip-ranges.amazonaws.com/ip-ranges.json", # AWS endpoint that'll give us our IP ranges to block | |
[string]$ruleDisplayName = "_OW_BlockMEServers", # The name of the firewall rule | |
[string]$ruleDescription = "Rule used to block the ME servers for OW" # The description of the firewall rule | |
) | |
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
// Type your code here, or load an example. | |
#include <cstddef> | |
#include <cstdlib> | |
#include <cstdio> | |
typedef unsigned long buf_t; | |
struct T { | |
unsigned long size; | |
T* next; |
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
constexpr unsigned int length(const char* string) { | |
unsigned int i = 0; | |
while (string[i] != '\0') i++; | |
return i; | |
} | |
constexpr unsigned int generateHash(const char* string) { | |
unsigned int hash = 0; | |
unsigned int len = length(string); |
This file has been truncated, but you can view the full file.
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
NABLED -DMODULE_OGG_ENABLED -DMODULE_OPENSSL_ENABLED -DOPENSSL_NO_ASM -DOPENSSL_THREADS -DL_ENDIAN /Icore /Icore\math /Itools /Idrivers /I. /IC:\Users\giaco\dev\angle\include /Iplatform\winrt /Idrivers\windows /Ithirdparty\zlib /Ithirdparty\openssl /Ithirdparty\openssl\crypto /Ithirdparty\openssl\crypto\asn1 /Ithirdparty\openssl\crypto\evp /Ithirdparty\openssl\crypto\modes /Ithirdparty\openssl\openssl | |
p12_init.c | |
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\um\processthreadsapi.h(501): warning C4047: 'return': 'LPVOID' differs in levels of indirection from 'int' | |
p12_kiss.c |
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
var polygon = child.get_polygon() # Replace with the new vector2array that you want to set | |
var polygonShape = ConcavePolygonShape2D.new() | |
var segments = Array() | |
segments.resize(polygon.size() * 2) | |
for i in range(polygon.size()): | |
segments[(i << 1) + 0] = polygon[i] | |
segments[(i << 1) + 1] = polygon[(i + 1) % polygon.size()] | |
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
// Public domain - Alexander Taylor | |
using UnityEngine; | |
using System.Collections; | |
public class Example : MonoBehaviour { | |
public Transform player; | |
public float speed; | |
bool isDragging = false; |
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
(cond | |
((>= 24 emacs-major-version) | |
(require 'package) | |
(package-initialize) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/") t) | |
;;(package-refresh-contents) | |
) | |
) |
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
#if UNITY_EDITOR | |
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
using UnityEditor.Sprites; | |
using System.Collections.Generic; | |
using System; | |
[ExecuteInEditMode] | |
public class ViewAtlasSize : EditorWindow { |
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
from PIL import Image | |
from tqdm import tqdm | |
import argparse | |
import math | |
# Constants for bounding boxes | |
left = 0 | |
top = 1 | |
right = 2 | |
bottom = 3 |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
/** | |
* Class used to parse string as RichText. | |
* WARNING: This does not use recursion and will not detect tags within tags. | |
* ANOTHER WARNING: It will think anything with a < is a tag so don't use them. | |
* FINAL WARNING: I made this in a day as I needed something quick and which suited the game's needs. Expect large chunks of code. |
NewerOlder