All Projects → twilio → hackathons

twilio / hackathons

Licence: other
A collection of tips and tricks for using Twilio at hackathons

Projects that are alternatives of or similar to hackathons

Python-Guide-for-Beginners
A guide for Beginners in Python to refer
Stars: ✭ 47 (+34.29%)
Mutual labels:  guide
OpenSourceEvents-Frontend
This website contains a list of open source events and hackathon.
Stars: ✭ 54 (+54.29%)
Mutual labels:  hackathons
Klipper-Firmware-FLSUN-QQ-S-Pro-Delta-Printer
Firmware configuration files and instructions on how to get the Klipper ecosystem running on the FLSUN QQ-S Pro delta 3D printer
Stars: ✭ 51 (+45.71%)
Mutual labels:  guide
wireless-fleet-tracker
Create a Twilio-powered Fleet Tracker that uses off-the-shelf components to track and log: miles driven, hours of uptime and downtime, locations, average speed, and fuel consumption.
Stars: ✭ 21 (-40%)
Mutual labels:  twilio
docker-style-guide
Haufe Docker Style Guide
Stars: ✭ 40 (+14.29%)
Mutual labels:  guide
useful-twilio-functions
A set of useful Twilio Functions.
Stars: ✭ 53 (+51.43%)
Mutual labels:  twilio
messages
A python package designed to make sending messages easy and efficient!
Stars: ✭ 38 (+8.57%)
Mutual labels:  twilio
jpetstore-kubernetes
Modernize and Extend: JPetStore on IBM Cloud Kubernetes Service
Stars: ✭ 21 (-40%)
Mutual labels:  twilio
java6-to-java8
Guia para ajudar devs Java atualizarem sua certificação Java 6 para Java 8.
Stars: ✭ 42 (+20%)
Mutual labels:  guide
www-project-code-review-guide
OWASP Code Review Guide Web Repository
Stars: ✭ 74 (+111.43%)
Mutual labels:  guide
clojure-workshop
Basic Clojure training material for a one day workshop
Stars: ✭ 28 (-20%)
Mutual labels:  guide
docs.sublimetext.io
Sublime Text Community Documentation
Stars: ✭ 145 (+314.29%)
Mutual labels:  guide
appointment-reminders-rails
A working Appointment Reminders sample built in Ruby on Rails
Stars: ✭ 36 (+2.86%)
Mutual labels:  twilio
pw
Best websites a Programmer should visit
Stars: ✭ 27 (-22.86%)
Mutual labels:  guide
this-is-your-life
An angular app character backstories based on the Xanathar's Guide to Everything 'This Is Your Life' tables.
Stars: ✭ 36 (+2.86%)
Mutual labels:  guide
mlh-events
The unofficial API for MLH events.
Stars: ✭ 13 (-62.86%)
Mutual labels:  hackathons
elixir ranch
A guide on how to use Ranch with Elixir
Stars: ✭ 37 (+5.71%)
Mutual labels:  guide
guide-to-becoming
แหล่งรวบรวมข้อมูลสำหรับคนที่อยากจะพัฒนาตัวเองในด้านต่างๆจากผู้เริ่มต้นสู่ระดับเทพ
Stars: ✭ 23 (-34.29%)
Mutual labels:  guide
tshark.dev
Repo to manage tshark.dev, deployed to netlify
Stars: ✭ 39 (+11.43%)
Mutual labels:  guide
Panduan-Reverse-Code-Engineering
Panduan singkat untuk memulai belajar reverse engineering terutama software reversing atau reverse code engineering.
Stars: ✭ 58 (+65.71%)
Mutual labels:  guide

cover pic

Table of Contents

Why does Twilio sponsor hackathons?

  • To inspire and equip developers, mentoring and teaching you about Twilio as well as general programming topics unrelated to Twilio products!
  • To create evangelists, champions out of developers by getting you excited to use Twilio!
  • Receive product feedback and see different use cases. Be creative! :D
  • Yes, to generate more sign-ups. We are a public company after all!
  • Yes, it does look good in a Twilio interview to "eat the API dog food" and have experience using Twilio products--so use Twilio in your hacks and you can talk about it in interviews. Some former "Best use of Twilio" hackathon winners went on to intern here! Check out our job listings

TODO before the hackathon

We recommend playing through TwilioQuest, a video game that makes it fun to learn how to use different Twilio products. There's also lots of tutorials and documentation you can read through (see below.)

TODO after the hackathon

