Skip to content

Instantly share code, notes, and snippets.

LD_PRELOAD=/usr/lib/libclang.so ./bindgen -I/usr/lib/clang/3.5.0/include -Icef3 cef3/include/capi/cef_base_capi.h -match cef_base_capi -lcef3
// ==UserScript==
// @name auto fill form
// @namespace crabtw@gmail.com
// @description auto fill form
// @include https://portal.yzu.edu.tw/WebQuestionnaire/Questionnaire.aspx*
// ==/UserScript==
var iter = document.evaluate(
'//td/input[1]',
document,
#include <stdio.h>
int num = 0;
int times = 0;
void check(int list[]) {
int sum = 0;
int product = 1;
for(int i = 0; i < 9; ++i) {
// ==UserScript==
// @name calc-grade
// @namespace crabtw@gmail.com
// @description calculate average grades
// @include https://portal.yzu.edu.tw/Personal/Student/student_learn2.asp
// ==/UserScript==
var table = document.getElementsByClassName('table_1')[0].firstChild;
var iter = document.evaluate(
'tr[position() > 4 and position() != last()]',
module Main where
import Codec.Text.IConv
import Control.Monad
import Data.Bits
import Data.ByteString.Lazy.Char8 (ByteString)
import qualified Data.ByteString.Lazy.Char8 as B
import Data.Time
import Network.Curl
import System.Console.GetOpt
min-credit 142
-- 必修
type "必修" * 44,
-- 通識
id "GN", id "LS", id "LE", id "GS",
(id "GN" | id "LS" | id "LE" | id "GS") * 2,
-- 三選一
id "CS359" | id "CS401" | id "CS334",
id "CS377" | id "CS352" | id "CS354",
id "CS378" | id "CS320" | id "CS338",
// ==UserScript==
// @name portal corse list
// @namespace portal
// @include https://portal.yzu.edu.tw/VC2/Student/classLeft_S.aspx
// ==/UserScript==
var sw = GM_getValue("switch", null) || "on";
if(sw == "on") {
document.body.innerHTML = document.body.innerHTML.replace(
--- newsyslog.c.orig 2010-08-14 03:18:48.154320748 +0800
+++ newsyslog.c 2010-08-14 03:48:46.760806262 +0800
@@ -106,6 +106,7 @@
/* process when trimming this file. */
#define CE_CREATE 0x0100 /* Create the log file if it does not exist. */
#define CE_NODUMP 0x0200 /* Set 'nodump' on newly created log file. */
+#define CE_ACTUALSIZE 0x0400 /* Use actual file size */
#define MIN_PID 5 /* Don't touch pids lower than this */
#define MAX_PID 99999 /* was lower, see /usr/include/sys/proc.h */
diff --git a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
index 9f493b9..48551db 100644
--- a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
+++ b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
@@ -821,11 +821,11 @@ static bool DisassembleBrMiscFrm(MCInst &MI, unsigned Opcode, uint32_t insn,
OpIdx = 0;
// BX_RET has only two predicate operands, do an early return.
- if (Opcode == ARM::BX_RET)
+ if (Opcode == ARM::BX_RET || Opcode == ARM::MOVPCLR)
#include <llvm/Support/CommandLine.h>
int main(int argc, char **argv) {
llvm::cl::ParseCommandLineOptions(argc, argv, "123");
return 0;
}