Skip to content

Instantly share code, notes, and snippets.

View cocinerox's full-sized avatar

László Szakács cocinerox

  • Budapest, Hungary
View GitHub Profile
@cocinerox
cocinerox / RStudio_AltGR.ahk
Created February 20, 2015 13:17
Solution for RStudio Server AltGr problem - an AutoHotkey script
; Solution for RStudio Server AltGr problem - an AutoHotkey script
;
; RStudio Server Version 0.98.1091 has a bug for Windows browsers:
; on international keyboards AltGr + <any key> turns into a Ctrl + Alt + <key> shortcut,
; if that shortcut is defined. For example, AltGr + X calls the "Extract Function" method,
; while e.g. it is the keyboard combination for # on the Hungarian keyboard.
;
; The little AutoHotkey (http://www.autohotkey.com/) script below catches the AltGr combinations,
; and writes the appropriate characters (defined by ASCII codes) to the editor/console.
;
@cocinerox
cocinerox / RSelenium_2048.R
Last active August 29, 2015 14:13
RSelenium + 2048
# RSelenium + 2048 demo on Budapest RUG (BURN) meetup - Laszlo Szakacs, 2015-01-14
# Commented and updated on 2015-01-18
# Selenium: http://www.seleniumhq.org
# RSelenium: http://ropensci.github.io/RSelenium
# 2048: http://gabrielecirulli.github.io/2048
# 2048 + R: http://decisionsandr.blogspot.hu/2014/04/play-2048-using-r.html
# Strategies: http://stackoverflow.com/questions/22342854/what-is-the-optimal-algorithm-for-the-game-2048