Skip to content

Instantly share code, notes, and snippets.

View minhchu's full-sized avatar
🎯
Focusing

Minh Chu minhchu

🎯
Focusing
View GitHub Profile
@minhchu
minhchu / hourly_response.json
Last active July 27, 2017 08:55
wunderground api's response
{
"response": {
"version": "0.1",
"termsofService": "http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"hourly": 1
}
},
"hourly_forecast": [
{
{
"q": "chicken",
"from": 0,
"to": 3,
"params": {
"sane": [ ],
"to": [
"3"
],
"q": [
@minhchu
minhchu / App.js
Created July 14, 2017 15:29
style input with close button. RN 0.46
import React, { Component } from 'react';
import { Text, View, TextInput, StyleSheet, TouchableHighlight } from 'react-native';
export default class App extends Component {
render() {
return (
<View>
<View style={styles.wrapper}>
<TextInput
underlineColorAndroid={'transparent'}
@minhchu
minhchu / app.js
Created February 28, 2017 07:17
Nginx and Express Morgan configurations for logging in production
'use strict';
const app = express();
...
app.set('trust proxy', true);
if (process.env.ENVIRONMENT == 'development') {
app.use(logger('dev'));
} else {
@minhchu
minhchu / cmd
Created September 23, 2016 15:53
1. copy above files to your local folder
2. run `npm install`
3. run `npm -g gulp`
4. run `gulp sass`
5. run `gulp browser-sync`