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
<strong>test</strong> |
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
//READ THIS | |
//Step 1. In the meteor project folder create a directry called "packages" (might already be there). | |
// Add a directory inside of this directory called "kendo-ui-pro" | |
//Step 2. Inside of the "kendo-ui-pro" directory create a "package.js" file and fill it with the js code in this gist | |
//Step 3. Drop Kendo UI Pro code inside of the "kendo-ui-pro" directory. | |
// Then make sure the package.js file contains the correct paths to the kendo ui pro code i.e. the correct .js, .css, .png .gif paths etc... | |
// e.g. in this gist my kendo-ui-pro directory contains a directory called, "telerik.kendoui.professional.2015.2.814.commercial" |
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
### Keybase proof | |
I hereby claim: | |
* I am codylindley on github. | |
* I am codylindley (https://keybase.io/codylindley) on keybase. | |
* I have a public key whose fingerprint is 13CB 0DEF D19F 6782 5072 AE1E 46D6 0410 66D5 30D8 | |
To claim this, I am signing this object: |
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 myModel = new Backbone.Model(attributes, {options}, anything-else-passed-to-initialize-function); | |
/* | |
attributes = {data:value, data:value} or [value,value] | |
options = { | |
collection: {}, | |
url: '', | |
urlRoot: '', | |
parse: boolean | |
} |
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
$(document).ready(function() { | |
$('.inviteToGroupBtn').on('click', function() { | |
lightboxAJAX('/lightbox/invite_to_group?lightbox=1&group_id='+$(this).data('group-id')); | |
}); | |
$('.usergroupCTA').on('click', function() { | |
var $this = $(this); |
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
<script> | |
var dojoConfig = { | |
async:true, | |
cacheBust:new Date(), | |
waitSeconds:5 | |
}; | |
</script> | |
<script src="path/to/dojo/dojo.js"></script> |
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: '<json:package.json>', | |
meta: { | |
banner: '/*<%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' + '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' | |
}, | |
qunit: { |
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
<div data-dojo-type="dojo.data.ItemFileReadStore" data-dojo-id="continentStore" | |
data-dojo-props="url:'{{dataUrl}}/dijit/tests/_data/countries.json'"></div> | |
<div data-dojo-type="dijit.tree.ForestStoreModel" data-dojo-id="continentModel" | |
data-dojo-props="store:continentStore, query:{type:'continent'}, | |
rootId:'continentRoot', rootLabel:'Continents', childrenAttrs:'children'"></div> | |
<div data-dojo-type="dijit.Tree" id="mytree" | |
data-dojo-props="model:continentModel, openOnClick:true"> | |
<script type="dojo/method" data-dojo-event="onClick" data-dojo-args="item"> | |
alert("Execute of node " + continentStore.getLabel(item) |
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
//document own properties | |
console.log(Object.keys(document).sort()); | |
//document own properties & inherited properties | |
var documentPropertiesIncludeInherited = []; | |
for(var p in document) { documentPropertiesIncludeInherited.push(p); } | |
console.log(documentPropertiesIncludeInherited.sort()); | |
//document inherited properties only | |
var documentPropertiesOnlyInherited = []; |
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
trackIt: function(p,callback,evil){ | |
//mpg window.mpq.track(label,params{ }); | |
//gaq window._gaq.push('_trackEvent',category,action,label,value); | |
var g = false, m = false; | |
var yesCallback = arguments[1] !== undefined && typeof arguments[1] === 'function'; | |
//window._gaq.push('_trackEvent',p.category,p.action,p.label,p.value); | |
window._gaq.push(['_trackEvent',p.category,p.action,p.label,p.value]); |
NewerOlder