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
Environment of Business - 436 - BUSA 2106 - A | |
Online course. See the message under the Online Courses heading in the Course Schedule for important information. The Professor will email students the syllabus three days before class begins. Contact the instructor at [email protected]. Students are not required to attend any instruction sessions on the Gordon State College campus. However, students are required to attend one meeting on campus in Barnesville to complete the Final Exam on a date TBA. If the student cannot attend the final exam session the student will have to obtain the Professor's permission to take the exam(s) on the same date at a testing center selected by the student and approved by the Gordon State faculty. Students are urged to be familiar with online course delivery, including Desire2Learn, before enrolling in this online course. Please view the Desire2Learn video located at www.gordonstate.edu/departments/computerservices/ georgiaview.asp. An optional technology orientation will be |
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
<IfModule mod_passenger.c> | |
PassengerRoot %ROOT | |
PassengerRuby %RUBY | |
</IfModule> | |
<VirtualHost *:80> | |
ServerName http://www.arthar.com | |
# !!! Be sure to point DocumentRoot to ‘public’! | |
DocumentRoot /var/www/phishing-frenzy/public | |
RailsEnv development |
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
" If using Janus, then this should be .vimrc.after | |
" Technically this is really a gvimrc but who's counting. | |
set nocompatible | |
colorscheme slate | |
filetype plugin indent on | |
set hls | |
" Pretty standard Ruby default tab indentation | |
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab shiftround smarttab |
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
<iframe src="http://darkeditor.altervista.org/" | |
width="290" height="450"></iframe> |
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
# When you run the Scrapy crawler from a program, the code blocks until the Scrapy crawler is finished. This is due to how Twisted (the underlying asynchronous network library) works. This prevents using the Scrapy crawler from scripts or other code. | |
# | |
# To circumvent this issue you can run the Scrapy crawler in a thread with this code. | |
# | |
# Keep in mind that this code is mainly for illustrative purposes and far from production ready. | |
# | |
# Also the code was only tested with Scrapy 0.8, and will probably need some adjustments for newer versions (since the core API isn't stable yet), but you get the idea. | |
""" | |
Code to run Scrapy crawler in a thread - works on Scrapy 0.8 |
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
# This is an example of file uploading using scrapy to a server that uses uberuploader. | |
# The spider logins to the page to make the upload, some webpages dont need to be logged in order to upload. | |
# IMPORTANT : You should increment DOWNLOAD_TIMEOUT in settings.py, but by the time this snippet was wrote isnt working fine. I recompile the whole scrapy changing the default of 3min. | |
# Observations about my snippet: | |
# Is possible this is not the best code, please comment corrections. | |
# This could or should be implemented in a downloader middleware or pipeline? | |
# Don't show uploading state. | |
# Mime message creating could or should be in other place. | |
class fileUploadSpider(CrawlSpider): |
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
# This middleware can be used to avoid re-visiting already visited items, which can be useful for speeding up the scraping for projects with immutable items, ie. items that, once scraped, don't change. | |
from scrapy import log | |
from scrapy.http import Request | |
from scrapy.item import BaseItem | |
from scrapy.utils.request import request_fingerprint | |
from myproject.items import MyItem | |
class IgnoreVisitedItems(object): |
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
# Required import statement for CloseSpider. Note: if intending to limit items, you can pass '--SET CLOSESPIDER_ITEMCOUNT=10' like so: | |
# | |
# scrapy crawl googledir --set CLOSESPIDER_ITEMCOUNT=10 | |
from scrapy.exceptions import CloseSpider | |
raise CloseSpider('reason for closing') | |
# Snippet imported from snippets.scrapy.org (which no longer works) |
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
#!/usr/bin/env python | |
############################### README ############################### | |
# External dependencies: | |
# * libmagic | |
# * python-dateutil | |
# * python-magic | |
# * requests | |
# | |
# The shell command call at the end was tested with GNU date from GNU |
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
;;; pastels-on-dark-theme.el --- Pastels on Dark theme for Emacs 24 | |
;; Author: Mats Persson | |
;; Maintainer: Shane Celis <shane (at) gnufoo (dot) org> | |
;; URL: http://gist.github.com/1906662 | |
;; Version: 0.3 | |
;; Keywords: theme, color | |
;;; Commentary: |