Skip to content

Instantly share code, notes, and snippets.

Working from home

Cuong Lam thanhcuong1990

Working from home
View GitHub Profile
ilya-uryupov / App.jsx
Last active Nov 17, 2020
React-Native copy-paste'able multiline TextInput inside ViewPagerAndroid
View App.jsx
* Sample React Native App
* @flow
import React, { Component } from 'react'
import { StyleSheet, Text, TextInput, View, ViewPagerAndroid } from 'react-native'
const rnVersion = '0.52.0'
neilsarkar / AppText.js
Created Jan 10, 2017
React Native Text Wrapper for default font
View AppText.js
'use strict';
import React, {Component} from 'react';
import {
} from 'react-native';
export default class AppText extends Component {
constructor(props) {
esamattis / WebViewAutoHeight.js
Last active Nov 23, 2019
React native: Is it possible to have the height of a html content in a webview?
View WebViewAutoHeight.js
Version 2, December 2004
Copyright (C) 2016 Esa-Matti Suuronen <>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
yonat / Badge.swift
Last active Mar 28, 2020
Rounded UILabel and UIButton, Badged UIBarButtonItem
View Badge.swift
// Badge.swift
// Extensions for Rounded UILabel and UIButton, Badged UIBarButtonItem.
// Usage:
// let label = UILabel(badgeText: "Rounded Label");
// let button = UIButton(type: .System); button.rounded = true
// let barButton = UIBarButtonItem(badge: "42", title: "How Many Roads", target: self, action: "answer")
// Created by Yonat Sharon on 06.04.2015.
plentz / nginx.conf
Last active Dec 2, 2020
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
stas / deploy.rb
Created Jan 15, 2013
Mina Deploy Task (Rails + Puma + Delay Job + rbenv)
View deploy.rb
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rbenv' # for rbenv support. (
# require 'mina/rvm' # for rvm support. (
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
You can’t perform that action at this time.