Skip to content

Instantly share code, notes, and snippets.

:bowtie:
Freelancer.

EGOIST egoist

Block or report user

Report or block egoist

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
@egoist
egoist / jquery to xxx.md
Last active Jan 7, 2016
Compile jQuery to XXX component
View jquery to xxx.md

form jQuery:

<div class="bingo">
  <button>Say hi!</button>
</div>

<script>
  $('button').on('click', function () {
    console.log('hi')
@egoist
egoist / css-layout-no-flexbox.md
Last active Feb 8, 2016
CSS 布局(非 flexbox 篇)
View css-layout-no-flexbox.md

单栏

<div class="container">
  css is awesome!  
</div>
.container {
View example.com.conf
upstream php {
server unix:/var/run/php5-fpm.sock;
}
server {
# enforce NO www
server_name www.example.com;
return 301 $scheme://example.com$request_uri;
}
@egoist
egoist / pgsql.md
Last active May 14, 2016
PostgreSQL 简明指南
View pgsql.md

安装

# ubuntu
$ sudo apt-get install postgresql

控制台

View git-io.sh
#! /usr/bin/env bash
# Usage: git-io URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
URL="$1"
CODE="$2"
@nathggns
nathggns / stroke.scss
Created Jun 24, 2012
Text Stroke SCSS Mixin (SASS)
View stroke.scss
@mixin stroke($width, $color) {
$shadow: 0 0 0 transparent;
$i: 0;
@while ($i < $width) {
$i: $i + 1;
$j: 0;
@while ($j < 2) {
$j: $j + 1;
View rainbow-text.css
.rainbow-text {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0.00, red),
color-stop(16%, orange),
color-stop(32%, yellow),
color-stop(48%, green),
color-stop(60%, blue),
color-stop(76%, indigo),
View .bowerrc
{
"directory": "components"
}
View react-native-windows.md

First of all, this is not my brilliant effort to get react-native working on Windows, it is the collation of work by others, particularly @mqli and @Bernd Wessels. I've just summarised what worked for me.

If you would prefer to read what I've plagerised, head over to mqli's great gist

Disclaimer

  • The below is tested with react-native-cli 0.1.5, react-native 0.12.0 on Windows 10, node 4.1.1, and Android (physical Nexus 6 and AVD with API v22)
  • I hope this will all be redundant in a few weeks. Please comment on stuff that is now fixed and I will update this to keep it relevant.
  • Sprinkle a bit of YMMV around

Keep this github issue handy, it’s the bucket for all Windows/Linux related tricks to get RN working.

You can’t perform that action at this time.