Skip to content

Instantly share code, notes, and snippets.

@fnumatic
fnumatic / Gui.scala
Created November 23, 2012 11:28
Simple Swing Application with scala.react * github.com/ingoem/scala-react
import MySwingDomain._
object Gui extends ReactiveSwingApp {
val button = new MyButton("test")
def top = new MainFrame {
contents = new FlowPanel {
contents += button
}
}
var _loadScript = function(path){
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= path;
document.head.appendChild(script);
};
function fetchLocal(url) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest
@fnumatic
fnumatic / hop-dot-repeat.lua
Created February 20, 2024 14:34
github.com/smoka7/hop.nvim support for dot repeat
-- https://gist.github.com/kylechui/a5c1258cd2d86755f97b10fc921315c3
-- https://www.vikasraj.dev/blog/vim-dot-repeat
-- https://github.com/phaazon/hop.nvim/issues/58
-- https://github.com/smoka7/hop.nvim/issues/39
-- https://github.com/FelipeLema
local hop = require("hop")
local builtin_targets = require("hop.jump_target")
local builtin_targets2 = require("hop.jump_regex")