Does markdown work here?
here?- And what about here?
- Possibly.
A fancy | Table
| function useTableQuery(queryFn, columnDefs, formatApiData, formatParamsToQueryKey) { | |
| const [queryKey, setQueryKey] = useState(''); | |
| const {data, isLoading} = useQuery(queryKey, () => queryFn({ordering: queryKey.sortBy})); | |
| const tableData = useMemo(() => formatApiData(data), [data]); | |
| const columns = useMemo(() => columnDefs, [columnDefs]); | |
| const fetchData = useCallback((params) => { | |
| const paramsToQK = formatParamsToQueryKey(params); |
Does markdown work here?
A fancy | Table
| Cult Leader - Aurum Reclusa | |
| AXIS - With Grace | |
| Nails - Your God | |
| Integrity - Simulacra | |
| Trap Them - Gift and Gift Unsteady | |
| Dead in the Dirt - The Blaring Eye | |
| Loma Prieta - Never Remember | |
| Creeping Death - Bloodlust Contamination | |
| Modern Life Is War - Humble Streets | |
| Ceremony - Back In '84 |
I hereby claim:
To claim this, I am signing this object:
| # get_tracks is an api method to get recent tracks for a user, with paging and caching | |
| # get_track is an api method to get a single track from mbid or artist+name, with caching | |
| import itertools | |
| from operator import itemgetter | |
| def track_to_artist_and_duration(track): | |
| api_track = get_track(track) | |
| return (track.get('artist').get('name'), track.get('name'), api_track.get('duration')) |
| import datetime | |
| import pytz | |
| def format_report_date(date_or_nsdate): | |
| formatted = None | |
| if type(date_or_nsdate) is float: | |
| try: | |
| reference_date = datetime.datetime(2001, 1, 1, 0, 0, 0, 0, pytz.utc).strftime('%s') | |
| formatted = datetime.datetime.fromtimestamp(long(reference_date) + date_or_nsdate) | |
| except e: |
| javascript:(function(e,t){var n=e.document;setTimeout(function(){function a(e){if(e.data==="destroy_bookmarklet"){var r=n.getElementById(t);if(r){n.body.removeChild(r);r=null}}}var t="DELI_bookmarklet_iframe",r=n.getElementById(t);if(r){return}var i="https://delicious.com/save?",s=n.createElement("iframe");s.id=t;s.src=i+"url="+encodeURIComponent(e.location.href)+"&title="+encodeURIComponent(n.title)+"¬e="+encodeURIComponent(""+(e.getSelection?e.getSelection():n.getSelection?n.getSelection():n.selection.createRange().text))+"&v=1.1";s.style.position="fixed";s.style.top="0";s.style.left="0";s.style.height="100%25";s.style.width="100%25";s.style.zIndex="16777270";s.style.border="none";s.style.visibility="hidden";s.onload=function(){this.style.visibility="visible"};n.body.appendChild(s);var o=e.addEventListener?"addEventListener":"attachEvent";var u=o=="attachEvent"?"onmessage":"message";e[o](u,a,false)},1)})(window) |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>DataStax OpsCenter Alerts</title> | |
| <script src="js/dojotoolkit/dojo/dojo.js"></script> | |
| <script> | |
| require([ | |
| 'dojo/_base/lang', | |
| 'dojo/_base/xhr', |
| <?php | |
| function getObject($id) { | |
| $object = null; | |
| // TODO Do we need to validate username? | |
| $objects = $this->db->retrieveForUsername($this->username); | |
| // FIXME Write `retrieveForIdAndUsername` instead of iterating here | |
| foreach ($objects as $o) { |