Skip to content

Instantly share code, notes, and snippets.

🕶
Waking up

Jun Lin linjunpop

🕶
Waking up
Block or report user

Report or block linjunpop

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
@linjunpop
linjunpop / fetcher.ex
Created Dec 25, 2018
Building A continues data processing system
View fetcher.ex
defmodule Archiver.Fetcher do
use GenStage
def start_link(args) do
GenStage.start_link(__MODULE__, args, name: __MODULE__)
end
def init(state), do: {:producer, state}
def handle_demand(demand, state) do
@linjunpop
linjunpop / otp_build_21.0.log_1
Last active Jun 19, 2018
asdf install erlang 21.0 log
View otp_build_21.0.log_1
=== running autoconf in lib
=== running autoconf in lib/common_test
=== running autoconf in lib/erl_interface
=== running autoheader in lib/erl_interface
=== running autoconf in lib/megaco
View keybase.md

Keybase proof

I hereby claim:

  • I am linjunpop on github.
  • I am linjunpop (https://keybase.io/linjunpop) on keybase.
  • I have a public key ASBgsLXQTvVJBDcDHjRy6_zR49fhb-UOQ176oCPzQEK3nAo

To claim this, I am signing this object:

@linjunpop
linjunpop / qiniu-afnetworking.m
Last active Aug 29, 2015
UIImage 加载七牛图片,Retina 支持
View qiniu-afnetworking.m
#import "UIImageView+Qiniu.h"
#import <UIImageView+AFNetworking.h>
@implementation UIImageView (Qiniu)
- (void)qiniu_setImageWithURL:(NSURL *)url {
NSURLComponents *components = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
CGFloat scale = [[UIScreen mainScreen] scale];
View gist:847fbe35e0aaf2cbee33
Verifying that +linjunpop is my openname (Bitcoin username). https://onename.io/linjunpop
@linjunpop
linjunpop / chruby.sh
Created Jun 26, 2014
System Wide chruby
View chruby.sh
if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
fi
@linjunpop
linjunpop / nginx.conf
Created Feb 18, 2014
Rails Nginx configuration
View nginx.conf
upstream QAirServer_server{
server unix:/opt/QAirServer/shared/sockets/puma.sock fail_timeout=0;
}
server {
listen 443 default deferred ssl;
server_name qairapp.com;
root /opt/QAirServer/current/public;
@linjunpop
linjunpop / README.md
Last active Dec 23, 2015
iOS 7 Safari Notes
View README.md

CSS font values

-apple-system-headline1
-apple-system-headline2
-apple-system-body
-apple-system-subheadline1
-apple-system-subheadline2
-apple-system-footnote
-apple-system-caption1
You can’t perform that action at this time.