Skip to content

Instantly share code, notes, and snippets.

View inkydragon's full-sized avatar

inky inkydragon

View GitHub Profile
@Yanrishatum
Yanrishatum / hlc.md
Last active April 8, 2023 15:50
How to compile HL/C

How to compile HL/C

Prepwork/terms

Because I have no trust in people.

  • <hashlink> points to your installation of Hashlink, e.g. folder in which hl.exe (or Unix executable) is, alongside with library binaries (.hdll files), and include folder.
  • <src> points to the folder containing generated HL/C sources. One that contains hlc.json file.
  • <app> refers to your output executable name, including extension.
  • <main> refers to your entry-point file name, including extension (see below).
  • I provide example of doing it on Windows via MSVC cl.exe, but Unix should be more or less same with replacement of argument flags and compiler.
  • I expect that you DO have a compiler installed and can call cl.exe or other compiler from command-line.
@amroamroamro
amroamroamro / README.md
Last active July 25, 2020 09:31
MEX config files for Microsoft Visual Studio 2017

XML configuration files for compiling MATLAB MEX-files using VS2017. Tested on Windows 10 64-bit with MATLAB R2016b and Visual Studio 2017 (Enterprise Edition), but it should also work with the Community Edition.

  1. First copy the files to MATLABROOT\bin\win64\mexopts (this might trigger a UAC prompt).
  2. Next run mex -setup and mex -setup C++ in MATLAB, and select VS2017 compilers.
  3. Finally test the new settings with a sample MEX-file:
&gt;&gt; mex -v -largeArrayDims test.cpp
@wh1t3p1g
wh1t3p1g / ctf古典密码集合
Last active March 26, 2024 05:51
古典密码集合
下述密码均摘自互联网
【字母表顺序】-数字 
  加密的时候,经常要把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 
title description date categories slug
QQ协议分析
QQ协议分析
2014-04-16
protocol
qq-protocol

一. 文字聊天协议族(TCPF, Text Chatting Protocol Family)

@ugovaretto
ugovaretto / win-gettimeofday.c
Last active March 17, 2024 00:30
gettimeofday implementaiton for windows
/*
* Author: Ugo Varetto - ugovaretto@gmail.com
* This code is distributed under the terms of the Apache Software License version 2.0
* https://opensource.org/licenses/Apache-2.0
*/
#include < time.h >
#include < windows.h >
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)