adb shell service call alarm 2 i64 {current unix epoch * 1000}
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
# mainly generated by GPT-4 | |
trigger: none | |
schedules: | |
- cron: "0 0 * * *" # This will trigger the pipeline every day at midnight | |
displayName: Daily midnight sync | |
branches: | |
include: | |
- main |
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; | |
namespace MersenneTwister | |
{ | |
// Implementation porting from C version of mt19937-64 | |
// coded by Makoto Matsumoto and Takuji Nishimura | |
// | |
// Copyright (C) 2004, Makoto Matsumoto and Takuji Nishimura, | |
// All rights reserved. | |
// 2023 fixed by UlyssesWu |
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 static string FormatAsHex(ReadOnlySpan<byte> data, int lineWidth = 16, int byteWidth = 1) | |
{ | |
byte ReplaceControlCharacterWithDot(byte character) => character < 31 || character >= 127 ? (byte)46 /* dot */ : character; | |
byte[] ReplaceControlCharactersWithDots(byte[] characters) => characters.Select(ReplaceControlCharacterWithDot).ToArray(); | |
IEnumerable<BigInteger> Chunk(IReadOnlyList<byte> source, int size) => source.Select((item, index) => source.Skip(size * index).Take(size).ToArray()).TakeWhile(bucket => bucket.Any()).Select(e => new BigInteger(e)); | |
var result = new StringBuilder(); | |
for(var pos = 0; pos < data.Length;) | |
{ | |
var line = data.Slice(pos, Math.Min(lineWidth * byteWidth, data.Length - pos)).ToArray(); |
One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:
- Diagnostic MSBuild Output Enabled(Instructions)
- Java Decompiler(http://jd.benow.ca/)
- .NET Decompiler(https://www.jetbrains.com/decompiler/)
- Binding SDK Documentation
One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:
- Diagnostic MSBuild Output Enabled(Instructions)
- Java Decompiler(http://jd.benow.ca/)
- .NET Decompiler(https://www.jetbrains.com/decompiler/)
- Binding SDK Documentation
Privacy Policy of NightCorer
I, as UlyssesWu (wdwxy12345@gmail.com), do not collect any data from NightCorer users. NightCorer is a complete offline software.
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
//https://twitter.com/minionsart/status/986374665399685121 | |
Shader "Unlit/SpecialFX/Liquid" | |
{ | |
Properties | |
{ | |
_Tint ("Tint", Color) = (1,1,1,1) | |
_MainTex ("Texture", 2D) = "white" {} | |
_FillAmount ("Fill Amount", Range(-10,10)) = 0.0 | |
[HideInInspector] _WobbleX ("WobbleX", Range(-1,1)) = 0.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
class Foo { | |
var val; | |
property p { | |
getter { | |
return val; | |
} | |
setter(v) { | |
this.val = v; | |
} |
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
// A quick and dirty DLL injector | |
// This method relies on static linkage and the fact that kernel32 doesn't move | |
// Compile with the same bitness as the target and the dll. | |
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <Psapi.h> | |
#include <stdio.h> | |
int GetPid(char *modName) | |
{ |
NewerOlder