This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "github.com/codegangsta/negroni" | |
| jwt "github.com/dgrijalva/jwt-go" | |
| "github.com/gorilla/mux" |
This file contains hidden or 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
| <! DOCTYPE html> | |
| <!--[if it IE 7]> <html class='no-js It-ie9> <![endif]--> | |
| <html class='no-js' lang='en-us'> | |
| <head> | |
| <meta charset='utf-8'> | |
| <meta http-equiv='' content='IE=edge'> | |
| <meta name='description' content='Postcard'> | |
| <meta name='viewport' content='width=device-width, initial-scale=1'> | |
| <style> |
This file contains hidden or 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
| <html> | |
| <body ng-controller="TestCtrl"> | |
| <script src="bower_components/angular/angular.min.js"></script> | |
| <script src="src/sendgrid.js"></script> | |
| <script> | |
| var app = angular.module('app', ['sendgrid']); | |
| app.config(['sendgrid', function(sendgridProvider) { | |
| console.log('here'); | |
| }]); |
This file contains hidden or 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
| application: your-app-name | |
| version: 1 | |
| runtime: go | |
| api_version: go1 | |
| handlers: | |
| - url: /.* | |
| script: _go_app |
This file contains hidden or 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
| var sendgrid = require('tisendgrid')('SENDGRID-USERNAME', 'SENDGRID-PASSOWORD'); | |
| sendgrid.send({ | |
| to: '[email protected]', | |
| from: '[email protected]', | |
| subject: 'Hello!', | |
| text: 'Hello again!' | |
| }, function (e) { | |
| if (e) { | |
| console.log(e); // Email wasn't sent | |
| } |
This file contains hidden or 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
| <!doctype html> | |
| <head> | |
| <link href="css/bootstrap.css" rel="stylesheet"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" id="jquery"></script> | |
| </head> | |
| <html> | |
| <title>localchat</title> | |
| <body> | |
| <h1>Sorry, we don't have much stuff yet!</h1> | |
| <!--- |
This file contains hidden or 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
| from flask import Flask, request, jsonify | |
| from random import randint | |
| from sendgrid import Mail, SendGridClient | |
| app = Flask(__name__) | |
| app.debug = True | |
| tweets = [] | |
| #put code here |
This file contains hidden or 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
| angular.module('tutorial', ['ionic', 'ngRoute']) | |
| .config(['$routeProvider', function ($routeProvider) { | |
| $routeProvider. | |
| when('/', { | |
| templateUrl: 'partials/player.html', | |
| controller: 'PlayerCtrl' | |
| }); | |
| }]) | |
| .service('Playlist', ['$http', '$q', function ($http, $q) { | |
| return {get: function (params) { |
This file contains hidden or 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
| angular.module('tutorial', ['ionic', 'ngRoute']) | |
| .config(['$routeProvider', function ($routeProvider) { | |
| $routeProvider. | |
| when('/', { | |
| templateUrl: 'templates/player.html', | |
| controller: 'PlayerCtrl' | |
| }); | |
| }]) | |
| .service('Playlist', ['$http', '$q', function ($http, $q) { | |
| return {get: function (params) { |
This file contains hidden or 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
| $routeProvider.when('/home', { | |
| templateUrl: 'templates/player.html', | |
| controller: 'PlayerCtrl' | |
| }); |