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
| static class NativeMethods | |
| { | |
| [DllImport("user32.dll")] | |
| [return: MarshalAs(UnmanagedType.Bool)] | |
| public static extern bool PeekMessage( | |
| [In] ref MSG lpMsg, | |
| IntPtr hwnd, | |
| uint wMsgFilterMin, | |
| uint wMsgFilterMax, | |
| uint wRemoveMsg); |
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
| // BY RyuaNerin | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.InteropServices; | |
| using System.Threading; | |
| public sealed class ShellHelper | |
| { | |
| private static readonly IntPtr CustomParam = new IntPtr(0x7A8E); |
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
| // By RyuaNerin | |
| using System; | |
| using System.Runtime.InteropServices; | |
| using System.Threading; | |
| using System.Windows.Forms; | |
| public sealed class InstanceHelper : IDisposable | |
| { | |
| private const uint CustomMsg = 0x7A8F; |
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
| [DllImport("gdi32.dll")] | |
| [return: MarshalAs(UnmanagedType.Bool)] | |
| internal static extern bool BitBlt(IntPtr hdc, int nX, int nY, int nW, int nH, IntPtr hSrc, int nXSrc, int nYSrc, uint dwRop); | |
| public static bool GetImageFromControl(Control control, out Image image) | |
| { | |
| image = new Bitmap(control.ClientRectangle.Width, control.ClientRectangle.Height); | |
| try | |
| { |
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
| // RyuaNerin | |
| // 2013-03-08 | |
| // 2016-02-18 | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Text; | |
| namespace RyuaNerin | |
| { |
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
| // RyuaNerin | |
| // 2015-06-08 | |
| using System; | |
| namespace nyancat | |
| { | |
| static class Program | |
| { | |
| static byte[][] data = |
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
| // RyuaNerin | |
| // 2016-02-18 | |
| using System; | |
| using System.Text; | |
| namespace RyuaNerin | |
| { | |
| public class EngHanConverter | |
| { |
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
| // RyuaNerin | |
| /* Usage | |
| using ํด์ ์ฌ์ฉํ๋ฉด ์์์ ํ ๋น/ํด์ ๋ฅผ ํด์ค๋ค | |
| Reallocate ํด์ ์ฌํ ๋น ๊ฐ๋ฅ | |
| IntPtr ์ธ์ ์์น์ ๋์ ์ฌ์ฉ๊ฐ๋ฅํจ. | |
| using (var mem = new UnmanagedMemory(4)) | |
| { | |
| var toMem = BitConverter.BitConverter.GetBytes(0xF5769972); |
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
| var myid = TwitterService.currentUser.screen_name; | |
| var rtn = {}; | |
| var rtc = {}; | |
| TwitterService.addEventListener('preFilterProcessTimelineStatus', function(status) | |
| { | |
| if (status.user.screen_name == myid) | |
| return false; | |
| if (!status.retweeted) |