cbbbc897e9b3

moar
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 25 Jul 2012 15:20:18 -0400
parents ca3c6e437e96
children 2afb56feb146
branches/tags (none)
files dotjs/getprismatic.com.js moom/com.manytricks.Moom.plist mutt/muttrc mutt/sidebar.muttrc vim/custom-dictionary.utf-8.add

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dotjs/getprismatic.com.js	Wed Jul 25 15:20:18 2012 -0400
@@ -0,0 +1,48 @@
+var banned_sites = ['Bits', 'Forbes.com'];
+var banned_tags = ['Venture Capital', 'Social', 'Startups'];
+var banned_words = ['Node'];
+
+var scrubber = function(){
+  $('.article').each(function(index, object){
+    var hideit = false;
+
+    var publisher = $(object).find('.publisher').find('.interest').text();
+
+    var title = $(object).find('.title').find('.external').text();
+
+    //loop through interests against our banned tags
+    $(object).find('.meta').find('.interest').each(function(i, rawinterest){
+
+      var interest = $(rawinterest).text();
+
+      $(banned_tags).each(function(index, object){
+        if(object.toLowerCase() == interest.toLowerCase()){
+          hideit = true;
+        }
+      });
+
+    });
+
+    //loop through our sites checking if it matches the publisher
+    $(banned_sites).each(function(index, object){
+      if(object.toLowerCase() == publisher.toLowerCase()){
+        hideit = true;
+      }
+    });
+
+    //check title against banned_words
+    $(banned_words).each(function(index, object){
+      if(title.toLowerCase().indexOf(object.toLowerCase()) != -1){
+        hideit = true;
+      }
+    });
+
+    //hide the article if deemed garbage
+    if(hideit == true){
+      $(object).hide();
+    }
+
+  });
+}
+
+setInterval(scrubber, 2000);
Binary file moom/com.manytricks.Moom.plist has changed
--- a/mutt/muttrc	Wed Jul 25 15:18:48 2012 -0400
+++ b/mutt/muttrc	Wed Jul 25 15:20:18 2012 -0400
@@ -1,12 +1,12 @@
 # Paths {{{
 
-set alias_file       = ~/.mutt/alias         # alias file
+set alias_file       = ~/.mutt/alias         # where to store aliases
 set header_cache     = ~/.mutt/cache/headers # where to store headers
 set message_cachedir = ~/.mutt/cache/bodies  # where to store bodies
 set certificate_file = ~/.mutt/certificates  # where to store certs
 set mailcap_path     = ~/.mutt/mailcap       # entries for filetypes
+set tmpdir           = ~/.mutt/temp          # where to keep temp files
 set signature        = ~/.mutt/sig           # my signature file
-set tmpdir           = ~/.mutt/temp          # where to keep temp files
 
 # }}}
 # Editor {{{
@@ -25,8 +25,7 @@
 # }}}
 # Basic Options {{{
 
-source ~/.vim/bundle/badwolf/contrib/badwolf.muttrc  # colorscheme
-source ~/.mutt/sidebar.muttrc                        # sidebar
+source ~/.vim/bundle/badwolf/contrib/badwolf.muttrc
 
 set wait_key = no        # shut up, mutt
 set mbox_type = Maildir  # mailbox type
@@ -43,6 +42,17 @@
 set thorough_search      # strip headers and eval mimes before searching
 
 # }}}
+# Sidebar Patch {{{
+
+set sidebar_delim   = '  │'
+set sidebar_visible = yes
+set sidebar_width   = 24
+color sidebar_new color221 color233
+bind index,pager <down>   sidebar-next
+bind index,pager <up>     sidebar-prev
+bind index,pager <right>  sidebar-open
+
+# }}}
 # Status Bar {{{
 
 set status_chars  = " *%A"
--- a/mutt/sidebar.muttrc	Wed Jul 25 15:18:48 2012 -0400
+++ b/mutt/sidebar.muttrc	Wed Jul 25 15:20:18 2012 -0400
@@ -3,15 +3,4 @@
 ###
 
 # settings
-set sidebar_delim       = '  │'
-set sidebar_visible     = yes
-set sidebar_width       = 24
 
-# colors
-color sidebar_new color221 color233
-
-# bindings
-bind index,pager <down>   sidebar-next
-bind index,pager <up>     sidebar-prev
-bind index,pager <right>  sidebar-open
-
--- a/vim/custom-dictionary.utf-8.add	Wed Jul 25 15:18:48 2012 -0400
+++ b/vim/custom-dictionary.utf-8.add	Wed Jul 25 15:20:18 2012 -0400
@@ -68,3 +68,15 @@
 dev
 repo
 hardcoded
+plaintext
+config
+Gmail
+keychain
+muttrc
+autocomplete
+XCode
+Homebrew
+dotfiles
+symlink
+Backblaze
+README