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
// ==UserScript== | |
// @name auto fill form | |
// @namespace [email protected] | |
// @description auto fill form | |
// @include https://portal.yzu.edu.tw/WebQuestionnaire/Questionnaire.aspx* | |
// ==/UserScript== | |
var iter = document.evaluate( | |
'//td/input[1]', | |
document, |
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 <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) { |
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
// ==UserScript== | |
// @name calc-grade | |
// @namespace [email protected] | |
// @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()]', |
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
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 |
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
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", |
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
// ==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( |
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
--- 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 */ |
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/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) |
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 <llvm/Support/CommandLine.h> | |
int main(int argc, char **argv) { | |
llvm::cl::ParseCommandLineOptions(argc, argv, "123"); | |
return 0; | |
} |
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
char** vectorToCharPtrs(vector<const char*> args) { | |
int size = args.size; | |
char **argv = new char*[size]; | |
for(int c = 0; c < size; ++c) { | |
argv[c] = args[c]; | |
} | |
return argv; | |
} |
OlderNewer