Skip to content

Instantly share code, notes, and snippets.

public static DateTimeOffset ProcessDate(this Fulfilment f)
{
var originalOrderDate = f.OrderItem.CreatedAt;
var fulfilmentCutOffDate = f.Schedule.CutOffDate;
var currentDateToUse = new DateTimeOffset();
var i = 0; //to count up months from original order date
while (true)
{
@elmo61
elmo61 / heroku.log
Created May 30, 2018 07:02
Site Crashing
2018-05-30T07:01:31.981870+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 49017 -e production`
2018-05-30T07:01:38.171500+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-30T07:01:38.152535+00:00 heroku[web.1]: Process exited with status 1
2018-05-30T07:01:38.032014+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require': No such file to load -- Photo.rb (LoadError)
2018-05-30T07:01:38.032112+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
2018-05-30T07:01:38.032140+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
2018-05-30T07:01:38.032164+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
2018-05-30T07:01:38.032199+00:00 app[web.1]: from
string path = "c:/folder/file.jpg";
using(StreamWriter sw = File.AppendText(path))
{
sw.WriteLine("write some text");
}