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 TraverseWebs($url, $feature) | |
| { | |
| $web = Get-SPWeb $url | |
| foreach($child in $web.Webs) | |
| { | |
| ToggleFeature $web $feature | |
| if($child.Webs) | |
| { | |
| TraverseWebs($child.Url) | |
| } |
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
| module.exports = { | |
| options: { | |
| base: 'tmp/public' | |
| }, | |
| src: ['**'] | |
| }; | |
| // tasks/options/gh-pages.js |
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
| private static SPUser GetSPUser(SPListItem item, string key) | |
| { | |
| SPFieldUser field = item.Fields[key] as SPFieldUser; | |
| if (field != null && item[key] != null) | |
| { | |
| SPFieldUserValue fieldValue = field.GetFieldValue(item[key].ToString()) as SPFieldUserValue; | |
| if (fieldValue != null) | |
| { | |
| return fieldValue.User; |
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
| (master)$ git rebase upstream/master | |
| First, rewinding head to replay your work on top of it... | |
| Applying: Update _findData to convert IDs to strings when searching. Addresses issue 109 | |
| Using index info to reconstruct a base tree... | |
| Falling back to patching base and 3-way merge... | |
| Auto-merging dist/ember-model.prod.js | |
| CONFLICT (content): Merge conflict in dist/ember-model.prod.js | |
| Auto-merging dist/ember-model.min.js | |
| CONFLICT (content): Merge conflict in dist/ember-model.min.js | |
| Auto-merging dist/ember-model.js |
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 FixtureModel, adapter; | |
| module("Ember.FixtureAdapter", { | |
| setup: function() { | |
| FixtureModel = Ember.Model.extend({ | |
| name: Ember.attr() | |
| }); | |
| adapter = FixtureModel.adapter = Ember.FixtureAdapter.create(); | |
| } | |
| }); |
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 ctx = SP.ClientContext.get_current(); | |
| var web = ctx.get_web(); | |
| ctx.load(web); | |
| ctx.executeQueryAsync(function() { | |
| }, function() { | |
| console.error('error'); | |
| }); | |
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 ScrumBoard = {}; | |
| ScrumBoard.title = $('.initTitle').text(); | |
| ScrumBoard.currentSprint = $('#sprintNumSpan').text().substring(8); | |
| ScrumBoard.profilePicSrc = function(username, passedInDomain) { | |
| var domain = passedInDomain || "DEFAULT_DOMAIN"; | |
| return "http://SHAREPOINT_MYSITE_URL/User%20Photos/Profile%20Pictures/" + domain + "_" + username + "_LThumb.jpg"; | |
| }; | |
| ScrumBoard.columns = []; | |
| $('.storyColumns').each(function(idx, column) { |
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 ctx = SP.ClientContext.get_current(); | |
| var web = ctx.get_web(); | |
| var site = ctx.get_site(); | |
| ctx.load(site); | |
| ctx.load(web); | |
| ctx.executeQueryAsync(function() { | |
| console.log('success'); | |
| }, function() { | |
| console.log('error'); | |
| }); |
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 ctx = new SP.ClientContext("/"); | |
| var web = ctx.get_web(); | |
| var warList = web.get_lists().getById("8F7087E5-DFBE-4459-AFA5-0D44ACE783E0"); | |
| var item = warList.getItemById(1); | |
| ctx.load(web); | |
| ctx.load(warList); | |
| ctx.load(item); | |
| ctx.executeQueryAsync(function() { | |
| item.set_item('SiteColumn_ConsolidatorSummary', "what it is, what it is"); | |
| item.update(); |
NewerOlder