Skip to content

Instantly share code, notes, and snippets.

@rubenrangel
rubenrangel / .projenrc.js
Created December 22, 2021 00:35
Projen config snippet to allow GitHub workflow access to AWS NPM CodeArtifact repository.
{
// ...contents of .projenrc.js
// See https://github.com/aws-actions/configure-aws-credentials#credentials
// Replace <...> with your info
workflowBootstrapSteps: [
{
name: 'Configure AWS Credentials',
uses: 'aws-actions/configure-aws-credentials@v1',
with: {
@rubenrangel
rubenrangel / ImageInput.js
Created July 8, 2016 01:54
Image upload React component.
import React, { Component, PropTypes } from 'react';
export default class ImageInput extends Component {
constructor(props) {
super(props);
this.state = {
src: props.src ? props.src : null,
}
this.handleOnChange = this.handleOnChange.bind(this);
@rubenrangel
rubenrangel / JavaFunctionHeader.sublime-snippet
Created November 2, 2012 21:46
A Sublime Text code snippet that creates a header for Java methods. Fields are as follows: Description of method, parameter names, parameter descriptions, and the return description.
<snippet>
<content><![CDATA[
/**
* ${1:[Description of method]}
*
* @param ${2:[param name]} ${3:[parameter description]}
${4: * @param ${5:[param name]} ${6:[parameter description]}}
* @return ${7:[return description]}
*/
]]></content>
@rubenrangel
rubenrangel / SublimeJavaHeader.sublime-snippet
Created October 31, 2012 17:28
A Sublime Text code snippet that creates a header for Java files. Includes Javadoc tags for author and version, as well as variables for filename, programmer's full name, and email.
<snippet>
<content><![CDATA[
/**
* $TM_FILENAME
*
* @author $TM_FULLNAME
* email $TM_EMAIL
* @version 1.0
* Purpose ${1:Purpose of program}
* Usage ${2:How to use it}
@rubenrangel
rubenrangel / .gitignore
Created October 26, 2012 04:34 — forked from mduheaume/.gitignore
Git ignore file for Unity3D projects.
Temp/
Library/
obj/
*.svd
!Library/*.asset
!Library/AssetImportState
!Library/AssetVersioning.db
!Library/BuildPlayer.prefs
!Library/ScriptMapper