optipng -o7 picture.png
pngout picture.png compressed.png
pngcrush -reduce -brute picture.png compressed.png
advpng -4 -z picture.png
<?php | |
// get some values for the params from get; we also have some default values that render an 100x100 image with a horizontal gradient from black to white | |
$width = 100; | |
if (isset($_GET['width'])) // the width of out output pic | |
{ | |
$width = filter_var($_GET['width'], FILTER_VALIDATE_INT); // I am not using filter_input without the isset() test because some applications will use url rewriting | |
} | |
$height = 100; | |
if (isset($_GET['height'])) // height of the pic | |
{ |
<?php | |
class OpenSSLCert | |
{ | |
protected $options; | |
protected $pkey; | |
public function __construct(OpenSSLCertOptions $options, OpenSSLKey $key) | |
{ | |
$this->options = $options; | |
$this->pkey = $key; |
optipng -o7 picture.png
pngout picture.png compressed.png
pngcrush -reduce -brute picture.png compressed.png
advpng -4 -z picture.png
var captureCount = 1; | |
var startTime = new Date().getTime(); | |
var screenshotPath = 'screenshots'; | |
function screenshot(casper) { | |
casper.capture(screenshotPath+'/'+startTime+'/'+captureCount+'.png'); | |
captureCount++; | |
} |
/*! | |
* jQuery UI CSS Framework 1.9.2 | |
* http://jqueryui.com | |
* | |
* Copyright 2012 jQuery Foundation and other contributors | |
* Released under the MIT license. | |
* http://jquery.org/license | |
* | |
* http://docs.jquery.com/UI/Theming/API |
<?php | |
$dom = new DOMDocument(); | |
$dom->formatOutput = true; | |
$node = eZContentObjectTreeNode::fetch(1); | |
function export($eznode, $parent, $dom) { | |
$element = $dom->createElement('node'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://static.synap.fr/jquery.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
var min=0,max=11; | |
function filter() { |
#include <cstdlib> | |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
int main() | |
{ | |
printf("Content-Type: text/plain;\n\n"); | |
printf("ok"); |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import _mysql | |
import sys | |
con = "" | |
try: | |
con = _mysql.connect( host='mysql.ebi.ac.uk', |
eZContentObject = Backbone.Model.extend | |
urlRoot: | |
$.ez.url + 'call/ezjscnode::load::ezobject_' | |
url: | |
() -> @urlRoot + @get 'id' | |
parse: | |
(response) -> response.content |