This is some superscript text.
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
# default.custom.yaml | |
# save it to: | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
patch: | |
schema_list: | |
- schema: luna_pinyin # 朙月拼音 | |
- schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
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
#NoEnv | |
SetBatchLines, -1 | |
Gui, Font, s16, Arial | |
Gui, Add, Edit, x10 y10 w450 h30 vPath gUpdate | |
Gui, Add, Button, x460 y10 w30 h30 gSelectFile, ... | |
Gui, Font, s12, Courier New | |
Gui, Add, Edit, x10 y50 w480 h340 vCode ReadOnly -Wrap, <Output> | |
Gui, Show, w496 h398, AutoHotkey Decompiler |
Put links inside codeblocks on GitHub:
<pre>
import { assign, map } from '<a href="https://www.npmjs.com/package/lodash" title="Lodash on npm">lodash</a>';
<a href="https://lodash.com/docs#assign" title="assign documentation">assign</a>({ 'a': 1 }, { 'b': 2 }, { 'c': 3 });
// → { 'a': 1, 'b': 2, 'c': 3 }
<a href="https://lodash.com/docs#map" title="map documentation">map</a>([1, 2, 3], function(n) { return n * 3; });
// → [3, 6, 9]
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
/* Center of Gravity Finder | |
This script will find the center of gravity (centroid) of all closed paths in the selection set. It was built for a specific purpose so does not have much error | |
handling. For example, if you get errors it may be the result of the selection set containing compound shapes or a self-intersecting polygon. | |
References for the math: | |
http://paulbourke.net/geometry/polygonmesh/ (Calculating the area and centroid of a polygon) | |
https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon | |
Save this file with a jsx extension and place in your Illustrator/Presets/en_US/Scripts folder. You can then access it from the File > Scripts menu |
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
object UserHandleUtils { | |
private fun createUserHandleWithUserID(userId: Int): UserHandle { | |
val parcel = Parcel.obtain() | |
// I bet that it won't change a lot | |
parcel.writeInt(userId) | |
val userHandle = UserHandle(parcel) | |
parcel.recycle() | |
return userHandle | |
} | |
} |
OlderNewer