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
(defmodule kitty-server | |
(export all)) | |
(defrecord cat | |
name | |
(color 'green) | |
description) | |
;; Client API | |
(defun start-link () |
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
(defmodule kitty-server2 | |
(export all)) | |
(defrecord cat | |
name | |
(color 'green) | |
description) | |
(defun start-link () | |
(my-server:start-link (MODULE) ())) |
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
(defmodule kitty-gen-server | |
(export all) | |
(behavior 'gen_server)) | |
(defrecord cat | |
name | |
(color 'green) | |
description) | |
(defun start-link () |
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
(defmodule curling-accumulator | |
(export all) | |
(behavior 'gen_event)) | |
(defrecord state | |
(teams (orddict:new)) | |
(round 0)) | |
(defun init | |
(('()) `#(ok ,(make-state)))) |
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
(defmodule band-supervisor | |
(export all) | |
(behavior 'supervisor)) | |
(defun start-link (type) | |
(supervisor:start_link `#(local ,(MODULE)) (MODULE) type)) | |
(defun start_link (type) | |
(start-link type)) |
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
(defmodule ppool-nagger | |
(export all) | |
(behavior gen_server)) | |
(defun start-link (task delay max send-to) | |
(gen_server:start_link (MODULE) `#(,task ,delay ,max ,send-to) '())) | |
(defun start_link (task delay max send-to) | |
(start-link task delay max send-to)) |
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
use "net/http" | |
actor Main | |
new create(env: Env) => | |
let service = try env.args(1) else "50000" end | |
let limit = try env.args(2).u64() else 100 end | |
Server(Info(env), Handle, CommonLog(env.out) where service = service, | |
limit = limit) |
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
from twisted.web import client | |
from twisted.internet import reactor, defer | |
from lxml import etree | |
from StringIO import StringIO | |
import re | |
import os | |
save_dir = "~/.video/xnxx/" | |
base_url = "http://video.xnxx.com" | |
download_re = re.compile("so.addVariable\('flv_url',\s*'([\w\d.:/_]*)'\);", re.M) |
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
from twisted.web import client | |
from twisted.internet import reactor, defer | |
from lxml import etree | |
from StringIO import StringIO | |
import re | |
import os | |
save_dir = "~/.video/jizzhut/" | |
base_url = "http://jizzhut.com" | |
download_re = re.compile('so.addVariable\("content_video",\s*"([\w\d.:/_]*)"\);', re.M) |
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
from twisted.web import client | |
from twisted.internet import reactor, defer | |
from lxml import etree | |
from StringIO import StringIO | |
import re | |
import os | |
save_dir = "~/.video/pornzapp/" | |
base_url = "http://www.pornzapp.com" | |
download_re = re.compile('"/js/interface.php\?id=([\w\d.:/_]*)"', re.M) |