Skip to content

Instantly share code, notes, and snippets.

View vinhhungle's full-sized avatar

Hung Le vinhhungle

View GitHub Profile
@vinhhungle
vinhhungle / TableDemo.tsx
Last active November 16, 2023 08:21
react-native-table-component freeze first column & first row in scrollable table
import React, { useRef } from 'react';
import { ScrollView, StyleSheet, View } from 'react-native';
import {
Table,
Row,
Rows,
Col,
} from 'react-native-table-component';
const borderColor = '#C1C0B9';
@vinhhungle
vinhhungle / docker-compose.yml
Created January 8, 2020 00:53
Docker DB Containers
version: "3"
services:
mongo:
image: mongo
volumes:
- ./docker/volumes/mongo:/data/db
ports:
- 27017:27017
postgres:
@vinhhungle
vinhhungle / create_topic.md
Last active November 25, 2018 10:46
Salesforce Streaming API Test

Open Dev Console > Debug > Open Execute Anonymous Window

Execute the codes below:

PushTopic pushTopic = new PushTopic();
pushTopic.ApiVersion = 37.0;
pushTopic.Name = 'AllAccounts';
pushTopic.Description = 'All records for the Account object';
pushtopic.Query = 'SELECT Id, Name FROM Account';