Skip to content

Instantly share code, notes, and snippets.

View fabjan's full-sized avatar

Fabian Bergström fabjan

View GitHub Profile
@fabjan
fabjan / MoveMouseByCurvePlugin.cpp
Created February 11, 2020 15:42 — forked from pomettini/MoveMouseByCurvePlugin.cpp
Unreal Engine 4 Plugin that moves the cursor along a Curve
#include "MoveMouseByCurvePlugin.h"
#define LOCTEXT_NAMESPACE "FMoveMouseByCurvePluginModule"
void FMoveMouseByCurvePluginModule::StartupModule()
{
UE_LOG(LogTemp, Warning, TEXT("Moving curve along mouse start initialization"));
FConsoleCommandWithArgsDelegate MoveMouseDelegate;
MoveMouseDelegate.BindRaw(this, &FMoveMouseByCurvePluginModule::MoveMouseAlongCurveWithPath);
-module(foo).
-compile(export_all).
%%% Prints the given string `Num_times` times, with `Time_between` milliseconds
%%% between each print.
printer(Text, Num_times, Time_between) ->
[begin
io:format(Text),
-- Model at http://i.imgur.com/kuxy2.png
-- Find all channels that have tags 'tag 1' and 'tag 2'
select c.channel
from channels c
where c.id in (select ct.channelid
from channel_tags ct
join tags t on ct.tagid = t.id
where t.tag = 'tag 1')
and c.id in (select ct.channelid
require 'webrick'
require 'webrick/httpproxy'
require 'optparse'
sites = []
port = 8080
delay = 5
OptionParser.new do |opts|
opts.banner = "Act as a transparent proxy that delays certain sites from loading"
import mpd
import curses
class Mjolnir(object):
'''Main Mjolnir class'''
def __init__(self, hostname, port):
'''Mjolnir constructor'''
self.__connected = False
self.__hostname = hostname
self.__port = port