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
//here we declare a special method which will be called | |
// whenever the value has changed from the server | |
$scope.model.onValueChanged = function (newVal, oldVal) { | |
// Model value changed so update UI | |
updateUi() | |
}; | |
var unsubscribe = $scope.$on("formSubmitting", function () { | |
// Write data back to the model.value | |
$scope.model.value = ... |
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
language: node_js | |
node_js: | |
- "8" | |
cache: | |
directories: | |
- "node_modules" | |
branches: | |
only: |
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
[ | |
{ | |
"id": "1207feb6.6cb2e1", | |
"type": "tab", | |
"label": "Line-us", | |
"disabled": true, | |
"info": "" | |
}, | |
{ | |
"id": "688cc590.31b39c", |
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
const _ = require('lodash'); | |
module.exports = function({ ratios, options, variants }) { | |
return function({ addUtilities, e }) { | |
const opts = Object.assign({}, { | |
orientedRatios: false, | |
invertedRatios: false | |
}, options); |
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
... | |
try: | |
while True: | |
blynk.run() | |
except KeyboardInterrupt: | |
pass |
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
namespace MyNamespace | |
{ | |
[ComposeAfter(typeof(TeaCommerceComposer))] | |
public class MyComposer : IUserComposer | |
{ | |
public void Compose(Composition composition) | |
{ | |
composition.WithOrderCheckoutPipeline() | |
.InsertBefore<CalculateShippingTask, MyPipelineTask>() | |
.Append<MyOtherPipelineTask>(); |
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
namespace TeaCommerce.Umbraco.Courier | |
{ | |
public class TeaCommerceVariantPropertyDataResolver : PropertyDataResolverProvider | |
{ | |
public override string EditorAlias | |
{ | |
get | |
{ | |
return "TeaCommerce.VariantEditor"; | |
} |
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
public class Bootstrap : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) | |
{ | |
ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"].GatheringNodeData += (sender, e) => | |
{ | |
// Extract JSON properties | |
var fieldKeys = e.Fields.Keys.ToArray(); | |
foreach (var key in fieldKeys) | |
{ |
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
public IPublishedContent GetGlobalContentNode() | |
{ | |
return (IPublishedContent)ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem("Application.BusinessLogic.Services.GetGlobalContentNode", () => { | |
var settingsNode = GetNonPageContentNode(); | |
//Get the child folder node - Configuration Folder | |
var configFolder = settingsNode.Children.SingleOrDefault(x => x.DocumentTypeAlias == Constants.DocTypes.SiteConfigurationFolder); | |
if (configFolder == null) { return null; } |
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
public IPublishedContent GetGlobalContentNode() | |
{ | |
return (IPublishedContent)ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem("Application.BusinessLogic.Services.GetGlobalContentNode", () => { | |
var settingsNode = GetNonPageContentNode(); | |
//Get the child folder node - Configuration Folder | |
var configFolder = settingsNode.Children.SingleOrDefault(x => x.DocumentTypeAlias == Constants.DocTypes.SiteConfigurationFolder); | |
if (configFolder == null) { return null; } |