- Background: (46, 46, 46); #2e2e2e
- Comments: (121, 121, 121); #797979
- White: (214, 214, 214); #d6d6d6
- Yellow: (229, 181, 103); #e5b567
- Green: (180, 210, 115); #b4d273
- Orange: (232, 125, 62); #e87d3e
- Purple: (158, 134, 200); #9e86c8
This file contains hidden or 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
| return function() | |
| local methods = {} | |
| local meta = { | |
| __add = function(delegates, func) | |
| methods[#methods + 1] = func | |
| return delegates | |
| end, | |
| __sub = function(delegates, func) | |
| for i, f in ipairs(methods) do | |
| if f == func then |
This guide likely applies to other models and, potentially, even laptops from other OEMs that have NVME drives. However, I've only tested this on my Dell XPS 15 (9560) with the OEM Windows installation from the Signature Edition model.
Switching from RAID to AHCI is significantly simpler than switching from AHCI to RAID. All that's needed is a successful boot to Safe Mode.
- To set the default boot mode to Safe Mode, use
msconfig.exeor open an admin cmd/PowerShell window and run:
This file contains hidden or 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 https://forum.nim-lang.org/t/1188#7366 by Jehan | |
| # most of the time only the dereference operator is needed, import it like this: | |
| # from ptrmath import `[]` | |
| template `+`*[T](p: ptr T, off: int): ptr T = | |
| cast[ptr type(p[])](cast[ByteAddress](p) +% off * sizeof(p[])) | |
| template `+=`*[T](p: ptr T, off: int) = | |
| p = p + off |
This file contains hidden or 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.Diagnostics; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Text; | |
| using System.Threading; | |
| namespace HighResolutionTimer | |
| { |
This file contains hidden or 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
| //http://help.adobe.com/en_US/flash/cs/extend/index.html | |
| var outputScaleFactor = 1; | |
| var libraryFolderName = "Export"; | |
| var shouldExportSubfolderNames = true; | |
| main(); | |
| function main() |
This file contains hidden or 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
| 下述密码均摘自互联网 | |
| 【字母表顺序】-数字 | |
| 加密的时候,经常要把A~Z这26个字母转换成数字,最常见的一种方法就是取字母表中的数字序号。A代表1,B代表2,C代表3... | |
| 字母 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z | |
| 数字 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
This file contains hidden or 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
| #! /bin/bash | |
| # Usage: | |
| # ./git-move.sh path/to/file/or/dir path/to/destination/repo | |
| echo "creating patch for path ${1}" | |
| git log --name-only --pretty="format:" --follow "${1}" \ | |
| | sort -u | \ | |
| xargs git log --pretty=email --patch-with-stat --reverse --full-index --binary -m --first-parent -- > "${2}/_patch_" \ | |
| && echo "moving to destination repo at ${2}" \ | |
| && cd "${2}" \ | |
| && echo "applying patch" \ |
This file contains hidden or 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; | |
| public class Sample : MonoBehaviour | |
| { | |
| private static readonly int hashAttack = Animator.StringToHash("Attack"); | |
| private static readonly int hashIdle = Animator.StringToHash("Idle"); | |
| [SerializeField] | |
| UnityEngine.UI.Text text; |
This file contains hidden or 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
| // A custom completely managed implementation of UnityEngine.Quaternion | |
| // Base is decompiled UnityEngine.Quaternion | |
| // Doesn't implement methods marked Obsolete | |
| // Does implicit coversions to and from UnityEngine.Quaternion | |
| // Uses code from: | |
| // https://raw.githubusercontent.com/mono/opentk/master/Source/OpenTK/Math/Quaternion.cs | |
| // http://answers.unity3d.com/questions/467614/what-is-the-source-code-of-quaternionlookrotation.html | |
| // http://stackoverflow.com/questions/12088610/conversion-between-euler-quaternion-like-in-unity3d-engine | |
| // http://stackoverflow.com/questions/11492299/quaternion-to-euler-angles-algorithm-how-to-convert-to-y-up-and-between-ha |