Skip to content

Instantly share code, notes, and snippets.

View huntertran's full-sized avatar
💭
I may be slow to respond.

Tuan Tran Van huntertran

💭
I may be slow to respond.
View GitHub Profile
@huntertran
huntertran / powercf
Last active November 26, 2021 18:18
# detail about sleep status
powercfg /sleepstudy
# available sleep states
powercfg /availablesleepstates
# view requests
powercfg /requests
# view which device wake the computer
@huntertran
huntertran / java-convention.xml
Last active October 22, 2019 20:37
java convention with custom wrap
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<profiles version="17">
<profile kind="CodeFormatterProfile" name="Java Conventions [built-in] - custom wrap" version="17">
<setting id="org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns" value="false" />
<setting id="org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines" value="2147483647" />
<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false" />
<setting id="org.eclipse.jdt.core.formatter.align_variable_declarations_on_columns" value="false" />
<setting id="org.eclipse.jdt.core.formatter.align_with_spaces" value="false" />
<setting id="org.eclipse.jdt.core.formatter.alignment_for_additive_operator" value="18" />
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="18" />

Keybase proof

I hereby claim:

  • I am huntertran on github.
  • I am hunterbit92 (https://keybase.io/hunterbit92) on keybase.
  • I have a public key ASAM_YZPH_bJq7ywHMVdMxq1bOXXdUIz60vFEWrsLYdY2Ao

To claim this, I am signing this object:

// ==UserScript==
// @name Skip Facebook Redirect
// @namespace http://tampermonkey.net/
// @version 0.1
// @description To skip the facebook redirect
// @author Hunter.Tran
// @match https://www.facebook.com/
// @grant none
// ==/UserScript==
@huntertran
huntertran / .jsbeautifyrc
Created March 16, 2017 08:28
JSBeautifyrc for VSCode
{
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"],
"brace_style": "collapse", // [collapse|expand|end-expand|none] Put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are
"end_with_newline": false, // End output with newline
"indent_char": " ", // Indentation character
"indent_handlebars": false, // e.g. {{#foo}}, {{/foo}}
"indent_inner_html": false, // Indent <head> and <body> sections
@huntertran
huntertran / sass-lint.yml
Created March 16, 2017 08:28
Sass Lint Settings
options:
formatter: stylish
files:
include: '**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 1
extends-before-declarations: 1
placeholder-in-extend: 1
@huntertran
huntertran / Settings.StyleCop
Last active March 16, 2017 09:09
StyleCop Global Settings for Nexceler
<StyleCopSettings Version="4.3">
<GlobalSettings>
<CollectionProperty Name="DeprecatedWords">
<Value>preprocessor,pre-processor</Value>
<Value>shortlived,short-lived</Value>
</CollectionProperty>
<StringProperty Name="MergeSettingsFiles">NoMerge</StringProperty>
</GlobalSettings>
<Parsers>
<Parser ParserId="StyleCop.CSharp.CsParser">