Skip to content

Instantly share code, notes, and snippets.

View john-evangelist's full-sized avatar

Evangelista john-evangelist

View GitHub Profile
@john-evangelist
john-evangelist / .editorconfig
Created March 11, 2018 14:32 — forked from eksperimental/.editorconfig
.editorconfig for Elixir projects
# EditorConfig is awesome: http://EditorConfig.org
# .editorconfig for Elixir projects
# https://git.io/elixir-editorconfig
# top-most EditorConfig file
root = true
[*]
indent_style = space
@john-evangelist
john-evangelist / material_design_guidelines_dimens.xml
Created May 22, 2017 21:03 — forked from aeroechelon/material_design_guidelines_dimens.xml
Recommended Material Design Dimensions for Android
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
# Material Design Dimensions
These dimensions are provided as per Material Design Guidelines
to adhere to a 8 dp baseline grid. (With the exception of the
toolbar and notification bar.).
## References
@john-evangelist
john-evangelist / download_hex_docs.sh
Created September 18, 2016 18:50 — forked from seven1m/download_hex_docs.sh
Download the docs for a project from hexdocs.pm
#!/bin/bash
project=$1
wget --mirror -k -np http://hexdocs.pm/$project
ruby -e "puts ARGF.read.scan(/[A-Z]\\w*\\.[\\w\\.]+/).uniq.map { |l| 'http://hexdocs.pm/$project/' + l + '.html' }" hexdocs.pm/$project/dist/sidebar_items.js | wget --mirror -k -i -
wget --mirror -k http://hexdocs.pm/$project/extra-api-reference.html
@john-evangelist
john-evangelist / gh-pages-deploy.md
Created August 17, 2016 17:23 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@john-evangelist
john-evangelist / introrx.md
Created August 3, 2016 19:11 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@john-evangelist
john-evangelist / rake task
Created July 4, 2016 00:35 — forked from mcansky/rake task
simple ruby git changelog generator
# simple rake task to output a changelog between two commits, tags ...
# output is formatted simply, commits are grouped under each author name
#
desc "generate changelog with nice clean output"
task :changelog, :since_c, :until_c do |t,args|
since_c = args[:since_c] || `git tag | head -1`.chomp
until_c = args[:until_c]
cmd=`git log --pretty='format:%ci::%an <%ae>::%s::%H' #{since_c}..#{until_c}`
entries = Hash.new
@john-evangelist
john-evangelist / Dockerfile
Created May 9, 2016 15:36 — forked from eluleci/Dockerfile
Dockerfile for Android CI
############################################################
# Dockerfile to build Android project and use Jenkins CI
#
############################################################
FROM ubuntu:14.04
MAINTAINER eluleci <[email protected]>
RUN apt-get update
@john-evangelist
john-evangelist / Wildfly.xml
Created March 11, 2016 14:10 — forked from foo4u/Wildfly.xml
Wildfly Code Style for IntelliJ
<code_scheme name="Wildfly">
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="INSERT_INNER_CLASS_IMPORTS" value="true" />
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="9999" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="9999" />
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value>
<package name="org.junit.Assert" withSubpackages="false" static="true" />
<package name="org.rendersnake.HtmlAttributesFactory" withSubpackages="false" static="false" />
<package name="org.mockito.Mockito" withSubpackages="true" static="true" />
@john-evangelist
john-evangelist / cassandra_intellij.xml
Created March 11, 2016 14:10
Intellij code style formater for Apache Cassandra
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="cassandra-intellij">
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="java" withSubpackages="true" static="false" />
<package name="javax" withSubpackages="true" static="false" />
<emptyLine />
<package name="com.google.common" withSubpackages="true" static="false" />
<package name="org.apache.commons" withSubpackages="true" static="false" />
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="AndroidStyle">
<option name="JAVA_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="8" />
<option name="TAB_SIZE" value="8" />
<option name="USE_TAB_CHARACTER" value="false" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />