Skip to content

Instantly share code, notes, and snippets.

View denisovlev's full-sized avatar

Lev Denisov denisovlev

  • adjust
  • Berlin, Germany
View GitHub Profile
// project/PrefixMigrations.scala
import java.nio.file.Files
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import sbt._
import Keys._
https://github.com/brandon-rhodes/homedir/blob/master/bin/%2Cfix-virtualenv-for-anaconda
virtualenv --no-site-packages -p python3 ../eb-virt
d = ActiveSupport::Dependencies
d.logger = Logger.new(STDOUT)
d.log_activity = true
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
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();