Skip to content

Instantly share code, notes, and snippets.

View nandajavarma's full-sized avatar
🐌
Snailing

Nandaja Varma nandajavarma

🐌
Snailing
View GitHub Profile
# -*- coding: utf-8 -*-
import urllib2
import re
import csv
from bs4 import BeautifulSoup
import sys
from sys import argv
def getlinks(csvfile):
links = []
#!/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
#!/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
#!/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
}
@nandajavarma
nandajavarma / example.js
Created September 15, 2013 13:01
Welcome to your first Gist! Gists are simple code reminders. Whenever you come across a piece of code you think might be useful later on, save it as a Gist. With GistBox, you can also tag the Gist with a label. This is especially useful for keeping them organized by language, project or purpose. For more info about GistBox, visit: http://www.gi…
// log an object to the browser console
console.log({ text: "foobar" });