I hereby claim:
- I am borsi on github.
- I am borsi (https://keybase.io/borsi) on keybase.
- I have a public key ASDhPbMLwa2rY3XoGcHlb9ZOMtMasn18hpRqEvNZD8CfRQo
To claim this, I am signing this object:
| /* | |
| Select a text and click your bookmarklet - now you can paste the selected text s l o w e r. | |
| H a v e F u n ! | |
| */ | |
| javascript: (function () { | |
| function copyTextToClipboard(text) { var textArea = document.createElement("textarea"); textArea.style.position = 'fixed'; textArea.style.top = 0; textArea.style.left = 0; textArea.style.width = '2em'; textArea.style.height = '2em'; textArea.style.padding = 0; textArea.style.border = 'none'; textArea.style.outline = 'none'; textArea.style.boxShadow = 'none'; textArea.style.background = 'transparent'; textArea.value = text; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'successful' : 'unsuccessful'; console.log('Copying text command was ' + msg); } catch (err) { console.log('Oops, unable to copy'); } document.body.removeChild(textArea); }; | |
| var a = ""; | |
| if (window.getSelection) { | |
| t = window.getSelection().toString(); | |
| [...t].forEach(c => a += (c + " ")); |
I hereby claim:
To claim this, I am signing this object:
| import * as React from 'react' | |
| import * as ReactDOM from 'react-dom' | |
| ReactDOM.render( | |
| <ArticleList content={articles} />, | |
| document.getElementById('root') | |
| ); | |
| class ArticleList extends React.Component<{ content }, {}> { | |
| const articles = this.props.content; | |
| render(){ | |
| return ( |
| import * as SN from 'sn-client-js'; | |
| let collection = new SN.Collection([], repository.Content); | |
| var options = new SN.ODataApi.ODataParams({ | |
| select: ["Id", "DisplayName", "BrowseUrl", "Author", "ModificationDate", "Lead"], | |
| orderby: 'ModificationDate', | |
| metadata: 'no' }); | |
| let fetchContent = collection.Read('/NewsDemo/External', options); | |
| fetchContent | |
| .map(response => response.d.results) | |
| .subscribe({ |
| import { Repository, Config } from 'sn-client-js'; | |
| let repository = new Repository.SnRepository({ | |
| RepositoryUrl: 'https://my-sensenet-site.com' | |
| }); |
| <div class="sn-article-list"> | |
| <%foreach (var content in this.Model.Items) | |
| { %> | |
| <div class="sn-article-list-item"> | |
| <h2 class="sn-article-title"> | |
| <a href="<%=Actions.BrowseUrl(content)%>"> | |
| <%= content.DisplayName %> | |
| </a> | |
| </h2> | |
| <small class="sn-article-info"> |
The following terms are used throughout this agreement:
| document.write('<link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css"/>') | |
| document.write('<div id=\"gist-3827596\" class=\"gist\">\n \n\n <div class=\"gist-file\">\n <div class=\"gist-data gist-syntax\">\n <div class=\"gist-highlight\"><pre><div class=\'line\' id=\'LC1\'><span class=\"c1\">// if both logged in and not logged in users can send this AJAX request,<\/span><\/div><div class=\'line\' id=\'LC2\'><span class=\"c1\">// add both of these actions, otherwise add only the appropriate one<\/span><\/div><div class=\'line\' id=\'LC3\'><span class=\"nx\">add_action<\/span><span class=\"p\">(<\/span> <span class=\"s1\">'wp_ajax_nopriv_myajax-submit'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'myajax_submit'<\/span> <span class=\"p\">);<\/span><\/div><div class=\'line\' id=\'LC4\'><span class=\"nx\">add_action<\/span><span class=\"p\">(<\/span> <span class=\"s1\">'wp_ajax_myajax-submit'<\/span><span class=\"p\">,<\/sp |
| document.write('<link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css"/>') | |
| document.write('<div id=\"gist-3827596\" class=\"gist\">\n \n\n <div class=\"gist-file\">\n <div class=\"gist-data gist-syntax\">\n <div class=\"gist-highlight\"><pre><div class=\'line\' id=\'LC1\'><span class=\"c1\">// if both logged in and not logged in users can send this AJAX request,<\/span><\/div><div class=\'line\' id=\'LC2\'><span class=\"c1\">// add both of these actions, otherwise add only the appropriate one<\/span><\/div><div class=\'line\' id=\'LC3\'><span class=\"nx\">add_action<\/span><span class=\"p\">(<\/span> <span class=\"s1\">'wp_ajax_nopriv_myajax-submit'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'myajax_submit'<\/span> <span class=\"p\">);<\/span><\/div><div class=\'line\' id=\'LC4\'><span class=\"nx\">add_action<\/span><span class=\"p\">(<\/span> <span class=\"s1\">'wp_ajax_myajax-submit'<\/span><span class=\"p\">,<\/sp |