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
// project/PrefixMigrations.scala | |
import java.nio.file.Files | |
import java.time.LocalDateTime | |
import java.time.format.DateTimeFormatter | |
import sbt._ | |
import Keys._ | |
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
https://github.com/brandon-rhodes/homedir/blob/master/bin/%2Cfix-virtualenv-for-anaconda | |
virtualenv --no-site-packages -p python3 ../eb-virt |
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
d = ActiveSupport::Dependencies | |
d.logger = Logger.new(STDOUT) | |
d.log_activity = true |
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
result = RubyProf.profile { | |
enqueue_stats(cur_line_time, stat_time_block) | |
} | |
open('output2.html', 'w') do |f| | |
RubyProf::GraphHtmlPrinter.new(result).print(f, :min_percent => 5) | |
end | |
# https://github.com/ruby-prof/ruby-prof/blob/master/examples/graph.txt |
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
App = Ember.Application.create(); | |
App.Router.map(function() { | |
// put your routes here | |
}); | |
App.HashType = Ember.ArrayProxy.extend({ | |
willDestroy: function() { | |
this.get('content').forEach(function(valueObject) { | |
valueObject.destroy(); |