Skip to content

Instantly share code, notes, and snippets.

View merrickluo's full-sized avatar
💭
I may be slow to respond.

Merrick Luo merrickluo

💭
I may be slow to respond.
View GitHub Profile
@merrickluo
merrickluo / psn.conf
Created March 8, 2017 08:10
psn 深圳 speed up
address=/gs2.ww.prod.dl.playstation.net/183.61.63.147
@merrickluo
merrickluo / stacktrace
Created February 27, 2017 03:19
bot npe stacktrace
#error {
:cause nil
:via
[{:type java.lang.NullPointerException
:message nil
:at [java.net.URLEncoder encode "URLEncoder.java" 204]}]
:trace
[[java.net.URLEncoder encode "URLEncoder.java" 204]
[java.net.URLEncoder encode "URLEncoder.java" 170]
[animeshotbot.core$search_shots invokeStatic "core.clj" 16]
REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="&Open With Emacs"
"Icon"="C:\\Program Files\\Emacs\\bin\\emacs.exe,0"
# The above value appears in the global context menu,
# i.e., when you right click on a file.
# (The '&' makes the next character a shortcut.)
@merrickluo
merrickluo / rxjs_operators_by_example.md
Created December 19, 2016 03:53 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@merrickluo
merrickluo / kwmrc
Created November 24, 2016 08:47
kwm config
/*
This is a sample config for Kwm
The following statements can be used to set Kwms internal directory structure.
This is the root folder for Kwms files, the only thing this actually
specifies is the location of the 'init' script which Kwm runs upon startup.
Defaults to $HOME/.kwm
kwm_home /path/to/.kwm
#!/bin/sh
# making fcitx working in emacs
client="emacsclient"
# I dont want to start a new frame if there is one
frame_count=`emacsclient -e '(true-frame-count)' 2>/dev/null || echo -1`
# start server if not started
if [ $frame_count -lt 0 ]; then
LC_CTYPE=zh_CN.UTF-8 emacs --daemon
client="$client -c"
# make frame if no param coming

Hey, thx for the quick reply, my code is a little complex, but I'm sure it's connected when I create the query:

            Logger.i("SendBird", "fetching chat list")
            if (SendBird.getConnectionState() != SendBird.ConnectionState.OPEN) {
                // exception
            }
            val query = GroupChannel.createMyGroupChannelListQuery()
 if (query == null) {
@merrickluo
merrickluo / pendadactylrc
Created August 24, 2016 00:31
pendadactylrc
colorscheme solarized-light
set hintkeys=fjdkslaghrueiwoncmv
highlight -a Hint text-transform:uppercase;
set editor="e"
set incfind
set hlfind
set findcase=smart
dns 114.114.114.114
dns 114.114.115.115
proxy_domain facebook.com
proxy_domain fbsbx.com
proxy_domain googlevideo.com
proxy_domain fbcdn.net
proxy_domain akamaihd.net
proxy_domain google.com
proxy_domain googleusercontent.com
function brew
if [ (count $argv) -ge 2 ]
set other $argv[2..-1]
else
set other ""
end
switch $argv[1]
case install
yaourt -S $other