Skip to content

Instantly share code, notes, and snippets.

Setup

  1. 在GitHub網站上點擊repository的Fork按鈕

  2. 在電腦上Clone你建立的fork

    • git clone https://github.com/user/repo.git
    • <或>
    • 在你的fork點擊Clone in Desktop按鈕
/**
* Specifications
* http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets
*/
(function () {
"use strict";
/** A non-stupid alternative to Array.prototype.indexOf */
function indexOfIdentical(keys, key) {
function chromeStorageLocal() {
this.storageArea = chrome.storage.local;
this.async = true;
}
chromeStorageLocal.prototype.get = function(key, callback) {
this.storageArea.get(key, function(items) {
if (chrome.runtime.lastError) {
callback(chrome.runtime.lastError);
} else {
callback(null, items[key]);
@stu43005
stu43005 / embed_script.js
Last active August 5, 2022 10:12
Pixiv動態圖錄製,完成後在原圖下方會出現gif圖
(function(file){
var script=document.createElement('script');
script.type='text/javascript';
script.src=file;
document.body.appendChild(script);
})("https://rawgit.com/stu43005/49ff25325b357053b8e9/raw/pixiv_gif_encoder.js");
/*
網址列(或書籤)用:
javascript:(function(file){var script=document.createElement('script');script.type='text/javascript';script.src=file;document.body.appendChild(script)})("https://rawgit.com/stu43005/49ff25325b357053b8e9/raw/pixiv_gif_encoder.js")
[Adblock Plus 2.0]
! Title: Shiaupiau Filter List
! Version: 202205271836
! Expires: 10 days
! White List
@@||192.168.1.1
@@||210.240.226.40
@@||app.famitsu.com
@@||cf.dropboxstatic.com
setInterval(function() {
if (!exploring) {
slaychicken();
furnace('gold chicken nugget', 10);
for (var i = 0; i < 10; i++) {
trade('wheat');
if (chickenspop < ironchickenspop && chickenspop < goldchickenspop) breed('chicken');
else if (ironchickenspop < chickenspop && ironchickenspop < goldchickenspop) breed('iron chicken');
else if (goldchickenspop < chickenspop && goldchickenspop < ironchickenspop) breed('gold chicken');
}
@stu43005
stu43005 / .gitignore
Created October 22, 2014 14:36
Android Studio .gitignore
/.idea/workspace.xml
/.idea/libraries/
.DS_Store
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
@stu43005
stu43005 / 1.php
Created December 5, 2014 17:15
エンジニアでも恋がしたい〜転職初日にぶつかった女の子が同僚だった件〜|paizaオンラインハッカソン4 Lite https://paiza.jp/poh/enkoi
<?php
$N = intval(fgets(STDIN));
$sum = 0;
for ($i=0;$i<$N;$i++) {
$sum += intval(fgets(STDIN));
}
echo $sum;
?>
゚ω゚ノ= /`m´)ノ ~┻━┻ //*´∇`*/ ['_'];// ゚ω゚ノ = undefined
o=(゚ー゚) =_=3;// o = 3 _ = 3 ゚ー゚ = 3
c=(゚Θ゚) =(゚ー゚)-(゚ー゚);// c = 0
// o^_^o = 3
(゚Д゚) =(゚Θ゚)= (o^_^o)/ (o^_^o);// ゚Θ゚ = 1
(゚Д゚)={
゚Θ゚: '_' ,
゚ω゚ノ : ((゚ω゚ノ==3) +'_') [゚Θ゚] ,// 'a'
゚ー゚ノ :(゚ω゚ノ+ '_')[o^_^o -(゚Θ゚)] ,// 'd'
゚Д゚ノ:((゚ー゚==3) +'_')[゚ー゚]// 'e'
@stu43005
stu43005 / mind's eye.md
Created January 21, 2015 18:35
心眼
  • Plurk: ([0-9a-z]{6}) -> https://www.plurk.com/p/$0
  • imgur: ([0-9a-zA-Z]{7}) -> https://imgur.com/$0
  • E-H: ([0-9]{6})\/([0-9a-f]{10}) -> http://g.e-hentai.org/g/$0/$1/
  • mega: #!([0-9a-zA-Z]{8})!([0-9a-zA-Z_-]{43}) -> https://mega.co.nz/#!$0!$1
  • mega folder: #F!([0-9a-zA-Z]{8})!([0-9a-zA-Z_-]{22}) -> https://mega.co.nz/#F!$0!$1
  • goo.gl: ([0-9a-zA-Z]{4,6}) -> http://goo.gl/$0