Skip to content

Instantly share code, notes, and snippets.

View sujayvadlakonda's full-sized avatar

Sujay Vadlakonda sujayvadlakonda

  • Dallas, TX
View GitHub Profile
@sujayvadlakonda
sujayvadlakonda / how-to-use-xampp-on-osx.md
Last active March 15, 2023 16:15
How to use XAMPP on OSX
  1. brew install --cask xampp
  2. run manager-osx in /Applications/XAMPP/
  3. Start Apache Server under "Manage Servers" tab
  4. mv foo /Applications/XAMPP/htdocs/dashboard/
  5. chmod +rwx /Applications/XAMPP/htdocs/dashboard/foo
  6. Go to http://localhost/dashboard/foo in browser
# TODO: BPM
# CHECK FREQUENCY_FOR
begin # region: top level tick methods
def tick args
defaults args
render args
input args
process_audio_queue args
end
<html>
<head>
<title>DragonRuby - Hello World</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/styles/default.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/highlight.min.js"></script>
<script src="tutorial.js"></script>
<link rel="stylesheet" href="tutorial.css" />
</head>
<body>
hs.window.animationDuration = 0
hs.window.filter.default:subscribe(hs.window.filter.windowFocused, function(window, appName)
hs.window.focusedWindow():setFullScreen(true)
end)
function open(name)
return function()
hs.window.desktop():focus()
hs.application.open(name):activate()
end
@sujayvadlakonda
sujayvadlakonda / init.el
Last active October 6, 2020 17:10
My Emacs Init File
;; Elisp Extensions
(defun rnth (list)
"Returns the nth to last item in a list. Short for reverse nth"
(interactive)
(nth (- (safe-length list) n) list))
(defun file-name-only ()
"Returns the file name without any of the folders"
(interactive)
(rnth (split-string buffer-file-name "/") 1))