Skip to content

Instantly share code, notes, and snippets.

View amio's full-sized avatar
:octocat:

Amio Jin amio

:octocat:
View GitHub Profile
@amio
amio / README.md
Last active February 3, 2016 07:07
Web 跨平台默认字体配置
html {
  font-family: "-apple-system", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif
}

各平台下字体效果

  • 桌面端
  • OSX 10.11+ San Francisco
@amio
amio / todo.md
Created November 10, 2015 04:30
NewMac
  1. Dropbox
  2. Chrome
  3. Moom
  4. Alfred
  5. FishShell
  6. Dash
  7. CleanMyMac
@amio
amio / snippets.md
Last active August 29, 2015 14:27
ES6 Tricks

ES6 Tricks

整理一些用 ES6 书写会格外高效的代码,也是对 ES6 语法的练习。

Professional log

用法:

// 普通 log
log('UI updated.') // ==> 'UI updated.'
@amio
amio / README.md
Last active August 29, 2015 14:01
A simple router.

百姓一道题,粗糙的路由轮子

index.js 中测试代码:

router.add('/a/:id', fn1);
router.add('/a/b', fn2);

生成的路由结构为:

@amio
amio / ng-filter-ago.js
Created April 25, 2014 08:54
Angular filter for transforming a date to 'xxx days ago'
'use strict';
angular.module('Utils', [])
/**
* Transform a date to 'xxx days ago'
*/
.filter('ago', function () {
return function (input) {
@amio
amio / README.md
Last active August 29, 2015 13:57
Ocean for Gmail (userstyle)
@amio
amio / fmog.css
Last active December 22, 2015 21:38
Fork me on Github
/***** Fork me on Github *****/
#fork-me-on-github {
opacity : 0.8;
background-color : #A00;
color : #FFF;
display : block;
position : fixed;
z-index : 10;
right : -6em;
@amio
amio / README.md
Last active May 28, 2020 14:19
一些不太常用所以记不住但还挺有用的终端命令

一些不太常用所以记不住但还挺有用的终端命令

@amio
amio / jsjd.md
Last active December 16, 2015 10:09
Ctrip.FE JD (JavaScript)

资深前端工程师(JS方向)

(携程内最具野心和潜力的移动端项目,年薪25-40W,NB的话再高其实也可以谈啦)

要求:

  • 两年以上专职 JavaScript 开发经验;
  • 精通 JavaScript,熟练手写原生 JS 代码,精通各种前端调试工具;
  • 扎实的 CSS 基础;
@amio
amio / sshproxy.md
Last active October 22, 2018 20:32
SSH Through or Over Proxy

SSH Through or Over Proxy

In today's cruel networked world, we're too often hampered behind (evil) company proxies that restricts how we can use the internet while at work, at a customers' place or even in some cases while at home or at friends'.

Not only do proxies restrict what you can do, what protocols that are accepted, what sites you can visit and what TCP ports that are let through, it also allows your company or friend to log and supervise you.

Note that even when you use HTTPS through the proxy, the server name is exposed so a logging proxy will see what HTTPS servers you connect to.

I'll show you some easy steps that help you circumvent the boundaries of most proxy setups, and that also will bring you more freedom and prevent peeking eyes to investigate your browsing habits!