#hello
mkdir fuck && $_
| let DataService = { | |
| hostUrl: 'https://abc.com/', | |
| search(query){ | |
| return fetch(`$(this.hostUrl)}/search?query=${query}`) | |
| .then(res=>res.json()) | |
| .then(rows=>fetch(`${this.hostUrl}/detail?id=${rows.id}`)) | |
| .then(res=>res.json()) | |
| } | |
| } |
| //error-version | |
| //html | |
| button{$}*4 | |
| .output | |
| //js | |
| var buttons = document.querySelectorAll('button') | |
| var output = document.querySelctor('.output') |
| import fs from 'fs' | |
| import readline from 'readline' | |
| import path from 'path' | |
| const noop = () => false | |
| let Module = { | |
| readLineInFile(filename, cb = noop, done = noop){ | |
| let rl = readline.createInterface({ | |
| input: fs.createReadStream(path.resolve(__dirname, './big_file.txt')) |
| Object.defineProperty(Array, 'of', { | |
| value: ()=> [].slice.call(arguments) | |
| }) |
| ((global)=>{ | |
| Object.defineProperty(Array, 'from', { | |
| value:obj=>[].slice.call(obj) | |
| }) | |
| })(this) |
| (function(global){ | |
| const MIN_SAFE_INTEGER = Math.MIN_SAFE_INTEGER | |
| const MAX_SAFE_INTEGER = Math.MAX_SAFE_INTEGER | |
| let floor = Math.floor, isFinite = global.isFinite | |
| Object.defineProperty(Number, 'isInteger', { | |
| value: (value)=>(typeof value === 'number' && isFinite(value) && value >= MIN_SAFE_INTEGER && value <= MAX_SAFE_INTEGER && floor(value) === value), | |
| configurable: true, | |
| enumerable: true, | |
| writable: true | |
| }) |
| <script> | |
| var _hmt = _hmt || []; | |
| (function() { | |
| var hm = document.createElement("script"); | |
| hm.src = "//hm.baidu.com/hm.js?a3b0492c9a3bc500fe00dee6faaafd59"; | |
| var s = document.getElementsByTagName("script")[0]; | |
| s.parentNode.insertBefore(hm, s); | |
| })(); | |
| </script> |
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| .container{ | |
| background:green; | |
| } | |
| .red{ | |
| margin:0 auto; | |
| margin-top:20vh; | |
| width:30vw; |
| .chevron-left { | |
| position: relative; | |
| height: $banner-height; | |
| width: 100%; | |
| } | |
| .chevron-left:before { | |
| content: ''; | |
| position: absolute; |