Skip to content

Instantly share code, notes, and snippets.

Edward Chu chuyik

Block or report user

Report or block chuyik

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
@wd
wd / config.json
Last active Sep 8, 2019
路由器梅林固件上面使用 v2ray 的方案
View config.json
{
"log": {
"loglevel": "none"
},
"inbound": {
"port": 23456,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
@grundmanise
grundmanise / Readme.md
Last active Nov 1, 2018
React Native + React Native Navigation: launch images setup [iOS] (iPhone)
View Readme.md

Personal note on how to setup launch images in RN when using RNN [iOS] (iPhone).

Preparation

Launch image sizes:

portrait

  1. Retina HD 5.5" : 1242 x 2208 px
  2. Retina HD 4.7" : 750 x 1334 px
@janlay
janlay / README.md
Last active Aug 3, 2019
Yet another config for Surge.app
View README.md

Install

  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt Or run $ sh build-all to build all your index files.
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud

本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.

@sahrens
sahrens / React Native: Animated - Code
Last active Nov 6, 2018
Example code from ReactEurope 2015 talk - React Native: Animated
View React Native: Animated - Code
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
@getify
getify / gist:7ae82fdc2e86bf66bcba
Last active Jun 27, 2019
List of ES6 books either out or in progress...
View gist:7ae82fdc2e86bf66bcba
View gist:598fa75e22bdfa44cf47

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@abdullin
abdullin / reactNative.markdown
Last active Oct 20, 2015
Summary of React Native
View reactNative.markdown

React Native

Set of components to allow describing native widgets as React components and rendering them natively. It allows to wrap native APIs (imperative mutative) with declarative immutable APIs of React.

React Native replaces the DOM renderers with native renderers which allows people to render platform <View>/<ScrollView>/<NativeWhatever> instead of <div>/<span>. Other than that, you get to use the exact same React API that you already know (even down to the event bubbling). You can bridge to things that are only available on the platform, and can in general make higher performance granular building blocks that cannot be accomplished with web technology (such as components that decode images more efficiently or with different concurrency models). As with everything, JSX is not required to take advantage of this - and you can use any of the compile-to-js languages that you use with React today.

It includes:

@webtobesocial
webtobesocial / pseudo_elements.md
Last active Aug 7, 2019
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.
View pseudo_elements.md

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@sevastos
sevastos / docker-mongo-virtualbox.md
Last active Feb 6, 2016
Boot2Docker (VirtualBox) MongoDB volume filesystem issue
View docker-mongo-virtualbox.md

Journey

I was using Boot2Docker 1.2 (OSX) and wanted to use volume for MongoDB. First nothing was happening because 1.2 has no Guest Additions and volumes don't work. There is a workaround by making a boot2docker.iso from master which has Guest Additions.

But then Mongo didn't like putting data on VirtualBox's shared folders:

[initandlisten] 	WARNING: This file system is not supported. For further information see:
[initandlisten] 			http://dochub.mongodb.org/core/unsupported-filesystems
@codeinthehole
codeinthehole / docker-osx-shared-folders.rst
Last active Jul 19, 2019
How to share folders with docker containers on OSX
View docker-osx-shared-folders.rst

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

You can’t perform that action at this time.