Skip to content

Instantly share code, notes, and snippets.

@yqrashawn
yqrashawn / OrbitControls.js
Created November 18, 2016 20:27 — forked from mrflix/OrbitControls.js
Three.OrbitControls for multiple instances on a page.Usage: controls = new THREE.OrbitControls(camera, document, renderer.domElement); Based on: http://threejs.org/examples/js/controls/OrbitControls.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
* @author mrflix / http://felixniklas.de
*
* released under MIT License (MIT)
*/

Keybase proof

I hereby claim:

  • I am yqrashawn on github.
  • I am rashawn (https://keybase.io/rashawn) on keybase.
  • I have a public key ASBYrE004mZ6HUdPdCSkjI6uYuUX33lqQMtcVH2q2H6lDAo

To claim this, I am signing this object:

@yqrashawn
yqrashawn / fix-homebrew-npm.md
Created February 18, 2017 17:11 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

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.

@yqrashawn
yqrashawn / emacs macport natural titlebar
Last active October 17, 2017 12:30
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];
@yqrashawn
yqrashawn / natural-title-bar.patch
Created October 17, 2017 12:31
emacs mac port 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];
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",
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",
#!/usr/bin/env babel
/* -*- mode: js2 -*- */
/**
* @fileOverview phoenix configuration file
* @name .phoenix.js
* @author Rashawn Zhang <Rashawn@namy.19@gmail.com>
*/
g = this;
#!/usr/bin/env babel
/* -*- mode: js2 -*- */
/**
* @fileOverview phoenix configuration file
* @name .phoenix.js
* @author Rashawn Zhang <Rashawn@namy.19@gmail.com>
*/
g = this;
#!/usr/bin/env babel
/* -*- mode: js2 -*- */
/**
* @fileOverview phoenix configuration file
* @name .phoenix.js
* @author Rashawn Zhang <Rashawn@namy.19@gmail.com>
*/
g = this;