This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Author: Anh Tuan Nguyen ([email protected]) | |
## Created: 23/08/2016 | |
## Install Let's Encrypt and generate certs for nginx | |
## If you want to install nginx server: https://gist.github.com/anhtuank7c/74d404b63ebb33ce17973d079b84aed1 | |
## You will need git installed on your server | |
# Download lets encrypt to /opt/letsencrypt | |
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Router createReducer={reducerCreate}> | |
<Scene key="auth"> | |
<Scene | |
key="sign_in" | |
component={SignIn} | |
app={app} | |
initial={needSignIn} | |
title="Sign in" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
TIME_CHANGE | |
} from '../actions/types'; | |
// khai báo 1 trạng thái khởi | |
const INITIAL = { | |
hour: 0 | |
}; | |
// reducer này sẽ nhận trạng thái khởi tạo ở bên trên nếu như state chưa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bước 1: Mở file excel bị lỗi duplicate named | |
Bước 2: Nhấn Alt + F11 và Insert > Module rồi paste code sau vào | |
Option Explicit | |
Sub RemNamedRanges() | |
Dim nm As Name | |
On Error Resume Next | |
For Each nm In ActiveWorkbook.Names | |
nm.Delete | |
Next |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { View, Platform } from 'react-native'; | |
import { | |
RTCPeerConnection, | |
RTCMediaStream, | |
RTCIceCandidate, | |
RTCSessionDescription, | |
RTCView, | |
MediaStreamTrack, | |
getUserMedia, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"messages" : { | |
"-KgxvzeIQc30MLWT5zwX" : { | |
"-Kgxvzf58f8-GHJxvwWG" : { | |
"createdAt" : 1491392789639, | |
"text" : "A", | |
"user" : { | |
"_id" : "t8U329k7dEfyW0UYM38Kodoqzy22", | |
"avatar" : "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/16426170_972992216166359_6914329574455833352_n.jpg?oh=0ff992858f7f4785b0a1d60a65118144&oe=59517ACD", | |
"name" : "Tuan Anh Nguyen" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://github.com/CocoaPods/Specs.git' | |
platform :ios, '8.0' | |
target 'demo' do | |
# Fixes required for pod specs to work with rn 0.42 | |
react_native_path = "../node_modules/react-native" | |
pod "Yoga", :path => "#{react_native_path}/ReactCommon/yoga" | |
pod "React", :path => react_native_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useNativeDriver: | |
- docs: https://facebook.github.io/react-native/docs/animations.html#using-the-native-driver | |
- whitelist: https://github.com/facebook/react-native/blob/master/Libraries/Animated/src/NativeAnimatedHelper.js#L147 | |
- example: | |
https://github.com/facebook/react-native/issues/9864#issue-176486623 | |
https://snack.expo.io/HJYvJKI3l | |
https://medium.com/xebia/linking-animations-to-scroll-position-in-react-native-5c55995f5a6e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.devjobs; | |
import android.app.Dialog; | |
import android.content.ComponentName; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.provider.ContactsContract; | |
import com.facebook.react.bridge.Callback; | |
import com.facebook.react.bridge.ReactApplicationContext; |