One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
require_once 'vendor/autoload.php'; | |
use Google\Spreadsheet\DefaultServiceRequest; | |
use Google\Spreadsheet\ServiceRequestFactory; | |
putenv('GOOGLE_APPLICATION_CREDENTIALS=' . __DIR__ . '/my_secret.json'); | |
/* SEND TO GOOGLE SHEETS */ | |
$client = new Google_Client; | |
try{ | |
$client->useApplicationDefaultCredentials(); | |
$client->setApplicationName("Something to do with my representatives"); |
import socket | |
from BaseHTTPServer import HTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
class MyHandler(SimpleHTTPRequestHandler): | |
def do_GET(self): | |
if self.path == '/ip': | |
self.send_response(200) | |
self.send_header('Content-type', 'text/html') | |
self.end_headers() |
<?php | |
/** | |
* Require the library | |
*/ | |
require 'PHPTail.php'; | |
/** | |
* Initilize a new instance of PHPTail | |
* @var PHPTail | |
*/ | |
$tail = new PHPTail("/path/to/log"); |