Skip to content

Instantly share code, notes, and snippets.

View giiska's full-sized avatar
🌴
On vacation

Null giiska

🌴
On vacation
  • Godada
View GitHub Profile
@giiska
giiska / 1.js
Created November 11, 2021 08:06
腾讯文档表格强制显示排序按钮
// ==UserScript==
// @name qq dcos sheet show sort button
// @description Show sort button for sheet on docs.qq.com
// @name:zh-CN 腾讯文档表格强制显示排序按钮
// @description:zh-CN 腾讯文档表格强制显示排序按钮
// @author Xiaojianfeng
// @license MIT
// @icon https://pub.idqqimg.com/pc/misc/files/20200904/2eb030216d9362bbc6c0df045857b718.png
@giiska
giiska / 1.js
Created June 22, 2019 03:37
顶部显示知乎专栏文章日期
// ==UserScript==
// @name 顶部显示知乎专栏文章日期
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author zoffy zhang, bammoo
// @match https://zhuanlan.zhihu.com/*
// @grant none
// ==/UserScript==
@giiska
giiska / .htaccess
Created December 1, 2015 01:14 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@giiska
giiska / get_title_and_url.applescript
Created November 24, 2015 02:43 — forked from vitorgalvao/Get Title and URL.applescript
Applescript to get frontmost tab’s url and title of various browsers.
# Keep in mind that when asking for a `return` after another, only the first one will be output.
# This example is meant as a simple starting point, to show how to get the information in the simplest available way.
# Google Chrome
tell application "Google Chrome" to return URL of active tab of front window
tell application "Google Chrome" to return title of active tab of front window
# Google Chrome Canary
tell application "Google Chrome Canary" to return URL of active tab of front window
tell application "Google Chrome Canary" to return title of active tab of front window
# Chromium
-- This script includes examples for using AppleScript to perform several
-- useful tasks with Evernote.
-- Each section illustrates a chunk of Evernote's AppleScript interface,
-- and each section also cleans up after itself.
-- Please refer to the Evernote application's scripting dictionary for
@giiska
giiska / README.md
Created November 17, 2015 11:59 — forked from ngryman/README.md
intellij javascript live templates

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
@giiska
giiska / 0.js
Created November 10, 2015 10:22
Sequelize order findAll result by giving `where in` id array
// ids is array
var idsCopy = clone(ids);
idsCopy.unshift('FIELD', Sequelize.col('id'));
db.table.findAll({
where: { id: ids },
order: [[Sequelize.fn.apply(this, idsCopy) ]]
}).then(function(users) {
})
@giiska
giiska / scopes.txt
Created November 9, 2015 01:42 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
| 名称 | Unicode | 符号 |
| ---- | ------- | ---- |
| 间隔号 | 00B7\U+FF0E | ·\. |
| 连接号 | 2013 | – |
| 破折号 | 2014 | —— |
| 引号 | 2018\2019 | ‘’ |
| 引号 | 201C\201D | “” |
| 省略号 | 2026 | …… |
| 顿号 | 3001 | 、 |
| 句号 | 3002 | 。 |
@giiska
giiska / Unicode中文和特殊字符的编码范围
Created October 15, 2015 05:34 — forked from shingchi/Unicode中文和特殊字符的编码范围
Unicode中文和特殊字符的编码范围
根据Unicode5.0整理如下:
1)标准CJK文字
http://www.unicode.org/Public/UNIDATA/Unihan.html
2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF
http://www.unicode.org/charts/PDF/UFF00.pdf
3)CJK部首补充:2E80-2EFF
http://www.unicode.org/charts/PDF/U2E80.pdf