Skip to content

Instantly share code, notes, and snippets.

View dvnguyen's full-sized avatar

David Nguyen dvnguyen

View GitHub Profile
@dvnguyen
dvnguyen / cloudSettings
Last active October 3, 2018 17:34
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-03T17:34:38.772Z","extensionVersion":"v3.1.2"}
@dvnguyen
dvnguyen / .gitattributes
Created July 31, 2017 20:29
Boilerplate .gitattributes template
# Automatically normalize line endings for all text-based files
# https://git-scm.com/docs/gitattributes#_end_of_line_conversion
* text=auto
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# For the following file types, normalize line endings to LF on
# checkin and prevent conversion to CRLF when they are checked out
# (this is required in order to prevent newline related issues like,
@dvnguyen
dvnguyen / brew.sh
Created January 15, 2017 20:59
Brew Installs for macOs
#!/usr/bin/env zsh
brew update
brew upgrade
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
# Install some other useful utilities like `sponge`.
@dvnguyen
dvnguyen / .zshrc
Created January 15, 2017 20:58
.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/davidnguyen/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="cobalt2"
@dvnguyen
dvnguyen / Package Control.sublime-settings
Last active December 30, 2016 15:00
Sublime Text (Windows) - Packages for FED
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AdvancedNewFile",
"Alignment",
"AlignTab",
@dvnguyen
dvnguyen / .editorconfig
Created June 14, 2015 16:58
EditorConfig file for web projects
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
@dvnguyen
dvnguyen / unfocus_button
Created May 7, 2015 15:35
Un-focuses buttons on jQuery Dialogs
// Example: On click of wizard submission button
$('#wizardSubmission').click(function() {
$modalConfirmQuestionnaireSubmission.dialog('open');
$('.ui-dialog :button').blur(); // un-focuses buttons once the dialog has opened
});
@dvnguyen
dvnguyen / Default (OSX).sublime-keymap
Last active October 12, 2015 04:04
Sublime Text - Key Bindings
[
// Alignment plugin
{ "keys": ["super+alt+a"], "command": "alignment" },
// Remap paste and indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
// Remap Layouts
{
@dvnguyen
dvnguyen / Preferences.sublime-settings
Last active December 29, 2016 16:35
Sublime Text - Settings
// Windows Setup
{
"added_words":
[
"Evernote"
],
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 50,
"auto_complete_triggers":
[