<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Editor on traviscj/blog</title>
    <link>https://traviscj.com/blog/tags/editor/</link>
    <description>Recent content in Editor on traviscj/blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 23 Feb 2018 13:41:22 +0000</lastBuildDate>
    <atom:link href="https://traviscj.com/blog/tags/editor/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>regex in java</title>
      <link>https://traviscj.com/blog/post/2018-02-23-regex-in-java/</link>
      <pubDate>Fri, 23 Feb 2018 13:41:22 +0000</pubDate>
      <guid>https://traviscj.com/blog/post/2018-02-23-regex-in-java/</guid>
      <description>&lt;p&gt;I can never remember how to do java regexes with Pattern.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Pattern pattern &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; Pattern.&lt;span style=&#34;color:#a6e22e&#34;&gt;compile&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;x_(yy|zz)&amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;String input &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;x_yy&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;boolean&lt;/span&gt; m &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; pattern.&lt;span style=&#34;color:#a6e22e&#34;&gt;asPredicate&lt;/span&gt;().&lt;span style=&#34;color:#a6e22e&#34;&gt;test&lt;/span&gt;(input);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;System.&lt;span style=&#34;color:#a6e22e&#34;&gt;out&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;println&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;matches: &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; m);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Matcher matcher &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; pattern.&lt;span style=&#34;color:#a6e22e&#34;&gt;matcher&lt;/span&gt;(input);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (matcher.&lt;span style=&#34;color:#a6e22e&#34;&gt;find&lt;/span&gt;()) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  System.&lt;span style=&#34;color:#a6e22e&#34;&gt;out&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;println&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;whole matched string: &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; matcher.&lt;span style=&#34;color:#a6e22e&#34;&gt;group&lt;/span&gt;(0));&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  System.&lt;span style=&#34;color:#a6e22e&#34;&gt;out&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;println&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;matched group: &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; matcher.&lt;span style=&#34;color:#a6e22e&#34;&gt;group&lt;/span&gt;(1));&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I also learned a really cool thing IntelliJ can do with pattern matches!&lt;/p&gt;&#xA;&lt;p&gt;![java regex]({{ site.baseurl }}/assets/java-regex.png)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Getting really fast at LaTeX</title>
      <link>https://traviscj.com/blog/post/2013-04-10-getting_really_fast_at_latex/</link>
      <pubDate>Wed, 10 Apr 2013 00:00:00 +0000</pubDate>
      <guid>https://traviscj.com/blog/post/2013-04-10-getting_really_fast_at_latex/</guid>
      <description>&lt;p&gt;Taking LaTeX notes in real time is one of my favorite useless party tricks. I started developing my techniques during the last year or two of undergraduate work at University of Washington, and was extremely good at it by the end of coursework at Northwestern. There are several keys to taking LaTeX notes in real time:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Know LaTeX.&lt;/li&gt;&#xA;&lt;li&gt;Shortcut appropriately.&lt;/li&gt;&#xA;&lt;li&gt;Type keystrokes quickly.&lt;/li&gt;&#xA;&lt;li&gt;One keystroke re-renders.&lt;/li&gt;&#xA;&lt;li&gt;Type fewer keystrokes.&lt;/li&gt;&#xA;&lt;li&gt;Type fewer “strange” keystrokes (backslashes, curly braces, etc)&lt;/li&gt;&#xA;&lt;li&gt;Re-renders should scroll to your current location in the text.&lt;/li&gt;&#xA;&lt;li&gt;Extremely rapid debugging of LaTeX expressions.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Before I get started, one other note: I mention TextMate a few places, but in principle there is no reason you couldn&amp;rsquo;t configure all the same things in Vim, Emacs, or Sublime Text. If I was starting over, I might use Sublime Text instead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>HMCP Set, TextMate, and RoR 2.0</title>
      <link>https://traviscj.com/blog/post/2009-02-06-hmcp_set_textmate_and_ror_2.0/</link>
      <pubDate>Fri, 06 Feb 2009 00:00:00 +0000</pubDate>
      <guid>https://traviscj.com/blog/post/2009-02-06-hmcp_set_textmate_and_ror_2.0/</guid>
      <description>&lt;p&gt;I found a great little LaTeX homework layout for typesetting math homeworks a while back, and I&amp;rsquo;ve meant to write it up for quite a while. It&amp;rsquo;s from Harvey Mudd College&amp;rsquo;s Mathematics Department, engineered to automatically satisfy the department guidelines on how homeworks should be laid out. They also have thesis and poster templates, but the homework installation proceedures and sty files are located on the &lt;a href=&#34;http://www.math.hmc.edu/computing/support/tex/classes/hmcpset/&#34;&gt;Homework Class&lt;/a&gt; page. Their website also has extensive information on their computer resources. While basically useless for anyone not at Harvey Mudd, it is a model for how this sort of website should look. Everything is clearly detailed at the perfect level, along with suggestions not just for how to do certain tasks, but also when you might want to do something.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
