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
import unittest | |
from lexer import parse | |
from builder import build | |
from machine import execute | |
from tok import Token, TokenType | |
import node | |
class LexerTest(unittest.TestCase): | |
def test_integer(self): | |
self.assertEqual(parse('1'), [Token('1', TokenType.INTEGER)]) |
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 struct 글자 | |
{ | |
/// <summary> | |
/// 한글여부(H, NH) | |
/// </summary> | |
public string 한글인가; | |
/// <summary> | |
/// 분석 한글 | |
/// </summary> | |
public char 원래글자; |
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.Generic; | |
namespace struct_reference | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Point p1 = new Point(10, 10); |
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.Runtime.InteropServices; | |
namespace AssemblySharp | |
{ | |
class Program | |
{ | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern IntPtr VirtualAlloc(IntPtr lpAddress, uint dwSize, AllocationType flAllocationType, MemoryProtection flProtect); |
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.Linq.Expressions; | |
using System.Runtime.InteropServices; | |
namespace AssemblySharp | |
{ | |
public static class Program | |
{ | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern IntPtr VirtualAlloc(IntPtr lpAddress, uint dwSize, AllocationType flAllocationType, MemoryProtection flProtect); |
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 Program | |
{ | |
static async Task Main(string[] args) | |
{ | |
var t = new AsyncTest(); | |
await t.DoTest(); | |
} | |
} | |
class AsyncTest |
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
Line line = new Line() | |
{ | |
Stroke = new SolidColorBrush(Colors.Blue), | |
StrokeThickness = 3, | |
X1 = 0, | |
X2 = 300, | |
Y1 = 0, | |
Y2 = 200 | |
}; |
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
private void AntiReflector(string path) | |
{ | |
FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Write); | |
stream.Seek(0xf4, SeekOrigin.Begin); | |
stream.WriteByte(11); | |
stream.Flush(); | |
stream.Close(); | |
MessageBox.Show("적용 완료!", "Anti-Reflector", MessageBoxButtons.OK, MessageBoxIcon.Information); | |
} | |
private void AntiAntiReflector(string path) |
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 fibonacci_test | |
{ | |
class Program | |
{ | |
static int Fib(int n) | |
{ | |
if (n <= 1) return 1; | |
return Fib(n - 2) + Fib(n - 1); |
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.Linq; | |
using System.IO; | |
namespace Streem | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |