What is currently on your clipboard?
Paste the content of your clipboard by pressing CTRL or Command V.
Here’s what was on mine:
you may have multiple object types that can be purchased, tagged, or commented on. You can use standard Ruby modules for this shared behavior. If the shared behavior has both class and instance methods, Rails provides ActiveSupport::Concern , which allows you to easily use a common pattern to mix multiple kinds of behavior from one module.
Route::get('services', array('as' => 'services', function(){
return View::make('services');
}));
I added the pre for legibility
mawburn
December 12, 2014, 2:23pm
7
I didn’t know pre tags colored code, I’ve been doing it the manual 4 spaces way.
/**
* Delay events for specified time
* @param {function} callback
* @param {int} ms Milliseconds to wait
* @param {string} uniqueId Unique Event String
*/
waitForFinalEvent: (function(){
var timers = {};
return function (callback, ms, uniqueId) {
if (timers[uniqueId]) {
clearTimeout (timers[uniqueId]);
}
timers[uniqueId] = setTimeout(callback, ms);
};
})(),
Hmmm… mine didn’t work.
Edit: fixed it with the editor button…
It must be that Discourse loves me…
(I have no idea)
2 Likes
<root>
{exp:channel:entries channel="profiles" limit="300" dynamic="no" status="Open|Closed"}
<entry>
<id>{entry_id}</id>
<title>{title}</title>
<status>{status}</status>
<date>{entry_date format="%Y-%m-%d %H:%i:%s"}</date>
<email>{profile_email}</email>
<phone>{profile_phone}</phone>
<role><![CDATA[{profile_role}]]></role>
<qualifications>{profile_qualifications}</qualifications>
<bio><![CDATA[{profile_biography}]]></bio>
<photo>{profile_photo}</photo>
<cv>{profile_downloadable_cv}</cv>
</entry>
{/exp:channel:entries}
</root>
look @mawburn it loves @bluedreamer too
So based on this objective evidence, I’ll revise my statement: Discourse hates you, @mawburn .
2 Likes
mawburn
December 12, 2014, 2:38pm
11
He used the 4 spaces method. pre tags strip out html/xml.
lol. I didn’t manually add pre tags, I used the button on the editor. Make any difference?
/stops being a jerk
mawburn
December 12, 2014, 2:43pm
13
jeffreylees:
Make any difference?
lol I didn’t know that existed. That seems to space things the right way.
2 Likes
cpradio
December 12, 2014, 2:53pm
14
You can also use three backticks ` on the line above your code and three on the line after your code
Example:
```
code here
```
molona
December 12, 2014, 2:55pm
15
That doesn’t work with my Spanish keyboard, for some reason. But yes, you Brits, Americans, etc… you can do that
molona
December 12, 2014, 3:01pm
17
copying and pasting the three ``` doesn’t seem to work, either. Just tried.
mawburn
December 12, 2014, 3:01pm
18
function iDontThink() {
this.colors("code?");
}
cpradio
December 12, 2014, 3:02pm
19
It does when you have three of them
1 Like