Skip to content

Instantly share code, notes, and snippets.

View anxgang's full-sized avatar
🍺
Drunk

anxgang anxgang

🍺
Drunk
  • Taiwan, Kaohsiung
View GitHub Profile
@anxgang
anxgang / agnoster.zsh-theme
Last active July 20, 2017 18:31
~/.oh-my-zsh/themes/agnoster.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@anxgang
anxgang / Licence_badge.md
Last active November 17, 2017 01:00
Licence_badge

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.
  • 🇫🇷 Cette liste en français
@anxgang
anxgang / vscode_2021.2.23.json
Last active January 23, 2022 07:55
Vscode User Setting
{
"workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "file-icons",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"editor.fontSize": 13,
"terminal.external.osxExec": "iTerm.app",
"window.zoomLevel": -1,
"editor.snippetSuggestions": "top",
@anxgang
anxgang / erb.json
Created November 29, 2018 13:49
vscode user setting
{
"<% %>":{
"prefix": "p-",
"body": "<% $1 %>"
},
"<%= %>": {
"prefix": "p=",
"body": "<%= $1 %>"
},
"<!--<% if false %> ... <% end%>-->": {
@anxgang
anxgang / powerlevel9k.zsh-theme
Created November 29, 2018 15:51
~/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2 et fenc=utf-8
################################################################
# powerlevel9k Theme
# https://github.com/bhilburn/powerlevel9k
#
# This theme was inspired by agnoster's Theme:
# https://gist.github.com/3712874
################################################################
################################################################
alias code="/mnt/c/Windows/System32/cmd.exe /C code"
@anxgang
anxgang / application.js
Created January 3, 2019 07:54
Autoload Vue Components
// ::Autoload Components::
const req = require.context('../components/', true, /\.(js|vue)$/i);
req.keys().map(key => {
const name = key.match(/\w+/)[0];
return Vue.component(name, req(key).default);
});
@anxgang
anxgang / KMS Server
Last active April 17, 2023 05:26
建 KMS Server 及 啟用方式
[Server端] 使用 Docker 建立 kms 驗證服務
$ docker run -itd -p 1688:1688 --name kms luodaoyi/kms-server
# 開機啟動 可補上
$ docker update --restart unless-stopped kms
[Client端] 建立 bat 執行檔驗證
xxx.bat
------------------------------
@anxgang
anxgang / octopress.js
Created October 14, 2019 09:26
cdn-theme.logdown.io
function getNav() {
var mainNav = $('ul.main-navigation, ul[role=main-navigation]').before('<fieldset class="mobile-nav">')
var mobileNav = $('fieldset.mobile-nav').append('<select>');
mobileNav.find('select').append('<option value="">Navigate&hellip;</option>');
var addOption = function(i, option) {
mobileNav.find('select').append('<option value="' + this.href + '">&raquo; ' + $(this).text() + '</option>');
}
mainNav.find('a').each(addOption);
$('ul.subscription a').each(addOption);
mobileNav.find('select').bind('change', function(event) {
@anxgang
anxgang / 1_frontend_setup_on_win.md
Last active May 16, 2021 04:21
前端環境安裝Win