Skip to content

Instantly share code, notes, and snippets.

View eoinmcg's full-sized avatar

Eoin McGrath eoinmcg

View GitHub Profile
@eoinmcg
eoinmcg / min.py
Created August 23, 2012 12:14
Handy utility for @js13kGames, zip your files and keep track of file size
#!/usr/bin/python
# Simple python script that takes a html file extracts all scripts and concatenates them into
# a single file. The concatenated script is then sent to the google closure compiler for further
# squishing.
# Finally a game.zip archive is created with all specified files. The size of this archive
# is printed to standard output
#
# Usage:
# In the terminal type:
<?php
// Simple proof of concept for reordering lists with jquery & ajax
// data is received in array $_POST['item'] to be saved to db or cookie etc
if ( count($_POST) && is_array($_POST['item']) )
{
echo "<p><strong>New order:</strong>";
foreach ( $_POST['item'] as $key => $val )