Skip to content

Instantly share code, notes, and snippets.

View MewX's full-sized avatar
🙀
Backing to the office!

MewX MewX

🙀
Backing to the office!
View GitHub Profile
@MewX
MewX / dailypush.sh
Created May 13, 2016 07:05
Daily push script for Coding.net coin, but it's useless now.
# add key
cd /root/documents/coding/test
eval `ssh-agent -s`
ssh-add ../rsa.key
# master push
git checkout master
git pull
#date > date.txt
#git add --all
@MewX
MewX / demo.cpp
Created April 10, 2016 16:42
Animation Images on top of windows
#include <windows.h>
#include <gdiplus.h>
#include <atlbase.h>
#pragma comment(lib,"gdiplus.lib")
/* GDI+ startup token */
ULONG_PTR gdiplusStartupToken;
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
@MewX
MewX / Erya2015.py
Created April 6, 2016 07:39
之前用于“安小理”的服务端代码 =。= 因为新浪云一天扣我34个云豆,我决定关闭服务!
# -*- coding:utf-8 -*-
import MySQLdb
import sae.const
import urllib2,httplib,urllib,sys
from cgi import parse_qs, escape
html_front = '''
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@MewX
MewX / rtl8723be-linux-driver.md
Created April 5, 2016 15:17
Linux install rtl8723be wireless driver
package com.example.speccall.lua;
import org.keplerproject.luajava.LuaObject;
import org.keplerproject.luajava.LuaState;
import org.keplerproject.luajava.LuaStateFactory;
import android.content.Context;
import android.telephony.TelephonyManager;
import android.util.Log;
@MewX
MewX / 2samples.md
Last active January 5, 2016 15:54
Lua on Android
  1. 创建android项目,在asset资源文件夹下创建一个lua文件夹
  2. 新建一个lua文件,放到 asset\lua目录下,如asset\lua\hello.lua。

file1.lua

一个简单的函数,计算两个数相加

function plus(a, b) 
    return a + b;

end

@MewX
MewX / build_luajit_for_android-ndk-r10e_under_cygwin.md
Last active April 23, 2018 04:57
Build LuaJIT for android-ndk-r10e under Cygwin

Build LuaJIT for android-ndk-r10e under Cygwin

This post is to make libs for armeabi, armeabi-v7a, x86 and mips instruction sets.

But the official tutorial is not clear in Windows platform, and the version is too old. So I just write them down.

To begin with, you should have already installed Cygwin32, and change the path to your own path first!

And, a key point is too add TARGET_SYS=Linux when in Windows platform.