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
/* | |
html2canvas 0.5.0-beta2 <http://html2canvas.hertzen.com> | |
Copyright (c) 2015 Niklas von Hertzen | |
Released under MIT License | |
*/ | |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.html2canvas = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
(function (global){ | |
/*! https://mths |
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 perl | |
# create m3u file for banshee playlist | |
use warnings; | |
use strict; | |
use DBI; | |
use File::Basename; | |
use Getopt::Long; | |
use IO::File; | |
use Pod::Usage; |
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 | |
class Select2Context{ | |
public function iCompleteSelect2($term, $field, $entry) | |
{ | |
if (!($driver = $this->getDriver()) instanceof Selenium2Driver) { | |
throw new \InvalidArgumentException('Don\'t use select2 in non-selenium env'); | |
} | |
$this->openField($field); | |
$this->fillSearchField($field, $term); |
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 'vendor/autoload.php'; | |
$pdf = new \Knp\Snappy\Pdf(); | |
$pdf->setBinary('/home/andrew/.composer/vendor/bin/wkhtmltopdf-amd64'); | |
file_put_contents('test.pdf', $pdf->getOutput(array('http://github.com', 'http://gist.github.com'))); |
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
after_failure: | |
- sudo apt-get update && sudo apt-get install mutt | |
- echo "Something failed" | mutt $( printf -- '-a %q ' build/screenshots/*.png ) -s "Travis fail" -- [email protected] |
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
; top-most EditorConfig(editorconfig.org) file | |
root = true | |
[*] | |
end_of_line = LF | |
indent_style = space | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
charset = utf-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
App\Model\File: | |
type: entity | |
table: files | |
entityListeners: | |
App\Doctrine\EventListener\FileUploadListener: | |
prePersist: [upload] | |
preUpdate: [upload] | |
preRemove: [remove] | |
id: | |
id: |
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 php | |
<?php | |
// if you don't want to setup permissions the proper way, just uncomment the following PHP line | |
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | |
//umask(0000); | |
set_time_limit(0); | |
const DOCKER_CONTAINER_NAME = 'app_phpfpm_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
#!/bin/bash | |
USER="!!!USER!!!" #changeme | |
PASSWORD="!!!PASSWORD!!!" #changeme | |
URL="!!!DOMAIN!!!" #changeme | |
SCHEME="!!!https or http!!!" #changeme | |
SCREENS_DIR=Screenshots #changeme or not | |
YEAR=$(date +"%Y") | |
NOW=$(date +"%m_%d_%s") |
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 Context; | |
use Behat\Behat\Context\Context; | |
use Behat\Behat\Context\SnippetAcceptingContext; | |
use Knp\FriendlyContexts\Context\RawPageContext; | |
class FeatureContext extends RawPageContext implements Context, SnippetAcceptingContext | |
{ |