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
const Tx = require('ethereumjs-tx'); | |
const Web3 = require('web3'); | |
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/')); | |
const contractAddr = 'CONTRACT_ADDRESS'; | |
const contractAbi = [/* CONTRACT_ABI_ARRAY */]; | |
const contractOwner = { | |
addr: 'CONTRACT_OWNER_ADDRESS', | |
key: 'CONTRACT_OWNER_PRIVATE_KEY' | |
}; |
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
const Tx = require('ethereumjs-tx'); | |
const Web3 = require('web3'); | |
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/')); | |
sendEther( | |
'SENDER_ADDRESS', | |
'SENDER_PRIVATE_KEY', | |
'RECEIVER_ADDRESS', | |
'AMOUNT_OF_ETHER' // 'all' for entire wallet | |
); |
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 RO_Seal_Auto.user.js | |
// @namespace YY | |
// @version 2.0 | |
// @description RO Seal, auto get code | |
// @author Y.Y. | |
// @include /https:\/\/rom\.gnjoy\.com\.tw\/.*/ | |
// @include /https://www.wegames.com.tw/site/login/ | |
// @exclude https://rom.gnjoy.com.tw/fblike/getgift | |
// @grant none |
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 RO_Seal | |
// @namespace YY | |
// @version 1.0 | |
// @description RO Seal | |
// @author Y.Y. | |
// @include /https:\/\/rom\.gnjoy\.com\.tw\/event_xmastree\/frienddecorate\?code=.+/ | |
// @include /https:\/\/rom\.gnjoy\.com\.tw\/event_xmastree\/friendlogin\?code=.+/ | |
// @match https://www.wegames.com.tw/site/login | |
// @grant none |
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
$.ajax({ | |
url: 'https://www.wegames.com.tw/Third/facebook', | |
type: 'post', | |
data: { | |
token_for_business: ((Math.random()*10e17).toString(16) + (Math.random()*10e17).toString(16)).substring(0,16), | |
name: Date.now().toString(16), | |
id: Math.random()*10e17, | |
YII_CSRF_TOKEN: $('input[name="YII_CSRF_TOKEN"]').val() | |
}, | |
success: function () { |
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 din.user.js | |
// @namespace yy.dinLunch | |
// @version 0.1 | |
// @description din ban don | |
// @author Y.Y. | |
// @match http://cxlsvr60/test_area/9003/90033/OrderSystem/dinbandon/LUNCH_HOME.ASP | |
// @grant none | |
// ==/UserScript== |
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
/** | |
* 行政院環境保護署 空氣品質監測資料 全年逐時資料 (http://taqm.epa.gov.tw/taqm/tw/YearlyDataDownload.aspx) 格式轉換 | |
* keywords: 空污,空氣,品質,空氣品質,監測,逐年,逐時,資料,行政院,環保署,環境保護署 | |
* | |
* 將原本以時間(小時)為欄,測項為列之資料轉換成 | |
* 以測項為欄,時間(小時)為列 | |
* | |
* Usage: $ node AirDataReformat.js < /PATH/TO/oriAirData.xml | |
*/ |
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 pkget crawler | |
// @namespace crawlPKGET | |
// @version 2.1 | |
// @description Pokemon is over there. | |
// @author Y.Y. | |
// @match https://pkget.com/* | |
// @include https://pkget.com/* | |
// @grant none | |
// ==/UserScript== |
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 poke5566 crawler | |
// @namespace crawl5566 | |
// @version 0.1 | |
// @description Pokemon is over there. | |
// @author Y.Y. | |
// @match https://poke5566.com/* | |
// @include https://poke5566.com/* | |
// @grant none | |
// ==/UserScript== |
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
window.NCNUCourseCrawler = (_ => { | |
const recperpage = 600; | |
const COURSE_NUM = 1376; | |
const PAGES = Math.ceil(COURSE_NUM / recperpage); | |
const YEAR = 1042; | |
let courseList = []; | |
function start() { | |
_getCourseList(); | |
courseList.forEach((val, i) => { |