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
__________________________________________________________________________________________________ | |
Layer (type) Output Shape Param # Connected to | |
================================================================================================== | |
input_2 (InputLayer) (None, 256, 256, 3) 0 | |
__________________________________________________________________________________________________ | |
block1_conv1 (Conv2D) (None, 127, 127, 32) 864 input_2[0][0] | |
__________________________________________________________________________________________________ | |
block1_conv1_bn (BatchNormaliza (None, 127, 127, 32) 128 block1_conv1[0][0] | |
__________________________________________________________________________________________________ | |
block1_conv1_act (Activation) (None, 127, 127, 32) 0 block1_conv1_bn[0][0] |
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 ( | |
"fmt" | |
"math" | |
"flag" | |
"strings" | |
) | |
type Ngrams struct { |
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
(add-hook 'slime-connected-hook | |
(lambda () | |
(slime-setup '(slime-c-p-c)))) |
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
$ cd .emacs.d | |
$ wget https://raw.github.com/technomancy/slime/master/contrib/swank-c-p-c.lisp |
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
lein plugin install swank-clojure 1.4.0 |
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
(ryszard franklin):~/tmp/leiningen% lein | |
Downloading Leiningen now... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 6468k 100 6468k 0 0 1076k 0 0:00:06 0:00:06 --:--:-- 1241k | |
java.io.FileNotFoundException: Could not locate leiningen/core__init.class or leiningen/core.clj on classpath: (NO_SOURCE_FILE:0) | |
at clojure.lang.Compiler.eval(Compiler.java:4186) | |
at clojure.core$eval__3818.invoke(core.clj:1635) | |
at clojure.main$eval_opt__5584.invoke(main.clj:181) | |
at clojure.main$initialize__5591.invoke(main.clj:200) |
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
--- a/setjam/__init__.py | |
+++ b/setjam/__init__.py | |
@@ -26,6 +26,7 @@ logging.handlers.SysLogHandler.priority_map['START'] = 'notice' | |
# access - impossible in ini file without deep magic) | |
logger = logging.getLogger("setjam") | |
root_logger = logging.getLogger('') | |
+timer_logger = logging.getLogger('setjam.classification.timer') | |
default_formatter = root_logger.handlers[0].formatter | |
def _setting(name, default): |
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
{'agents.adultswim.agent.AdultSwimAgent': 'adult-swim', | |
'agents.amazon_dvd.agent.AmazonDVDAgent': 'amazon', | |
'agents.amazon_vod.agent.AmazonVodAgent': 'amazon', | |
'agents.cartoonnetwork.agent.CartoonNetworkAgent': 'cartoon-network', | |
'agents.cbs_xml.agent.CBSXmlAgent': 'cbs', | |
'agents.comedy_central.agent.ComedyCentralAgent': 'comedy-central', | |
'agents.crunchyroll.agent.CrunchyrollAgent': 'crunchy-roll', | |
'agents.cwtv.agent.CWTVAgent': 'cwtv', | |
'agents.disney.agent.DisneyAgent': 'disney', | |
'agents.fxnetworks.agent.FXNetworksAgent': 'fxnetworks', |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$.getJSON('http://adhoc.setjam.com/api/subscriptions/title/battlestar-galactica-2?callback=?', console.log) | |
}) | |
</script> |
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 ngrams import Ngrams, CharNgrams | |
def distance(left, right): | |
season = abs(int(left.get('season') or 0) - int(right.get('season') or 0)) | |
number = abs(int(left.get('number') or 0) - int(right.get('number') or 0)) | |
title = 1 - (CharNgrams(left.get('title', '')) * CharNgrams(right.get('title', ''))) | |
#description = 1 - (Ngrams(left.get('description', '')) * Ngrams(right.get('description', ''))) | |
return season * 5 + number * 5 + title * 15# + description * 10 |
NewerOlder