Skip to content

Instantly share code, notes, and snippets.

View jowls's full-sized avatar

Joseph Allan jowls

View GitHub Profile
@nimbupani
nimbupani / index.html
Created December 2, 2011 05:00
Showing latest post on home page with Jekyll
---
layout: default
---
<div class="blog-index">
{% assign post = site.posts.first %}
{% assign content = post.content %}
{% include post_detail.html %}
</div>
@devgeeks
devgeeks / s3-phonegap-upload.js
Created November 27, 2012 19:47
S3 direct upload
var options = new FileUploadOptions();
options.fileKey="fileupload";
var time = new Date().getTime();
var userId = getUserId(); // In my case, Parse.User.current().id;
var fileName = userId+"-"+time+".jpg";
options.fileName = fileName;
options.mimeType ="image/jpeg";
options.chunkedMode = false;
var uri = encodeURI("https://BUCKET_NAME.s3.amazonaws.com/");
@zeekrey
zeekrey / buildspec.yml
Created March 30, 2019 22:12
AWS CodeBuild buildspec for Vue.js
version: 0.2
phases:
install:
commands:
- npm install -g yarn
pre_build:
commands:
- yarn install
build: