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
import os | |
string = """ | |
Introduction 03:39 | |
How to sell your websites for $15,000 09:16 | |
SECTION 2: BEATING THE COMPETITION: HOW TO DIFFERENTIATE YOUR WEB DESIGN SERVICES | |
""" | |
stringSplit = '' |
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
<?php | |
$lines = file('timestamps.txt'); // one timestamp per line, no delimiters or other characters, num only | |
$humandates = array(); | |
foreach($lines as $line_num => $line) { | |
$realdate = date('m/d/Y', $line); | |
array_push($humandates,$realdate); | |
} |
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
<?php | |
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; | |
$urls = array('http://www.google.com','http://www.kicker.de','http://www.spiegel.de', 'http://www.karriere-papier-verpackung.de'); | |
$urls2 = ["Transfermarkt" => "http://www.transfermarkt.de", "Kicker" => "http://www.kicker.de"]; | |
foreach($urls2 as $title => $url){ | |
echo "Pagerank " . $title . ": " . \SEOstats\Services\Google::getPageRank($url) . "\n"; |
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
from subprocess import call | |
import csv | |
with open('urls.csv', 'r') as csvfile: | |
infile = csv.reader(csvfile) | |
for row in infile: | |
quality = '-s 300' | |
fileout = '-o '+row[0]+'.png' | |
filein = row[1] | |
call(["qrencode",fileout,quality,filein]) |
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
{"lastUpload":"2017-03-03T11:07:30.416Z","extensionVersion":"v2.5.1"} |
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
<?php | |
namespace Tests\Feature; | |
use Tests\TestCase; | |
use Illuminate\Foundation\Testing\WithFaker; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
use App\User; | |
class ExampleTest extends TestCase |
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
<?xml version="1.0"?> | |
<ruleset name="PHP_CodeSniffer"> | |
<description>The coding standard for this project.</description> | |
<rule ref="PSR2"/> | |
<file>app</file> | |
<file>bootstrap</file> | |
<file>config</file> | |
<file>database</file> | |
<file>resources</file> |
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
FAILURES! | |
Tests: 1, Assertions: 4, Failures: 1. | |
PHPUnit\Framework\ExpectationFailedException : Failed asserting that '<!doctype html>\n | |
<html lang="en">\n | |
<head>\n | |
<meta charset="utf-8">\n | |
<meta name="viewport" content="width=device-width, initial-scale=1">\n | |
\n | |
<!-- CSRF Token -->\n |
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
public function() { | |
return $this; | |
} |
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
class PHPUnit extends TestCase | |
{ | |
public function testAssertions() | |
{ | |
$this->assertTrue(true); | |
} | |
} |
OlderNewer