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
    
  
  
    
  | // ==UserScript== | |
| // @name Actually hide muted twitter users | |
| // @namespace https://gist.github.com/cwramsey/3a2d9c7787e58f0380f4 | |
| // @version 0.1 | |
| // @description Removes muted twitter users from your timeline | |
| // @author Chris Ramsey | |
| // @match https://twitter.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| /* jshint -W097 */ | 
  
    
      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
    
  
  
    
  | <?php | |
| function compose(...$funcs) { | |
| return function() use ($funcs) { | |
| $funcs = array_reverse($funcs); | |
| $data = func_get_args(); | |
| foreach ($funcs as $func) { | |
| $data = [call_user_func_array($func, $data)]; | |
| } | 
  
    
      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
    
  
  
    
  | ├── LICENSE.md | |
| ├── README.md | |
| ├── RedditNotifierChrome.crx | |
| ├── Subreddit-Notifier | |
| ├── img | |
| │ ├── reddit_black.png | |
| │ └── reddit_red.png | |
| ├── manifest.json | |
| ├── popup.html | |
| ├── scripts | 
  
    
      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
    
  
  
    
  | { | |
| "manifest_version": 2, | |
| "name": "Subreddit Notifier", | |
| "description": "Notifies you of new posts with specific keywords in any subreddit you choose.", | |
| "version": "0.1", | |
| "browser_action": { | |
| "default_icon": "img/reddit_black.png", | |
| "default_popup": "popup.html" | |
| }, | 
  
    
      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
    
  
  
    
  | Template.body.helpers({ | |
| posts: function() { | |
| return Posts.find(); | |
| }, | |
| searching: function() { | |
| return Session.get('searching'); | |
| } | |
| }); | 
  
    
      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
    
  
  
    
  | Template.body.events({ | |
| 'submit form': function(e, t) { | |
| e.preventDefault(); | |
| var subreddit = t.$('input[type=text]').val(); | |
| if (subreddit) { | |
| Session.set('subreddit', subreddit); | |
| } | |
| }, | 
  
    
      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
    
  
  
    
  | Tracker.autorun(function() { | |
| if (Session.get('subreddit')) { | |
| var searchHandle = Meteor.subscribe('subredditSearch', Session.get('subreddit')); | |
| Session.set('searching', ! searchHandle.ready()); | |
| } | |
| }); | 
  
    
      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
    
  
  
    
  | Posts = new Mongo.Collection('posts'); | |
| Session.setDefault('subreddit', 'all'); | |
| Session.setDefault('searching', false); | 
  
    
      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
    
  
  
    
  | Posts = new Mongo.Collection('posts'); | |
| Session.setDefault('subreddit', 'all'); | |
| Session.setDefault('searching', false); | |
| SUPPORTED_MEDIA_TYPES = ['jpg', 'png', 'gif']; | |
| Tracker.autorun(function() { | |
| if (Session.get('subreddit')) { | |
| var searchHandle = Meteor.subscribe('subredditSearch', Session.get('subreddit')); | 
  
    
      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
    
  
  
    
  | _.each(response.data.data.children, function(item) { | |
| var data = item.data; | |
| var len = 200; | |
| var post = { | |
| id: data.id, | |
| url: data.url, | |
| domain: data.domain, | |
| comment_count: data.num_comments, | |
| permalink: data.permalink, | 
NewerOlder