snipt

Ctrl+h for KB shortcuts

JavaScript

Hate computers.

var endTimeMilliseconds = parser.startTime(subtitleScope.subtitle) / 1000;
var startTimeMilliseconds = parser.endTime(subtitleScope.subtitle) / 1000;
https://snipt.net/embed/e840609579de20f193dd5b22ee21c1c2/
/raw/e840609579de20f193dd5b22ee21c1c2/
e840609579de20f193dd5b22ee21c1c2
js
JavaScript
2
2019-06-21T14:56:30
True
False
False
Jan 28, 2013 at 06:14 PM
/api/public/snipt/54677/
hate-computers
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="kd">var</span> <span class="nx">endTimeMilliseconds</span> <span class="o">=</span> <span class="nx">parser</span><span class="p">.</span><span class="nx">startTime</span><span class="p">(</span><span class="nx">subtitleScope</span><span class="p">.</span><span class="nx">subtitle</span><span class="p">)</span> <span class="o">/</span> <span class="mi">1000</span><span class="p">;</span> </span><span id="L-2"><a name="L-2"></a><span class="kd">var</span> <span class="nx">startTimeMilliseconds</span> <span class="o">=</span> <span class="nx">parser</span><span class="p">.</span><span class="nx">endTime</span><span class="p">(</span><span class="nx">subtitleScope</span><span class="p">.</span><span class="nx">subtitle</span><span class="p">)</span> <span class="o">/</span> <span class="mi">1000</span><span class="p">;</span> </span></pre></div> </td></tr></table>
hate

Markdown

United Healthcare fun!

Hospital tells me: "What is actually coming up when I check it is that it says rejected. "Pt should be registered with insurance code 10101, 10103, or 12507... I honestly have no idea what that stands for... I went to my most senior representative here in the office and they stated they have no idea what the means. They have never seen it before."

https://snipt.net/embed/19211a1c839c09e75bb9e6d30f726c34/
/raw/19211a1c839c09e75bb9e6d30f726c34/
19211a1c839c09e75bb9e6d30f726c34
markdown
Markdown
1
2019-04-24T08:18:08
True
False
False
/api/public/snipt/54655/
united-healthcare-fun
<p>Hospital tells me: "What is actually coming up when I check it is that it says rejected. "Pt should be registered with insurance code 10101, 10103, or 12507... I honestly have no idea what that stands for... I went to my most senior representative here in the office and they stated they have no idea what the means. They have never seen it before."</p>

Markdown

AngularJS question about custom directives vs. controllers.

https://snipt.net/embed/1288c42764c0e7348a6ba48756e7296e/
/raw/1288c42764c0e7348a6ba48756e7296e/
1288c42764c0e7348a6ba48756e7296e
markdown
Markdown
8
2019-06-19T03:26:46
True
False
False
/api/public/snipt/53693/
angularjs-question-about-custom-directives-vs-controllers
<ul> <li>So when we change the <code>subtitles</code> object on this controller: <a href="https://github.com/pculture/unisubs/blob/dev/media/src/js/subtitle-editor/controllers/subtitle-list.js#L200">https://github.com/pculture/unisubs/blob/dev/media/src/js/subtitle-editor/controllers/subtitle-list.js#L200</a> , our new list renders a new set of li's: <a href="https://github.com/pculture/unisubs/blob/dev/templates/subtitles/subtitle-editor.html#L79-L90">https://github.com/pculture/unisubs/blob/dev/templates/subtitles/subtitle-editor.html#L79-L90</a></li> <li>In some cases, when this list renders, we want to pre-select <em>one</em> of the li's, using this method: <a href="https://github.com/pculture/unisubs/blob/dev/media/src/js/subtitle-editor/directives/subtitles.js#L36-L69">https://github.com/pculture/unisubs/blob/dev/media/src/js/subtitle-editor/directives/subtitles.js#L36-L69</a></li> <li>What I'm confused about is: what is the proper "Angular"-way to call a private method on a custom directive from within a controller? Or should that private method (onSubtitleItemSelected) be somewhere else?</li> </ul>
angular, angularjs

Markdown

Change an OS X item's icon.

  1. Get a PNG of some sort.
  2. Open the PNG in Preview.app.
  3. Cmd+A, then Cmd+C
  4. Right click on desired item -> Get Info
  5. Click on the icon in the upper left.
  6. Cmd+V
  7. Profit.
https://snipt.net/embed/7b4fe2fb34ef0267fdab52ec927a0b37/
/raw/7b4fe2fb34ef0267fdab52ec927a0b37/
7b4fe2fb34ef0267fdab52ec927a0b37
markdown
Markdown
7
2019-06-01T19:42:56
True
False
False
Dec 05, 2012 at 05:33 PM
/api/public/snipt/51295/
change-an-os-x-items-icon
<ol> <li>Get a PNG of some sort.</li> <li>Open the PNG in Preview.app.</li> <li>Cmd+A, then Cmd+C</li> <li>Right click on desired item -> Get Info</li> <li>Click on the icon in the upper left.</li> <li>Cmd+V</li> <li>Profit.</li> </ol>
osx