Skip to content

Instantly share code, notes, and snippets.

bear
desert
average_population: 2
maximum_population: 2
mortality_rate: 100.00%
age: 0.00%
cold: 0.00%
hot: 100.00%
hunger: 0.00%
thirst: 0.00%
<?php
use Silex\Provider\FormServiceProvider;
use Silex\Provider\HttpCacheServiceProvider;
use Silex\Provider\MonologServiceProvider;
use Silex\Provider\SecurityServiceProvider;
use Silex\Provider\SessionServiceProvider;
use Silex\Provider\TranslationServiceProvider;
use Silex\Provider\TwigServiceProvider;
use Silex\Provider\UrlGeneratorServiceProvider;
<?php
require_once __DIR__.'/OAuthSimple.php';
function authenticateDiscogs() {
// This example uses the OAuthSimple library for PHP
// found here: https://github.com/jrconlin/oauthsimple/tree/master/php
//
// For more information about the OAuth process for applications
// accessing Discogs API, read:
@anthonygreco
anthonygreco / Gruntfile.js
Created July 22, 2014 15:28
yo webapp using PHP
// Generated on 2014-07-22 using generator-webapp 0.4.9
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@anthonygreco
anthonygreco / fools.coffee
Last active August 29, 2015 13:57
Hubot Fools
module.exports = (robot) ->
robot.hear /(.*)/i, (msg) ->
fool msg
robot.respond /(.*)/i, (msg) ->
fool msg
fool = (msg) ->
newMsg = msg.split('').reverse().join('')
msg.send newMsg