idea.sh
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
| package store | |
| import ( | |
| "math" | |
| "gorm.io/gorm" | |
| ) | |
| // Param 分页参数 | |
| type Param struct { |
| // ==UserScript== | |
| // @name 电影天堂去广告 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://www.dygod.net/* | |
| // @match *://www.javbus.com/* | |
| // @grant none | |
| // ==/UserScript== |
| package main | |
| import "fmt" | |
| func quicksort(nums []int) { | |
| if nums == nil || len(nums) <= 1 { | |
| return | |
| } | |
| quicksort2(nums, 0, len(nums) - 1) |
| package main | |
| import "fmt" | |
| func quicksort(nums []int) { | |
| if nums == nil || len(nums) <= 1 { | |
| return | |
| } | |
| quicksort2(nums, 0, len(nums) - 1) |
| Template = {Text | Action} . | |
| Action = CommentAction | PipelineAction | IfAction | RangeAction | TemplateAction | BlockAction | WithAction . | |
| CommentAction = LD "/*" Text "*/" RD . | |
| PipelineAction = LD ( Pipeline | VarDeclarePipeline | VarAssignPipeline ) RD . | |
| IfAction = LD "if" Pipeline RD Template [ LD "else" ["if" Pipeline] RD Template ] End . | |
| RangeAction = LD "range" ( Pipeline | VarDeclarePipeline ) RD Template [ LD "else" RD Template] End . | |
| TemplateAction = LD "template" Name [Pipeline] RD . | |
| BlockAction = LD "block" Name [Pipeline] RD . | |
| WithAction = LD "with" Pipeline RD Template [ LD "else" RD Template] End . | |
| Pipeline = Argument { "|" Argument } | MethodCall | FuncCall { Argument } . |
| import requests | |
| import argparse | |
| import time | |
| import re | |
| def main(): | |
| parser = argparse.ArgumentParser( | |
| description="Print per second stats from expvars") | |
| parser.add_argument("--url", default="http://localhost:6060", |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| labels: | |
| app: mysql-operator | |
| name: mysql | |
| namespace: default | |
| data: | |
| my.cnf: | | |
| [mysqld] |
| /** | |
| * interval structure { | |
| * name: 'syncStatus' // 需要管理的方法,必须返回boolean值 | |
| * time: 5000 必须填 | |
| * autoStart: true // 组件加载时是否自动启动 默认 false | |
| * onFinish: 'loadBigIps' // 结束时要执行的动作,可以不设置 | |
| * } | |
| */ | |
| export default { |
idea.sh
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx