Skip to content

Instantly share code, notes, and snippets.

View mmurray's full-sized avatar

Michael Murray mmurray

View GitHub Profile
package {
import flash.display.MovieClip;
import flash.external.ExternalInterface;
public class AudioPlayer extends MovieClip {
public function AudioPlayer():void {
if(ExternalInterface.available) {
ExternalInterface.call( "Mozart.log" , "> mozart - flash audio player initialized <");
var A = function(){};
A.prototype.foo = function(){
console.log('foo');
}
var B = function(){};
B.prototype.bar = function(){
console.log('bar');
[exec] 20:58:04,115 INFO ~ processGoogScopeAliases
[exec] 20:58:04,117 INFO ~ processProvidesAndRequires
[exec] 20:58:04,147 INFO ~ checkVars
[exec] 20:58:04,204 INFO ~ renameCssNames
[exec] 20:58:04,224 INFO ~ replaceMessages
[exec] 20:58:04,225 INFO ~ processDefines
[exec] 20:58:04,307 INFO ~ Normalizing
[exec] 20:58:04,397 INFO ~ beforeStandardOptimizations
[exec] 20:58:04,397 INFO ~ optimizeArgumentsArray
[exec] 20:58:04,442 INFO ~ closureCodeRemoval
;
(function(){
var playerName;
var skirmish = new networld.Engine({
node: '#skirmish-viewport',
images: {
'sprites': '/images/sprites.png',
'crosshairs': '/images/crosshair.png',
;
networld.Engine = (function($){
var $node,
ready = false,
keys = {},
mouse = {x:0,y:0},
cursor,
player,
public class Sandbox {
public static Integer[] quicksort(Integer[] array){
if(array.length <= 1){
return array;
}
Integer[] result = new Integer[array.length];
List<Integer> less = new ArrayList<Integer>();
//quicksort
function quicksort(array){
if(array.length <= 1) return array;
var pivot = array.length % 2 == 0 ? array.length / 2 : (array.length-1)/2,
less = [],
greater = [];
for(var i = 0, len = array.length; i < len; i++){
package controllers;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import com.hazardousholdings.musicbot.model.Album;
import com.hazardousholdings.musicbot.model.Artist;
import com.hazardousholdings.musicbot.model.Track;
import play.mvc.*;
<form id="play-jqvalid-form__91d14812-7eb4-453f-8b38-a68dd65fd63c" action="/" method="GET" accept-charset="utf-8" enctype="application/x-www-form-urlencoded" >
<p>
<label>Details</label>
<textarea data-validate="{required:true,messages:{&quot;required&quot;:&quot;Required&quot;}}" id="task_details" name="task.details" class=""></textarea>
<span class="error"></span>
</p>
<p>
<label>Priority</label>
<input type="text" data-validate="{required:true,range:[1.0, 10.0],messages:{&quot;required&quot;:&quot;Required&quot;}}" id="task_priority" name="task.priority" value="0" class="">
select distinct extract(month from created_at)||' '||extract(year from created_at), extract(month from created_at), extract(year from created_at) from articles
MYSQL:
select distinct concat(month(created_at),' ',extract(year from created_at)) as date, month(created_at) as month, year(created_at) as year from articles