Skip to content

Instantly share code, notes, and snippets.

@zeromancer
zeromancer / 01-libgdx-sprite.md
Last active February 20, 2017 21:15
Libgdx Scene2d Actor System Overview Diagram
  • most basic way to display(draw) an image onscreen
  • can be done with either Stateless(Texture, TextureRegion) or Stateful(Sprite)
  • with the Stateless(Texture, TextureRegion) approach -> you need to specify the x,y coordinates on each draw call
  • with the Stateful(Sprite) approach -> the needed x,y coordinates are saved into the Sprite object itself
@zeromancer
zeromancer / 01-libgdx-sprite.md
Last active February 20, 2017 21:35
Libgdx Scene2d Actor System Overview Diagram
  • most basic way to display(draw) an image onscreen
  • can be done with either Stateless(Texture, TextureRegion) or Stateful(Sprite)
  • with the Stateless(Texture, TextureRegion) approach -> you need to specify the x,y coordinates on each draw call
  • with the Stateful(Sprite) approach -> the needed x,y coordinates are saved into the Sprite object itself
@zeromancer
zeromancer / run.ahk
Last active August 7, 2022 01:50
My AutoHotkey Configuration File for Windows
#SingleInstance force ; needs to be first
SetCapsLockState, alwaysoff ; needs to be second
; --------------Put File into----------
; C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
; --------------Keyboard---------------
z::y
y::z
@zeromancer
zeromancer / scala.xml
Created October 4, 2017 19:29
Intellij settings/templates/scala.xml
<templateSet group="scala">
<template name="T" value="&lt;$TAG$&gt;$SELECTION$&lt;/$TAGNAME$&gt;&#10;" description="Surround with &lt;tag&gt;&lt;/tag&gt;" toReformat="true" toShortenFQNames="true">
<variable name="TAG" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="TAGNAME" expression="firstWord(TAG)" defaultValue="&quot;&quot;" alwaysStopAt="false" />
<context />
</template>
<template name="logger" value="val log: Logger = Logger[$CLASS_NAME$]" description="Template to import Logger" toReformat="false" toShortenFQNames="true">
<variable name="CLASS_NAME" expression="fileName()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="SCALA_CODE" value="true" />
@zeromancer
zeromancer / Eclipse my__.xml
Created October 4, 2017 19:31
Intellij settings/keymaps/my__.xml
<keymap version="1" name="Eclipse my^^" parent="Eclipse">
<action id="ChooseRunConfiguration">
<keyboard-shortcut first-keystroke="shift alt f10" />
<keyboard-shortcut first-keystroke="shift ctrl altGraph space" />
</action>
<action id="CommentByLineComment">
<keyboard-shortcut first-keystroke="ctrl slash" />
<keyboard-shortcut first-keystroke="ctrl divide" />
<keyboard-shortcut first-keystroke="shift ctrl c" />
</action>
@zeromancer
zeromancer / org.eclipse.jdt.ui.prefs
Created October 4, 2017 19:37
Eclipse [workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs
MemberFilterActionGroup.org.eclipse.jdt.ui.JavaOutlinePage.4=true
MemberFilterActionGroup.org.eclipse.jdt.ui.JavaOutlinePage.8=true
Refactoring.savealleditors=true
breadcrumb.org.eclipse.jdt.ui.JavaPerspective=true
cleanup.add_default_serial_version_id=true
cleanup.add_generated_serial_version_id=false
cleanup.add_missing_annotations=true
cleanup.add_missing_deprecated_annotations=true
cleanup.add_missing_methods=true
cleanup.add_missing_nls_tags=false
@zeromancer
zeromancer / org.eclipse.ui.workbench.prefs
Created October 4, 2017 19:37
Eclipse [workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.workbench.prefs
//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false
ColorsAndFontsPreferencePage.expandedCategories=Torg.eclipse.ui.workbenchMisc
ColorsAndFontsPreferencePage.selectedElement=Forg.eclipse.ui.workbench.texteditor.blockSelectionModeFont
ENABLED_DECORATORS=org.eclipse.m2e.core.mavenVersionDecorator\:false,org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator\:true,org.eclipse.jdt.ui.override.decorator\:true,org.eclipse.jdt.ui.interface.decorator\:false,org.eclipse.jdt.ui.buildpath.decorator\:true,org.eclipse.m2e.core.maven2decorator\:true,org.eclipse.mylyn.context.ui.decorator.interest\:true,org.eclipse.mylyn.tasks.ui.decorators.task\:true,org.eclipse.mylyn.team.ui.changeset.decorator\:true,org.eclipse.team.cvs.ui.decorator\:true,org.eclipse.ui.LinkedResourceDecorator\:true,org.eclipse.ui.SymlinkDecorator\:true,org.eclipse.ui.VirtualResourceDecorator\:true,org.eclipse.ui.ContentTypeDecorator\:true,org.eclipse.ui.Re
@zeromancer
zeromancer / eclipse-configuration.md
Last active October 4, 2017 19:55
Eclipse Configuration

Custom shortcuts

  • ctrl + o -> (quick) outline view

  • ctrl + alt + h -> call hierarchy

  • shift + alt + l -> extract variable

  • shift + alt + m -> extract method

  • ctrl + shift + r -> search resource

  • ctrl + shift + t -> search class