This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
| <head> | |
| <title>Textshortening and ellipsis with only CSS</title> | |
| <meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
| <style type="text/css"> | |
| p { | |
| width: 220px; | |
| line-height: 18px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class AppModel extends Model { | |
| function afterFind($results){ | |
| if(!isset($results[0])){ | |
| // $results is a single object. | |
| $results = $this->realAfterFind($results); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $content = ' | |
| Text with newlines, possible XSS attacks and URLs. | |
| <script type="text/javascript">alert("this could be an XSS attack.");</script> | |
| The URL to my github page is https://github.com/geon. | |
| '; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| var LocalBuffered = {}; | |
| LocalBuffered.Model = Backbone.Model.extend({ | |
| constructor: function () { | |
| Backbone.Model.apply(this, arguments); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '{"foo1":123, "foo":{"bar":[1,2,3]}}' | ./json.js foo.bar.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Data: | |
| {"type":"add","uuid":"4b24edb2-5074-4a3a-95cb-927d5535da7c","topic":"clients","data":{"time":"2015-03-23T15:45:34.995Z"}} | |
| {"type":"add","uuid":"26ff7bdb-9913-47ab-a6df-8c985320c1bb","topic":"clients","data":{"time":"2015-03-23T15:45:36.082Z"}} | |
| {"type":"add","uuid":"914096b8-dc66-4239-bb1c-88baba0c1831","topic":"lines","data":{"time":"2015-03-23T15:45:40.323Z","clientId":"26ff7bdb-9913-47ab-a6df-8c985320c1bb","line":"Hello?"}} | |
| {"type":"add","uuid":"bdb60b1e-b34b-490e-a737-0ceb81208f4e","topic":"lines","data":{"time":"2015-03-23T15:45:44.935Z","clientId":"4b24edb2-5074-4a3a-95cb-927d5535da7c","line":"What?"}} | |
| {"type":"del","uuid":"4b24edb2-5074-4a3a-95cb-927d5535da7c","topic":"clients"} | |
| {"type":"add","uuid":"f9aacc7e-1745-4a54-8e54-b9bea3cbc3bb","topic":"clients","data":{"time":"2015-03-23T15:45:59.800Z"}} | |
| {"type":"add","uuid":"2c45cca3-cfa5-4ac2-bfec-12ca985d869b","topic":"lines","data":{"time":"2015-03-23T15:46:15.624Z","clientId":"f9aacc7e-1745-4a54-8e54-b9bea3cbc3bb","line":"Works finw"}} | |
| {"type":"ad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .full-screen.column | |
| .header Header | |
| .main.stretchy | |
| .left Menu-stuff here | |
| ul | |
| li Menu Entry | |
| li Menu Entry | |
| li Menu Entry | |
| li Menu Entry | |
| li Menu Entry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Model<T> { | |
| props: T; | |
| constructor(initial: T | void){ | |
| if (initial) { | |
| this.props = initial; | |
| } | |
| } | |
| set<K extends keyof T>(propName: K, value: T[K]) { | |
| this.props[propName] = value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- DROP SCHEMA public CASCADE; | |
| -- CREATE SCHEMA public; | |
| -- The bad measurements that should be clustered into errors. | |
| CREATE STREAM bad_measurements ("measurement" REAL, "timestamp" TIMESTAMPTZ); | |
| -- This is only useful because it create an output stream of deltas, important for clustering events. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log(myFunction()); | |
| const myConstant = ""; | |
| function myFunction(myArgument: string = myConstant): string { | |
| return myArgument; | |
| } |
OlderNewer