Skip to content

Instantly share code, notes, and snippets.

@canhnht
canhnht / History|-100beb9c|entries.json
Last active January 6, 2023 07:09
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/blue-nguyen/Documents/projects/topcoder/yerc/mobileapp/yerc_app/android/app/src/main/res/values/strings.xml","entries":[{"id":"gUdF.xml","timestamp":1668240847684}]}
/*
Magic wand tool (fuzzy selection) by color
@package magic-wand-tool
@author Ryasnoy Paul <ryasnoypaul@gmail.com>
@version 1.1.4
@license MIT
@copyright (c) 2014-2019, Ryasnoy Paul <ryasnoypaul@gmail.com>
*/
@canhnht
canhnht / cloudSettings
Last active April 14, 2019 10:41
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-14T10:40:58.665Z","extensionVersion":"v3.2.8"}
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <UIKit/UIKit.h>
@canhnht
canhnht / proxy-off.sh
Created June 26, 2017 03:13
Turn on/off proxy setting for DH-FPT networks
#!/bin/sh
sudo networksetup -setproxyautodiscovery 'Wi-Fi' off
sudo networksetup -setwebproxystate 'Wi-Fi' off
sudo networksetup -setsecurewebproxystate 'Wi-Fi' off
sudo networksetup -setftpproxystate 'Wi-Fi' off
sudo networksetup -setsocksfirewallproxystate 'Wi-Fi' off
@canhnht
canhnht / frontendDevlopmentBookmarks.md
Created May 18, 2017 14:55 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@canhnht
canhnht / bash_aliases.sh
Last active June 13, 2018 22:31
Set color bash prompt according to active virtualenv, git branch and return status of last command.
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
@canhnht
canhnht / phpmyadmin.config
Created December 13, 2016 02:57 — forked from Azrael808/phpmyadmin.config
Install and Configure PHPMyAdmin on Elastic Beanstalk
container_commands:
01_install_pma:
test: test -n "$PMA_VER" && test ! -f /tmp/phpmyadmin.tar.gz
command: |
cd /tmp
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1
cd /tmp && sha1sum --check phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1
if [[ $? == 0 ]]
then
@canhnht
canhnht / redux_egghead_notes.md
Last active December 10, 2016 10:43 — forked from diegoconcha/redux_egghead_notes.md
Redux Egghead.io Notes

###Redux Egghead Video Notes###

####Introduction:#### Managing state in an application is critical, and is often done haphazardly. Redux provides a state container for JavaScript applications that will help your applications behave consistently.

Redux is an evolution of the ideas presented by Facebook's Flux, avoiding the complexity found in Flux by looking to how applications are built with the Elm language.

####1st principle of Redux:#### Everything that changes in your application including the data and ui options is contained in a single object called the state tree

@canhnht
canhnht / introrx.md
Created April 3, 2016 03:50 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing