Skip to content

Instantly share code, notes, and snippets.

View alex-laties's full-sized avatar

Alexander Laties alex-laties

  • Google
  • New York, New York
View GitHub Profile
/Users/ag/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/attribute_methods/write.rb:14: syntax error, unexpected '?', expecting ';' or '\n'
def is_professor?=(new_value); write_attribute...
^
/Users/ag/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/attribute_methods/write.rb:14: syntax error, unexpected keyword_end, expecting $end
...is_professor?', new_value); end
<div class="modal-body">
<form class="form-search" id="search">
<input text="text" class="input-large search-query">
<a href="#" class="btn btn-primary">Search</a>
<div class="hidden-submit">
<input type="submit" tabindex="-1">
</div>
</form>
</div>
@alex-laties
alex-laties / gist:1735434
Created February 4, 2012 04:53
Error log for current Konsole MacPort package (konsole 4.8.0)
:info:configure -- Found Qt-Version 4.7.4
:info:configure -- -> QT_QMAKE_EXECUTABLE is /opt/local/bin/qmake
:info:configure -- -> QT_INCLUDE_DIR is /opt/local/include
:info:configure -- -> QT_QTCORE_INCLUDE_DIR is /opt/local/include/QtCore
:info:configure -- -> QT_BINARY_DIR is /opt/local/bin
:info:configure -- -> QT_LIBRARY_DIR is /opt/local/lib
:info:configure -- -> QT_PLUGINS_DIR is /opt/local/share/qt4/plugins
:info:configure -- -> QT_MKSPECS_DIR is /opt/local/share/qt4/mkspecs
:info:configure -- Phonon Version: 4.4.2
:info:configure -- Found KDE 4.7 include dir: /opt/local/include
@alex-laties
alex-laties / SoundAnalyzer.cpp
Created January 20, 2012 22:19
implementation
//
// SoundAnalyzer.cpp
// BadTouchCLI
//
// Created by Alex Laties on 1/20/12.
// Copyright (c) 2012 University of Pennsylvania. All rights reserved.
//
#include "SoundAnalyzer.h"
void SoundAnalyzer::ProcessPacket(<#AudioQueueBufferRef buf#>) {