Skip to content

Instantly share code, notes, and snippets.

@spk
spk / deploy.yaml
Created January 7, 2020 10:36
Github Action Heroku Git Deploy
# https://github.com/marketplace/actions/checkout
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#issue-comment-event-issue_comment
# https://devcenter.heroku.com/changelog-items/775
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
# https://github.com/cirrus-actions/rebase#installation
# https://github.com/actions/heroku/issues/10
---
name: Deploy to HEROKU_APP_NAME
on:
@jefftriplett
jefftriplett / python-django-postgres-ci.yml
Last active March 27, 2024 04:27
This is a good starting point for getting Python, Django, Postgres running as a service, pytest, black, and pip caching rolling with GitHub Actions.
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
@kressaty
kressaty / bpt.php
Created June 25, 2011 21:37
Quick PHP Functions to call Brown Paper Tickets API to get event and dates
function bpt_handler($atts)
{
extract(shortcode_atts(array(
"event_id" => ''
), $atts));
$event_data = $this->getBptEvent($event_id);
return '<pre>'.$event_data.'</pre>';