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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Example - example-example23-production</title> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-app="myapp"> | |
<div ng-controller="Main as m"> |
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
goog.provide('test.angular.MainController'); | |
goog.require('goog.string'); | |
goog.require('test.angular.Service'); | |
/** | |
* Main controller. | |
* |
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(global) { | |
var tasks = [[], []]; | |
var doubleBufferIndex = 0; | |
var requestFrame = false; | |
var taskId = 0; | |
var running = false; | |
function requestAnimationFrame_() { | |
if (requestFrame) return; |
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
PointerAgent.internal(): super.internal() { | |
_startPoint = new Point(0, 0); | |
_currentPoint = new Point(0, 0); | |
_lastPoint = new Point(0, 0); | |
_longPressDelay = new Delay(1500, _fireLongPress); | |
_raf = new AnimationFrame(mutate: (_) {_handleAnimationFrame(_);}); | |
_initEventListeners(); | |
} | |
AnimationFrame _raf; |
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 onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
var utilities = ui.createMenu('Utilities'); | |
utilities | |
.addItem('Open', 'openDialog') | |
.addToUi(); | |
} |
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
<html> | |
<head><title>Hoisting</title></head> | |
<body> | |
<script> | |
var F = function() { | |
console.log('F'); | |
F2(); | |
} | |
function a() { | |
F(); |
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 | |
/** | |
* Packs some useful methods to be used in the Application models. | |
*/ | |
class App extends Database { | |
protected $_uniqueKey; | |
public function __construct() { | |
$this->_uniqueKey = 'id'; | |
parent::__construct(); |
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
indent: | |
^.*\)\s?{$ | |
unindent: | |
^\s*}$ | |
keys | |
} |
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 css_browser_selector(u) { | |
var ua = u.toLowerCase(), | |
is = function(t) { | |
return ua.indexOf(t) > -1 | |
}, | |
g = 'gecko', | |
w = 'webkit', | |
s = 'safari', | |
o = 'opera', | |
m = 'mobile', |
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 BindKeyboard = new Class({ | |
handleKeyboardInput: function(code) { | |
switch (code) { | |
case 37: | |
return 'left'; | |
case 38: | |
return 'up'; | |
case 39: | |
return 'right'; |