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
# -*- coding: utf-8 -*- | |
import urllib2 | |
import re | |
import csv | |
from bs4 import BeautifulSoup | |
import sys | |
from sys import argv | |
def getlinks(csvfile): | |
links = [] |
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/ruby | |
pages = Array.new | |
queries = Array.new | |
puts "Enter the input. Hit ctrl + D when done!" | |
ARGF.each do |line| | |
if line[0].downcase == 'p' | |
pages << line.downcase | |
elsif line[0].downcase == 'q' | |
queries << line.downcase | |
else next |
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/ruby | |
pages = Array.new | |
queries = Array.new | |
puts "Enter the input. Hit ctrl + D when done!" | |
ARGF.each do |line| | |
if line[0].downcase == 'p' | |
pages << line.downcase | |
elsif line[0].downcase == 'q' | |
queries << line.downcase | |
else next |
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
#!/bin/sh | |
# Copyright (c) 2010-2011, Diaspora Inc. This file is | |
# licensed under the Affero General Public License version 3 or later. See | |
# the COPYRIGHT file. | |
warning() | |
{ | |
echo "WARNING: $1" >&2 | |
} |
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
// log an object to the browser console | |
console.log({ text: "foobar" }); |
NewerOlder