Make sure to put your hack on GitHub (public) for the world to see and submit to DevPost! This will come in handy for interviews and more. Go back and clean up the code, make a good README, and continue iterating over your hack if you are passionate about it and want to add on different features. The sky is the limit!

Get started

  1. Make a Twilio account (it's free!)
  2. Apply promo code
  3. Buy a Twilio phone number
  4. Configure your Twilio phone number for when a SMS or phone call comes in with a TwiML Bin, Twilio Function, or ngrok URL.

Quick and easy code snippets

Did you miss the Twilio demo during the hackathon Opening Ceremony? It probably contained code like this:

Node.js code to respond to texts

var express = require('express');
var bodyParser = require('body-parser');
var dotenv = require('dotenv');
dotenv.load();

var app = express();
app.use(bodyParser.urlencoded({extended: false}));
app.post('/hack', (req, res) => {
    var inbMsg = req.body.Body.toLowerCase().trim();
    if(inbMsg == "matcha") {
        res.send("<Response><Message>Responding to matcha</Message></Response>");
    }
    res.send("<Response><Message>Else respond with this</Message></Response>");
});

app.listen(1337, () => {
    console.log("Express server listening on port 1337");
});

Node.js code to make a phone call to every number that texted your Twilio number

var express = require('express');
var bodyParser = require('body-parser');
var dotenv = require('dotenv');
dotenv.load();
var fromNum = "your-twilio-number";

var app = express();
app.use(bodyParser.urlencoded({extended: false}));
const client = require('twilio')('YOUR-ACCOUNT-SID', 'YOUR-AUTH-TOKEN');
const filter = {
    to: fromNum // switch this out with your "from" number
}
client.messages.each(filter, (message) => client.calls.create({
    url: 'https://desolate-shelf-95000.herokuapp.com/redirect', // switch this for the mp3 of your choice
    to: message.from,
    from: fromNum // again, switch out for your "from" number
}).then(call => console.log(call.sid)));

Node.js code in a Twilio Function

exports.handler = function(context, event, callback) {
	let twiml = new Twilio.twiml.MessagingResponse();
	if(event.Body.toLowerCase().trim() == "matcha") {
        twiml.message("You right. @lizziepika, [email protected], promo: HACKUCI2020, https://twil.io/hackathons");
    }
    else {
        twiml.message("No. @lizziepika, [email protected], promo: HACKUCI2020, https://twil.io/hackathons");
    }
	callback(null, twiml);
};

Python code to respond to texts

from twilio.twiml.messaging_response import MessagingResponse
from flask import Flask, request

app = Flask(__name__)
@app.route('/sms', methods=['GET', 'POST'])
def sms():
    msg = request.values.get('Body').lower().strip()
    res = MessagingResponse()
    if msg == "matcha":
        res.message("noice")
    else:
        res.message("meh")
    return str(res)

if __name__ == "__main__":
    app.run(debug=True)

Python code to make a phone call to every number that texted your Twilio number

from twilio.rest import Client

client = Client('YOUR-TWILIO-ACCOUNT-SID', 'YOUR-TWILIO-AUTH-TOKEN')
for num in client.messages.list(to='YOUR-TWILIO-NUMBER'):
    call = client.calls.create(
        url = 'http://demo.twilio.com/docs/classic.mp3',
        to = num.from_,
        from_ = 'YOUR-TWILIO-NUMBER'
        )
    print(call.sid)

Tutorials

by product

by language

Node.js

React.js

Python

Swift

Java

YouTube videos

Some cool hacks we've seen from hackathons

moist meter pic

health hunt ar pic

Tips

We've been to a lot of hackathons, both as hackers and sponsors. What advice do we have for you as hackers?

  • Have fun! Hackathons can be intense and a lot to handle. Don't forget to build something you want to build.
  • Take risks! Learn something new. Try building something in a new language. You're surrounded by passionate people who are giving up their weekends to build something or help you. Take advantage of them! Ask questions about what classes they're taking if they're a fellow hacker, or talk to a mentor/sponsor about their jobs and their backgrounds.
  • Go to workshops and activities. Yes, you're probably here to hack, but you can't be productive for the whole time. Don't forget to take breaks, talk to people, and take advantage of what the organizers have put together for you.
  • Demo. Even if your hack isn't perfect, it's a hack. You had a weekend to build something and hopefully you did other things, too (maybe cup-stacking?) Prepare a demo and give it! It's fun and important to be able to explain what you did and to show others.
    • On the topic of demos, keep it short and simple. Yes, it's nice to have a lead-in showing you did background research, but the focus should be on showing what you built. That is the primary focus of judges: most everything else is probably secondary.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].