project-folder/
.git
wp-admin/
wp-content/
wp-includes/
.htaccess
function listAllFiles($driveService){ | |
$parameters = array( | |
'maxResults' => '100' | |
); | |
$results = $driveService->files->listFiles($parameters); | |
echo '<table>'; |
<?php | |
// Display erros if any on the page. | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
session_start(); | |
if(isset($_GET['action']) and $_GET['action'] == 'logout'){ | |
unset($_SESSION['accessToken']); |
<?php | |
namespace Plusquam\Bundle\ContractBundle\Filter; | |
use Doctrine\ORM\Query\Filter\SQLFilter; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Doctrine\Common\Annotations\Reader; | |
class CompartmentFilter extends SQLFilter | |
{ |
<?php | |
/* | |
* PHP: Recursively Backup Files & Folders to ZIP-File | |
* (c) 2012-2014: Marvin Menzerath - http://menzerath.eu | |
* contribution: Drew Toddsby | |
*/ | |
// Make sure the script can handle large folders/files | |
ini_set('max_execution_time', 600); | |
ini_set('memory_limit','1024M'); |
The following terms and conditions, together with a signed project proposal, form an agreement that is intended to protect both parties, and is no way meant to trick or deceive you. We have tried to keep the wording as plain as possible, but if anything is unclear we will be more than happy to clarify it with you.
In short, [CLIENT COMPANY] (referred to herein as “you”) is engaging SJD Digital (referred to herein as “us” & “we”), to undertake the work as specified in the attached proposal, and under the requirements of these terms and conditions.
We will do our best to meet all agreed deadlines. You agree to review our work and provide feedback and approval in a timely manner. You accept that delays in supplying required information or materials may result in longer delays to the delivery of the finished work.
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
from subprocess import Popen, PIPE | |
html = MIMEText("<html><head><title>Test Email</title></head><body>Some HTML</body>", "html") | |
msg = MIMEMultipart("alternative") | |
msg["From"] = "[email protected]" | |
msg["To"] = "[email protected]" | |
msg["Subject"] = "Python sendmail test" |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
<?php | |
error_reporting(E_ALL); | |
function xrange($start, $end, $step = 1) { | |
for ($i = $start; $i < $end; $i += $step) { | |
yield $i; | |
} | |
} |