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 tests | |
{ | |
import assets.MainButton_Symbol; | |
import assets.dialogs.HelpDialog_Symbol; | |
import ch.nothing.flare.display.screens.ScreenManager; | |
import ch.nothing.flare.events.ScreenEvent; | |
import ch.nothing.flare.ui.Button; | |
import ch.nothing.flare.ui.inExistingViewOf; | |
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 types: Array = [ "slide" ]; | |
var myXML: XML = <schedules> | |
<schedule> | |
<item type="{types[0]}"><![CDATA[An example to be displayed.]]></item> | |
</schedule> | |
</schedules>; |
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 MockModuleDelegate implements IModuleDelegate { | |
public function getTranslation( name: String, defaultValue: String = "" ): String { | |
if ( name == "title" ) { | |
return "Moduel Title"; | |
} else if ( name = "currency" ) { | |
return "EUR"; | |
} | |
// more resource strings here |
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 function loadVideo(): void { | |
// create the video related variables | |
_netConnection = new NetConnection(); | |
_netConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); | |
_netConnection.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler); | |
_netConnection.connect( null ); | |
} | |
/** | |
* Connect to the video stream |
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
define("SECOND", 1); | |
define("MINUTE", 60 * SECOND); | |
define("HOUR", 60 * MINUTE); | |
define("DAY", 24 * HOUR); | |
define("MONTH", 30 * DAY); | |
/** | |
* Returns the human readable timespan from now to a date/time | |
*/ | |
function human_readable( $time ) { |
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
$GLOBALS['TL_DCA']['tl_page']['list']['operations']['clearcomments'] = array( | |
'label' => &$GLOBALS['TL_LANG']['tl_page']['clearcomments'], | |
'href' => 'act=clearcomments', | |
'icon' => 'visible.gif', | |
'attributes' => 'onclick="Backend.getScrollOffset();"', | |
'button_callback' => array('WikiContentAccess', 'showActionButton') | |
); |
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
private function onViewsUpdate():void | |
{ | |
for each ( var item: AnimatedNumberView in _numberViews ) | |
{ | |
if ( item.animating ) | |
{ | |
item.currentValue++; | |
if ( item.currentValue > 9 ) { | |
item.currentValue = 0; | |
} |
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 sounds | |
{ | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.SampleDataEvent; | |
import flash.media.Sound; | |
import flash.utils.ByteArray; | |
/** | |
* RandomlyPlaylist |
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
Ext.ns('App'); | |
Ext.Loader.setConfig({ enabled : true, disableCaching : true }); | |
Ext.Loader.setPath('Sch', ''); | |
Ext.require([ | |
'Sch.panel.SchedulerGrid', | |
'Sch.plugin.Pan', | |
'Sch.plugin.SimpleEditor', | |
'Sch.plugin.Lines', |
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
const Annotation = require('ecmas-annotations').Annotation | |
const _ = require('lodash') | |
/** | |
* @module Auth | |
* @description Auth annotation | |
*/ | |
module.exports = class Auth extends Annotation { | |
constructor(data, filePath) { |
OlderNewer