Skip to content

Instantly share code, notes, and snippets.

View legendmohe's full-sized avatar
🎯
Focusing

Xinyu He legendmohe

🎯
Focusing
View GitHub Profile
#!/usr/bin/env python
# encoding: utf-8
import os
import errno
import shutil
import random
def sepatate(base_path, min_number, max_number):
#!/usr/bin/env python
# encoding: utf-8
import random
import sys
class GameState:
NORMAL = 0
WIN = 1
#!/usr/bin/env python
# encoding: utf-8
from game1024 import *
import random
import sys
import math
POS_WEIGHT_TEMPLATE = [[8,4,2,1],
[4,1,1,1],
#SingleInstance Force
#Persistent
src_objects := []
src_indexs =
Gui, Add, Edit, r25 w350 vMyEdit -Wrap HScroll VScroll
return
#v::
#!/usr/bin/env python
# encoding: utf-8
import os
import sys
import errno
import urllib
import urllib2
import re
#!/usr/bin/env python
# encoding: utf-8
# Copyright 2014 Xinyu, He <legendmohe@foxmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#!/bin/sh
TARGET_PATH="./bin_output/"
SOURCE_BIN=$1
echo AP bin creator...
echo AP binary: $SOURCE_BIN
if [ ! -d "$TARGET_PATH" ]; then
mkdir $TARGET_PATH
#SingleInstance Force
#Persistent
Gui +LastFound
hWnd := WinExist()
DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
#!/usr/bin/env python
# encoding: utf-8
# Copyright 2014 Xinyu, He <legendmohe@foxmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
set nocompatible
set go=
" set guioptions+=b
colorscheme darkblue
set autoindent
set smartindent
set showmatch
set tabstop=4
set softtabstop=4