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
package configuration | |
import ( | |
"bytes" | |
"cloud.google.com/go/storage" | |
"context" | |
"encoding/base64" | |
"golang.org/x/oauth2/google" | |
cloudkms "google.golang.org/api/cloudkms/v1" | |
) |
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
module Main exposing (main) | |
import Browser exposing (..) | |
import Html exposing (..) | |
type alias Model = | |
{ url : String | |
, title : String | |
} |
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
/* | |
* This is a silly little test to remove the word using from data access classes. | |
* Beware that null will be returned if the dynamic object doesn't match the return type of the calling function. | |
*/ | |
private dynamic IHateTheWordUsing(Func<UmbracoDBDataContext, dynamic> command) | |
{ | |
using (var context = new UmbracoDBDataContext(sqlConnection)) | |
{ | |
return command(context); |
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
// Run $node flat.js to test | |
// Test data | |
let context = { | |
succeed: () => console.log('Context Succeed') | |
}; | |
function authenticateToSalesforce () { | |
return new Promise((resolve, reject) => resolve({data: 'authorization data'})); | |
} |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": false, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "single", |
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
.list-cell:filled:selected:focused, | |
.list-cell:filled:selected, | |
.list-cell:even, | |
.list-cell:odd { | |
-fx-background-color: transparent; | |
} |
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
.list-view { | |
-fx-background-insets: 0; | |
-fx-padding: 0; | |
} |
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
trigger EmailMessageTrigger on EmailMessage(after insert, after update) { | |
Set<Id> emailsWithAttachments = new Set<Id>(); | |
for(EmailMessage email : Trigger.New){ | |
if (email.Incoming) { | |
emailsWithAttachments.add(email.Id); | |
} | |
} | |
List<Attachment> attachments = [ |
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
<?php | |
# Place this in the root of your magento dir | |
# navigate to this script to test classes | |
include "app/Mage.php"; | |
Mage::app(); |
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
<Button Command="{Binding Path=RaiseNotificationCommand}">Click Me</Button> |
NewerOlder