Pure CSS FizzBuzz ('-' * 17)
Forked from Captain Anonymous's Pen xGVKgm. Originally made without numbers by Joe Collins
A Pen by Stephen Perelson on CodePen where I added pure CSS numbers.
<?php | |
// Copyright Stephen Perelson | |
// | |
// Example PHP script to get a banner from http://mixup.hapnic.com | |
// Adds a 1 minute cache of the banner using Memcache | |
// Untested code | |
// | |
// Mixup is a cross-Promotion Linksharing service for Mxit web apps | |
class ServeMixup { |
<?php namespace Illuminate\Cache; | |
use Memcached; | |
class ElasticacheConnector { | |
/** | |
* Create a new Memcached connection. | |
* | |
* @param array $servers |
<?php | |
// Register the special elasticache handler here | |
Cache::extend('elasticache', function() { | |
require_once(__DIR__.'/../libraries/ElasticacheConnector.php'); | |
$servers = Config::get('cache.memcached'); | |
$elasticache = new Illuminate\Cache\ElasticacheConnector(); | |
$memcached = $elasticache->connect($servers); |
#!/usr/bin/python | |
import sys | |
if len(sys.argv) == 3: | |
width, height = [int(i.strip()) for i in sys.argv[1:]] | |
drawheight = height | |
while drawheight > 0: | |
if drawheight == height or drawheight == 1: |
#!/bin/bash | |
# Builds a Go app where the src folder is part of the default folder structure | |
# This assumes you have the app's src folder open in BBEdit and not any of the subfolders. Otherwise horrible dirname dirname won't work | |
# Setting the GOPATH may be a mistake? | |
# You may desire finer control over the output | |
# The src's folder name may not be desirable as your binary name | |
folder=$(basename "$BBEDIT_INSTAPROJECT_ROOT") | |
if [ "$folder" != "" ]; then | |
cd $(dirname `dirname "$BBEDIT_INSTAPROJECT_ROOT"`) | |
GOPATH=$(dirname `dirname "$BBEDIT_INSTAPROJECT_ROOT"`) go build -o $folder $folder |
Pure CSS FizzBuzz ('-' * 17)
Forked from Captain Anonymous's Pen xGVKgm. Originally made without numbers by Joe Collins
A Pen by Stephen Perelson on CodePen where I added pure CSS numbers.