Alex Payne al3x

View keybase.md

Keybase proof

I hereby claim:

  • I am al3x on github.
  • I am al3x (https://keybase.io/al3x) on keybase.
  • I have a public key whose fingerprint is 4BBB 8323 A8EE 6B08 8434 AFE7 554B C317 53AC C28D

To claim this, I am signing this object:

View config.ovpn
1 2 3 4 5 6 7 8 9 10
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
View perfect_chicken.txt
1 2 3 4 5 6 7 8 9
1 whole chicken – no more than 4lbs. (about 3.5lbs is a perfect size)
 
· Cast iron skillet
 
· Paper towels/saran wrap
 
· Dish that fits chicken (can be any sort – Tupperware, baking dish, etc.)
 
· Salt and pepper
View gist:967060

A lot of talk at JSConf was on the use of modules: AMD, CommmonJS, or otherwise. Since the server-side JavaScript world has this mostly covered, a more heavily discussed topic was bringing the joys of modularity to the client-side. This, of course, is a tricky thing to do since loading scripts requires some sort of relatively slow and possibly asynchronous network request. How does one balance the issues of perceived latency, JS execution (UI blocking), page weight, and code tidiness? I spent some time looking into this and here's my first stab at a solution (no I'm not releasing some open source project shut up).

Real quick: if you don't agree that splitting files to do asynchronous loading is a good idea you should read more.

I code most of my projects in MooTools (including my current project, BankSimple, so modularity is a given for me. MooTools is

View hipchat air client feature requests.textile

- configurable keyboard shortcuts for switching between tabs and initiating uploads and video chats
- menubar items for available commands on Mac OS X (ex: there should probably be a “Room” menubar item)
- use color to differentiate the right sidebar, ideally inheriting the default sidebar/source list color from the OS
- cache files and links so they don’t have to awkwardly reload when you bring up the “Files & Links” tab
- make font size configurable
- allow searching in the AIR app
- possibly out of your control, but the AIR client uses a non-trivial amount of CPU when idle (spiking up to 3 – 5%); that’s probably more than it should use, even for polling

View broken_index.ssp.scala
1 2 3 4 5 6 7 8 9 10
/* NOTE this file is autogenerated by Scalate : see http://scalate.fusesource.org/ */
package Application
 
import _root_.scala.collection.JavaConversions._
import controllers._;import models._;import play.utils._
 
object $_scalate_$index_ssp{
def $_scalate_$render($_scalate_$_context:_root_.org.fusesource.scalate.RenderContext): Unit = {
val context:org.fusesource.scalate.DefaultRenderContext = ($_scalate_$_context.attributes.get("context") match {
case Some(value) => value.asInstanceOf[org.fusesource.scalate.DefaultRenderContext]
View playlist.txt
1 2 3 4 5 6 7 8 9 10
Flying Lotus - Lit Up (Instrumental)
Phaseone - Cadence + Athena
Gary Numan - Films
Hovatron - Gypsy Trader
The Field - The More That I Do (Foals remix)
Surfs - Tu Seras Mi Baby
The Very Best - Cape Cod Kwassa Kwassa
Orchestre N'guewel - Mi Guajeo
Harvard Bass - 81 (Renaissanceman remix)
Znobia - Tchilo (Diplo remix)
View emacs-indent-bug.scala
1 2 3 4
example { foo =>
bar // this first line indents correctly
baz // but what happened here?
} // this isn't correct either
View update_git_submodules.sh
1
for i in $(find . -d 1 -type d); do cd $i; echo $i; git pull; cd ..; echo ""; done
View betterSbtThrift.scala
1 2 3 4 5 6 7 8 9 10
def javaDirectoryPath = "src_managed" / "main" / "java"
def rubyDirectoryPath = "src_managed" / "main" / "ruby"
def thriftDirectoryPath = "src_managed" / "main" / "thrift"
def thriftFile = thriftDirectoryPath / "YourThriftDealie.thrift"
 
def thriftTask(tpe: String, directory: Path, thriftFile: Path) = {
val cleanIt = cleanTask(directory) named("clean-thrift-" + tpe)
execTask {
// you can do "thrift ...".format and pass a String here instead of inline xml
<x>thrift --gen {tpe} {directory.absolutePath} {thriftFile.absolutePath}</x>
Something went wrong with that request. Please try again.