Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| docker images | sort -k7 -h -r |
| //------------------------------------------ | |
| //Compact bitmap datastructure | |
| //Memory efficient array of bool flags | |
| var Bitmap = function(size){ | |
| this._cols = 8; | |
| this._shift = 3; | |
| this._rows = (size>>this._shift)+1; | |
| this._buf = new ArrayBuffer(this._rows); | |
| this._bin = new Uint8Array(this._buf); | |
| }; |
| #!/usr/bin/env ruby | |
| require 'open-uri' | |
| require 'pathname' | |
| require 'json' | |
| def strip_hash(f) | |
| ext = f.extname | |
| if ext.include?("?") |
| ''' | |
| 620031587 | |
| Net-Centric Computing Assignment | |
| Part A - RSA Encryption | |
| ''' | |
| import random | |
| ''' |
| from django.http import HttpResponse | |
| PIXEL_GIF_DATA = """ | |
| R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 | |
| """.strip().decode('base64') | |
| def pixel_gif(request): | |
| return HttpResponse(PIXEL_GIF_DATA, content_type='image/gif') |
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)git reset vs git rm --cached)| console.log(1); | |
| (_ => console.log(2))(); | |
| eval('console.log(3);'); | |
| console.log.call(null, 4); | |
| console.log.apply(null, [5]); | |
| new Function('console.log(6)')(); | |
| Reflect.apply(console.log, null, [7]) | |
| Reflect.construct(function(){console.log(8)}, []); | |
| Function.prototype.apply.call(console.log, null, [9]); | |
| Function.prototype.call.call(console.log, null, 10); |
| var React = require('react-native') | |
| var { | |
| View, | |
| Text, | |
| LinkingIOS, | |
| StyleSheet, | |
| } = React | |
| // you might want to compile these two as standalone umd bundles | |
| // using `browserify --standalone` and `derequire` |