Skip to content

Instantly share code, notes, and snippets.

View onero's full-sized avatar

Adam Hansen onero

View GitHub Profile
@onero
onero / instanceof Equals Template
Created July 21, 2020 09:46
Equals Template for IntelliJ using instanceof, instead of getClass
#parse("equalsHelper.vm")
public boolean equals(##
#if ($settings.generateFinalParameters)
final ##
#end
Object $paramName){
#addEqualsPrologue()
#addClassInstance()
return ##
#set($i = 0)
@onero
onero / center-align.scss
Created April 10, 2019 17:04 — forked from arup-b/center-align.scss
Centering elements (other than texts) inside a <ion-col></ion-col> is painful. Apply the following CSS in your respective component level scss or global theme to align items centrally.
.center{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
@onero
onero / WebStormToContextMenu.cmd
Created February 17, 2018 08:18
Add WebStorm to ContextMenu on Windows
@echo off
:: Remember to upate path!
SET WebStormPath=C:\Users\gta1\AppData\Local\JetBrains\Toolbox\apps\WebStorm\ch-0\172.4343.25\bin\webstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
@onero
onero / The ultimate gitignore!
Last active April 14, 2023 21:01
The ultimate gitignore!
# Created by Adamino @ https://www.gitignore.io/api/java,android,netbeans,intellij,windows,csharp,wordpress,drupal,sass,linux,bluej,unity,unrealengine,grunt,yeoman,adobe,c++,bower,coffeescript,composer,eclipse,jetbrains,magento,joomla,laravel,lua,meteorjs,node,kobalt,python,objective-c,rails,swift,visualstudio,umbraco,visualstudiocode,webstorm,xamarinstudio,xcode,sublimetext
### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak