Skip to content

Instantly share code, notes, and snippets.

Justin Dorfman jdorfman

Block or report user

Report or block jdorfman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View custom-fallback-logic.js
React.useEffect(() => {
const handler = event => {
if (event.detail.status === 'no-advertiser') {
window.addEventListener('codefund', handler);
return () => {
window.removeEventListener('codefund', handler);
View codefund-feature-ad-callbacks.html
<!DOCTYPE html>
<script type="text/javascript">
window.addEventListener("codefund", function(evt) {
if (evt.detail.status !== "ok") {
// Render ad from another network
View show.js.erb
(function() {
function embed () {
var evt = new Event('codefund');
<% if @advertisement_html -%>
var uplift = {};
function trackUplift() {
try {
var url = '<%= @uplift_url.html_safe %>';
console.log('CodeFund is recording uplift. ' + url);
View cultivating-your-data-lake-01.sql
CREATE EXTERNAL TABLE IF NOT EXISTS segment_logs.eventlogs (
anonymousid string , # pick columns you care about!
context map<string,string> , # using a map for nested JSON
messageid string ,
timestamp Timestamp ,
type string ,
userid string ,
traits map<string,string> ,
event string
View details... Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

<details close>
  <summary>View details...</summary>
View oc.yml
collective: getbootstrapcdn
- tiers: '*'
labels: ['backer']
message: 'Hey <link>'
- tiers: ['Sponsor']
labels: ['sponsor']
message: 'Hey sponsor <link>'
invitation: |
Hey <author> :wave:,
View loop.bash
for i in `cat urls`; do curl "$i" --silent --write-out 'size_download=%{size_download}\n' --output /dev/null; done
You can’t perform that action at this time.