Skip to content

Instantly share code, notes, and snippets.

<! 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>
<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');
}]);
@elbuo8
elbuo8 / app.yml
Last active August 29, 2015 14:00
Go AppEngine Post
application: your-app-name
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
@elbuo8
elbuo8 / index.js
Created April 7, 2014 16:34
ti.sendgrid blog
var sendgrid = require('tisendgrid')('SENDGRID-USERNAME', 'SENDGRID-PASSOWORD');
sendgrid.send({
to: 'john@email.com',
from: 'doe@email.com',
subject: 'Hello!',
text: 'Hello again!'
}, function (e) {
if (e) {
console.log(e); // Email wasn't sent
}
<!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>
<!---
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
@elbuo8
elbuo8 / app.js
Created January 28, 2014 01:32
Blog Part II
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) {
@elbuo8
elbuo8 / app.js
Created January 20, 2014 02:36
Mobile App Blog
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) {
$routeProvider.when('/home', {
templateUrl: 'templates/player.html',
controller: 'PlayerCtrl'
});
package main
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"github.com/sendgrid/sendgrid-go"
"log"
"net/http"