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
@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 / 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
#
# =====================================================================
@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.

@alexlafroscia
alexlafroscia / keybase.md
Created August 20, 2015 04:32
Keybase Verification

Keybase proof

I hereby claim:

  • I am alexlafroscia on github.
  • I am alexlafroscia (https://keybase.io/alexlafroscia) on keybase.
  • I have a public key whose fingerprint is F4FE 088F BFFC 23E7 175C DDBB 5F2A A45C C7F7 5DE4

To claim this, I am signing this object:

@alexlafroscia
alexlafroscia / application.controller.js
Last active October 20, 2015 15:22
Bug: Can't observe property in inner component
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});

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 / application.controller.js
Last active January 7, 2016 21:21
ES6 Interoperability Testing
import Ember from 'ember';
import extendBabelClass from '../utils/extend-babel-class';
class MyController {
get appName() {
return 'Ember Twiddle';
}
someCoolFunction() {
return 'This is my cool function';