Skip to content

Instantly share code, notes, and snippets.

View alex-arriaga's full-sized avatar
😀
Working on something great!

Alex Arriaga alex-arriaga

😀
Working on something great!
View GitHub Profile
[core]
excludesfile = /Users/alex/.gitignore_global
[difftool "sourcetree"]
cmd = /usr/local/bin/ksdiff -w \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true
[user]
name = Alex Arriaga
*~
.DS_Store
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
# Improved by Alex Arriaga (@alex_arriaga_m) - http://www.alex-arriaga.com
# Include your project-specific ignores in this section
# ----- Project ignores
# Path to Oh My Fish install.
set -gx OMF_PATH "/Users/alex/.local/share/omf"
# MySQL commands
# export PATH="/usr/local/mysql/bin:$PATH"
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG "/Users/alex/.config/omf"
# Load oh-my-fish configuration.
@alex-arriaga
alex-arriaga / sphp
Created January 22, 2016 05:11
PHP Switcher Script; configure following this great post: https://getgrav.org/blog/mac-os-x-apache-setup-multiple-php-versions
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: sphp [phpversion]"
exit 1
fi
currentversion="`php -r \"echo str_replace('.', '', substr(phpversion(), 0, 3));\"`"
newversion="$1"
import { bootstrap } from "angular2/platform/browser";
import { provide, ComponentRef } from "angular2/core";
import { Provider } from "angular2/src/core/di/provider";
import { ROUTER_PROVIDERS, APP_BASE_HREF } from "angular2/router";
import { HTTP_PROVIDERS } from "angular2/http";
import 'rxjs/add/operator/map';
import { SERVICE_PROVIDERS } from "./authenticated/carbonldp/common/providers/carbon-services.provider";
import { AppComponent } from "app/app.component";
@alex-arriaga
alex-arriaga / _.md
Last active May 2, 2016 18:32
Brush Example
@alex-arriaga
alex-arriaga / _.md
Last active May 2, 2016 19:00
Speed Data Stream
@alex-arriaga
alex-arriaga / _.md
Created May 12, 2016 14:02
Simple rectangle
@alex-arriaga
alex-arriaga / Java8DateTimeExamples.java
Created August 11, 2016 21:04 — forked from mscharhag/Java8DateTimeExamples.java
Examples for using the Java 8 Date and Time API (JSR 310)
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
import java.util.*;
import static java.time.temporal.TemporalAdjusters.*;
public class Java8DateTimeExamples {
# === Start: Stage #1 - Building the web app
FROM node:10.15.0-alpine AS builder
WORKDIR /usr/app
# Wildcard to copy package-lock.json too
COPY package*.json ./
# RUN executes command(s) in a new layer and creates a new image. E.g., it is often used for installing software packages.
RUN npm install