Skip to content

Instantly share code, notes, and snippets.

@silentrob
silentrob / gist:3914f9544d118c64f138
Last active February 25, 2019 00:18
SuperScript Syntax
// Basic Syntax match, reply
+ when I see this
- reply with this
// Multiple replies, one choosen at random
+ when I see this
- reply with this
- or reply with this
// Alternates words in match
@silentrob
silentrob / gist:3184161
Created July 26, 2012 19:58
NPL Bookmarks Links
http://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html
http://code.google.com/p/nltk/source/browse/trunk/nltk
http://wordnet.princeton.edu/wordnet/download/
http://code.google.com/p/nltk/source/browse/trunk/nltk/nltk/chunk/named_entity.py
http://www.writingcentre.uottawa.ca/hypergrammar/subjpred.html
http://nlp.stanford.edu/software/crf-faq.shtml
http://sourceforge.net/apps/mediawiki/opennlp/index.php?title=Name_Finder
http://en.wikipedia.org/wiki/Sentiment_analysis
http://arxiv.org/pdf/cs.LG/0212032
http://www.scribd.com/doc/7865458/the-learning-chatbot
@silentrob
silentrob / .block
Created November 10, 2016 05:05 — forked from nbremer/.block
Radar Chart Redesign
height: 600
doctype html
html
head
title My Awesome site
link(rel="stylesheet", href="/css/main.css")
!= partial("/js/moment")
body
!= yield
@silentrob
silentrob / _data.json
Created October 24, 2013 23:31
Super simple sitemap
{
"rss": {
"layout":false
},
"sitemap": {
"site_url": "http://example.com",
"layout":false
}
}
@silentrob
silentrob / gist:3147818
Created July 20, 2012 00:10
Scroll to position
$('.btt a[href*=#]').bind("click", $.NS.navigationJump);
$.NS = function(){
$(document).ready(function(){
try {
if(location.hash.length > 0){
var target = location.hash.split('/')[1];
var of = (target == "header") ? 0 : 350;
$('html, body').animate({scrollTop: $('#'+target).offset().top + of}, 500);
$('.nav a[href=#'+target+']').addClass('active');
@silentrob
silentrob / gist:2897913
Created June 8, 2012 20:08
Broken code.
FMWK.button = function() {
  var _this = this;
this.el = document.createElement('button');
  ['hide','show'].forEach(function(method){
    FMWK.button.prototype[method] = function(){
      $(_this.el)[method].apply($(_this.el), Array.prototype.slice.call(arguments));
     }
  });
return this;
@silentrob
silentrob / package.json
Created May 20, 2012 23:56
Plex + CP + Trakt Trending Updater
{
"author": "Rob Ellis <rob@silentrob.me>",
"name":"trakt_trending",
"version" : "0.0.1",
"dependencies": {
"request" : "2.9.202",
"xml2js": "*"
}
}
@silentrob
silentrob / gist:1371921
Created November 16, 2011 23:57
Simple Node static Server
#!/usr/bin/env node
var express = require("/Users/ironman/.node_libraries/express");
var startPort = 4567;
var app = express.createServer();
app.configure(function(){
app.use(express.static(process.cwd() + '/'));
app.use(express.directory(process.cwd() + '/',{ icons:true }));
@silentrob
silentrob / ex1data.txt
Created November 9, 2011 07:28
Using Sylvester to run gradient decent in Node.
6.1101,17.592
5.5277,9.1302
8.5186,13.662
7.0032,11.854
5.8598,6.8233
8.3829,11.886
7.4764,4.3483
8.5781,12
6.4862,6.5987
5.0546,3.8166