Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Lishi He ikbear

🏠
Working from home
Block or report user

Report or block ikbear

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
@ikbear
ikbear / s3-bucket-move
Created Aug 23, 2019 — forked from alanwill/s3-bucket-move
Move an S3 bucket to a different region
View s3-bucket-move
aws s3 sync s3://oldbucket s3://newbucket --source-region us-west-1 --region us-west-2
@ikbear
ikbear / s3-bucket-move
Created Aug 23, 2019 — forked from alanwill/s3-bucket-move
Move an S3 bucket to a different region
View s3-bucket-move
aws s3 sync s3://oldbucket s3://newbucket --source-region us-west-1 --region us-west-2
View links.md
View react_samples_list.md
@ikbear
ikbear / README.md
Created Dec 14, 2018 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@ikbear
ikbear / understanding-word-vectors.ipynb
Created Mar 12, 2018 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
View understanding-word-vectors.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ikbear
ikbear / GoConcurrency.md
Created Oct 20, 2017 — forked from rushilgupta/GoConcurrency.md
Concurrency in golang and a mini Load-balancer
View GoConcurrency.md

INTRO

Concurrency is a domain I have wanted to explore for a long time because the locks and the race conditions have always intimidated me. I recall somebody suggesting concurrency patterns in golang because they said "you share the data and not the variables".

Amused by that, I searched for "concurrency in golang" and bumped into this awesome slide by Rob Pike: https://talks.golang.org/2012/waza.slide#1 which does a great job of explaining channels, concurrency patterns and a mini-architecture of load-balancer (also explains the above one-liner).

Let's dig in:

Goroutines

@ikbear
ikbear / Preferences.sublime-settings
Created Dec 23, 2016 — forked from LokiSharp/Preferences.sublime-settings
Sublime Text 3 设置翻译 by LokiSharp
View Preferences.sublime-settings
//
// Sublime Text 3 设置翻译 by LokiSharp
//
{
// 主题文件的路径
"color_scheme": "Packages/User/SublimeLinter/Solarized (Dark) (SL).tmTheme",
// 设置字体和大小
"font_face": "inziu iosevka SC",
"font_size": 12,
View 20111011_SteveYeggeGooglePlatformRant.md

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@ikbear
ikbear / pagination.md
Created Feb 5, 2016 — forked from mislav/pagination.md
"Pagination 101" by Faruk Ateş
View pagination.md

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o

You can’t perform that action at this time.