Skip to content

Instantly share code, notes, and snippets.

var f = function(){
maxCount=5;
for (var i=0 ;i<maxCount; i++){
alert(i);
}
}
function createOperations(){
var operations = [];
function createOperations(){
var operations = [];
for (var i = 0; i < 5; i++) {
operations.push(function(input){
return input * i;
})
}
return operations;
}
<video height="270" width="480" controls
src src="https://s3.eu-west-2.amazonaws.com/bebop2videos-hls-streams/pollensa-sailing-/july2017hls_400k_.m3u8">
<p>Your browser does not support HLS playback in HTML5.</p>
</video>
Ext.define('School.model.Student',
{
extend: 'Ext.data.Model',
requires:['School.model.Course'],
idProperty : 'id',
fields : [{
name : 'id',
type : 'int'
},
{
/**
* Offline Proxy
* @extend Ext.data.proxy.Ajax
*/
Ext.define('proxy.OfflineProxy', {
extend: 'Ext.data.proxy.Ajax',
alias: 'proxy.offline',
config: {
items: [
{
xtype: 'toolbar',
title: '&nbsp;', // if left blank this causes an issue on iPhone
docked: 'top',
cls: ['top', 'noBorder'],
items: [{
text: 'Orders',
cls: 'back-button',
itemId: 'back'
git config --global core.ignorecase false
[core]
ignorecase = true
@ashleycoker
ashleycoker / TabMaster.js
Created September 2, 2013 12:00
Example of a listener for an arbitrary config
init: function () {
this.control({
'gridpanel[controlledByTabMaster=true]': {
render: this.onRender
}
});
},
$ dscacheutil -flushcache