Skip to content

Instantly share code, notes, and snippets.

@dsandip
dsandip / aws services.txt
Created March 8, 2017 10:32
gist for medium blog post
+-----------------------------------+-------------------------------------------------------------------------------------+
| Amazon Service | Vendor agnostic alternatives |
+-----------------------------------+-------------------------------------------------------------------------------------+
| Simple Storage Service (S3) | Backblaze, RunAbove; Cloudfare or any other CDN for geo-distributed static content. |
| Relational Database Service (RDS) | aiven.io, Elephantsql, Databaselabs.io |
| Simple Queue Service (SQS) | cloudkarafka.com, aiven.io |
| Elasticsearch Service | elastic.co, qbox.io |
+-----------------------------------+-------------------------------------------------------------------------------------+
@dsandip
dsandip / test.md
Last active March 8, 2017 12:24
test
Amazon Service Vendor agnostic alternatives
Simple Storage Service (S3) Backblaze, RunAbove; Cloudfare or any other CDN for geo-distributed static content.
Relational Database Service (RDS) aiven.io, Elephantsql, Databaselabs.io
Simple Queue Service (SQS) cloudkarafka.com, aiven.io
Elasticsearch Service elastic.co, qbox.io
+---------------+-----------------+------------+---------------+
| Metric | App deployed | App built & deployed using |
| | on DigitalOcean | Hasura on DigitalOcean |
+---------------+-----------------+----------------------------+
| Throughput | ~60 req/s | ~250 req/s |
+---------------+-----------------+----------------------------+
| Lines of code | 200 | 30 |
+---------------+-----------------+----------------------------+
@dsandip
dsandip / ionic-signup-sample.js
Last active August 25, 2017 13:10
sign up and register for ionic medium article
angular.module('starter.controllers')
.controller('RegisterCtrl', function($scope, hasura, $ionicPopup) {
$scope.loginData = {
username: '',
password: '',
repassword: '',
email: ''
};
$scope.doRegister= function() {
if($scope.loginData.password !== $scope.loginData.repassword) {
@dsandip
dsandip / test.md
Last active September 12, 2017 16:12
$ git push hasura master
{
album (where: {year: {_eq: 2018}}) {
title
tracks {
id
title
}
}
}
select id,title from album where year = 2018;
select id, title from tracks where album_id = <album-id>
select id,title from album where year = 2018;
select id, title from tracks where album_id IN {the list of album ids}