Snippets

David Simpson Hello World

Updated by David Simpson

File boo.md Modified

  • Ignore whitespace
  • Hide word diff
 
 ## This is a heading two
 
-*This* **is** some `code`:
+*This* **is** some `code`.
+
+A code example:
 
 ```
 console.log('hello');
Updated by David Simpson

File boo.md Modified

  • Ignore whitespace
  • Hide word diff
 
 ## This is a heading two
 
-**This** *is* Some `code`:
+*This* **is** some `code`:
 
 ```
 console.log('hello');
Updated by David Simpson

File boo.md Modified

  • Ignore whitespace
  • Hide word diff
-# Boo
+# This is a heading one
+
+## This is a heading two
+
+**This** *is* Some `code`:
 
 ```
 console.log('hello');
-```
+```
+
+1. Ordered list 1
+1. Ordered list 2
+1. Ordered list 3
+1. Ordered list 4
Updated by David Simpson

File example.java Added

  • Ignore whitespace
  • Hide word diff
+    private void removeInformation(Searchable searchable)
+    {
+        final DeleteDocumentIndexTask deleteDocumentIndexTask = new DeleteDocumentIndexTask(
+                new HibernateHandle(searchable).toString()
+        );
+ 
+        luceneConnection.withWriter(new ILuceneConnection.WriterAction()
+        {
+            @Override
+            public void perform(final IndexWriter writer) throws IOException
+            {
+                deleteDocumentIndexTask.perform(writer);
+            }
+        });
+    }
Updated by David Simpson

File answers.json Added

  • Ignore whitespace
  • Hide word diff
+{
+    "username": "David Simpson", 
+    "website": "http://davidsimpson.me/", 
+    "about": "http://twitter.com/dvdsmpsn\r\nhttp://linkedin.com/in/dvdsmpsn\r\n\r\n<b>hello world</b>", 
+    "links": {
+        "badges": "/users/57/badges", 
+        "self": "/users/57", 
+        "questions": "/users/57/questions", 
+        "answers": "/users/57/answers"
+    }, 
+    "tags": [
+        "confluence-development", 
+        "confluence", 
+        "analytics", 
+        "javascript", 
+        "css", 
+        "license", 
+        "addon-me.davidsimpson.confluence.plugins.googl", 
+        "uwc"
+    ], 
+    "organisation": "CWD Ltd", 
+    "answers": 623, 
+    "karma": 17106, 
+    "questions": 36, 
+    "following": false, 
+    "last_seen": "2011-05-23 07:09:54", 
+    "date_joined": "2011-05-23 07:09:54", 
+    "id": 57, 
+    "badges": 324, 
+    "location": "Nottingham, England"
+}

File joy.php Added

  • Ignore whitespace
  • Hide word diff
+$hello = 'hello world';
+$html = "<html><body>$hello</body></html>"; // double quotes here
+$pdf = $this->pdf->load();
+$pdf->WriteHTML($html);
  1. 1
  2. 2
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.