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
(y₂-y₁)x - (x₂-x₁)y - x₁y₂ + x₂y₁ = 0 |
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
#define PROFILE | |
//#define OUTPUT | |
//#define USE_BITS | |
//#define SHIFT | |
using System; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
class Program |
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
Shader "Hidden/RoundedRectangle" | |
{ | |
Properties | |
{ | |
_MainTex("Texture", 2D) = "white" {} | |
_Radius("Radius %", Range(0, 0.5)) = 0.2 | |
} | |
SubShader | |
{ | |
Tags |
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
/*** BEGIN Firefox 77 (June 2, 2020) Override URL bar enlargement ***/ | |
/* Compute new position, width, and padding */ | |
#urlbar[breakout][breakout-extend] { | |
top: 5px !important; | |
left: 0px !important; | |
width: 100% !important; | |
padding: 0px !important; | |
} |
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
--[[ | |
== Usage == | |
1. Get the control channel | |
ch = love.thread.getChannel('orgplayer') | |
2. Create a thread and start it | |
th = love.thread.newThread('love_orgplayer_thread.lua') | |
th:start() |
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 class EmojiIterator | |
{ | |
private string _text; | |
private int _head, _next; | |
private int _index, _length; | |
public EmojiIterator(string text) | |
{ | |
_text = text; | |
Reset(); |
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
typedef struct FontHeader { | |
int32_t fVersion; | |
uint16_t fNumTables; | |
uint16_t fSearchRange; | |
uint16_t fEntrySelector; | |
uint16_t fRangeShift; | |
}FontHeader; | |
typedef struct TableEntry { | |
uint32_t fTag; |
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.Generic; | |
namespace Filter | |
{ | |
using NodeKey = System.UInt64; | |
public class Trie | |
{ |
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
void Swap(int array[], int a, int b) | |
{ | |
int tmp = array[a]; | |
array[a] = array[b]; | |
array[b] = tmp; | |
} | |
void PrintArray(int array[], int length, int lower, int upper) | |
{ | |
for (int i = 0; i < length; ++i) |
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.Diagnostics; | |
using System.Diagnostics.Contracts; | |
using System.Security.Permissions; | |
using System.Text; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Security; | |
namespace System.Collections.Generic |
NewerOlder