This file contains hidden or 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
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 <"); |
This file contains hidden or 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
var A = function(){}; | |
A.prototype.foo = function(){ | |
console.log('foo'); | |
} | |
var B = function(){}; | |
B.prototype.bar = function(){ | |
console.log('bar'); |
This file contains hidden or 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
[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 |
This file contains hidden or 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
; | |
(function(){ | |
var playerName; | |
var skirmish = new networld.Engine({ | |
node: '#skirmish-viewport', | |
images: { | |
'sprites': '/images/sprites.png', | |
'crosshairs': '/images/crosshair.png', |
This file contains hidden or 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
; | |
networld.Engine = (function($){ | |
var $node, | |
ready = false, | |
keys = {}, | |
mouse = {x:0,y:0}, | |
cursor, | |
player, |
This file contains hidden or 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
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>(); |
This file contains hidden or 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
//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++){ |
This file contains hidden or 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
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.*; |
This file contains hidden or 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
<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:{"required":"Required"}}" 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:{"required":"Required"}}" id="task_priority" name="task.priority" value="0" class=""> |
This file contains hidden or 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
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 |