This file contains 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
$baseDir = 'C:\wamp\www\nations\web\images\flags\replace\\'; | |
$dir = new DirectoryIterator($baseDir); | |
foreach ($dir as $file) { | |
$name = explode('_of_', $file); | |
if (count($name) == 1) { | |
continue; | |
} | |
$name = str_replace('.svg.png', '', $name[1]); | |
$country = Doctrine_Core::getTable('Country') |
This file contains 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() { | |
if (typeof(console) === 'undefined') { | |
$('body').append('<div id="consoleLog" style="display: none;"></div>'); | |
console = { log: function(msg){ $('#consoleLog').append(msg); } }; | |
} | |
}); |
This file contains 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
NameValueCollection parameters = WebUtil.ParseUrlParameters(((Sitecore.Web.UI.WebControls.Sublayout) this.Parent).Parameters); | |
var x = parameters[“x”]; |
This file contains 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 DownloadLink = Sitecore.Resources.Media.MediaManager.GetMediaUrl(((Sitecore.Data.Fields.FileField) Sitecore.Context.Item.Fields["Prospectus"]).MediaItem); |
This file contains 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 items = BucketManager.ParseDataSourceQueryForItems(((Sublayout)this.Parent).DataSource, Sitecore.Context.Item, 1, 200); |
This file contains 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
dynamic response; | |
response = new { | |
success = false, | |
message = "No spaces available, sorry.", | |
spacesAvailable = TrainingEvent.SpacesAvailable | |
}; | |
var jss = new JavaScriptSerializer(); | |
Response.Write(jss.Serialize(response)); |
This file contains 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
/*! | |
* ProjectName Tooltips | |
* @requires jQuery v1.7.2+ | |
* @requires bootstrap-tooltip.js | |
* | |
* Simple wrapper for the Bootstrap Tooltip module | |
* | |
* @author Digicon http://www.digicon.com.au/ | |
*/ | |
;(function($) { |
This file contains 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
a = 12 | |
Pimptown = {} | |
Pimptown.Calculator = | |
$el: null | |
init: -> | |
this.$el = $('#output') | |
sqrt: (x) -> | |
x*x |
This file contains 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($) { | |
window.Digicon.Navigation = window.ProjectName.SomeModule || window.ProjectName.Module(function() { | |
var _queries = [ | |
{ | |
context: 'mobile', | |
callback: Digicon.Navigation.triggerMobile | |
}, |
This file contains 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
# Revealing Module Pattern | |
# coffee -o lib/ -cwb src/ | |
do ($ = jQuery.noConflict()) -> | |
ProjectName = | |
BaseModule: (module) -> | |
$ -> | |
if module.init | |
module.init() |
OlderNewer