This file contains 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
require 'rest_client' | |
require 'nokogiri' | |
class FacebookLogin | |
def initialize(username, password) | |
@cookies = {} | |
@payload = {email: username, pass: password} | |
@headers = {'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'} | |
# Define login flow | |
@login_steps = [ |
This file contains 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
let fs = require('fs'); | |
let path = require('path'); | |
let inputDir = '/in'; | |
let outputDir = '/out'; | |
function modifyFile(buffer, mode) { | |
let content = buffer; | |
if (mode == 'utf-8') { | |
// Code to modify text files |