Skip to content

Instantly share code, notes, and snippets.

yqrashawn yqrashawn

Block or report user

Report or block yqrashawn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View diff.patch
--- 20-195405.el 2018-07-20 20:00:48.000000000 +0800
+++ 20-195454.el 2018-07-20 19:55:04.000000000 +0800
@@ -1,63 +1,62 @@
-(defun find-dired (dir args)
- "Run `find' and go into Dired mode on a buffer of the output.
+(defun fd-dired (dir args)
+ "Run `fd' and go into Dired mode on a buffer of the output.
The command run (after changing into DIR) is essentially
- find . \\( ARGS \\) -ls
@yqrashawn
yqrashawn / node-npm-install.md
Created Jul 19, 2018 — forked from rcugut/node-npm-install.md
Install node & npm on Mac OS X with Homebrew
View node-npm-install.md

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

View .phoenix.js
#!/usr/bin/env babel
/* -*- mode: js2 -*- */
/**
* @fileOverview phoenix configuration file
* @name .phoenix.js
* @author Rashawn Zhang <Rashawn@namy.19@gmail.com>
*/
g = this;
View .phoenix.js
#!/usr/bin/env babel
/* -*- mode: js2 -*- */
/**
* @fileOverview phoenix configuration file
* @name .phoenix.js
* @author Rashawn Zhang <Rashawn@namy.19@gmail.com>
*/
g = this;
View .phoenix.js
#!/usr/bin/env babel
/* -*- mode: js2 -*- */
/**
* @fileOverview phoenix configuration file
* @name .phoenix.js
* @author Rashawn Zhang <Rashawn@namy.19@gmail.com>
*/
g = this;
View 0001-On-master-use-w-q-without-modifer-to-switch-tabs.patch
diff --git a/docs/json/personal_apm1467.json b/docs/json/personal_apm1467.json
index c8baefa..7a76a00 100644
--- a/docs/json/personal_apm1467.json
+++ b/docs/json/personal_apm1467.json
@@ -39,11 +39,8 @@
{
"type": "basic",
"from": {
- "key_code": "k",
+ "key_code": "w",
View 0001-On-master-command-w-q-to-control-control-shift-tab.patch
diff --git a/docs/json/personal_apm1467.json b/docs/json/personal_apm1467.json
index c8baefa..8653891 100644
--- a/docs/json/personal_apm1467.json
+++ b/docs/json/personal_apm1467.json
@@ -39,7 +39,7 @@
{
"type": "basic",
"from": {
- "key_code": "k",
+ "key_code": "w",
@yqrashawn
yqrashawn / natural-title-bar.patch
Created Oct 17, 2017
emacs mac port natural title bar patch
View natural-title-bar.patch
--- mituharu-emacs-mac-b5e5c4a6234d/src/macappkit.m 2017-02-04 13:21:43.000000000 +0800
+++ mituharu-emacs-mac/src/macappkit.m 2017-04-03 14:10:01.000000000 +0800
@@ -1824,6 +1824,18 @@
@implementation EmacsWindow
++ (NSButton *)standardWindowButton:(NSWindowButton)b forStyleMask:(NSWindowStyleMask)styleMask
+{
+
+ NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
View emacs macport natural titlebar
--- mituharu-emacs-mac-b5e5c4a6234d/src/macappkit.m 2017-02-04 13:21:43.000000000 +0800
+++ mituharu-emacs-mac/src/macappkit.m 2017-04-03 14:10:01.000000000 +0800
@@ -1824,6 +1824,18 @@
@implementation EmacsWindow
++ (NSButton *)standardWindowButton:(NSWindowButton)b forStyleMask:(NSWindowStyleMask)styleMask
+{
+
+ NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
You can’t perform that action at this time.