Skip to content

Instantly share code, notes, and snippets.

View joshdmiller's full-sized avatar

Josh David Miller joshdmiller

View GitHub Profile
@joshdmiller
joshdmiller / PKGBUILD
Created February 20, 2014 19:30
Arch Linux PKGBUILD for AWS Elastic Beanstalk Command Line Tool
# Contributor: Douglas Creager (dcreager AT dcreager DOT NET)
# Contributor: Josh David Miller (josh AT joshdavidmiller DOT COM)
pkgname=aws-eb
pkgver=2.6.0
pkgrel=1
pkgdesc="The API and CLI tools that provide access to Amazon Elastic Beanstalk"
arch=( 'any' )
url="http://aws.amazon.com/code/6752709412171743"
source=( https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.6.0.zip )
@joshdmiller
joshdmiller / index.js
Created June 2, 2016 17:23
pseudocode for link styles
render () {
const styles = {
link: {
color: '#fff',
textDecoration: 'none',
},
};
// ...
@joshdmiller
joshdmiller / CONTRIBUTING.md
Created February 6, 2016 16:41
Josh's Git Workflow

Git Workflow

This is the process I use for all my open-source projects to manage a clean tree.

Feature Branches

We should perform all work on “feature branches”, which is to say that we should never do any work on the master branch. For each new task, we create a separate branch, especially if that amounts to multiple feature branches at a time.

We should be sure to keep all cloned master branches (both those on our local machine and those on GitHub) up to date with the current upstream master to ensure our code will fit in well with any changes that beat you to the proverbial punch.

@joshdmiller
joshdmiller / index.html
Created January 26, 2016 22:58
React Essentials
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name=viewport content="width=device-width,initial-scale=1">
<title>React App Template</title>
<link rel="stylesheet" href="/app.css" />
</head>
<body>
@joshdmiller
joshdmiller / github.sh
Created September 13, 2013 19:20
A little helper for creating new Git repositories with GitHub.
#!/bin/bash
###
# Usage: github.sh my-repo-name
###
# Configuration
username="joshdmiller"
readme="README.md"
commit_msg="chore(*): initial commit"
@joshdmiller
joshdmiller / UserService.js
Created March 15, 2013 20:27
A starting point for an $http-backed RESTful model in AngularJS.
.factory( 'UserService', [ '$http', function ( $http ) {
var url = '/api/users';
/**
* This is the private API.
*/
// get a list of users
function query () {
return $http.get( url );
@joshdmiller
joshdmiller / Gruntfile.js
Last active December 12, 2015 07:58
A Grunt 0.4 build system for modularized AngularJS projects.
/**
* A Boilerplate Grunt ~0.4.0 build system for AngularJS projects
*
* Licensed MIT
*/
module.exports = function ( grunt ) {
// Load required Grunt tasks
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-contrib-clean');
@joshdmiller
joshdmiller / Gruntfile.js
Last active December 12, 2015 01:49
This is a Grunt 0.4 task for AngularJS projects. It facilitates the automatic compiling of HTML templates to pure JavaScript through AngularJS's `$templateCache`, so these files can be downloaded as part of an initial app payload. This is based on the Grunt 0.3.x version from angular-ui/bootstrap.
module.exports = function ( grunt ) {
// Load required Grunt tasks
// ...
grunt.loadTasks('build'); // <- place grunt-html2js in this folder
// Project Configuration
grunt.initConfig({
distdir: 'dist',
src: {
service.factory('userService', [ '$http', function($http) {
return {
go : function( user ) {
console.log('Executing ' + this.request);
return $http.post( '/api/login', user );
}
};
} ]);
--- PKGBUILD.old 2012-11-09 12:36:25.000000000 -0800
+++ PKGBUILD 2012-11-22 13:49:32.577936391 -0800
@@ -9,21 +9,19 @@
license=('cc-by-nc-sa-3.0')
arch=('any')
depends=('gnome-shell')
-makedepends=('unzip')
+makedepends=('wget' 'unzip')
optdepends=('gnome-shell-extension-user-theme: User Theme extension for GNOME Shell'
'gnome-tweak-tool: A tool to customize advanced GNOME 3 options.')