Skip to content

Instantly share code, notes, and snippets.

View bsara's full-sized avatar
🇺🇦
Support Ukraine

Brandon Sarà 🇺🇸🇺🇦 bsara

🇺🇦
Support Ukraine
View GitHub Profile
@bsara
bsara / sublime-text_context-menu_uninstall.reg
Created May 13, 2015 17:21
Remove Sublime Text from Windows Explorer Context Menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\OpenWithList\sublime_text.exe]
[-HKEY_CLASSES_ROOT\*\shell\0_SublimeText]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\1_SublimeText]
[-HKEY_CLASSES_ROOT\Directory\shell\1_SublimeText]
[-HKEY_CURRENT_USER\Software\Classes\Applications\sublime_text.exe]
@bsara
bsara / atom_context-menu_install.reg
Created May 13, 2015 17:21
Add Atom Editor to Windows Explorer Context Menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\OpenWithList\atom.exe]
[HKEY_CLASSES_ROOT\*\shell\1_Atom]
@="Open with Atom"
"Icon"="\"C:\\opt\\atom\\atom.exe\",0"
@bsara
bsara / atom_context-menu_uninstall.reg
Created May 13, 2015 17:22
Remove Atom Editor from Windows Explorer Context Menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\OpenWithList\atom.exe]
[-HKEY_CLASSES_ROOT\*\shell\1_Atom]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\2_Atom]
[-HKEY_CLASSES_ROOT\Directory\shell\2_Atom]
[-HKEY_CURRENT_USER\Software\Classes\Applications\atom.exe]
@bsara
bsara / .jscsrc
Created May 29, 2015 19:10
JSCS Default Settings
{
"disallowEmptyBlocks": true,
"disallowIdentifierNames": [
"that"
],
"disallowImplicitTypeConversion": [
"numeric",
"boolean"
],
"disallowKeywordsOnNewLine": [
@bsara
bsara / CRLF.gitattributes
Last active March 28, 2022 15:08
General .gitattributes File with Windows Line Endings (CRLF)
# Project
* text eol=crlf
# Language Diffs
*.cs diff=csharp
*.css diff=css
@bsara
bsara / DotNET.gitattributes
Last active September 2, 2018 13:36
.gitattributes File for .NET Projects
# Project
* text eol=crlf
# .NET Framework
*.dll binary diff=exif
*.exe binary diff=exif
@bsara
bsara / SassMeister-input.scss
Last active March 28, 2022 15:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@function prepend-slash($value) {
@return unquote('"\\#{$value}"');
}
// calling `prepend-slash` is only necessary when using a variable
@bsara
bsara / LF.gitattributes
Last active November 14, 2022 12:36
General .gitattributes File
# Project
* text eol=lf
# Language Diffs
*.cs diff=csharp
*.css diff=css
@bsara
bsara / js.gitignore
Last active October 31, 2023 03:39
.gitignore File for JavaScript Projects
#---------------------------------------#
# Project Ignores #
#---------------------------------------#
# output
/.temp
/.tmp
/build
/dist
@bsara
bsara / twos-complement.js
Created March 10, 2016 21:18
A simple function that returns the two's complement binary representation of a given number
/**
* @param {Number} value
* @param {Number} [bitCount = 0]
*
* @returns {String} binary representation of the two's complement of `value`.
*/
function twosComplement(value, bitCount) {
let binaryStr;
if (value >= 0) {