This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createMyWrappedInput = function (defaultValue) { | |
return [ | |
'<div class="Wrapper">', | |
'<input type="text" value="' + defaultValue + '"/>', | |
'</div>' | |
].join(""); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createMyWrappedInput = function (defaultValue) { | |
var wrappedInput = "<div class='Wrapper'>"; | |
wrappedInput += '<input type="text" value="' + defaultValue + '"/>'; | |
wrappedInput += '</div>'; | |
return wrappedInput; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createMyWrappedInput = function (defaultValue) { | |
var wrapper = $("<div class='Wrapper'></div>"), | |
input = $('<input type="text" />'); | |
input.val(defaultValue); | |
wrapper.append(input); | |
return wrapper; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.ProFeature { | |
display: none; | |
} | |
</style> | |
<form action="/episodes" method="POST" data-is-pro="<%= user.pro %>"> | |
<input type="email" name="email" /> | |
<input type="email" name="alternate_email" class="ProFeature" disabled /> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="Placeholder"></div> | |
<script> | |
var myForm = new BLIP.Form({ | |
target: "Placeholder", | |
action: "/episodes", | |
method: "POST", | |
inputs: [ | |
{ | |
name: "email", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Array | |
def newest | |
records = self.select{ |e| e.kind_of? ActiveRecord::Base } | |
records.sort do |a, b| | |
a.created_at <=> b.created_at | |
end | |
records.last | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *pathToRelaunch = [host bundlePath]; | |
if ([[updater delegate] respondsToSelector:@selector(pathToRelaunchForUpdater:)]) | |
pathToRelaunch = [[updater delegate] pathToRelaunchForUpdater:updater]; | |
NSString *relaunchToolPath = [relaunchPath stringByAppendingPathComponent: @"/Contents/MacOS/finish_installation"]; | |
[NSTask launchedTaskWithLaunchPath: relaunchToolPath arguments:[NSArray arrayWithObjects:[host bundlePath], pathToRelaunch, [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], tempDir, relaunch ? @"1" : @"0", nil]]; | |
[NSApp terminate:self]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew tap phinze/homebrew-cask | |
brew install brew-cask | |
brew cask install layervault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PersonSerializer < ActiveModel::Serializer | |
def model_version | |
Digest::MD5.hexdigest(File.read(File.join(Rails.root, "app/serializers", "#{self.class.to_s.underscore}.rb")).gsub(/\s/,'')) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have an incredible team I’m sure you’ve heard of in New York and looking for another Ruby engineer to join the team. I'm working with the founder of RapGenius, Tom Lehman, on this opportunity and have multiple openings for mid level to sr/principal/lead developers. I helped these guys staff 2 Ruby on Rails engineers, both from well-known companies, let me know if you’d be interested in checking them out. | |
They pinned down $15M from Ben Horowitz and have been getting a ton of attention. I would be interested in hearing your thoughts. | |
www.rapgenius.com | |
http://rapgenius.com/Marc-andreessen-why-andreessen-horowitz-is-investing-in-rap-genius-lyrics (Definitely check this one out) | |
http://news.ycombinator.com/item?id=4698010 and http://rapgenius.com/posts/Rap-genius-is-hiring | |
We raised $15M from Andreessen Horowitz to build the Internet Talmud™ (read more here: http://goo.gl/LKNHO). |