Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Thinh Bui giathinh910

🎯
Focusing
View GitHub Profile
@giathinh910
giathinh910 / simple-paralax-jquery.js
Created Jul 11, 2020
Simple paralax effect using JQuery
View simple-paralax-jquery.js
$('.parallax').css('background-positionY', ($(window).scrollTop() * 0.3) + 'px');
@giathinh910
giathinh910 / launch.json
Created May 14, 2020
Attach debugger to protractor and current dev server
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "E2E",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/protractor",
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
View wrap-content-for-table-cells.css
td {
white-space: normal;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
View vietnam-provinces.sql
--
-- Table structure for table `area_districts`
--
DROP TABLE IF EXISTS `area_districts`;
CREATE TABLE IF NOT EXISTS `area_districts` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`province_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
View homebrew_multiple_mysql_versions.md

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version
brew install mysql
View vietnam-provinces.json
This file has been truncated, but you can view the full file.
[
{
"name": "Thành phố Hà Nội",
"districts": [
{
"name": "Quận Ba Đình",
"wards": [
{
"name": "Phường Phúc Xá"