Skip to content

Instantly share code, notes, and snippets.

@wake
wake / obsidian-web-clipper.js
Created January 15, 2024 12:58 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@wake
wake / without-auth_e-book_tutorial_免登入電子書教學.md
Created October 31, 2023 06:16 — forked from aliyaliu368/without-auth_e-book_tutorial_免登入電子書教學.md
教學用電子書免登入破解教學 | 本腳本用於繞過台灣主要課本/習作出版社電子書的前端身份驗證,達成不需要教師帳號即可使用電子書。支援 翰林、南一、康軒 三大出版社 | 請勿將本腳本作為抄答案、侵權等惡意用途,使用本腳本者,請自行承擔所有後果與風險

Visits_Count

教學用電子書免登入破解教學

使用前請務必閱讀 免責聲明

免責聲明

請勿將本腳本作為抄答案、侵權等惡意用途,使用本腳本者,請自行承擔所有後果與風險。

簡介

@wake
wake / premint-checker-bookmarklet.css
Last active July 17, 2022 14:05
Premint Checker Bookmarklet
.col-lg-3.mb-4 {
width: 33%;
min-width: 33%;
}
.card {
flex-direction: row;
height: 100%;
overflow: hidden;
}
@wake
wake / woo-events.js
Created June 22, 2021 03:12 — forked from bagerathan/woo-events.js
Woocommerce Javascript events #woocommerce
//Woocommerce Checkout JS events
$( document.body ).trigger( 'init_checkout' );
$( document.body ).trigger( 'payment_method_selected' );
$( document.body ).trigger( 'update_checkout' );
$( document.body ).trigger( 'updated_checkout' );
$( document.body ).trigger( 'checkout_error' );
//Woocommerce cart page JS events
$( document.body ).trigger( 'wc_cart_emptied' );
$( document.body ).trigger( 'update_checkout' );
@wake
wake / Graphiql JWT Support.md
Last active April 10, 2019 07:29
Graphiql JWT Support

Graphiql JWT Support

This gist inspried by sasso's comment and gist.

Hot to use

Step 1

Edit index.html, add script after #graphiql element as below.

@wake
wake / sample
Last active January 18, 2019 06:50
CentOS init.d service script
#! /bin/sh
### BEGIN INIT INFO
# Provides: mattermost
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Mattermost Group Chat
# Description: Mattermost: An open-source Slack
### END INIT INFO
@wake
wake / api.js
Last active June 5, 2018 13:14
Swapub Mobile API wrapper
/**
*
* API access
*
*/
var api = (function () {
@wake
wake / curl-purestudio-result-empty.txt
Last active May 1, 2018 01:42
Curl Purestudio.com.tw Result
sh-3.2# curl --silent --verbose http://www.purestudio.com.tw/blog/product/20180323/ --resolve www.purestudio.com.tw:80:124.150.132.74 --insecure
* Added www.purestudio.com.tw:80:124.150.132.74 to DNS cache
* Hostname www.purestudio.com.tw was found in DNS cache
* Trying 124.150.132.74...
* TCP_NODELAY set
* Connected to www.purestudio.com.tw (124.150.132.74) port 80 (#0)
> GET /blog/product/20180323/ HTTP/1.1
> Host: www.purestudio.com.tw
> User-Agent: curl/7.54.0
> Accept: */*
<?php
use Symfony\Component\Form\FormRenderer;
$app->extend ('twig.runtimes', function ($array) {
$array[FormRenderer::class] = 'twig.form.renderer';
return $array;
});
{# Twig 樣板檔案 - 定義 block_name 為 buttons_start / buttons_end 的兩區塊樣板 #}
{# 按鈕開始區塊 #}
{% block _form_buttons_start_row -%}
<div class="form-group">
<div class="{{ block('form_label_class') }}"></div>
<div class="{{ block('form_group_class') }}">
{{- form_widget(form) -}}
{%- endblock _form_buttons_start_row %}