Skip to content

Instantly share code, notes, and snippets.

View klawingco's full-sized avatar
🖖
Hey yo! Fellow hooman

KL Lawingco klawingco

🖖
Hey yo! Fellow hooman
View GitHub Profile
@michaellwest
michaellwest / JoinSxaTags.html
Last active October 29, 2021 12:58
In Sitecore join SxaTags separated by comma using a Scriban template.
{{ if i_item.SxaTags != "" }}
<span>
Department:
</span>
{{ tags = [] }}
{{ for i_tag in (sc_followmany i_item "SxaTags") }}
{{ tags[tags.size] = i_tag | sc_field "Title" }}
{{ end }}
{{ tags | array.sort | array.join ", " }}
{{ end }}
@jcipriano
jcipriano / upload-async.js
Created September 30, 2016 18:59
Twitter Media Upload Async
var request = require('request');
var fs = require('fs');
var MEDIA_ENDPOINT_URL = 'https://upload.twitter.com/1.1/media/upload.json'
var POST_TWEET_URL = 'https://api.twitter.com/1.1/statuses/update.json'
var OAUTH = {
consumer_key: '',
consumer_secret: '',