Skip to content

Instantly share code, notes, and snippets.

Avatar

Sujay Vadlakonda sujayvadlakonda

  • Dallas, TX
View GitHub Profile
View main.rb
# 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
View index.html
<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>
View init.lua
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 Oct 6, 2020
My Emacs Init File
View init.el
;; 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))