#Few Line of Hack Code Make React-Native Run on Windows
While React-Native just add support of Android,yet officeally they just only support on OSX.
After a few hours of debugging, I find a simple way of let React-Native run on Windows.
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
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)Keep this github issue handy, it’s the bucket for all Windows/Linux related tricks to get RN working.
# Typical setup to include TensorFlow. | |
import tensorflow as tf | |
# Make a queue of file names including all the JPEG images files in the relative | |
# image directory. | |
filename_queue = tf.train.string_input_producer( | |
tf.train.match_filenames_once("./images/*.jpg")) | |
# Read an entire image file which is required since they're JPEGs, if the images | |
# are too large they could be split in advance to smaller files or use the Fixed |
<?php | |
/** | |
* Return the post excerpt, if one is set, else generate it using the | |
* post content. If original text exceeds $num_of_words, the text is | |
* trimmed and an ellipsis (…) is added to the end. | |
* | |
* @param int|string|WP_Post $post_id Post ID or object. Default is current post. | |
* @param int $num_words Number of words. Default is 55. | |
* @return string The generated excerpt. |
windows
dhcp-script=/etc/detect_new_device.sh
Reference:
import argparse | |
import os | |
import boto3 | |
class S3MultipartUpload(object): | |
# AWS throws EntityTooSmall error for parts smaller than 5 MB | |
PART_MINIMUM = int(5e6) |
import argparse | |
import sys | |
from tensorflow.examples.tutorials.mnist import input_data | |
from time import time | |
t0 = time() | |
import tensorflow as tf | |
tf.summary.FileWriterCache.clear() |
#!/bin/bash | |
clear | |
cat << EOF | |
################### 腾讯视频(MacOS)缓存文件合成脚本 ################### | |
Author: eightpigs <[email protected]> | |
Date: 2018-04-14 |