This file contains 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
//copied from http://blog.ionic.io/screencast-ionic-and-sqlite/ | |
.service('DBService', function($q) { | |
var items; | |
var db; | |
var self = this; | |
this.initDB = function() { | |
return db = new PouchDB('simpleDB', { | |
adapter: 'websql' | |
}); |
This file contains 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 ctrl, | |
module; | |
module = ng.module("SYS.Directive.FileReader", [ | |
"ng" | |
]); | |
ctrl = function ($parse) { | |
return { | |
restrict: "A", | |
scope: false, | |
link: function (scope, element, attrs) { |
Source: https://gist.github.com/JamesMGreene/cdd0ac49f90c987e45ac
gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains 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
#!/usr/bin/env bash | |
for d in ~/dev/* | |
do | |
if [ -d "$d" ] | |
then | |
cd $d | |
hash=$(git rev-parse HEAD) | |
name=$(printf "%25s\n" $(basename $d)) | |
echo "$name - $hash" |
This file contains 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
# AWS CloudFormation template file follows the following anatomy: | |
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html | |
# More documentation in the API reference: | |
# https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/Welcome.html | |
# As-of 2020, "2010-09-09" is the latest FormatVersion: | |
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/format-version-structure.html | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: S3 / Route53 / CloudFront CloudFormation configuration |
This file contains 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
[ | |
{ | |
"AllowedHeaders": [ | |
"*" | |
], | |
"AllowedMethods": [ | |
"PUT", | |
"POST" | |
], | |
"AllowedOrigins": [ |
I hereby claim:
- I am ashishtilara on github.
- I am ashishtilara (https://keybase.io/ashishtilara) on keybase.
- I have a public key ASDCKBBUnVFOHANvi-vdMSH-Pgb7MPS0ZCiwFS1YOKd9Kwo
To claim this, I am signing this object: