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
// .htaccess | |
// | |
// Add this to the directory where your write.php will be stored | |
// This is an easy way to do an HTTP request to the script with the data | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Change the following to the base directory of this file | |
RewriteBase /clickstats/ |
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
// Auto detect line endings | |
ini_set('auto_detect_line_endings', true); | |
function loadCSV($file) | |
{ | |
// Create an array to hold the data | |
$arrData = array(); | |
// Create a variable to hold the header information | |
$header = NULL; |
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 ast | |
from cStringIO import StringIO | |
import sys | |
INFSTR = '1e308' | |
def interleave(inter, f, seq): | |
seq = iter(seq) | |
try: | |
f(next(seq)) |
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
from scrapy.spider import Spider | |
from scrapy.selector import Selector | |
from yp.items import YpItem | |
class YpSpider(Spider): | |
name = "yp" | |
allowed_domains = ["yellowpages.com"] | |
start_urls = [ | |
"http://www.yellowpages.com/ft-worth-tx/churches?g=ft.%20worth%2C%20tx&q=churches" | |
] |
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
<!doctype> | |
<html> | |
<head> | |
</head> | |
<body> | |
<?php | |
require_once "Classes/PHPExcel.php"; | |
$tmpfname = "test.xlsx"; |
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
/// write to file | |
var txtFile = "c:/test.txt"; | |
var file = new File(txtFile); | |
var str = "My string of text"; | |
file.open("w"); // open file with write access | |
file.writeln("First line of text"); | |
file.writeln("Second line of text " + str); | |
file.write(str); | |
file.close(); |
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
/* ============================================================ | |
| :=Text Spinner | |
=============================================================== */ | |
function preg_quote(str, delimiter) { | |
return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&'); | |
} | |
function spin(text) { | |
var matches = text.match(/{[^<]+/gi); | |
if (matches === null) { |
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/bash | |
################################################################## | |
# A Project of TNET Services, Inc | |
# | |
# Title: WiFi_Check | |
# Author: Kevin Reed (Dweeber) | |
# [email protected] | |
# Project: Raspberry Pi Stuff | |
# | |
# Copyright: Copyright (c) 2012 Kevin Reed <[email protected]> |
NewerOlder