This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |