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
<script> | |
window.kol_leader_board_options = { | |
board_settings: { | |
limit: 100 | |
} | |
} | |
</script> |
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
eleventyConfig.addNunjucksTag("pageData", function(nunjucksEngine) { | |
return new (function() { | |
this.tags = ["pageData"]; | |
this.parse = function(parser, nodes, _) { | |
var tok = parser.nextToken(); | |
var args = parser.parseSignature(null, true); | |
// fake it until you make it! | |
// https://github.com/mozilla/nunjucks/issues/158#issuecomment-34919343 |
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
{ | |
"__event": "the_webhook_event", | |
"avatar": "https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/310c4ac2-7026-4700-afde-496b1d217b03", | |
"counter": 252, | |
"contest_score": 300, | |
"contest_score_rank": 19588, | |
"custom_fields": { | |
}, | |
"email": "scott@kickofflabs.com", |
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.exports = { | |
theme: { | |
extend: { | |
colors: { | |
nord: { | |
"0": "#2E3440", | |
"1": "#3B4252", | |
"2": "#434C5E", | |
"3": "#4C566A", | |
"4": "#D8DEE9", |
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
<script> | |
window.kol_leader_board_options = { | |
board_settings: { | |
lead_description: 'full_name' | |
} | |
} | |
</script> |
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
<script> | |
window.kol_leader_board_options = { | |
board_settings: { | |
lead_description: 'full_name' | |
} | |
} | |
</script> |
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
<script> | |
var kol_widget_options = { | |
callback: function(data) { | |
if (data.counter == 1) { | |
window.location = `https://YOURSITE.com?kid=${data.social_id}`; | |
} else { | |
window.location = data.redirect_url; | |
} | |
} | |
}; |
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
import { proxy } from "@fly/cdn" | |
import { httpsUpgrader } from "@fly/cdn/lib/middleware" | |
const origin = proxy("https://YOURAPP.herokuapp.com", { | |
headers: { host: "YOURAPP.herokuapp.com" } | |
}) | |
const router = httpsUpgrader(origin) | |
fly.http.respondWith(router) |
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
class BackplaneApi | |
include HTTParty | |
debug_output $stderr if Rails.env.development? | |
base_uri 'www.backplane.io:443' | |
basic_auth ENV['BACKPLANE_TOKEN'], '' | |
format :json | |
def add_route(pattern, labels={}) |
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
<script type="text/javascript"> | |
var segment_api_key = 'YOUR KEY HERE'; | |
window.analytics||(window.analytics=[]),window.analytics.methods=["identify","track","trackLink","trackForm","trackClick","trackSubmit","page","pageview","ab","alias","ready","group","on","once","off"],window.analytics.factory=function(a){return function(){var t=Array.prototype.slice.call(arguments);return t.unshift(a),window.analytics.push(t),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var method=window.analytics.methods[i];window.analytics[method]=window.analytics.factory(method)}window.analytics.load=function(a){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"d2dq2ahtl5zl1z.cloudfront.net/analytics.js/v1/"+a+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)},window.analytics.SNIPPET_VERSION="2.0.6", | |
window.analytics.load(segment_api_key), | |
window.analytics.page(); | |
</scr |