This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"net/http" | |
"io") |
This file contains hidden or 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
from twisted.application import internet, service | |
from twisted.web import proxy, server, vhost | |
from twisted.internet.protocol import Factory, Protocol | |
from twisted.internet import reactor | |
from twisted.names import dns | |
from twisted.names import client | |
from twisted.names.server import DNSServerFactory | |
from twisted.python import log | |
from twisted.internet import defer |
This file contains hidden or 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 socket, sys | |
from twisted.internet.protocol import Factory, Protocol | |
from twisted.internet import reactor | |
from twisted.names import dns | |
from twisted.names import client, server | |
from twisted.python import log | |
from twisted.internet import defer | |
from twisted.names.common import ResolverBase |
This file contains hidden or 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
diff --git a/Makefile.am b/Makefile.am | |
index 45a811c..a033de1 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -185,8 +185,18 @@ if HOGPLUGIN | |
builtin_modules += hog | |
builtin_sources += profiles/input/hog_manager.c profiles/input/hog_device.h \ | |
profiles/input/hog_device.c profiles/input/uhid_copy.h | |
+ | |
endif |
This file contains hidden or 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
/* | |
* | |
* BlueZ - Bluetooth protocol stack for Linux | |
* | |
* Copyright (C) 2006-2007 Nokia Corporation | |
* Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.org> | |
* | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or 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
/* | |
* | |
* BlueZ - Bluetooth protocol stack for Linux | |
* | |
* Copyright (C) 2006-2007 Nokia Corporation | |
* Copyright (C) 2004-2009 Marcel Holtmann <[email protected]> | |
* | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or 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
/* | |
* | |
* BlueZ - Bluetooth protocol stack for Linux | |
* | |
* Copyright (C) 2006-2007 Nokia Corporation | |
* Copyright (C) 2004-2009 Marcel Holtmann <[email protected]> | |
* | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or 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
/* | |
* | |
* BlueZ - Bluetooth protocol stack for Linux | |
* | |
* Copyright (C) 2006-2007 Nokia Corporation | |
* Copyright (C) 2004-2009 Marcel Holtmann <[email protected]> | |
* | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or 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
(ns bot1.core | |
;; To run this (on windows linux or osx) you need lein which isn't much | |
;; just follow the instructions in the README at | |
;; https://github.com/technomancy/leiningen | |
;; | |
;; In an (ns ..) form, you typically use keywords. These are flags | |
;; telling ns what to do, which is why it is different from the REPL | |
;; and outside of an ns form. These are flags that call the | |
;; functions/macros for you. | |
(:require hobbit.bitly) |
This file contains hidden or 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
(ns bot1.core | |
(import (org.jibble.pircbot PircBot)) | |
(require hobbit.bitly) | |
(import (hobbit.bitly Bitly))) | |
(def *bot*) | |
(def url-regex #"[A-Za-z]+://[^ ^/]+\.[^ ^/]+[^ ]+") |
NewerOlder