- Add the following lines of code to the end of the
deps
file:
[lessphp]
git=https://github.com/leafo/lessphp.git
target=/lessphp
version=v0.3.2
--- | |
#### | |
#### THIS IS OLD AND OUTDATED | |
#### LIKE, ANSIBLE 1.0 OLD. | |
#### | |
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
#### | |
#### IF IT BREAKS I'M JUST SOME GUY WITH | |
#### A DOG, OK, SORRY | |
#### |
<?php | |
namespace Renoir\AggregationBundle; | |
/** | |
* Abstract client to use for each Client | |
* | |
* Example location: src/Renoir/AggregationBundle/AbstractClient.php | |
**/ |
$cache = $this->get('cache'); | |
$cache->setNamespace('mynamespace.cache'); | |
if (false === ($cached_data = $cache->fetch($cache_key))) { | |
$cached_data = $SOMEAPI->getData($params); | |
$cache->save($cache_key, $cached_data, 3600);//TTL 1h | |
} |
package main | |
import ( | |
"github.com/AllenDang/w32" | |
"io" | |
"os" | |
"unsafe" | |
"errors" | |
"fmt" | |
"syscall" |
<?php | |
error_reporting(E_ALL + E_STRICT); | |
require_once __DIR__.'/../vendor/autoload.php'; | |
use Silex\Application; | |
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Routing\RequestContext; |
import redis | |
from redis import WatchError | |
import time | |
RATE = 0.1 | |
DEFAULT = 100 | |
TIMEOUT = 60 * 60 | |
DEBUG = False |
<?php | |
// src/Foobar/Controller/FooController.php | |
namespace Foobar\Controller; | |
class FooController | |
{ | |
public function helloAction($request) | |
{ |
# based on https://launchpadlibrarian.net/94884626/testUtcToDst.patch | |
# from https://bugs.launchpad.net/dateutil/+bug/944123 | |
import unittest | |
from datetime import datetime, timedelta | |
import dateutil.tz | |
import dateutil.zoneinfo | |
import pytz | |
tzname = "America/Toronto" |