Skip to content

Instantly share code, notes, and snippets.

@githubhjs
githubhjs / _template.ott
Created October 19, 2023 02:06 — forked from rossant/_template.ott
Convert from Markdown to OpenOffice for Linux Magazine
@githubhjs
githubhjs / twinapps_required_apps.xml
Last active October 19, 2023 09:46 — forked from shakalaca/twinapps_required_apps.xml
給 ZenUI 4.0 之後 (including Asus Rog Phone 3) 應用分身使用的 app (including 野球魂/プロスピA) 支援設定檔
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="twinapps_required_apps">
<item>com.android.vending</item>
<item>com.google.android.gms</item>
<item>jp.naver.line.android|Line: Free Calls &amp; Messages</item>
<item>com.facebook.katana|Facebook</item>
<item>com.facebook.orca|Messenger - Text and Video Chat for Free</item>
<item>com.tencent.mm|WeChat</item>
<item>com.whatsapp|WhatsApp Messenger</item>
@yuchingtw
yuchingtw / nycu-oauth-document.md
Last active October 24, 2022 07:17
陽明交通大學 OAuth 服務 - 開發者說明文件

陽明交通大學 OAuth 服務 - 開發者說明文件

這裡會介紹如何透過陽明交通大學 OAuth 服務獲取使用者資訊。本平台是依據 OAuth 2.0 (RFC6749) 的標準開發,目前僅開放 Authorization Code 方式來認證。

開放欄位

  • Email
  • 內容:Email, 帳號名稱
@shakalaca
shakalaca / twinapps_required_apps.xml
Created November 11, 2019 07:31
給 ZenUI 4.0 之後應用分身使用的 app 支援設定檔
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="twinapps_required_apps">
<item>com.android.vending</item>
<item>com.google.android.gms</item>
<item>jp.naver.line.android|Line: Free Calls &amp; Messages</item>
<item>com.facebook.katana|Facebook</item>
<item>com.facebook.orca|Messenger - Text and Video Chat for Free</item>
<item>com.tencent.mm|WeChat</item>
<item>com.whatsapp|WhatsApp Messenger</item>
@chick
chick / SortIndexAndTake.scala
Created October 19, 2017 05:31
Example of a way of sorting a vector of FixedPoint values, returning the array indices of first N lowest values
package hardwaresort
import chisel3._
import chisel3.experimental.FixedPoint
import chisel3.internal.firrtl.KnownBinaryPoint
import chisel3.iotesters.PeekPokeTester
import chisel3.util.log2Ceil
//scalastyle:off magic.number
/**
@fkfk
fkfk / ZE554KL_TwinAppsHack.ja.md
Created September 28, 2017 02:31
Zenfone4(ZE554KL) ツインアプリに任意のアプリを追加する

Zenfone4(ZE554KL) ツインアプリに任意のアプリを追加する

0. 情報元

[ZenFone] Add new apps to Twin Apps

1. 前準備

  • adbコマンドを使用できるようにする
@RootKiller
RootKiller / gitk
Created August 14, 2017 14:33
gitk dark theme
set mainfont {{Open Sans} 10}
set textfont {Consolas 9}
set uifont {Tahoma 9 bold}
set tabstop 8
set findmergefiles 0
set maxgraphpct 50
set maxwidth 16
set cmitmode patch
set wrapcomment none
set autoselect 1
@stackia
stackia / giveaway_su_captcha_helper.user.js
Last active March 20, 2019 06:18
giveaway.su 验证码辅助输入脚本
// ==UserScript==
// @name giveaway.su 验证码输入辅助
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 自动识别验证码+验证码输入键盘,必须安装 Liana 字体方可正常使用
// @author Stackia
// @require https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// @match https://giveaway.su/giveaway/view/*
// @updateURL https://gist.githubusercontent.com/stackia/5e6fc0a3f1196042c1075109dd149825/raw/giveaway_su_captcha_helper.user.js
// @downloadURL https://gist.githubusercontent.com/stackia/5e6fc0a3f1196042c1075109dd149825/raw/giveaway_su_captcha_helper.user.js
@rossant
rossant / _template.ott
Last active March 25, 2024 12:03
Convert from Markdown to OpenOffice for Linux Magazine
@ctechols
ctechols / compinit.zsh
Last active May 8, 2025 03:56
Speed up zsh compinit by only checking cache once a day.
# On slow systems, checking the cached .zcompdump file to see if it must be
# regenerated adds a noticable delay to zsh startup. This little hack restricts
# it to once a day. It should be pasted into your own completion file.
#
# The globbing is a little complicated here:
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct.
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error)
# - '.' matches "regular files"
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours.
autoload -Uz compinit