JOSE is a comprehensive set of JWT, JWS, and JWE libraries.
go get github.com/SermoDigital/jose
# Builds a frozen version of WeasyPrint (https://github.com/kozea/weasyprint) | |
# that includes all required dependencies and libraries. | |
# | |
# Dependencies: | |
# | |
# * GNU make (build-essential package on Debian) | |
# * Python headers (python3-dev package on Dabian) | |
# * virtualenv | |
# | |
# Usage: |
<?php | |
class SomeClass { public function someMethod() {} } | |
class SomeClassTest extends PHPUnit_Framework_TestCase { | |
public function testSomeMethod() { | |
$someValue = ' ... '; | |
$mock = $this->createMock('SomeClass'); | |
$mock | |
->expects($this->once()) |
package main | |
import ( | |
"log" | |
"syscall" | |
"unsafe" | |
) | |
var ( | |
kernel32 = syscall.NewLazyDLL("kernel32.dll") |
package main | |
/** | |
* @website http://albulescu.ro | |
* @author Cosmin Albulescu <[email protected]> | |
*/ | |
import ( | |
"bytes" | |
"fmt" |
FROM php:5.6-fpm | |
RUN curl -L -o /tmp/xdebug-2.3.3.tgz http://xdebug.org/files/xdebug-2.3.3.tgz \ | |
&& tar xfz /tmp/xdebug-2.3.3.tgz \ | |
&& rm -r /tmp/xdebug-2.3.3.tgz \ | |
&& mv xdebug-2.3.3 /usr/src/php/ext/xdebug \ | |
&& docker-php-ext-install xdebug | |
CMD ["php-fpm"] |
If you use Ubuntu or a derivative distro, issue the following to install an appropriate version of Flash:
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu `lsb_release -cs` partner"
sudo apt update
sudo apt install adobe-flashplugin
If your distro does not provide a copy of Pepper Flash that works with Vivaldi, this script will download and install it for you. To use, click on the "Download ZIP" button listed on the GitHub Gist page and then unpack the .zip archive locally. You should now have a directory containing the file "latest-pepper-flash.sh".
typeof(+undefined|0) | |
typeof(+NaN|0) | |
typeof(+null|0) | |
typeof(+0|0) | |
typeof(+[]|0) | |
typeof(+{}|0) | |
typeof(+"2"|0) | |
typeof(+1|0) | |
// +yourValue|0 |
<?php | |
namespace Liip\AcmeBundle\Filter; | |
use Sonata\AdminBundle\Form\Type\Filter\ChoiceType; | |
use Sonata\AdminBundle\Datagrid\ProxyQueryInterface; | |
use Sonata\DoctrineORMAdminBundle\Filter\StringFilter; | |
class CaseInsensitiveStringFilter extends StringFilter | |
{ |