This file contains hidden or 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
| From ages 18-21 I went through a period where I had many significant dreams. I don't remember the particular order, but the more significant ones have etched themselves thoroughly in my memory. | |
| Three Churches | |
| When the dream started out I was a member of some kind of new age church. The building had a lot of light in it and the atmosphere seemed very cultish. They claimed to be christian but it became clear they were christian in name only. In the church there were a series of relics, the most important of which was a glass box filled with sand. I disrupted this relic by placing a cross inside of it, which angered the congregation to the point that they wanted me dead. They wanted to crucify me but I insisted that if they were to crucify me, they do so upside down, much like the early christian martyrs. This caused a great argument amongst the congregation and in the commotion I was able to escape my martyrdom and run away from the church. I came upon a picnic of a large group of people and they welcomed me w |
This file contains hidden or 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
| Last night I had dreams within dreams. I was in a grassy region that was completely flooded with multicolored water because of rains. I walked around and found my dad's house, the house I grew up in. I sat on the steps up to the house from the back yard and realizing it was a dream, I attempted to meditate. I was unable to concentrate because I kept getting woken up by various people coming into my apartment trying to get me out of bed. At first it was my dad, then my sister and some of her friends. I became angry and kept attempting to fall back asleep so I could meditate, but as soon as I tried someone new would come in and interrupt me. Little did I realize that I was never actually getting woken up, and the interruptions were part of the dream. However, I do remember having the insight that these "real world" interruptions were no different than thoughts that came and went in my head. | |
| I distinctly remember passing in between the dream within the dream, and the regular dream. When I would wake up from the |
This file contains hidden or 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
| Last night I was fully lucid and was able to meditate. It's a little bit harder to remember because it happened at the beginning of the dream. I was in a dojo and to my left was another person who was also meditating. On the wall was a poster with my face on it. I remember debating whether I should be meditating whilst seated or lying down. I was concerned that if I meditated while seated I would wake up in the real world, but if I was lying down I might fall asleep within the dream. | |
| Later on a woman, who was the crazy mother of an acquaintance of mine, shaved my head without my permission. This angered me and i wasn't sure what to do. I probably should have forgiven her because I was still lucid, but I was upset and the people around me convinced me not to be a pushover so I called the cops. She ran and I chased her. At some point she pulled out a gun and started shooting at me, but the bullets didn't hit me. Maybe because I was still lucid? Meanwhile the cops were chasing her and eventually they shot and k |
This file contains hidden or 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
| expect = require('chai').expect | |
| _ = require('lodash') | |
| housesDeliveredGrid = (commands) -> | |
| grid = {0:{0:1}} | |
| currentX = 0 | |
| currentY = 0 |
This file contains hidden or 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
| # test-ransacker-arel-present-predicate.rb | |
| # Run it in your console with: `ruby test-ransacker-arel-present-predicate.rb` | |
| # If you change the gem dependencies, run it with: | |
| # `rm gemfile* && ruby test-ransacker-arel-present-predicate.rb` | |
| unless File.exist?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' |
This file contains hidden or 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
| Htmltoword::Document.new("").transform_doc_xml(Nokogiri::HTML("<ul><li>hi</li></ul>")) | |
| def document | |
| Htmltoword::Document.new("") | |
| end |
This file contains hidden or 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
| require 'htmltoword' | |
| require 'mustache' | |
| class HtmlToOpenXml | |
| include Htmltoword::XSLTHelper | |
| def convert(html) | |
| node = Nokogiri::HTML(html.gsub(/>\s+</, '><')) | |
| node = xslt(stylesheet_name: 'cleanup').transform(node) | |
| node = xslt(stylesheet_name: 'inline_elements').transform(node) |
OlderNewer