Skip to content

Instantly share code, notes, and snippets.

View fuxialexander's full-sized avatar

Xi "Alexander" Fu fuxialexander

View GitHub Profile
<link rel="import" href="../core-tooltip/core-tooltip.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@fuxialexander
fuxialexander / tmux_local_install.sh
Last active October 4, 2015 08:22 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/.local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.0
`emacs --daemon` to run in the background.
`emacsclient.emacs24 <filename/dirname>` to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
* Undo - `C-/`
* Redo - `C-?`
* Change case: 1. Camel Case : `M-c`
2. Upper Case : `M-u`
3. Lower Case : `M-l`
@fuxialexander
fuxialexander / sVimcss
Last active December 17, 2015 10:18 — forked from jmgregory/sVimcss
sVim CSS configuration
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 0.7;
}
}
#sVim-command {
@fuxialexander
fuxialexander / sVimrc
Last active January 30, 2016 03:32
sVimrc
let newtaburl = "http://google.com"
let homeurl = "http://google.com"
let hintcharacters = "asdfqwerjkluiop"
unmap "i"
unmap "t"
unmap "w"
unmap "r"
unmap "n"
@fuxialexander
fuxialexander / cVimrc
Last active January 31, 2016 07:12
cVimrc
set smoothscroll
let scrollduration=300
@fuxialexander
fuxialexander / Org-Tyme.el
Last active January 27, 2017 03:09
Config for communication between Org mode and Tyme 2
(defun applescript-quote-string (argument)
"Quote a string for passing as a string to AppleScript."
(if (or (not argument) (string-equal argument ""))
"\"\""
;; Quote using double quotes, but escape any existing quotes or
;; backslashes in the argument with backslashes.
(let ((result "")
(start 0)
end)
(save-match-data
@fuxialexander
fuxialexander / karabiner.json
Last active September 15, 2017 05:52
Capslock to control; Right command to ESC + Hyper; Do not trigger Hyper-,/. (sysdiagnose)
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
@fuxialexander
fuxialexander / counsel-company.el
Last active December 2, 2017 15:15
better counsel-company
;; author: @fuxialexander on github
;; 2017-12-02
(defvar company-candidates)
(defvar company-point)
(defvar company-common)
(declare-function company-complete "ext:company")
(declare-function company-mode "ext:company")
(declare-function company-complete-common "ext:company")
@fuxialexander
fuxialexander / karabiner.json
Created March 22, 2018 08:15
karabiner.json
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {