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 zoomInOutComp = node.addComponent({ | |
onUpdate: function (time) { | |
// console.trace(); | |
if (_SceneTwo.paused) { | |
//-- The scene us paused | |
trans.pause(); | |
} else { | |
//-- The scene is not pause | |
if (trans.isPaused()) { | |
//-- the scene was unpaused, so we should |
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 pause() { | |
FamousEngine.renderLoop.stop(); | |
_SceneTwo.paused = true; | |
} | |
function resume() { | |
FamousEngine.renderLoop.start(); | |
_SceneTwo.paused = false; | |
} |
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 node = parentNode.addChild(); | |
function nextTrans(trans) { | |
var scale = [1,1,1]; | |
if (node.getScale()[0] == 1) { | |
scale = [0.2, 0.2, 0.2]; | |
} | |
trans.to([Math.random() * 10, Math.random() * 10, scale[0], scale[1], scale[2]], 'inOutQuad', 1500, function () { | |
nextTrans(trans); | |
}); |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
main.fs: error FS0001: This expression was expected to have type | |
'a | |
but here has type | |
'b option |
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
<?php | |
class RegisterController extends BaseController { | |
/** | |
* Setup the registration view | |
* @return Illuminate\View\View | |
*/ | |
public function showRegister() { | |
return View::make('user.register'); |
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
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (nonatomic) NSDate* thenDate; | |
@property (nonatomic) NSDate* nowDate; | |
@property (retain, nonatomic) IBOutlet UILabel *theTimer; | |
@property (retain, nonatomic) IBOutlet UILabel *theLabel; | |
-(void) updateTimer:(id) sender; | |
@end |
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
data GameState = Running | Paused | Stopped | |
data World = World { | |
gameState :: GameState, | |
loopCount :: Int | |
} | |
gameloop world = | |
case gameState world of | |
Running -> do |
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
Mechanical Pencil's diametric rating: 1.500000 | |
Black Pen's diametric rating: 2.000000 |
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
food.fs(25,25): error FS0001: This expression was expected to have type | |
fruit | |
but here has type | |
vegie |