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
'use strict'; | |
var util = require('util'); | |
var _ = require('lodash'); | |
var Scraper = require('./scraper'); | |
/** | |
* The default constructor | |
*/ | |
function Instagram() { |
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
var Google = require('./lib/google'); | |
var Hunter = require('./lib/hunter'); | |
var Instagram = require('./lib/instagram'); | |
/** | |
* The defaul constructor | |
*/ | |
function Influence() { | |
} |
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
'use strict'; | |
var Influence = require('./').Influence; | |
var term = 'top fitness instagram accounts'; | |
Influence.find(term).then( | |
/** | |
* Handles the instagram profiles | |
*/ |
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
[ | |
{ | |
"link": "https://www.instagram.com/menshealthmag", | |
"username": "menshealthmag", | |
"name": "Men's Health", | |
"followers": "939k", | |
"picture": "https://instagram.fcpq1-1.fna.fbcdn.net/t51.2885-19/11371057_983333891687510_70028928_a.jpg" | |
}, | |
{ | |
"link": "https://www.instagram.com/harpersbazaarus", |
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 | |
class Events { | |
private static $listeners = array(); | |
public static function listen($event, $callback) { | |
self::$listeners[$event][] = $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
SAM_FILE = r'C:\Windows\System32\config\sam' | |
with open(SAM_FILE, 'r') as sam: | |
print sam.readlines() |
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
import os | |
import sys | |
import ctypes | |
import _winreg | |
def is_running_as_admin(): | |
''' | |
Checks if the script is running with administrative privileges. | |
Returns True if is running as admin, False otherwise. | |
''' |
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
import os | |
import sys | |
import ctypes | |
import _winreg | |
CMD = r"C:\Windows\System32\cmd.exe" | |
FOD_HELPER = r'C:\Windows\System32\fodhelper.exe' | |
PYTHON_CMD = "python" | |
REG_PATH = 'Software\Classes\ms-settings\shell\open\command' | |
DELEGATE_EXEC_REG_KEY = 'DelegateExecute' |
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
class Alphanumeric(object): | |
ALPHABET_LENGTH = 26 | |
def __init__(self, nrange=None): | |
self.current_letter = 'z' | |
self.current_number = 0 | |
self.nrange = nrange | |
def forward_letter(self, letter, positions): |
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
console.log("ok"); |