Skip to content

Instantly share code, notes, and snippets.

View raejin's full-sized avatar
💭
🥺

Rae Liu raejin

💭
🥺
View GitHub Profile
@raejin
raejin / syntax.css
Created March 28, 2013 23:26
Syntax highlight theme in Tomorrow Night (https://github.com/chriskempson/tomorrow-theme) for Octopress code snippet plugin. Notice that this is a brute-force theme which does not rely on any framework. Use with caution.
.gist .gist-file .gist-data .line-numbers .line-number {
display: block;
clear: right; }
.highlight table td.code, html .gist .gist-file .gist-syntax .line-data table td.code {
width: 100%; }
.highlight .line-numbers, html .gist .gist-file .gist-data .lines .line-numbers {
text-align: right;
font-size: 13px;
@raejin
raejin / 1.json
Created August 13, 2019 17:27
iTerm2 profile
{
"Profiles": [
{
"Badge Text" : "SDE",
"Working Directory" : "\/Users\/rae_liu",
"Prompt Before Closing 2" : 1,
"Selected Text Color" : {
"Red Component" : 1,
"Color Space" : "Calibrated",
"Blue Component" : 1,
@raejin
raejin / dynamicImport.js
Last active October 26, 2018 02:26
metro
'use strict';
const host = 'http://localhost:8082'
const dynamicImport = require;
module.exports = function (moduleID, importPath) {
const head = document.getElementsByTagName('head')[0];
const promise = new Promise((resolve, reject) => {
const script = document.createElement('script');
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
@raejin
raejin / custom.css
Last active September 28, 2018 21:05
slack
code, pre, .c-mrkdwn__code, .c-mrkdwn__pre {
font-family: 'Inconsolata-dz' !important;
}
#msg_input, #msg_input+#primary_file_button {
border-color: rgba(160,160,162,.7)!important;
}
#msg_form #primary_file_button:not(:hover):not(.active) {
color: #A0A0A2!important;
@raejin
raejin / ajax-success-error-to-then.js
Created April 15, 2017 00:56
jscodeshift transform for making $.ajax call to adapt then callbacks
export default function transformer(file, api) {
const j = api.jscodeshift;
let isModified = false;
const codemod = j(file.source)
// find [$.ajax] looking code snippet
.find(j.MemberExpression)
@raejin
raejin / openvpn.md
Last active September 13, 2016 22:15
How to use OpenVPN to defeat Netflix

This simple solution costs around $0.10 dollars per hour. Only need to pay it when needed, very elegant and cost effective. It is mostly guaranteed that it'll work without worrying about the VPN being banned.

Requirement

  • Amazon EC2 t2.micro instance
  • OpenVpn host software image, community version (which supports up to 2 concurrent connections)
  • Tunnleblick

Guide

@raejin
raejin / yolyo_feedback.md
Last active December 20, 2015 03:19
background feedback

第一張

1

  • 天空背景我很喜歡,和我之前的想像非常相似。我覺得「Yolyo 要做什麼」的部份可以再做一些變化,我自己的三八想法是類似玩字體大小排版的變化。類似這樣(隨便用的):

6

  • 承接上面後段的想法,我希望每個頁面的標題風格統一。

第二張

<input type="text" />
function test_function() {
var fancyVariable = null,
booleans = Boolean(1);
var element = document.getElementsByTagName('a');
alert('This is a test');
}