Skip to content

Instantly share code, notes, and snippets.

View duellsy's full-sized avatar

Chris Duell duellsy

View GitHub Profile
@duellsy
duellsy / import.py
Last active October 2, 2019 12:58 — forked from kbl/import.py
Import tasks and notes from wunderlist dump to todoist (and mark completed tasks as completed)
# -*- coding: utf8 -*-
import json
import urllib2
import urllib
import sys
import os
from argparse import ArgumentParser
from collections import defaultdict
@duellsy
duellsy / elevio-segment.md
Created June 2, 2015 22:52
Docs for elevio on segment

Getting Started

Once you have Segment installed on your site, toggle elevio from your Segment integrations page, and add your account ID which you can find on your elevio widget settings page.

elevio supports the identify method to provide extra user information.


Identify

@duellsy
duellsy / Handler.php
Created August 26, 2015 23:36
Using Rollbar in Laravel
// this is in app/Exceptions/Handler.php
// rollbar/rollbar installed via composer
public function report(Exception $e)
{
if (!Config::get('app.debug') && $e->getStatusCode() != '404') {
$conf = [
'access_token' => Config::get('services.rollbar.access_token'),
'environment' => App::environment(),
@duellsy
duellsy / GitVersion.php
Created August 26, 2015 23:44
Git hash creator
<?php namespace Elevio\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
class GitVersion extends Command
{
/**
* The console command name.
@duellsy
duellsy / counted_tag_release_summary.html
Created August 11, 2020 01:49
Counted tag style release summary
<div class="md:mb-20 md:rounded overflow-hidden bg-white shadow-md text-grey-darkest">
{{#if featured_image}}
<a href="{{ link }}" class="hidden md:block"><img src="{{ featured_image }}" alt="{{ title }}" class="w-full" /></a>
{{/if}}
<div class="md:p-24 p-8">
<span class="no-underline text-grey text-sm" title="{{ release.released_at }}">{{ released_at_human }}</span>
<h2 class="mb-4 font-serif"><a href="{{ link }}" class="no-underline text-grey-darkest"><span class="capitalize release-{{ type }}">{{ type }}:</span> {{ title }}</a></h2>
{{#each tags}}