This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ) |