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
    
  
  
    
  | // 1. Ir a la pagina a la que se le quiere dar 'likes' a sus publicaciones | |
| //Con el siguiente codigo se llega al final de la pagina automaticamente. Repetir hasta que sea necesario (Recomendable que haya cargado < de 50 publicaciones) | |
| // 2. Pegar lo siguiente hasta que consideres necesario. | |
| window.scrollTo(0, document.body.scrollHeight); | |
| setTimeout(function(){ | |
| window.scrollTo(0, document.body.scrollHeight); | |
| }, 2000); | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env python | |
| import urllib2 | |
| import json | |
| import os | |
| from datetime import datetime | |
| import re | |
| params = { | 
  
    
      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
    
  
  
    
  | /** | |
| * Máximo Divisor Comum recursivo | |
| * @param a | |
| * @param b | |
| * @return O MDC de a e b | |
| */ | |
| public static int mdc(int a, int b) { | |
| if (b == 0) { | |
| return a; | |
| } | 
  
    
      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
    
  
  
    
  | __author__ = 'andyenkeboll' | |
| import requests | |
| # on mac, `sudo pip install facebook-sdk` | |
| # https://pypi.python.org/pypi/facebook-sdk | |
| import facebook | |
| from collections import Counter | |
| # `sudo pip install mechanize` | |
| import mechanize | |
| import re | 
  
    
      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
    
  
  
    
  | Array.prototype.slice.call(document.getElementsByClassName('userContentWrapper')).forEach(function(itm) { | |
| if (itm.innerHTML.search(/nfl|football/i) != -1) { | |
| itm.parentNode.removeChild(itm) | |
| } | |
| }) | 
  
    
      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
    
  
  
    
  | function getUrl(query,type,callback){ | |
| var access = Meteor.user().services.facebook.accessToken | |
| var url = 'https://graph.facebook.com/search?' | |
| url += $.param({ | |
| q:query, | |
| type : type, | |
| access_token : access | |
| }); | |
| return $.get(url,callback); | |
| } | 
  
    
      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
    
  
  
    
  | function partition( array, left, right ) { | |
| var pivot = array[Math.floor((left + right)/2)], | |
| i = left, | |
| j = right; | |
| while ( i <= j ) { | |
| while ( array[i] < pivot ) { | |
| i++; | 
  
    
      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
    
  
  
    
  | // esse script terá que ficar no header.php | |
| window.fbAsyncInit = function() { | |
| FB.init({ | |
| appId : 'app id', | |
| status : true, // check login status | |
| cookie : true, // enable cookies to allow the server to access the session | |
| xfbml : true // parse XFBML | |
| }); | 
  
    
      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
    
  
  
    
  | #@@@@@Sorry: this code has been deprecated in 2015, April 30 with new Facebook 2.0 API version | |
| import urllib.request | |
| import json | |
| def search(texto): | |
| #pegue o access_token | |
| #em https://developers.facebook.com/tools/explorer | |
| url = 'https://graph.facebook.com/search?q=' | |
| tail = '&type=post&access_token=<copie aqui o access_token>' | |
| resp = urllib.request.urlopen(url+texto+tail).read() | 
  
    
      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 facepy import GraphAPI | |
| import facepy | |
| import re | |
| import json | |
| #meta variables | |
| access_token = 'your_token' | |
| page_id = 'the_page' # input page id here | |
| base_query = page_id + '/feed?limit=300' |