Skip to content

Instantly share code, notes, and snippets.

View alexlafroscia's full-sized avatar
👋
Looking for work! Need experience with Svelte or Ember.js? Get in touch!

Alex LaFroscia alexlafroscia

👋
Looking for work! Need experience with Svelte or Ember.js? Get in touch!
View GitHub Profile

You've got files in a git repo and you want them on a static server. Here's how it's done using a Mac Mini:

  1. Set up your local repo

     $ mkdir marketing && cd marketing
     $ git init
     $ echo 'Hello, world!' > index.html
     $ git add .
     $ git commit -am "init"
    
@alexlafroscia
alexlafroscia / alfred extensions.md
Created May 21, 2014 19:42
Best Alfred Extensions

Dash

Avaliable through the Dash Integrations preference pane

Evernote

Nearly-complete Evernote integration for Alfred

Forum post link

@alexlafroscia
alexlafroscia / post-receiver.js
Created July 17, 2014 18:39
Quick and Dirty Node POST Receiver
/* Simple Node POST Server
* =================================
* Desc: Prints out the JSON that it receives to the root of the Server
* Auth: Alex LaFroscia (@alexlafroscia)
*
*
* How to Use:
* -------------------
* Run `node post-receiver.js` from the root of the directory
*
@alexlafroscia
alexlafroscia / agnoster-custom.zsh-theme
Last active April 27, 2017 00:01
Custom Agnoster Theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
@alexlafroscia
alexlafroscia / build.gradle
Last active December 21, 2020 10:31
JUnit Testing with Gradle
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'alex' at '1/27/15 7:02 PM' with Gradle 2.2.1
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/2.2.1/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java
@alexlafroscia
alexlafroscia / mylzw.java
Created March 1, 2015 02:14
LZW Changes
/**
* Custom LZW compression class.
*
* Compilation: javac MyLZW.java
* Execution: java MyLZW - {@literal <} input.txt (compress)
* Execution: java MyLZW + {@literal <} input.txt (expand)
* Dependencies: BinaryIn.java BinaryOut.java
*
* Compress or expand binary input from standard input using LZW.
*
@alexlafroscia
alexlafroscia / .vimrc
Last active August 29, 2015 14:16
Vim Presentation
" Set Insert mode to allow the backspace key
" for deleting characters
set backspace=2
" Instead of using a tab, use 2 spaces
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
@alexlafroscia
alexlafroscia / Ember Server Dockerfile
Last active August 29, 2015 14:18
Dockerfile for running the Ember Server
# =====================================================================
# Commands
#
# Build the image
# docker run build
#
# Run the server
# docker run --name ember -v $(pwd):/usr/src/app -P ember server
#
# =====================================================================
{
"app/adapters/*.js": {
"command": "adapter",
"template": [
"// export default DS.{capitalize}Adapter.extend();",
]
},
"app/components/*.js": {
"command": "component",
@alexlafroscia
alexlafroscia / about.md
Created April 27, 2015 03:16
vim-go with vim-dispatch integration profiling

These are the profile logs from using :GoBuild with and without Dispatch detection enabled. I did the profiling using the steps detailed here.